Hi,
I have developed a HID minidriver for a USB keyboard which is not a
standard one. This is targetted to work on Win2k and WinXP. In my
application, I'm calling HIDd_GetGuid(..) and later am calling the normal
SetupDiXXX(..) routines to get teh device name. After this, I'm calling
CreateFile(..) to open a handle. Here, it is returning INVALID_HANDLE_VALUE.
The parameters are : name, GENERIC_READ|GENERIC_WRITE, 0, OPEN_EXISTING,
FILE_ATTRIBUTES_NORMAL, NULL. When I call GetLastError(), its showing 5 ==
ERROR_ACCESS_DENIED.
One more observation is : When I call the same CraeteFile(..) with
dwDesiredAccess = 0, its openeing a handle. But I cannot do any read\write
operations with this handle.
So How do I go about this prob?
Thanks,