KMDF and creating & attaching device objects...

Hi All,

I have a non-KMDF driver and I want to port it to KMDF.

In a WDM driver I am creating an instance of the disk class driver and
attaching it to my IO stack.

Is it possible to do the same thing in KMDF without being a KMDF bus driver?

I’m hesitant to mix KMDF and non-KMDF calls with this kind of stuff.

Haven’t tried it yet though…

Best regards,
Robert.


Robert Randall | xxxxx@gmail.com

In your wdm driver, are you doing this in an AddDevice routine or are you doing this after “finding” and device object to attach to?

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Robert Randall
Sent: Thursday, December 15, 2011 1:23 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] KMDF and creating & attaching device objects…

Hi All,

I have a non-KMDF driver and I want to port it to KMDF.

In a WDM driver I am creating an instance of the disk class driver and attaching it to my IO stack.

Is it possible to do the same thing in KMDF without being a KMDF bus driver?

I’m hesitant to mix KMDF and non-KMDF calls with this kind of stuff.

Haven’t tried it yet though…

Best regards,
Robert.


Robert Randall | xxxxx@gmail.com


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

In AddDevice.

On Thu, Dec 15, 2011 at 3:50 PM, Doron Holan wrote:
> In your wdm driver, ?are you doing this in an AddDevice routine or are you doing this after “finding” and device object to attach to?
>
> -----Original Message-----
> From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Robert Randall
> Sent: Thursday, December 15, 2011 1:23 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] KMDF and creating & attaching device objects…
>
> Hi All,
>
> I have a non-KMDF driver and I want to port it to KMDF.
>
> In a WDM driver I am creating an instance of the disk class driver and attaching it to my IO stack.
>
> Is it possible to do the same thing in KMDF without being a KMDF bus driver?
>
> I’m hesitant to mix KMDF and non-KMDF calls with this kind of stuff.
>
> Haven’t tried it yet though…
>
> Best regards,
> Robert.
>
> –
> Robert Randall | xxxxx@gmail.com
>
> —
> 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
>
>
>
> —
> 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


Robert Randall | xxxxx@gmail.com

This is what WdfDeviceCreate does in EvtDriverDeviceCreate, no need to go to wdm.

d

debt from my phone


From: Robert Randall
Sent: 12/15/2011 1:57 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] KMDF and creating & attaching device objects…

In AddDevice.

On Thu, Dec 15, 2011 at 3:50 PM, Doron Holan wrote:
> In your wdm driver, are you doing this in an AddDevice routine or are you doing this after “finding” and device object to attach to?
>
> -----Original Message-----
> From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Robert Randall
> Sent: Thursday, December 15, 2011 1:23 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] KMDF and creating & attaching device objects…
>
> Hi All,
>
> I have a non-KMDF driver and I want to port it to KMDF.
>
> In a WDM driver I am creating an instance of the disk class driver and attaching it to my IO stack.
>
> Is it possible to do the same thing in KMDF without being a KMDF bus driver?
>
> I’m hesitant to mix KMDF and non-KMDF calls with this kind of stuff.
>
> Haven’t tried it yet though…
>
> Best regards,
> Robert.
>
> –
> Robert Randall | xxxxx@gmail.com
>
> —
> 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
>
>
>
> —
> 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


Robert Randall | xxxxx@gmail.com


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