Lines Matching refs:g_Notifications
223 NOTIFYENTRY g_Notifications[MAX_NOTIFICATIONS];
261 g_Notifications[i].usFlags = NOTIFY_FREE;
262 g_Notifications[i].hDeviceAdded = 0;
263 g_Notifications[i].hDeviceRemoved = 0;
264 g_Notifications[i].usVendor = 0;
265 g_Notifications[i].usProduct = 0;
266 g_Notifications[i].usBCDDevice = 0;
320 if( g_Notifications[i].usFlags != NOTIFY_FREE);
321 UsbDeregisterNotification((USBNOTIFY)(&g_Notifications[i]));
450 if( g_Notifications[i].usFlags == NOTIFY_FREE)
452 g_Notifications[i].usFlags = NOTIFY_CHANGE;
453 g_Notifications[i].hDeviceAdded = hDeviceAdded;
454 g_Notifications[i].hDeviceRemoved = hDeviceRemoved;
455 g_Notifications[i].usVendor = 0;
456 g_Notifications[i].usProduct = 0;
457 g_Notifications[i].usBCDDevice = 0;
466 *pNotifyID = (USBNOTIFY) (&g_Notifications[i]);
473 g_Notifications[i].usFlags = NOTIFY_FREE;
528 if( g_Notifications[i].usFlags == NOTIFY_FREE)
530 g_Notifications[i].usFlags = NOTIFY_DEVICE;
531 g_Notifications[i].hDeviceAdded = hDeviceAdded;
532 g_Notifications[i].hDeviceRemoved = hDeviceRemoved;
533 g_Notifications[i].usVendor = usVendor;
534 g_Notifications[i].usProduct = usProduct;
535 g_Notifications[i].usBCDDevice = usBCDVersion;
544 *pNotifyID = (USBNOTIFY) (&g_Notifications[i]);
556 g_Notifications[i].usFlags = NOTIFY_FREE;
573 MinID = (USBNOTIFY) (&g_Notifications[0]);
574 MaxID = (USBNOTIFY) (&g_Notifications[MAX_NOTIFICATIONS-1]);
588 switch(g_Notifications[Index].usFlags)
598 EventSet.ulSemDeviceAdd = g_Notifications[Index].hDeviceAdded;
599 EventSet.ulSemDeviceRemove = g_Notifications[Index].hDeviceRemoved;
608 EventSet.ulSemDeviceAdd = g_Notifications[Index].hDeviceAdded;
609 EventSet.ulSemDeviceRemove = g_Notifications[Index].hDeviceRemoved;
610 EventSet.usVendorID = g_Notifications[Index].usVendor;
611 EventSet.usProductID = g_Notifications[Index].usProduct;
612 EventSet.usBCDDevice = g_Notifications[Index].usBCDDevice;
626 g_Notifications[Index].usFlags = NOTIFY_FREE;
627 g_Notifications[Index].hDeviceAdded = 0;
628 g_Notifications[Index].hDeviceRemoved = 0;
629 g_Notifications[Index].usVendor = 0;
630 g_Notifications[Index].usProduct = 0;
631 g_Notifications[Index].usBCDDevice = 0;