Hi,
I got the minispy filter driver running on my system with lots of help from this forum
I have another problem now:
I want to export the InterpretCommand function of the mspyUser.c file to a dll called mspyUser.dll, so I can call it from a GUI that I am making in C#.
I tried using __declspec(dllexport), but got an error saying:
NMAKE : fatal error U1073: donât know how to make âminispy.defâ
So I made a minispy.def file containing this:
NAME MINISPY.DLL
EXPORTS
InterpretCommand
Now the files compile but donât get linked. I get this error:
Building Library - user\user\objfre_win7_amd64\amd64\minispy.lib
1>errors in directory c:\winddk\7600.16385.0\src\filesys\minifilter\minispy\user
1>link : error LNK1218: warning treated as error; no output file generated
BUILD: Compiling and Linking c:\winddk\7600.16385.0\src\filesys\minifilter\minis
py\filter directory
BUILD: Compile errors: not linking c:\winddk\7600.16385.0\src\filesys\minifilter
\minispy\user directory
BUILD: Finish time: Sat Jan 09 23:52:57 2010
BUILD: Done
1 library built - 1 Warning - 1 Error
One more thing I noticed was that it is building a .lib, not a .dll .
Hereâs my sources file:
TARGETNAME=minispy
TARGETTYPE=DYNLINK
UMTYPE=console
USE_MSVCRT=1
DLLDEF=minispy.def
C_DEFINES=$(C_DEFINES) -DUNICODE -D_UNICODE
LINKLIBS=$(SDK_LIB_PATH)\shell32.lib
INCLUDES=$(INCLUDES); \
$(IFSKIT_INC_PATH); \
$(DDK_INC_PATH); \
âŚ\inc
TARGETLIBS=$(TARGETLIBS) \
$(IFSKIT_LIB_PATH)\fltLib.lib
SOURCES=mspyLog.c \
mspyUser.c \
mspyUser.rc
!if â$(DDK_TARGET_OS)â==âWinLHâ
_NT_TARGET_VERSION=$(_NT_TARGET_VERSION_WINXP)
!endif
Can someone help me out with this?
Thank you all so much!
saurako