LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to process USB events (arrival/removal) in a DLL (without using a panel handle)?

Good afternoon,

I was able to process USB Events DBT_DEVICEARRIVAL and DBT_DEVICEREMOVECOMPLETE from an application using InstallWinMsgCallback and RegisterDeviceNotification but in that case i was running an application which has its .uir file and i get the panel handle with GetPanelAttribute (..ATTR_SYSTEM_WINDOW_HANDLE..).

Now, i need to process that events from inside a DLL (which doesn`t have a .uir file and therefore i can't get a panel handle to pass to InstallWinMsgCallback) but i do not know how to imlpement it.

Thanks ind advance

 

0 Kudos
Message 1 of 2
(3,091 Views)

Hi AlePinto,

 

Please review the following Getting Started with LabWindows/CVI:

http://www.ni.com/pdf/manuals/373552j.pdf

 

I hope it helps you.

 

Regards.

0 Kudos
Message 2 of 2
(3,062 Views)