Re: getting handle to device



are you calling IoSetDeviceInterfaceState(..., TRUE) as well?

d

--
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.


"Brian" <Brian@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:2E634CFF-0A2B-4455-9237-1973AB9978E9@xxxxxxxxxxxxxxxx
This one should be a no-brainer, I just added a dispatch routine to my bus
filter driver that is supposed to return status information back. I register
the interface in the AddDevice routine. This appears to be working, as I can
see each instance enumerated under my GUID in the
currentcontrolset\Control\DeviceClasses. The problem is after modifying the
toaster examples enum application to use my GUID, I the
SetupDiEnumDeviceInterfaces call fails and the last error is
ERROR_NO_MORE_ITEMS. I double checked that I am using my new GUID, and that
the correct number of instances of my device is in the registry. What I
would like to know is how can I tell if my driver is not registering the
interface correctly, or am I not accessing the interface correctly?

Thanks

Brian

.



Relevant Pages

  • Re: WM_DEVICECHANGE PARAMETERS
    ... the device arrival message will include the device interface GUID and will include the symbolic link name to the device. ... Please do not send e-mail directly to this alias. ... I assume you mean this is done by calling the register function multiple ... but if I register for keyboard I should get the keyboard guid in ...
    (microsoft.public.development.device.drivers)
  • Re: Opening a Filter Driver
    ... My filter driver is a lower filter driver, ... If I register my own GUID, I can find my filter, but I cant open ... So I try to find a GUID that will open mice, usb, HID or whatever my device ...
    (microsoft.public.development.device.drivers)
  • Re: Cant view merge agent properties (trying again)
    ... The managers ... of that team are on that alias and will get back to you fairly quickly. ... When you successfully register we attempt to popup a page with more ... posting using is, not the address you used for this post. ...
    (microsoft.public.sqlserver.replication)
  • Re: WM_DEVICECHANGE PARAMETERS
    ... one of the drivers is enable the COM port device interface, the other is not. ... Please do not send e-mail directly to this alias. ... but if I register for keyboard I should get the keyboard> guid ...
    (microsoft.public.development.device.drivers)
  • Re: RegisterDeviceNotification does not work
    ... Please do not send e-mail directly to this alias. ... newsgroup purposes only. ... This posting is provided "AS IS" with no warranties, ... directory and modified the code to use this GUID. ...
    (microsoft.public.win32.programmer.kernel)