Showing results for 
Search instead for 
Did you mean: 

How to get a handle to a destination window for user32.dll

I want to use the function "PostMessage" from the user32.dll. One input parameter to this DLL is a handle to the destination window, which should be an unsigned integer value. In LabVIEW I can get a (datalog file) reference to the window, but how can I use that for the DLL? Can I convert it to unsigned integer or do I have to configure the DLL access by choosing 'Adapt to Type'? Both doesn't seem to work...
0 Kudos
Message 1 of 2
Dont use a datalog type. Wont do you any good. There are several ways to get the hWnd of the main LabVIEW application window. The easiest being getting it by name using another API function. Please see link below for some VIs to give you what you are looking for...
0 Kudos
Message 2 of 2