I’m developing a windows service which communicates with a custom
mini-filter driver.
The service calls certain filter function (e.g
FilterConnectCommunicationPort) for which it has to be linked with the
WDK filter library and header files.
For this I’ve added #include to <fltuser.h> and <fltuserstructures.h> to the service project; also linked the project to fltLib.lib (available with WDK v6000).
On building the service I get compile error as follows -
-------------------------------------------------------------------------------------------------- “Amol Mandhare” wrote news:xxxxx@ntdev… Hi,
I’m developing a windows service which communicates with a custom mini-filter driver. The service calls certain filter function (e.g FilterConnectCommunicationPort) for which it has to be linked with the WDK filter library and header files. For this I’ve added #include to <fltuser.h> and <fltuserstructures.h> to the service project; also linked the project to fltLib.lib (available with WDK v6000).
On building the service I get compile error as follows -
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of frank
Sent: Wednesday, February 07, 2007 2:05 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Build problem with WDK - v6000 (WDK)
------------------------------------------------------------------------ -------------------------- “Amol Mandhare” wrote news:xxxxx@ntdev… Hi,
I’m developing a windows service which communicates with a custom mini-filter driver. The service calls certain filter function (e.g FilterConnectCommunicationPort) for which it has to be linked with the WDK filter library and header files. For this I’ve added #include to <fltuser.h> and <fltuserstructures.h> to the service project; also linked the project to fltLib.lib (available with WDK v6000).
On building the service I get compile error as follows -
-----Original Message----- From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of frank Sent: Wednesday, February 07, 2007 2:05 PM To: Windows System Software Devs Interest List Subject: Re:[ntdev] Build problem with WDK - v6000 (WDK)
------------------------------------------------------------------------ -------------------------- “Amol Mandhare” wrote news:xxxxx@ntdev… Hi,
I’m developing a windows service which communicates with a custom mini-filter driver. The service calls certain filter function (e.g FilterConnectCommunicationPort) for which it has to be linked with the WDK filter library and header files. For this I’ve added #include to <fltuser.h> and <fltuserstructures.h> to the service project; also linked the project to fltLib.lib (available with WDK v6000).
On building the service I get compile error as follows -
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of frank
Sent: Wednesday, February 07, 2007 2:49 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Build problem with WDK - v6000 (WDK)
Amol, you are using the compiler that ships with the WDK, don’t you?
“Amol Mandhare” wrote news:xxxxx@ntdev… Hi Frank,
The compile error has changed to following after trying your suggestion -
-----Original Message----- From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of frank Sent: Wednesday, February 07, 2007 2:05 PM To: Windows System Software Devs Interest List Subject: Re:[ntdev] Build problem with WDK - v6000 (WDK)
------------------------------------------------------------------------ -------------------------- “Amol Mandhare” wrote news:xxxxx@ntdev… Hi,
I’m developing a windows service which communicates with a custom mini-filter driver. The service calls certain filter function (e.g FilterConnectCommunicationPort) for which it has to be linked with the WDK filter library and header files. For this I’ve added #include to <fltuser.h> and <fltuserstructures.h> to the service project; also linked the project to fltLib.lib (available with WDK v6000).
On building the service I get compile error as follows -
In my experience this is just asking for build trouble. To combine
components from the VS build environment and the DDK build environment
use a library and header file of your own built with the DDK and used by
VS. The library uses the DDK headers, the VS components use your header
and the library.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Amol Mandhare
Sent: Wednesday, February 07, 2007 5:00 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Build problem with WDK - v6000 (WDK)
Hi,
Nope.
To build the windows service we use Visual Studio .NET 2003.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of frank
Sent: Wednesday, February 07, 2007 2:49 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Build problem with WDK - v6000 (WDK)
Amol, you are using the compiler that ships with the WDK, don’t you?
“Amol Mandhare” wrote news:xxxxx@ntdev… Hi Frank,
The compile error has changed to following after trying your suggestion -
-----Original Message----- From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of frank Sent: Wednesday, February 07, 2007 2:05 PM To: Windows System Software Devs Interest List Subject: Re:[ntdev] Build problem with WDK - v6000 (WDK)
------------------------------------------------------------------------ -------------------------- “Amol Mandhare” wrote news:xxxxx@ntdev… Hi,
I’m developing a windows service which communicates with a custom mini-filter driver. The service calls certain filter function (e.g FilterConnectCommunicationPort) for which it has to be linked with the WDK filter library and header files. For this I’ve added #include to <fltuser.h> and <fltuserstructures.h> to the service project; also linked the project to fltLib.lib (available with WDK v6000).
On building the service I get compile error as follows -
I have had success using VS .NET 2005 (and I think 2003 as well) to build our user-mode service. Also, include only fltuser.h as that also includes fltuserstructures.h.
Here are the macros I define:
// This is a WIN32 program, in case you didn’t know #ifndef _WIN32 #define _WIN32 #endif