storport virtual miniport load order

Hi All,

I have written a virtual storport miniport driver and I want the driver to load during system boot. The virtual miniport driver has dependency with another driver which does not load when the virtual miniport driver is loaded, because of which the virtual miniport driver is failing to initialize.

How to make the virtual miniport driver load, after the driver on which it has dependency has loaded?

I have set the starttype as 3 in virutal miniport inf file.

Thanks.

Try using LoadOrderGroup and Dependencies entries of the INF AddService Directive

And set your driver start type to boot (3 is demand start)

Bent from my phone


From: xxxxx@lists.osr.com on behalf of xxxxx@gmail.com
Sent: Tuesday, December 12, 2017 1:56:52 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] storport virtual miniport load order

Try using LoadOrderGroup and Dependencies entries of the INF AddService Directive


NTDEV is sponsored by OSR

Visit the list online at: https:

MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers!
Details at https:

To unsubscribe, visit the List Server section of OSR Online at https:</https:></https:></https:>

Thanks for the replies.

I have already tried LoadOrderGroup, Dependencies and start type changes. Im not sure what exact values to give for these entries. I tried “SCSI Miniport” in LoadOrderGroup, and changed starttype = 0. Also, for Dependencies, I have set the value specified in LoadOrderGroup in the dependent driver’s inf file(not sure if this is the value I have to set, pls correct me if Im wrong). If I make any of these changes, then the virtual miniport driver is not even installing.

So, to summarize, following 2 questions:

  1. What is the exact value to set in LoadOrderGroup, Dependencies, and starttype for this requirement? (Did not get much help for MSDN descriptions)
  2. Can we change the driver load order for Virtual miniport drivers. Or is it that we can do such changes only on physical miniport drivers?