08-24-2009 02:20 PM
(Microsoft Visual C++)
I am able to programmatically detect when a NI USB GPIB is inserted in the PC. Do I use the same method to detect the PCMCIA GPIB? Is it also a
DBT_DEVTYP_DEVICEINTERFACE?
Detail:
Here is how to detect NI USB GPIB
LRESULT CALLBACK DeviceManager::WindowsEventHandler(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lParam)
{
if ( Message == WM_DEVICECHANGE ){
if(wParam == DBT_DEVICEARRIVAL){
DEV_BROADCAST_HDR* hdr = (DEV_BROADCAST_HDR*)lParam;
if(DBT_DEVTYP_DEVICEINTERFACE == hdr->dbch_devicetype){
if ( strstr( ((DEV_BROADCAST_DEVICEINTERFACE*)hdr)->dbcc_name, "Vid_3923" )) // THIS is the USB GPIB HS
08-25-2009 01:40 PM
Hi Fred,
I got your email earlier; let me know if you got my reply and if you have any questions. It may be best to continue this issue here on the forums so that everyone can see/learn/contribute etc.