Hi All,
I create a kernel mode DLL (EXPORT_DRIVER). It doesn’t explictly export any
functions. It calls to a registration routine provided by another export
driver to register it’s entry points. How can I find a way to load or unload
the dll driver on demand?
Thanks,
JT
If it doesn’t have any exports it probably shouldn’t be an export_driver.
Make it a regular driver and have it call your other driver, then you can
load it in the normal maner. There routines ZwLoadDriver and ZwUnloadDriver
that will allow a driver to be loaded, but even there you better have a
proper driver, and not the kludge you described.
–
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply
“JT Zhou” wrote in message news:xxxxx@ntdev…
> Hi All,
>
> I create a kernel mode DLL (EXPORT_DRIVER). It doesn’t explictly export
any
> functions. It calls to a registration routine provided by another export
> driver to register it’s entry points. How can I find a way to load or
unload
> the dll driver on demand?
>
> Thanks,
> JT
>
>
>
ZwLoadDriver/ZwUnloadDriver will solve my issue. Thank you very much.
“Don Burn” wrote in message news:xxxxx@ntdev…
> If it doesn’t have any exports it probably shouldn’t be an export_driver.
> Make it a regular driver and have it call your other driver, then you can
> load it in the normal maner. There routines ZwLoadDriver and
ZwUnloadDriver
> that will allow a driver to be loaded, but even there you better have a
> proper driver, and not the kludge you described.
>
>
> –
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Remove StopSpam from the email to reply
>
> “JT Zhou” wrote in message news:xxxxx@ntdev…
> > Hi All,
> >
> > I create a kernel mode DLL (EXPORT_DRIVER). It doesn’t explictly export
> any
> > functions. It calls to a registration routine provided by another export
> > driver to register it’s entry points. How can I find a way to load or
> unload
> > the dll driver on demand?
> >
> > Thanks,
> > JT
> >
> >
> >
>
>
>