From: Aram Hăvărneanu on
Hello,

I know legacy style drivers can be loaded at any time with the Service
Control Manager APIs, but PnP style drivers can't.

My application uses a temporary driver that I want to load only when my
application is running, and unload it when my application finishes it's task.
How can I load a driver at runtime without actually installing it?

Thanks,

--
Aram Hăvărneanu
From: Burkhardt Braun on
On Dec 6, 10:25 am, Aram Hăvărneanu
<AramHvrne...(a)discussions.microsoft.com> wrote:
> Hello,
>
> I know legacy style drivers can be loaded at any time with the Service
> Control Manager APIs, but PnP style drivers can't.
>
> My application uses a temporary driver that I want to load only when my
> application is running, and unload it when my application finishes it's task.
> How can I load a driver at runtime without actually installing it?
>
> Thanks,
>
> --
> Aram Hăvărneanu

Hello.
Take a look a devcon example. It will mostly fit your needs.
Burkhardt Braun

From: Aram Hăvărneanu on
"Burkhardt Braun" wrote:

> Hello.
> Take a look a devcon example. It will mostly fit your needs.
> Burkhardt Braun
>

Thanks!

--
Aram Hăvărneanu

From: Maxim S. Shatskih on
> How can I load a driver at runtime without actually installing it?

PnP driver? impossible.

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com

From: Mike [MSFT] on
The Toaster Bus sample can also show you how to mark the device as
non-present, assuming you own the bus that enumerated the devnode. The real
question is why? Why do you care if the driver is unloaded?

Worst case you can uninstall the devnode when you are done, but that's a
little heavy-handed.

-Mike

"Aram Hăvărneanu" <AramHvrneanu(a)discussions.microsoft.com> wrote in message
news:178A8D6C-9A9D-42F7-B6BA-E700145FE579(a)microsoft.com...
> "Burkhardt Braun" wrote:
>
>> Hello.
>> Take a look a devcon example. It will mostly fit your needs.
>> Burkhardt Braun
>>
>
> Thanks!
>
> --
> Aram Hăvărneanu
>
 |  Next  |  Last
Pages: 1 2
Prev: virtual bus enumeration
Next: Keyboard HID minidriver