Hi Everybody ,
I want to convert between HANDLE to HWND . May I know hyow can I do it . My
requirement is I want to use SendMessage api to send some data to another
process using WM_COPYDATA . For SendMessage I need HWND for that process.
I have tried in this way . I used CreateToolHelp32SnapShot api and got the list
of all processes. Now using OpenProcess , I got Handle to the requiored process
. Now I strucked up here . I need to convert this Handle to HWND .
I thought like both are 4 bytes pointers so I can typecast easily (I don't know
exactly what those 2 represent).
So for verification purpose , I tried to use GetWindowText() api for the
current process , passing HANDLE of the current process and typecasting it to
HWND. But I got error code as 1400 (INvalid Handle) .
So can any one please explain me on this topic.
---------------------------------
Why delete messages? Unlimited storage is just a click away.
[Non-text portions of this message have been removed]