Temporary Device Object

Greetings,

I’m interested in developing a virtual driver, one that does not control
hardware. It would load temporarily, only for the time it is required. Are
there other options for loading that driver than using calls to SetupApi
(using a similar approach to the install command of devcon)?

Using the SetupApi approach, the device object is permanent and is created
again after a crash/reboot. How can I tell the system I want it only
temporarily and that the device object should not be automatically created
again after a reboot?

Thanks In Advance,

Mat

What hardware will your driver emulate? Storage? Network? Human input? or what another kind?

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: Mathieu Routhier
To: Windows System Software Devs Interest List
Sent: Wednesday, July 14, 2004 6:40 PM
Subject: [ntdev] Temporary Device Object

Greetings,

I’m interested in developing a virtual driver, one that does not control hardware. It would load temporarily, only for the time it is required. Are there other options for loading that driver than using calls to SetupApi (using a similar approach to the install command of devcon)?

Using the SetupApi approach, the device object is permanent and is created again after a crash/reboot. How can I tell the system I want it only temporarily and that the device object should not be automatically created again after a reboot?

Thanks In Advance,

Mat


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Audio.

Mat


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Wednesday, July 14, 2004 10:49 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Temporary Device Object

What hardware will your driver emulate? Storage? Network? Human input?
or what another kind?

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----

From: Mathieu mailto:xxxxx Routhier

To: Windows System mailto:xxxxx Software Devs Interest List

Sent: Wednesday, July 14, 2004 6:40 PM

Subject: [ntdev] Temporary Device Object

Greetings,

I’m interested in developing a virtual driver, one that does not control
hardware. It would load temporarily, only for the time it is required. Are
there other options for loading that driver than using calls to SetupApi
(using a similar approach to the install command of devcon)?

Using the SetupApi approach, the device object is permanent and is created
again after a crash/reboot. How can I tell the system I want it only
temporarily and that the device object should not be automatically created
again after a reboot?

Thanks In Advance,

Mat


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@encentrus.com
To unsubscribe send a blank email to xxxxx@lists.osr.com</mailto:xxxxx></mailto:xxxxx>

See the toaster sample driver. Basically you are describing bus driver
functionality. The bus driver and its device object are permanent, the
devices enumerated by the bus driver are under your software’s control.

=====================
Mark Roddy


From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Wednesday, July 14, 2004 10:49 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Temporary Device Object

What hardware will your driver emulate? Storage? Network? Human input?
or what another kind?

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com mailto:xxxxx
http://www.storagecraft.com http:

----- Original Message -----
From: Mathieu mailto:xxxxx Routhier
To: Windows System Software Devs Interest mailto:xxxxx List

Sent: Wednesday, July 14, 2004 6:40 PM
Subject: [ntdev] Temporary Device Object

Greetings,

I’m interested in developing a virtual driver, one that does not control
hardware. It would load temporarily, only for the time it is required. Are
there other options for loading that driver than using calls to SetupApi
(using a similar approach to the install command of devcon)?

Using the SetupApi approach, the device object is permanent and is created
again after a crash/reboot. How can I tell the system I want it only
temporarily and that the device object should not be automatically created
again after a reboot?

Thanks In Advance,

Mat


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@stratus.com
To unsubscribe send a blank email to xxxxx@lists.osr.com</mailto:xxxxx></mailto:xxxxx></http:></mailto:xxxxx>

This is interesting. I’m a bit familiar to bus drivers (I developed one
myself) and this makes sense.

The problem with this is I don’t want to have a driver loaded permanently,
which is what this bus driver would do. Also, I’m interested in creating
only one instance of that driver, never more. Choosing a bus architecture
seems a bit exaggerated in this case.

Does the system provide a way to create a device object temporarily, just
like a bus driver would do? Isn’t the root-enumerator a bus driver?

Mat


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Roddy, Mark
Sent: Wednesday, July 14, 2004 10:54 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Temporary Device Object

See the toaster sample driver. Basically you are describing bus driver
functionality. The bus driver and its device object are permanent, the
devices enumerated by the bus driver are under your software’s control.

=====================
Mark Roddy


From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Wednesday, July 14, 2004 10:49 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Temporary Device Object

What hardware will your driver emulate? Storage? Network? Human input?
or what another kind?

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----

From: Mathieu mailto:xxxxx Routhier

To: Windows System mailto:xxxxx Software Devs Interest List

Sent: Wednesday, July 14, 2004 6:40 PM

Subject: [ntdev] Temporary Device Object

Greetings,

