hi friends, how to get the instance of another application.
A good friend...
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.
~* )v( ! /< E *~
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)
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)
Laugh, and the world laughs with you. Cry, and you just water down your vodka. Take credit, not responsibility
Forum Rules