KMDF: Why can't a 'miniport' WDFDEVICE support calls to WdfDeviceQueryProperty

I am sure there is some really good reason. It just completely escapes me
given that I can call IoGetDeviceProperty() on the PDO which I just gave to
WdfDeviceMiniportCreate(). It surely is not a mystery to the WDFDEVICE what
the PDO is…

And yes, I did go back and read the short list of WdfDeviceXxx() functions
that are supported on miniport WDFDEVICE objects and yes, that is not in
them. I know. Sucks for me :wink:

Of course I will just use IoGetDeviceProperty() and I will not bitch about
it :slight_smile: - I just was wondering why my trend towards laziness and reliance
on others (Doron, PeterW, etc.) was abruptly cut off with a bugcheck when I
thought ‘how nice, WdfDeviceAllocAndQueryProperty() will handle getting that
string for me…’ - NOT!

-dave

Off thwe top of my head, no good reason why this should not work. I can look at the src in a couple of hours with a more definitive answer

d

Sent from my phone with no t9, all spilling mistakes are not intentional.

-----Original Message-----
From: David R. Cattley
Sent: Tuesday, April 07, 2009 9:52 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] KMDF: Why can’t a ‘miniport’ WDFDEVICE support calls to WdfDeviceQueryProperty

I am sure there is some really good reason. It just completely escapes me
given that I can call IoGetDeviceProperty() on the PDO which I just gave to
WdfDeviceMiniportCreate(). It surely is not a mystery to the WDFDEVICE what
the PDO is…

And yes, I did go back and read the short list of WdfDeviceXxx() functions
that are supported on miniport WDFDEVICE objects and yes, that is not in
them. I know. Sucks for me :wink:

Of course I will just use IoGetDeviceProperty() and I will not bitch about
it :slight_smile: - I just was wondering why my trend towards laziness and reliance
on others (Doron, PeterW, etc.) was abruptly cut off with a bugcheck when I
thought ‘how nice, WdfDeviceAllocAndQueryProperty() will handle getting that
string for me…’ - NOT!

-dave


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

Thanks. Obviously not to assist in my current projects but perhaps only to
either further educate me (always a good idea) or to catalog as a possible
‘enhancement’ request for the mythical next release :slight_smile:

Cheers,
-dave

“Doron Holan” wrote in message
news:xxxxx@ntdev…
> Off thwe top of my head, no good reason why this should not work. I can
> look at the src in a couple of hours with a more definitive answer
>
> d
>
> Sent from my phone with no t9, all spilling mistakes are not intentional.
>
> -----Original Message-----
> From: David R. Cattley
> Sent: Tuesday, April 07, 2009 9:52 AM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] KMDF: Why can’t a ‘miniport’ WDFDEVICE support calls to
> WdfDeviceQueryProperty
>
>
> I am sure there is some really good reason. It just completely escapes me
> given that I can call IoGetDeviceProperty() on the PDO which I just gave
> to
> WdfDeviceMiniportCreate(). It surely is not a mystery to the WDFDEVICE
> what
> the PDO is…
>
> And yes, I did go back and read the short list of WdfDeviceXxx() functions
> that are supported on miniport WDFDEVICE objects and yes, that is not in
> them. I know. Sucks for me :wink:
>
> Of course I will just use IoGetDeviceProperty() and I will not bitch about
> it :slight_smile: - I just was wondering why my trend towards laziness and reliance
> on others (Doron, PeterW, etc.) was abruptly cut off with a bugcheck when
> I
> thought ‘how nice, WdfDeviceAllocAndQueryProperty() will handle getting
> that
> string for me…’ - NOT!
>
> -dave
>
>
>
>
> —
> 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
>
>