I’m interested in developing a virtual driver, one that does not control
hardware. It would load temporarily, only for the time it is required. Are
there other options for loading that driver than using calls to SetupApi
(using a similar approach to the install command of devcon)?

Using the SetupApi approach, the device object is permanent and is created
again after a crash/reboot. How can I tell the system I want it only
temporarily and that the device object should not be automatically created
again after a reboot?

Thanks In Advance,

Mat


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@stratus.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@encentrus.com
To unsubscribe send a blank email to xxxxx@lists.osr.com</mailto:xxxxx></mailto:xxxxx>

You would probably need something to load your driver, but obviously USB function drivers are temporary and only there when the physical device is attached. Likewise KS drivers that are attached to USB and other removable devices.

I know how to make a root-enumerated KS driver, but it if course tends to stay around. Possibly there is some technique for making a load-on-demand KS driver that isn’t associated with hardware.

Loren
----- Original Message -----
From: Mathieu Routhier
To: Windows System Software Devs Interest List
Sent: Wednesday, July 14, 2004 8:16 AM
Subject: RE: [ntdev] Temporary Device Object

This is interesting. I’m a bit familiar to bus drivers (I developed one myself) and this makes sense.

The problem with this is I don’t want to have a driver loaded permanently, which is what this bus driver would do. Also, I’m interested in creating only one instance of that driver, never more. Choosing a bus architecture seems a bit exaggerated in this case.

Does the system provide a way to create a device object temporarily, just like a bus driver would do? Isn’t the root-enumerator a bus driver?

Mat


From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Roddy, Mark
Sent: Wednesday, July 14, 2004 10:54 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Temporary Device Object

See the toaster sample driver. Basically you are describing bus driver functionality. The bus driver and its device object are permanent, the devices enumerated by the bus driver are under your software’s control.

=====================
Mark Roddy


From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Wednesday, July 14, 2004 10:49 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Temporary Device Object

What hardware will your driver emulate? Storage? Network? Human input? or what another kind?

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----

From: Mathieu Routhier

To: Windows System Software Devs Interest List

Sent: Wednesday, July 14, 2004 6:40 PM

Subject: [ntdev] Temporary Device Object

Greetings,

I’m interested in developing a virtual driver, one that does not control hardware. It would load temporarily, only for the time it is required. Are there other options for loading that driver than using calls to SetupApi (using a similar approach to the install command of devcon)?

Using the SetupApi approach, the device object is permanent and is created again after a crash/reboot. How can I tell the system I want it only temporarily and that the device object should not be automatically created again after a reboot?

Thanks In Advance,

Mat


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@stratus.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@encentrus.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@earthlink.net
To unsubscribe send a blank email to xxxxx@lists.osr.com

Make it manual start. Then start it manually.

Unless there’s some reason that it can’t be an installed (but not
running) driver after reboot. I can’t think of any reasons other than
spyware why you’d need that.

Mathieu Routhier wrote:

Greetings,

I’m interested in developing a virtual driver, one that does not control
hardware. It would load temporarily, only for the time it is required.
Are there other options for loading that driver than using calls to
SetupApi (using a similar approach to the install command of devcon)?

Using the SetupApi approach, the device object is permanent and is
created again after a crash/reboot. How can I tell the system I want it
only temporarily and that the device object should not be automatically
created again after a reboot?

Thanks In Advance,

Mat


…/ray..

Please remove “.spamblock” from my email address if you need to contact
me outside the newsgroup.

Manual start is not supported for PnP devices. Only Boot or System.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Ray Trent”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”
Sent: Wednesday, July 14, 2004 8:10 PM
Subject: Re:[ntdev] Temporary Device Object

> Make it manual start. Then start it manually.
>
> Unless there’s some reason that it can’t be an installed (but not
> running) driver after reboot. I can’t think of any reasons other than
> spyware why you’d need that.
>
> Mathieu Routhier wrote:
>
> > Greetings,
> >
> >
> >
> > I?m interested in developing a virtual driver, one that does not control
> > hardware. It would load temporarily, only for the time it is required.
> > Are there other options for loading that driver than using calls to
> > SetupApi (using a similar approach to the install command of devcon)?
> >
> >
> >
> > Using the SetupApi approach, the device object is permanent and is
> > created again after a crash/reboot. How can I tell the system I want it
> > only temporarily and that the device object should not be automatically
> > created again after a reboot?
> >
> >
> >
> > Thanks In Advance,
> >
> > Mat
> >
>
> –
> …/ray..
>
> Please remove “.spamblock” from my email address if you need to contact
> me outside the newsgroup.
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

