Re: CreateFile for USB device returns ERROR_FILE_NOT_FOUND



the way the device is connected does not effect how it allows handles to be created. are you using a different device interface guid for each?

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Sam Zehr" <Sam Zehr@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:E38A0A46-9E6F-4ED5-9205-E41461E20D96@xxxxxxxxxxxxxxxx
Hi.

I am trying to communicate directly with a USB webcam. (I know there are
easier ways to run a webcam, but I have my reasons :)

I am enumerating the USB devices, and getting the path with
SetupDiGetDeviceInterfaceDetail

I am able to get a valid handle to a thumb drive and USB keyboard with my
code, and the mouse returns ERROR_GEN_FAILURE, which is becuase the system
locks it, if I understand correctly.

Both the webcam and my gamepad return ERROR_FILE_NOT_FOUND from CreateFile.

The DevicePath seems to be correct, becuase I can get a handle to some
devices, and I seem to have the right device, because
SetupDiGetDeviceRegistryProperty is returning correct values.

What would cause CreateFile to not get a valid handle on some USB devices?

Thanks
Sam

.



Relevant Pages

  • Re: A7N8X deluxe USB problem?
    ... I seem to be having a problem with one older webcam that keeps on getting ... lost or else the driver gets corrupted. ... than those that came with the board from Asus. ... Having inserted many, many, USB devices into my A7N8X deluxe's, ...
    (alt.comp.periphs.mainboard.asus)
  • Re: sound mixer cannot find audio devices after rebooting with USB headset
    ... xjust say it and I will look for what I have done age ago!!! ... would this play with usb devices that I may connect after booting? ... I got the same problem with a webcam ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: A7N8X deluxe USB problem?
    ... I seem to be having a problem with one older webcam that keeps on getting ... lost or else the driver gets corrupted. ... Having inserted many, many, USB devices into my A7N8X deluxe's, ... I suspect the problem lies with your webcam rather than the mobo/drivers. ...
    (alt.comp.periphs.mainboard.asus)
  • Re: sound mixer cannot find audio devices after rebooting with USB headset
    ... xjust say it and I will look for what I have done age ago!!! ... would this play with usb devices that I may connect after booting? ... I got the same problem with a webcam ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Comm Ports 10+
    ... AliR. ... > USB devices can have a comm port number greater than 9. ... what is passed to CreateFile? ...
    (microsoft.public.vc.mfc)