Пример #1
0
 // Token: 0x0600001C RID: 28 RVA: 0x00003B78 File Offset: 0x00001D78
 public static IntPtr RegisterForUsbEvents(IntPtr hWnd, Guid gClass)
 {
     Win32Usb.DeviceBroadcastInterface deviceBroadcastInterface = new Win32Usb.DeviceBroadcastInterface();
     deviceBroadcastInterface.Size       = Marshal.SizeOf(deviceBroadcastInterface);
     deviceBroadcastInterface.ClassGuid  = gClass;
     deviceBroadcastInterface.DeviceType = 5;
     deviceBroadcastInterface.Reserved   = 0;
     return(Win32Usb.RegisterDeviceNotification(hWnd, deviceBroadcastInterface, 0u));
 }
Пример #2
0
 protected static extern IntPtr RegisterDeviceNotification(IntPtr hwnd, Win32Usb.DeviceBroadcastInterface oInterface, uint nFlags);