But if it doesn’t need to handle hardware, why PnP ?

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Maxim S. Shatskih
Sent: Wednesday, July 14, 2004 12:25 PM
To: Windows System Software Devs Interest List
Subject: Re: Re:[ntdev] Temporary Device Object

Manual start is not supported for PnP devices. Only Boot or System.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Ray Trent”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”
Sent: Wednesday, July 14, 2004 8:10 PM
Subject: Re:[ntdev] Temporary Device Object

> Make it manual start. Then start it manually.
>
> Unless there’s some reason that it can’t be an installed (but not
> running) driver after reboot. I can’t think of any reasons other than
> spyware why you’d need that.
>
> Mathieu Routhier wrote:
>
> > Greetings,
> >
> >
> >
> > I?m interested in developing a virtual driver, one that does not control
> > hardware. It would load temporarily, only for the time it is required.
> > Are there other options for loading that driver than using calls to
> > SetupApi (using a similar approach to the install command of devcon)?
> >
> >
> >
> > Using the SetupApi approach, the device object is permanent and is
> > created again after a crash/reboot. How can I tell the system I want it
> > only temporarily and that the device object should not be automatically
> > created again after a reboot?
> >
> >
> >
> > Thanks In Advance,
> >
> > Mat
> >
>
> –
> …/ray..
>
> Please remove “.spamblock” from my email address if you need to contact
> me outside the newsgroup.
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.

I think because the rest of the device stack is PnP. If that is not the case
then indeed a standard legacy (NT4) style driver loaded/unloaded using the
SC-API is the solution.

=====================
Mark Roddy

-----Original Message-----
From: Moreira, Alberto [mailto:xxxxx@compuware.com]
Sent: Wednesday, July 14, 2004 12:37 PM
To: Windows System Software Devs Interest List
Subject: RE: Re:[ntdev] Temporary Device Object

But if it doesn’t need to handle hardware, why PnP ?

Alberto.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Maxim S. Shatskih
Sent: Wednesday, July 14, 2004 12:25 PM
To: Windows System Software Devs Interest List
Subject: Re: Re:[ntdev] Temporary Device Object

Manual start is not supported for PnP devices. Only Boot or System.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Ray Trent”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”
Sent: Wednesday, July 14, 2004 8:10 PM
Subject: Re:[ntdev] Temporary Device Object

> Make it manual start. Then start it manually.
>
> Unless there’s some reason that it can’t be an installed (but not
> running) driver after reboot. I can’t think of any reasons other than
> spyware why you’d need that.
>
> Mathieu Routhier wrote:
>
> > Greetings,
> >
> >
> >
> > I’m interested in developing a virtual driver, one that does not control
> > hardware. It would load temporarily, only for the time it is required.
> > Are there other options for loading that driver than using calls to
> > SetupApi (using a similar approach to the install command of devcon)?
> >
> >
> >
> > Using the SetupApi approach, the device object is permanent and is
> > created again after a crash/reboot. How can I tell the system I want it
> > only temporarily and that the device object should not be automatically
> > created again after a reboot?
> >
> >
> >
> > Thanks In Advance,
> >
> > Mat
> >
>
> –
> …/ray..
>
> Please remove “.spamblock” from my email address if you need to contact
> me outside the newsgroup.
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@stratus.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

SetupApi was mentioned, so I assumed this is about the PnP driver.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Moreira, Alberto”
To: “Windows System Software Devs Interest List”
Sent: Wednesday, July 14, 2004 8:36 PM
Subject: RE: Re:[ntdev] Temporary Device Object

> But if it doesn’t need to handle hardware, why PnP ?
>
> Alberto.
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Maxim S. Shatskih
> Sent: Wednesday, July 14, 2004 12:25 PM
> To: Windows System Software Devs Interest List
> Subject: Re: Re:[ntdev] Temporary Device Object
>
>
> Manual start is not supported for PnP devices. Only Boot or System.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
> ----- Original Message -----
> From: “Ray Trent”
> Newsgroups: ntdev
> To: “Windows System Software Devs Interest List”
> Sent: Wednesday, July 14, 2004 8:10 PM
> Subject: Re:[ntdev] Temporary Device Object
>
>
> > Make it manual start. Then start it manually.
> >
> > Unless there’s some reason that it can’t be an installed (but not
> > running) driver after reboot. I can’t think of any reasons other than
> > spyware why you’d need that.
> >
> > Mathieu Routhier wrote:
> >
> > > Greetings,
> > >
> > >
> > >
> > > I?m interested in developing a virtual driver, one that does not control
> > > hardware. It would load temporarily, only for the time it is required.
> > > Are there other options for loading that driver than using calls to
> > > SetupApi (using a similar approach to the install command of devcon)?
> > >
> > >
> > >
> > > Using the SetupApi approach, the device object is permanent and is
> > > created again after a crash/reboot. How can I tell the system I want it
> > > only temporarily and that the device object should not be automatically
> > > created again after a reboot?
> > >
> > >
> > >
> > > Thanks In Advance,
> > >
> > > Mat
> > >
> >
> > –
> > …/ray..
> >
> > Please remove “.spamblock” from my email address if you need to contact
> > me outside the newsgroup.
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@compuware.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> The contents of this e-mail are intended for the named addressee only. It
> contains information that may be confidential. Unless you are the named
> addressee or an authorized designee, you may not copy or use it, or disclose
> it to anyone else. If you received it in error please notify us immediately
> and then destroy it.
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

