IoRegisterPnpNotify Question

hello all,
have any one use the Pnp notification function (IoRegisterPnpNotify()) to detect a device with a certain GUID and also with product ID and vendor ID.
iam already using it to detect a class of HID devices but i want it also to further detect devices with certain Vendor ID and Product ID…

thanx in advance

That interface works with guids. Once notified, and if the device supports
it, you can open the device to obtain a device object and query its pnp
information using IoGetDeviceProperty to find its product and vendor ids.

On Jan 3, 2008 4:01 AM, wrote:

> hello all,
> have any one use the Pnp notification function (IoRegisterPnpNotify()) to
> detect a device with a certain GUID and also with product ID and vendor ID.
> iam already using it to detect a class of HID devices but i want it also
> to further detect devices with certain Vendor ID and Product ID…
>
> thanx in advance
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>


Mark Roddy

thanx a lot , it works now