CreateFile() failing when trying to open HID device
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hello all I'm trying to program HID device. After fetching device name using SetupDiGetDeviceInterfaceDetail(), I'm trying to open it using the following. CreateFile(DevicePath,GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,NULL, NULL); but I'm getting ERROR_ACCESS_DENIED. I'm using windows 2000. Can anyone help me in this? Thanks for your help Hari.