Why driver object be created by driver

When we write a wdm driver, driver object is created by io manager and driverentry is called.
infact this driver object is rep of our driver in system

but in wdf, a driver is supposed to create the driver object. then everyhting looks messy to me !

please help or ignore if my question irritates to you.

Please take my question as closed. Sorry.

WDF requires that you create the WDFDRIVER explicitly in your code because WDF has no idea of
a) how you are going to configure the WDFDRIVER, ie what kind of WDFDRIVER you need. Do you need a miniport mode one? or a pnp one?
b) the context you want hanging of the WDFDRIVER

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Friday, May 31, 2013 12:00 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Why driver object be created by driver

When we write a wdm driver, driver object is created by io manager and driverentry is called.
infact this driver object is rep of our driver in system

but in wdf, a driver is supposed to create the driver object. then everyhting looks messy to me !

please help or ignore if my question irritates to you.


NTDEV is sponsored by OSR

OSR is HIRING!! See http://www.osr.com/careers

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

> but in wdf, a driver is supposed to create the driver object

It is supposed to create WDFDRIVER, and not DRIVER_OBJECT, they are different things.


Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com