Thread: including DDK headers

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jan 2012
    Posts
    5

    including DDK headers

    Hi, I'm having a bit of trouble including headers from Windows Driver Kit to Visual Studio 2010. Can anyone help me, what I am doing wrong? I get error message such as C1083: Cannot open include file: 'sal.h': No such file or directory.

    If I include SDK directory, I get error messages such as type redefinitions. If I copy sal.h to DDK directory, I get error message C1083: Cannot open include file: 'codeanalysis\sourceannotations.h': No such file or directory. If I copy sourceannotations.h file to DDK directory I get other error messages (see below)

    VC++ Directoy settings:

    including DDK headers-include-png

    Code:
    #include "stdafx.h"
    Code:
    #include <Winsock2.h>
    #include <windows.h>
    #include <stdio.h>
    #include <conio.h>
    #include <strsafe.h>
    #include <fwpmu.h>
    #include <ndis.h>
    #include <ntddk.h>
    
    
    1    IntelliSense: cannot open source file "codeanalysis\sourceannotations.h"    c:\winddk\7600.16385.1\inc\crt\sal.h    160    1    
        20    IntelliSense: cannot overload functions distinguished by return type alone    c:\winddk\7600.16385.1\inc\ddk\ntddk.h    2895    1    
        21    IntelliSense: cannot overload functions distinguished by return type alone    c:\winddk\7600.16385.1\inc\ddk\ntddk.h    2907    1    
        22    IntelliSense: cannot overload functions distinguished by return type alone    c:\winddk\7600.16385.1\inc\ddk\ntddk.h    2917    1    
        7    IntelliSense: expected a ')'    c:\winddk\7600.16385.1\inc\api\fwptypes.h    345    49    
        5    IntelliSense: expected a ';'    c:\winddk\7600.16385.1\inc\api\fwptypes.h    281    4    
        8    IntelliSense: expected a ';'    c:\winddk\7600.16385.1\inc\api\fwptypes.h    364    1    
        10    IntelliSense: expected a ';'    c:\winddk\7600.16385.1\inc\api\iketypes.h    370    1    
        15    IntelliSense: expected a ';'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    8838    1    
        24    IntelliSense: expected a declaration    c:\winddk\7600.16385.1\inc\ddk\ntddk.h    15056    5    
        3    IntelliSense: expected a type specifier    c:\winddk\7600.16385.1\inc\api\fwptypes.h    275    18    
        2    IntelliSense: expected an identifier    c:\winddk\7600.16385.1\inc\api\fwptypes.h    275    5    
        6    IntelliSense: expected an identifier    c:\winddk\7600.16385.1\inc\api\fwptypes.h    345    5    
        9    IntelliSense: expected an identifier    c:\winddk\7600.16385.1\inc\api\iketypes.h    369    2    
        17    IntelliSense: expected an identifier    c:\winddk\7600.16385.1\inc\ddk\wdm.h    17964    1    
        18    IntelliSense: expected an identifier    c:\winddk\7600.16385.1\inc\ddk\wdm.h    17970    9    
        23    IntelliSense: expected an identifier    c:\winddk\7600.16385.1\inc\ddk\ntddk.h    15037    3    
        13    IntelliSense: identifier "FWP_FILTER_ENUM_TYPE" is undefined    c:\winddk\7600.16385.1\inc\api\fwpmtypes.h    413    5    
        11    IntelliSense: identifier "IKEEXT_IP_VERSION_SPECIFIC_KEYMODULE_STATISTICS0" is undefined    c:\winddk\7600.16385.1\inc\api\iketypes.h    418    5    
        12    IntelliSense: identifier "IKEEXT_IP_VERSION_SPECIFIC_KEYMODULE_STATISTICS0" is undefined    c:\winddk\7600.16385.1\inc\api\iketypes.h    419    5    
        19    IntelliSense: identifier "PCALLBACK_FUNCTION" is undefined    c:\winddk\7600.16385.1\inc\ddk\wdm.h    17994    10    
        16    IntelliSense: identifier "TIME_FIELDS" is undefined    c:\winddk\7600.16385.1\inc\ddk\wdm.h    9012    9    
        14    IntelliSense: this declaration has no storage class or type specifier    c:\winddk\7600.16385.1\inc\ddk\wdm.h    8837    1    
        4    IntelliSense: unexpected parenthesis after declaration of function "<error>" (malformed parameter list or invalid initializer?)    c:\winddk\7600.16385.1\inc\api\fwptypes.h    278    4

    Last edited by Sarge; 01-29-2012 at 01:55 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. including headers mutually?
    By nacho4d in forum C++ Programming
    Replies: 6
    Last Post: 02-21-2010, 06:09 AM
  2. headers and including
    By l2u in forum C++ Programming
    Replies: 2
    Last Post: 11-26-2006, 10:29 AM
  3. problems with including headers
    By l2u in forum C++ Programming
    Replies: 3
    Last Post: 07-23-2006, 08:06 AM
  4. including headers inside headers
    By kromozom in forum C++ Programming
    Replies: 5
    Last Post: 04-18-2005, 10:56 AM
  5. including headers
    By HybridM in forum C++ Programming
    Replies: 2
    Last Post: 05-18-2003, 08:02 AM

Tags for this Thread