LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Catch WM_DEVICECHANGE sent by a DLL through my application handle

Solved!
Go to solution

Well, it appears that the lParam and wParam were alright but I was passing them incorrectly.

I should be passing them as pointers but with or without * and & no error or warning was shown by CVI and I caught this mistake by luck.

 

In any case I used:

 

InstallWinMsgCallback(...)

RemoveWinMsgCallback (...&postHandle)

hHandle=(HWND)postHandle;

 

and everything os working.

 

Thank you for your time.

Regards.

0 Kudos
Message 11 of 11
(825 Views)