Home > Software engineering > Read from the definition of HID device, in reading way opened the equipment CreateFile GENERIC_READ
Read from the definition of HID device, in reading way opened the equipment CreateFile GENERIC_READ
Time:10-14
//read way to open the equipment HReadHandle=CreateFile (MyDevPathName, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, (LPSECURITY_ATTRIBUTES) NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL,//| FILE_FLAG_OVERLAPPED NULL);
Is the source of the tutorial program, Find some related information, permissions, environment is a Windows 7 + VS2010 in VS2010 improved access, is still the same problem, B: where is someone didn't meet the same problem, but also need to set up? Thank you for the
CodePudding user response:
You with administrator privileges to run your program