LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Detecting USB Device insertion/removal

Hi All,

 

With reference the an earlier post by softengr (here), I'm trying to detect the USB devices while being connected.

I'm trying to compile the same code posted by softengr, but getting some compilation error even after adding windows.h.

I think I'm missing some header file here.

 

The following are the errors during compilation;

 

  Undeclared identifier 'DEV_BROADCAST_DEVICEINTERFACE'.

  Undeclared identifier 'NotificationFilter'.

  Undeclared identifier 'GUID_DEVINTERFACE_USB_DEVICE'.

  Undeclared identifier 'GUID_CLASS_USB_DEVICE'.

 

I'm using LabWindows/CVI 2012 with Windows7 64bit.

 

Can anybody suggest waht am i doing wrong here.

 

Thankyou,

Dosth

0 Kudos
Message 1 of 1
(2,727 Views)