is there a way for me to manually loading a driver into the kerenel and get it's DriverEntry function called (without getting it's AddDevice called ofcourse) ?

Re: manually loading a pnp driver by Maxim

Maxim
Tue Jul 20 14:31:18 CDT 2004

Write an NT4-style non-PnP driver and then call StartService API, or
execute the "net start" command.

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


"shahar" <shahar@discussions.microsoft.com> wrote in message
news:0D4B8D5E-DC13-4406-85EB-296D3E634368@microsoft.com...
> is there a way for me to manually loading a driver into the kerenel and get
it's DriverEntry function called (without getting it's AddDevice called
ofcourse) ?
>



Re: manually loading a pnp driver by nospam

nospam
Tue Jul 20 15:20:54 CDT 2004

PnP driver will be loaded by "net start" or StartService(), however, to stay
loaded it should either create a fake device in DriverEntry or increment the
driver object's reference counter (I haven't tried the latter though).

"shahar" <shahar@discussions.microsoft.com> wrote in message
news:0D4B8D5E-DC13-4406-85EB-296D3E634368@microsoft.com...
> is there a way for me to manually loading a driver into the kerenel and
> get it's DriverEntry function called (without getting it's AddDevice
> called ofcourse) ?
>