Run time loading a File system filter driver
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.nt.kernelmode only
 
Advanced search
POPULAR GROUPS

more...

comp.os ... nt.kernelmode Profile…
 Up
Run time loading a File system filter driver         


Author: henry
Date: Mar 10, 2008 19:28

Hi all,

I want to load a filter driver during run time ( which is after
installation ) for the convenience not getting restart. I use
LoadLibrary API to load my driver and getting a non NULL handle back.
My question #1 Is it OK to use LoadLibrary() to load a Driver. #2 Is
my DriverEntry() will be called. For some reason my Windbg() can not
catch any event when I intentionally del my sys file in windows
directory for not loading it at boot time. But when I run my test app
to loadLrary() it return a non NULL handle but I can't break code at
my DriverEntry().

Thanks,

-henry
3 Comments
Re: Run time loading a File system filter driver         


Author: Maxim S. Shatskih
Date: Mar 11, 2008 01:13

No, LoadLibrary will not work, use StartService instead.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com
Show full article (0.91Kb)
no comments
Re: Run time loading a File system filter driver         


Author: Don Burn
Date: Mar 11, 2008 05:24

LoadLibrary does not work StartService will, but be aware that runtime
loading (versus boot time loading) of a filter can present problems. You
will find a lot of files open, and operations in progress which depending on
what you filter does can make the design much more complex.

--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply
Show full article (1.21Kb)
no comments
Re: Run time loading a File system filter driver         


Author: kruglinski
Date: Mar 28, 2008 01:16

On 3月11日, 上午10时28分, henry gmail.com> wrote:
> Hi all,
>
> I want to load a filter driver during run time ( which is after
> installation ) for the convenience not getting restart. I use
> LoadLibrary API to load my driver and getting a non NULL handle back.
> My question #1 Is it OK to use LoadLibrary() to load a Driver. #2 Is
> my DriverEntry() will be called. For some reason my Windbg() can not
> catch any event when I intentionally del my sys file in windows
> directory for not loading it at boot time. But when I run my test app
> to loadLrary() it return a non NULL handle but I can't break code at
> my DriverEntry().
>
> Thanks,
>
> -henry

you can use the Native Function ZwLoadDriver instead
no comments