I have an user mode application for a minifilter that I am able to compile without problem under the DDK build environment (WDK-6000-Longhorn-checked).
However, when I try to compile it under Visual Studio I get the following error:
'Error1 fatal error C1012: unmatched parenthesis : missing ')‘d:\ddk\inc\ddk\fltuserstructures.h 22’
I have had the same error using Visual Studio 2003 and 2005.
I have found on the internet that the solution is to define the value NTDDI_VERSION.
I have included an NTDDI_LONGHORN definition but the error persists. I think this occurs because there are other defines missing.
I have found also other wayt to fix the problem on the internet but none clean enough.
Which is the right way to compile the user mode part for a minifilter under Visual Studio?
wrote in message news:xxxxx@ntfsd…
>
> Which is the right way to compile the user mode part for a minifilter
> under Visual Studio?
>
With the stock WDK build environment, and using DDKBUILD if you want the
GUI!
–
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
Please note that I talking here about an ordinary service Win32 application! not a driver!
That is to say, I am trying to compile the Win32 user mode application that communicates with a minifilter driver. I am not rying to compile the driver itself with the GUI.
No it is NOT AN ORDINARY APPLICATION, you are using components from the
WDK. So either build the whole thing under the WDK environment, or split
out the communication portion into a DLL built with the WDK and then build
your application in VS.
–
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
wrote in message news:xxxxx@ntfsd…
> Please note that I talking here about an ordinary service Win32
> application! not a driver!
> That is to say, I am trying to compile the Win32 user mode application
> that communicates with a minifilter driver. I am not rying to compile the
> driver itself with the GUI.
>
>
Why not use WDK for all these components and get rid of such attempts?
–
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
wrote in message news:xxxxx@ntfsd…
> I have an user mode application for a minifilter that I am able to compile
without problem under the DDK build environment (WDK-6000-Longhorn-checked).
>
> However, when I try to compile it under Visual Studio I get the following
error:
>
> ‘Error1 fatal error C1012: unmatched parenthesis : missing
’)‘d:\ddk\inc\ddk\fltuserstructures.h 22’
>
> I have had the same error using Visual Studio 2003 and 2005.
>
> I have found on the internet that the solution is to define the value
NTDDI_VERSION.
> I have included an NTDDI_LONGHORN definition but the error persists. I think
this occurs because there are other defines missing.
>
> I have found also other wayt to fix the problem on the internet but none
clean enough.
>
> Which is the right way to compile the user mode part for a minifilter under
Visual Studio?
>
>
>
I am using VS2003 to compie service application that has user mode code for mini filter.
I don’t know right way, but I can compile my service program.
I deifned like this.
stdafx.h :
#define NTDDI_VERSION NTDDI_WIN2KSP4
#include <fltuser.h>
Additional library directories :
C:\WinDDK\6000\lib\wxp\i386;
and libraries :
Fltlib.lib</fltuser.h>