Re: Failed to open USB device using CreateFile: ERROR_FILE_NOT_FOUND



flashlib@xxxxxxxxx wrote:

Alghouh I don't if there is any problem in my code( It succeed when I
install EZUSB driver to my device, but failed with the custom driver
which is written by other people), I post it here for a deep discuss:

Do you not have source code for this driver?

DEFINE_GUID(CameraClassGuid, 0xa5dcbf10,0x6530,0x11d2,0x90,0x1f,
0x00,0xc0,0x4f,0xb9,0x51,0xed);// ??usb device

That is NOT "CameraClassGuid". That is GUID_DEVINTERFACE_USB_DEVICE. It
is assigned to your PDO by the USB hub driver. In fact, it is assigned to
EVERY device PDO by the USB hub driver.

In fact, this code works for many device. And for this device I want
to open, it works with the EZUSB driver but failed with the custom
drier. Is it possible that there is a authorization in the driver when
proccess the IRP_MJ_CREAT?

Sure, it's possible. Remember that the device's driver (for the FDO) did
not register this device interface. It didn't expect you to use it.
--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.



Relevant Pages

  • Re: selsusp driver cant standby from C3 state.
    ... ezusb driver has very lousy power management code. ... > I connected between selsusp driver and EzUsb chip. ...
    (microsoft.public.development.device.drivers)
  • Re: Windows Support for Wireless USB
    ... Windows DDK provides a "Port Driver Interfaces Available to Vendor-Supplied ... between the USB Hub Driver and the Port Driver ...
    (microsoft.public.development.device.drivers)

Loading