Exemple #1
0
        public HidDevice(string devicePath)
        {
            _devicePath = devicePath;

            _overlapped             = new NativeOverlapped();
            _overlapped.EventHandle = NativeInterface.CreateEvent(IntPtr.Zero, false, false, null);
            _pinnedOverlapped       = GCHandle.Alloc(_overlapped, GCHandleType.Pinned);
        }