hi friends, how to get the instance of another application.
Printable View
hi friends, how to get the instance of another application.
I'm sorry you havn't even written a complete sentence; how do you evpect to get results? There is totally not enough information provided in your post.
Do you mean the hInstance? If so, then if you have the hWnd of the window...
VB Code:
Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, _ ByVal nIndex As Long) _ As Long Private Const GWL_HINSTANCE = (-6) MsgBox GetWindowLong(hwnd, GWL_HINSTANCE)