Prev: virtual bus enumeration
Next: Keyboard HID minidriver
From: Aram Hăvărneanu on 6 Dec 2009 05:25 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 6 Dec 2009 05:41 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 6 Dec 2009 06:56 "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 8 Dec 2009 08:27 > 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 10 Dec 2009 14:13
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 > |