Re: [ntdev] Question regarding export drivers

Note that source code can easily be shared via encapsulation in a static library. This produces a duplicated memory footprint, but avoids all load order and versioning issued associated with sharing

Sent from Surface Pro

From: Peter Wieland
Sent: ‎Sunday‎, ‎April‎ ‎12‎, ‎2015 ‎6‎:‎14‎ ‎PM
To: Windows System Software Devs Interest List

There’s really no good mechanism to manage a shared export driver across multiple driver packages. Since, as Doron pointed out, the versioning is done at the package level, it’s very easy for package B, which contains an older version of the export driver, to install and roll the export driver back to something older than package A requires.

PNP also doesn’t know how to shut down an export driver, so when you install package B PNP will copy the export driver, but may not be able to ensure that it unloads and the newer version loads.

Generally the rule is not to try and share drivers between packages.

-p

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Saturday, April 11, 2015 9:06 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Question regarding export drivers

1 yes, but it can get a little complicated with respect to load order

2 each package should install the export driver

3 versioning is done at the driver package level for pnp install, not at the binary level, so export drives are versioned by the containing pnp driver package that installs it

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Driver Learner
Sent: Saturday, April 11, 2015 1:49 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Question regarding export drivers

Hello Gurus,

I have few questions on export drivers.

  1. Can an export driver also implement and act as regular driver?

  2. If more than one driver uses the export driver, how should it be packaged for install?

  3. How is versioning maintained for the export driver? Is it same as regular driver?

My questions are in pure academic interest and maybe dumb. Please bear with me.

Best regards,

Chakri

— NTDEV is sponsored by OSR Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev 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


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

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


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

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