Reputation: 1
I use ZTE USB Modem device. My device installed to Ports class (driver is usbser.sys). I followed msdn example "How to Access a USB Device by Using WinUSB Functions". Everything is fine until I call the function winusb_initialize.It returns false with getlasterror 87 i-e ERROR_INVALID PARAMETER.I found a solution on "http://www.microchip.com/forums/m653017-print.aspx" but it doesn't help.when i try to change the winusb.inf file in x86 folder,computer says access is denied even though I have logged in as administrator. Kindly help me.
Thanks in advance
Upvotes: 0
Views: 3140
Reputation: 3396
I you say your handle is good all you need to do is:
BOOL bResult;
WINUSB_INTERFACE_HANDLE usbHandle;
bResult = WinUsb_Initialize(deviceHandle, &usbHandle);
If bResult
is true
, it means you initialized the WinUsb correctly.
Upvotes: -2