Prev: virtual bus enumeration
Next: Keyboard HID minidriver
From: Tim Roberts on 11 Dec 2009 23:49 Aram H?v?rneanu <AramHvrneanu(a)discussions.microsoft.com> wrote: > >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? If you need to load and unload a driver dynamically from an application, then just write a non-PnP ("legacy") driver. They still have their place. Some people have the impression that everything marked "legacy" is automatically bad. It ain't so. -- Tim Roberts, timr(a)probo.com Providenza & Boekelheide, Inc.
From: Aram Hăvărneanu on 12 Dec 2009 15:09
"Tim Roberts" <timr(a)probo.com> wrote in message news:t086i5l4hebegtequtp6rc7tf60rd5gvrs(a)4ax.com... > If you need to load and unload a driver dynamically from an application, > then just write a non-PnP ("legacy") driver. They still have their place. > Unfortunately, keyboards can't be legacy this days... Or if they are, they only initialize at boot. -- Aram Hăvărneanu |