Hello,
Getting window handle of an application, AccExplorer shows window handle in the form of 0x001d051c while windows APIs expect it to be long (e.g: 1901852); so how to use the value 0x001d051c on APIs? Is there a way to convert it into the long format?
I know how to get a hwnd as a long value- from a certain window/application; I just don't know why some spy tools use the above format (e.g 0x001d051c) and how to convert it (if possible) into a long value in order to use it in the below api:
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, _
ByVal wParam As Long, ByVal lParam As Long) As Long
Could somebody please help me...
Thanks.
Getting window handle of an application, AccExplorer shows window handle in the form of 0x001d051c while windows APIs expect it to be long (e.g: 1901852); so how to use the value 0x001d051c on APIs? Is there a way to convert it into the long format?
I know how to get a hwnd as a long value- from a certain window/application; I just don't know why some spy tools use the above format (e.g 0x001d051c) and how to convert it (if possible) into a long value in order to use it in the below api:
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, _
ByVal wParam As Long, ByVal lParam As Long) As Long
Could somebody please help me...
Thanks.