>Unless there’s some reason that it can’t be an installed (but not

running) driver after reboot. I can’t think of any reasons other than
spyware why you’d need that.

How would you have a driver installed (but not running)?

Mat

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ray Trent
Sent: Wednesday, July 14, 2004 12:10 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Temporary Device Object

Make it manual start. Then start it manually.

Unless there’s some reason that it can’t be an installed (but not
running) driver after reboot. I can’t think of any reasons other than
spyware why you’d need that.

Mathieu Routhier wrote:

Greetings,

I’m interested in developing a virtual driver, one that does not control
hardware. It would load temporarily, only for the time it is required.
Are there other options for loading that driver than using calls to
SetupApi (using a similar approach to the install command of devcon)?

Using the SetupApi approach, the device object is permanent and is
created again after a crash/reboot. How can I tell the system I want it
only temporarily and that the device object should not be automatically
created again after a reboot?

Thanks In Advance,

Mat


…/ray..

Please remove “.spamblock” from my email address if you need to contact
me outside the newsgroup.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@encentrus.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Mathieu Routhier wrote:
> How would you have a driver installed (but not running)?

Well, as people have mentioned, if it’s a PnP driver, you can’t. But if
it’s a legacy driver (NT4 style), like most software-only virtual device
drivers, you can specify that the service only starts when you ask it
to. Until you start it (“net start MyDriver” would be one way from the
command prompt, but there are many other ways), it would be “installed
by not running”. This would be the easiest solution if it applies.

If it is a PnP driver, there are a few other tricks you could try.

Caveat: I don’t know much specifically about audio drivers… these are
just some off-the-top-of-my-head ideas…

  1. If it’s part of any device stack, many things you could do would
    prevent that stack from starting up too, so if that’s undesirable you’d
    want to remove it from any filter keys it was added to (this can often
    be most easily done by having a DelReg section that you call using Setup
    calls). This would keep it from loading into the device’s stack.

  2. Another possible solution for a driver that’s part of a device stack
    is that you might (if the planets align correctly) be able to
    effectively do this by calling SetupUninstallOEMInf (passing
    SUOI_FORCEDELETE) after the driver is up and running.

Otherwise if it’s standalone or if you want the device stack to fail…

  1. Install/start the driver, and then change it’s service key’s
    StartType to “Disabled” after it starts. Then it won’t start up after
    the next boot.

  2. Have the driver return STATUS_UNSUCCESSFUL the second time it starts
    (presumably under control of some registry key that it writes the first
    time).

Many other methods might work, depending on your exact situation.

Mathieu Routhier wrote:

>Unless there’s some reason that it can’t be an installed (but not
>running) driver after reboot. I can’t think of any reasons other than
>spyware why you’d need that.

How would you have a driver installed (but not running)?

Mat

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ray Trent
Sent: Wednesday, July 14, 2004 12:10 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Temporary Device Object

Make it manual start. Then start it manually.

Unless there’s some reason that it can’t be an installed (but not
running) driver after reboot. I can’t think of any reasons other than
spyware why you’d need that.

Mathieu Routhier wrote:

>Greetings,
>
>
>
>I’m interested in developing a virtual driver, one that does not control
>hardware. It would load temporarily, only for the time it is required.
>Are there other options for loading that driver than using calls to
>SetupApi (using a similar approach to the install command of devcon)?
>
>
>
>Using the SetupApi approach, the device object is permanent and is
>created again after a crash/reboot. How can I tell the system I want it
>only temporarily and that the device object should not be automatically
>created again after a reboot?
>
>
>
>Thanks In Advance,
>
>Mat
>


…/ray..

Please remove “.spamblock” from my email address if you need to contact
me outside the newsgroup.