i have built and have successfuly installed and used the sample mini filter
keyboard driver from the WDK samples.
i have modified the DriverEntry function to call FltRegisterFilter....and i
get a linker error....'unresolved external symbol _FltRegisterFilter@12'.
i am sure this function lives in fltMgr.lib, and i have used dumpbin.exe on
this lib file and i have seen FltRegisterFilter in there.
so, i have tried two things, both of which have had no effect:
1) in the SOURCES file (which is called from the MAKEFILE) i have added the
line:
LIBRARIES=C:\WinDDK\6777\lib\wlh\i386\fltMgr.lib
2) added a pragma in the c file:
#pragma comment(lib, "C:\\WinDDK\\6777\\lib\\wlh\\i386\\fltMgr.lib")
as you can see i have put the full path to the lib just to make sure.
i am using the following command line to build the driver:
build -cewgZ
i have tried with the checked and free build environments.
i am on vista home premium 32 bit.
can anyone please explain what i am doing wrong...if i have not given enough
info let me know...
thanks in advance.
-scott
--
Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com
"unclepauly" <uncle...@discussions.microsoft.com> wrote in message
news:22BD9D99-53C0-45EE...@microsoft.com...
if(g_DISABLE)
//drop all the packets
else
//just send the IRP up the stack
so now the question is, how do i set the driver's global flag from a normal
user/gui application ? so this is where i am at now, and the way i am going
about it is by using the Fltxxxxx functions that i found on msdn :
http://msdn.microsoft.com/en-us/library/ff539277(VS.85).aspx
then when i added these functions to the kbfiltr sample, i got the linker
error as i said my orignial post. but i have solved that now though ! in the
makefile i had "LIBRARIES=...." and it should have been "TARGETLIBS=....". so
its built now. so it looks like #pragma comment(lib, "lib.lib") doesn't work
for drivers ? anyway...
but now that ive got your attention :o) if you read the above and think my
approach is wrong please let me know..
thank you.
The kbfiltr sample in the latest WDK shows how to communicate with the
filter driver from a user mode application.
-scott
--
Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com
"unclepauly" <uncle...@discussions.microsoft.com> wrote in message
news:C2C34593-F70D-44CD...@microsoft.com...
Nevertheless, tcpip.sys in Vista+ uses fltmgr!FltGetFileNameInformationUnsafe
--
Maxim S. Shatskih
Windows DDK MVP
ma...@storagecraft.com
http://www.storagecraft.com
d
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"unclepauly" <uncle...@discussions.microsoft.com> wrote in message
news:C2C34593-F70D-44CD...@microsoft.com...