From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(2,861 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
(2,832 Views)