including DDK headers

This is a discussion on including DDK headers within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I'm having a bit of trouble including headers from Windows Driver Kit to Visual Studio 2010. Can anyone help ...

  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:

    Name:  include.png
Views: 1485
Size:  63.7 KB

    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 12:55 PM.

  2. #2
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    611
    I'd start with removing the DDK's CRT directory from the additional directories, that usually never ends well since the DDK CRT is usually a couple of versions behind Visual Studio's.

  3. #3
    Registered User
    Join Date
    Jan 2012
    Posts
    5
    Quote Originally Posted by adeyblue View Post
    I'd start with removing the DDK's CRT directory from the additional directories, that usually never ends well since the DDK CRT is usually a couple of versions behind Visual Studio's.
    When I replaced DDK's CRT directory with C:\Program Files\Microsoft Visual Studio 10.0\VC\include I got these error messages. What do you think I should do ?


    Code:
    Error    176    error C1003: error count exceeds 100; stopping compilation    c:\winddk\7600.16385.1\inc\ddk\wdm.h    6081    1    wfp
    Error    111    error C2011: '_ACL' : 'struct' type redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    3173    1    wfp
    Error    103    error C2011: '_CONTEXT_EX' : 'struct' type redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    526    1    wfp
    Error    102    error C2011: '_CONTEXT_CHUNK' : 'struct' type redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    496    1    wfp
    Error    149    error C2011: '_DEVICE_POWER_STATE' : 'enum' type redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    5901    1    wfp
    Error    5    error C2011: '_FLOAT128' : 'struct' type redefinition    c:\winddk\7600.16385.1\inc\api\ntdef.h    882    1    wfp
    Error    109    error C2011: '_GENERIC_MAPPING' : 'struct' type redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    3128    1    wfp
    Error    4    error C2011: '_GROUP_AFFINITY' : 'struct' type redefinition    c:\winddk\7600.16385.1\inc\api\ntdef.h    625    1    wfp
    Error    6    error C2011: '_LARGE_INTEGER' : 'union' type redefinition    c:\winddk\7600.16385.1\inc\api\ntdef.h    933    1    wfp
    Error    13    error C2011: '_LIST_ENTRY' : 'struct' type redefinition    c:\winddk\7600.16385.1\inc\api\ntdef.h    1358    1    wfp
    Error    8    error C2011: '_LUID' : 'struct' type redefinition    c:\winddk\7600.16385.1\inc\api\ntdef.h    973    1    wfp
    Error    110    error C2011: '_LUID_AND_ATTRIBUTES' : 'struct' type redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    3149    1    wfp
    Error    97    error C2011: '_M128A' : 'struct' type redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    408    1    wfp
    Error    150    error C2011: '_MONITOR_DISPLAY_STATE' : 'enum' type redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    5910    1    wfp
    Error    159    error C2011: '_POWER_REQUEST_TYPE' : 'enum' type redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    6024    1    wfp
    Error    112    error C2011: '_PRIVILEGE_SET' : 'struct' type redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    3219    1    wfp
    Error    3    error C2011: '_PROCESSOR_NUMBER' : 'struct' type redefinition    c:\winddk\7600.16385.1\inc\api\ntdef.h    614    1    wfp
    Error    115    error C2011: '_SE_IMPERSONATION_STATE' : 'struct' type redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    3315    1    wfp
    Error    113    error C2011: '_SECURITY_IMPERSONATION_LEVEL' : 'enum' type redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    3276    1    wfp
    Error    114    error C2011: '_SECURITY_QUALITY_OF_SERVICE' : 'struct' type redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    3303    1    wfp
    Error    14    error C2011: '_SINGLE_LIST_ENTRY' : 'struct' type redefinition    c:\winddk\7600.16385.1\inc\api\ntdef.h    1368    1    wfp
    Error    138    error C2011: '_SYSTEM_POWER_STATE' : 'enum' type redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    5877    1    wfp
    Error    7    error C2011: '_ULARGE_INTEGER' : 'union' type redefinition    c:\winddk\7600.16385.1\inc\api\ntdef.h    951    1    wfp
    Error    100    error C2011: '_XSAVE_AREA' : 'struct' type redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    461    1    wfp
    Error    99    error C2011: '_XSAVE_AREA_HEADER' : 'struct' type redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    456    1    wfp
    Error    98    error C2011: '_XSAVE_FORMAT' : 'struct' type redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    417    1    wfp
    Error    101    error C2011: '_XSTATE_CONTEXT' : 'struct' type redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    466    1    wfp
    Error    160    error C2011: 'CM_Power_Data_s' : 'struct' type redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    6051    1    wfp
    Error    15    error C2011: 'LIST_ENTRY32' : 'struct' type redefinition    c:\winddk\7600.16385.1\inc\api\ntdef.h    1380    1    wfp
    Error    16    error C2011: 'LIST_ENTRY64' : 'struct' type redefinition    c:\winddk\7600.16385.1\inc\api\ntdef.h    1386    1    wfp
    Error    104    error C2027: use of undefined type '_XSAVE_AREA'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    589    1    wfp
    Error    19    error C2027: use of undefined type 'LIST_ENTRY32'    c:\winddk\7600.16385.1\inc\api\ntdef.h    1406    1    wfp
    Error    23    error C2027: use of undefined type 'LIST_ENTRY32'    c:\winddk\7600.16385.1\inc\api\ntdef.h    1407    1    wfp
    Error    25    error C2027: use of undefined type 'LIST_ENTRY32'    c:\winddk\7600.16385.1\inc\api\ntdef.h    1417    1    wfp
    Error    29    error C2027: use of undefined type 'LIST_ENTRY32'    c:\winddk\7600.16385.1\inc\api\ntdef.h    1418    1    wfp
    Error    17    error C2027: use of undefined type 'LIST_ENTRY64'    c:\winddk\7600.16385.1\inc\api\ntdef.h    1406    1    wfp
    Error    21    error C2027: use of undefined type 'LIST_ENTRY64'    c:\winddk\7600.16385.1\inc\api\ntdef.h    1407    1    wfp
    Error    27    error C2027: use of undefined type 'LIST_ENTRY64'    c:\winddk\7600.16385.1\inc\api\ntdef.h    1417    1    wfp
    Error    31    error C2027: use of undefined type 'LIST_ENTRY64'    c:\winddk\7600.16385.1\inc\api\ntdef.h    1418    1    wfp
    Error    119    error C2079: '_FILE_BASIC_INFORMATION::CreationTime' uses undefined union '_LARGE_INTEGER'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    4350    1    wfp
    Error    122    error C2079: '_FILE_BASIC_INFORMATION::ChangeTime' uses undefined union '_LARGE_INTEGER'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    4353    1    wfp
    Error    120    error C2079: '_FILE_BASIC_INFORMATION::LastAccessTime' uses undefined union '_LARGE_INTEGER'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    4351    1    wfp
    Error    121    error C2079: '_FILE_BASIC_INFORMATION::LastWriteTime' uses undefined union '_LARGE_INTEGER'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    4352    1    wfp
    Error    130    error C2079: '_FILE_NETWORK_OPEN_INFORMATION::AllocationSize' uses undefined union '_LARGE_INTEGER'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    4376    1    wfp
    Error    126    error C2079: '_FILE_NETWORK_OPEN_INFORMATION::CreationTime' uses undefined union '_LARGE_INTEGER'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    4372    1    wfp
    Error    131    error C2079: '_FILE_NETWORK_OPEN_INFORMATION::EndOfFile' uses undefined union '_LARGE_INTEGER'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    4377    1    wfp
    Error    129    error C2079: '_FILE_NETWORK_OPEN_INFORMATION::ChangeTime' uses undefined union '_LARGE_INTEGER'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    4375    1    wfp
    Error    127    error C2079: '_FILE_NETWORK_OPEN_INFORMATION::LastAccessTime' uses undefined union '_LARGE_INTEGER'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    4373    1    wfp
    Error    128    error C2079: '_FILE_NETWORK_OPEN_INFORMATION::LastWriteTime' uses undefined union '_LARGE_INTEGER'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    4374    1    wfp
    Error    125    error C2079: '_FILE_POSITION_INFORMATION::CurrentByteOffset' uses undefined union '_LARGE_INTEGER'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    4367    1    wfp
    Error    123    error C2079: '_FILE_STANDARD_INFORMATION::AllocationSize' uses undefined union '_LARGE_INTEGER'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    4358    1    wfp
    Error    124    error C2079: '_FILE_STANDARD_INFORMATION::EndOfFile' uses undefined union '_LARGE_INTEGER'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    4359    1    wfp
    Error    133    error C2079: '_IO_ERROR_LOG_MESSAGE::TimeStamp' uses undefined union '_LARGE_INTEGER'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    4590    1    wfp
    Error    132    error C2079: '_IO_ERROR_LOG_PACKET::DeviceOffset' uses undefined union '_LARGE_INTEGER'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    4577    1    wfp
    Error    134    error C2079: '_KEY_BASIC_INFORMATION::LastWriteTime' uses undefined union '_LARGE_INTEGER'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    4774    1    wfp
    Error    136    error C2079: '_KEY_FULL_INFORMATION::LastWriteTime' uses undefined union '_LARGE_INTEGER'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    4791    1    wfp
    Error    135    error C2079: '_KEY_NODE_INFORMATION::LastWriteTime' uses undefined union '_LARGE_INTEGER'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    4781    1    wfp
    Error    137    error C2079: '_KEY_WRITE_TIME_INFORMATION::LastWriteTime' uses undefined union '_LARGE_INTEGER'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    4817    1    wfp
    Error    96    error C2079: '_MCA_EXCEPTION::TimeStamp' uses undefined union '_LARGE_INTEGER'    c:\winddk\7600.16385.1\inc\ddk\mce.h    137    1    wfp
    Error    107    error C2084: function 'BOOLEAN InterlockedBitTestAndComplement(volatile LONG *,LONG)' already has a body    c:\winddk\7600.16385.1\inc\ddk\wdm.h    799    1    wfp
    Error    10    error C2084: function 'LONGLONG Int64ShraMod32(LONGLONG,DWORD)' already has a body    c:\winddk\7600.16385.1\inc\api\ntdef.h    1086    1    wfp
    Error    9    error C2084: function 'ULONGLONG Int64ShllMod32(ULONGLONG,DWORD)' already has a body    c:\winddk\7600.16385.1\inc\api\ntdef.h    1070    1    wfp
    Error    11    error C2084: function 'ULONGLONG Int64ShrlMod32(ULONGLONG,DWORD)' already has a body    c:\winddk\7600.16385.1\inc\api\ntdef.h    1102    1    wfp
    Error    108    error C2084: function 'void DbgRaiseAssertionFailure(void)' already has a body    c:\winddk\7600.16385.1\inc\ddk\wdm.h    954    1    wfp
    Error    106    error C2086: 'char __C_ASSERT__[1]' : redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    589    1    wfp
    Error    22    error C2227: left of '->Blink' must point to class/struct/union/generic type    c:\winddk\7600.16385.1\inc\api\ntdef.h    1407    1    wfp
    Error    24    error C2227: left of '->Blink' must point to class/struct/union/generic type    c:\winddk\7600.16385.1\inc\api\ntdef.h    1407    1    wfp
    Error    30    error C2227: left of '->Blink' must point to class/struct/union/generic type    c:\winddk\7600.16385.1\inc\api\ntdef.h    1418    1    wfp
    Error    32    error C2227: left of '->Blink' must point to class/struct/union/generic type    c:\winddk\7600.16385.1\inc\api\ntdef.h    1418    1    wfp
    Error    18    error C2227: left of '->Flink' must point to class/struct/union/generic type    c:\winddk\7600.16385.1\inc\api\ntdef.h    1406    1    wfp
    Error    20    error C2227: left of '->Flink' must point to class/struct/union/generic type    c:\winddk\7600.16385.1\inc\api\ntdef.h    1406    1    wfp
    Error    26    error C2227: left of '->Flink' must point to class/struct/union/generic type    c:\winddk\7600.16385.1\inc\api\ntdef.h    1417    1    wfp
    Error    28    error C2227: left of '->Flink' must point to class/struct/union/generic type    c:\winddk\7600.16385.1\inc\api\ntdef.h    1417    1    wfp
    Error    105    error C2227: left of '->Header' must point to class/struct/union/generic type    c:\winddk\7600.16385.1\inc\ddk\wdm.h    589    1    wfp
    Error    170    error C2365: 'AdministratorPowerPolicy' : redefinition; previous definition was 'enumerator'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    6076    1    wfp
    Error    175    error C2365: 'LastWakeTime' : redefinition; previous definition was 'enumerator'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    6081    1    wfp
    Error    156    error C2365: 'LT_DONT_CARE' : redefinition; previous definition was 'enumerator'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    5994    1    wfp
    Error    157    error C2365: 'LT_LOWEST_LATENCY' : redefinition; previous definition was 'enumerator'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    5996    1    wfp
    Error    142    error C2365: 'PowerActionHibernate' : redefinition; previous definition was 'enumerator'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    5894    1    wfp
    Error    139    error C2365: 'PowerActionNone' : redefinition; previous definition was 'enumerator'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    5891    1    wfp
    Error    140    error C2365: 'PowerActionReserved' : redefinition; previous definition was 'enumerator'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    5892    1    wfp
    Error    143    error C2365: 'PowerActionShutdown' : redefinition; previous definition was 'enumerator'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    5895    1    wfp
    Error    145    error C2365: 'PowerActionShutdownOff' : redefinition; previous definition was 'enumerator'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    5897    1    wfp
    Error    144    error C2365: 'PowerActionShutdownReset' : redefinition; previous definition was 'enumerator'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    5896    1    wfp
    Error    141    error C2365: 'PowerActionSleep' : redefinition; previous definition was 'enumerator'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    5893    1    wfp
    Error    146    error C2365: 'PowerActionWarmEject' : redefinition; previous definition was 'enumerator'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    5899    1    wfp
    Error    172    error C2365: 'ProcessorInformation' : redefinition; previous definition was 'enumerator'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    6078    1    wfp
    Error    168    error C2365: 'ProcessorStateHandler' : redefinition; previous definition was 'enumerator'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    6074    1    wfp
    Error    174    error C2365: 'ProcessorStateHandler2' : redefinition; previous definition was 'enumerator'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    6080    1    wfp
    Error    166    error C2365: 'SystemBatteryState' : redefinition; previous definition was 'enumerator'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    6072    1    wfp
    Error    165    error C2365: 'SystemPowerCapabilities' : redefinition; previous definition was 'enumerator'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    6071    1    wfp
    Error    173    error C2365: 'SystemPowerInformation' : redefinition; previous definition was 'enumerator'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    6079    1    wfp
    Error    161    error C2365: 'SystemPowerPolicyAc' : redefinition; previous definition was 'enumerator'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    6067    1    wfp
    Error    169    error C2365: 'SystemPowerPolicyCurrent' : redefinition; previous definition was 'enumerator'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    6075    1    wfp
    Error    162    error C2365: 'SystemPowerPolicyDc' : redefinition; previous definition was 'enumerator'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    6068    1    wfp
    Error    167    error C2365: 'SystemPowerStateHandler' : redefinition; previous definition was 'enumerator'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    6073    1    wfp
    Error    171    error C2365: 'SystemReserveHiberFile' : redefinition; previous definition was 'enumerator'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    6077    1    wfp
    Error    163    error C2365: 'VerifySystemPolicyAc' : redefinition; previous definition was 'enumerator'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    6069    1    wfp
    Error    164    error C2365: 'VerifySystemPolicyDc' : redefinition; previous definition was 'enumerator'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    6070    1    wfp
    Error    158    error C2371: 'LATENCY_TIME' : redefinition; different basic types    c:\winddk\7600.16385.1\inc\ddk\wdm.h    5996    1    wfp
    Error    147    error C2371: 'POWER_ACTION' : redefinition; different basic types    c:\winddk\7600.16385.1\inc\ddk\wdm.h    5899    1    wfp
    Error    148    error C2371: 'PPOWER_ACTION' : redefinition; different basic types    c:\winddk\7600.16385.1\inc\ddk\wdm.h    5899    1    wfp
        195    IntelliSense: cannot overload functions distinguished by return type alone    c:\winddk\7600.16385.1\inc\ddk\ntddk.h    2895    1    
        196    IntelliSense: cannot overload functions distinguished by return type alone    c:\winddk\7600.16385.1\inc\ddk\ntddk.h    2907    1    
        197    IntelliSense: cannot overload functions distinguished by return type alone    c:\winddk\7600.16385.1\inc\ddk\ntddk.h    2917    1    
        182    IntelliSense: expected a ')'    c:\winddk\7600.16385.1\inc\api\fwptypes.h    345    49    
        180    IntelliSense: expected a ';'    c:\winddk\7600.16385.1\inc\api\fwptypes.h    281    4    
        183    IntelliSense: expected a ';'    c:\winddk\7600.16385.1\inc\api\fwptypes.h    364    1    
        185    IntelliSense: expected a ';'    c:\winddk\7600.16385.1\inc\api\iketypes.h    370    1    
        190    IntelliSense: expected a ';'    c:\winddk\7600.16385.1\inc\ddk\wdm.h    8838    1    
        199    IntelliSense: expected a declaration    c:\winddk\7600.16385.1\inc\ddk\ntddk.h    15056    5    
        178    IntelliSense: expected a type specifier    c:\winddk\7600.16385.1\inc\api\fwptypes.h    275    18    
        177    IntelliSense: expected an identifier    c:\winddk\7600.16385.1\inc\api\fwptypes.h    275    5    
        181    IntelliSense: expected an identifier    c:\winddk\7600.16385.1\inc\api\fwptypes.h    345    5    
        184    IntelliSense: expected an identifier    c:\winddk\7600.16385.1\inc\api\iketypes.h    369    2    
        192    IntelliSense: expected an identifier    c:\winddk\7600.16385.1\inc\ddk\wdm.h    17964    1    
        193    IntelliSense: expected an identifier    c:\winddk\7600.16385.1\inc\ddk\wdm.h    17970    9    
        198    IntelliSense: expected an identifier    c:\winddk\7600.16385.1\inc\ddk\ntddk.h    15037    3    
        188    IntelliSense: identifier "FWP_FILTER_ENUM_TYPE" is undefined    c:\winddk\7600.16385.1\inc\api\fwpmtypes.h    413    5    
        186    IntelliSense: identifier "IKEEXT_IP_VERSION_SPECIFIC_KEYMODULE_STATISTICS0" is undefined    c:\winddk\7600.16385.1\inc\api\iketypes.h    418    5    
        187    IntelliSense: identifier "IKEEXT_IP_VERSION_SPECIFIC_KEYMODULE_STATISTICS0" is undefined    c:\winddk\7600.16385.1\inc\api\iketypes.h    419    5    
        194    IntelliSense: identifier "PCALLBACK_FUNCTION" is undefined    c:\winddk\7600.16385.1\inc\ddk\wdm.h    17994    10    
        191    IntelliSense: identifier "TIME_FIELDS" is undefined    c:\winddk\7600.16385.1\inc\ddk\wdm.h    9012    9    
        189    IntelliSense: this declaration has no storage class or type specifier    c:\winddk\7600.16385.1\inc\ddk\wdm.h    8837    1    
        179    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    
    Warning    55    warning C4005: 'DBG_COMMAND_EXCEPTION' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    1273    1    wfp
    Warning    47    warning C4005: 'DBG_CONTINUE' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    660    1    wfp
    Warning    54    warning C4005: 'DBG_CONTROL_BREAK' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    1264    1    wfp
    Warning    51    warning C4005: 'DBG_CONTROL_C' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    1237    1    wfp
    Warning    46    warning C4005: 'DBG_EXCEPTION_HANDLED' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    651    1    wfp
    Warning    62    warning C4005: 'DBG_EXCEPTION_NOT_HANDLED' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    1735    1    wfp
    Warning    52    warning C4005: 'DBG_PRINTEXCEPTION_C' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    1246    1    wfp
    Warning    53    warning C4005: 'DBG_RIPEXCEPTION' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    1255    1    wfp
    Warning    50    warning C4005: 'DBG_TERMINATE_PROCESS' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    1228    1    wfp
    Warning    49    warning C4005: 'DBG_TERMINATE_THREAD' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    1219    1    wfp
    Warning    116    warning C4005: 'DEVICE_TYPE' : macro redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    3845    1    wfp
    Warning    117    warning C4005: 'DEVICE_TYPE_FROM_CTL_CODE' : macro redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    3928    1    wfp
    Warning    154    warning C4005: 'ES_AWAYMODE_REQUIRED' : macro redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    5988    1    wfp
    Warning    155    warning C4005: 'ES_CONTINUOUS' : macro redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    5989    1    wfp
    Warning    152    warning C4005: 'ES_DISPLAY_REQUIRED' : macro redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    5986    1    wfp
    Warning    151    warning C4005: 'ES_SYSTEM_REQUIRED' : macro redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    5985    1    wfp
    Warning    153    warning C4005: 'ES_USER_PRESENT' : macro redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    5987    1    wfp
    Warning    38    warning C4005: 'LANGIDFROMLCID' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntdef.h    2507    1    wfp
    Warning    33    warning C4005: 'MAKELANGID' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntdef.h    2468    1    wfp
    Warning    36    warning C4005: 'MAKELCID' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntdef.h    2503    1    wfp
    Warning    37    warning C4005: 'MAKESORTLCID' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntdef.h    2506    1    wfp
    Warning    1    warning C4005: 'MAX_NATURAL_ALIGNMENT' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntdef.h    128    1    wfp
    Warning    118    warning C4005: 'METHOD_FROM_CTL_CODE' : macro redefinition    c:\winddk\7600.16385.1\inc\ddk\wdm.h    3933    1    wfp
    Warning    34    warning C4005: 'PRIMARYLANGID' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntdef.h    2469    1    wfp
    Warning    2    warning C4005: 'PROBE_ALIGNMENT' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntdef.h    161    1    wfp
    Warning    39    warning C4005: 'SORTIDFROMLCID' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntdef.h    2508    1    wfp
    Warning    40    warning C4005: 'SORTVERSIONFROMLCID' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntdef.h    2509    1    wfp
    Warning    42    warning C4005: 'STATUS_ABANDONED_WAIT_0' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    199    1    wfp
    Warning    63    warning C4005: 'STATUS_ACCESS_VIOLATION' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    1864    1    wfp
    Warning    71    warning C4005: 'STATUS_ARRAY_BOUNDS_EXCEEDED' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    3105    1    wfp
    Warning    93    warning C4005: 'STATUS_ASSERTION_FAILURE' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    8713    1    wfp
    Warning    58    warning C4005: 'STATUS_BREAKPOINT' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    1327    1    wfp
    Warning    86    warning C4005: 'STATUS_CONTROL_C_EXIT' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    4717    1    wfp
    Warning    57    warning C4005: 'STATUS_DATATYPE_MISALIGNMENT' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    1316    1    wfp
    Warning    87    warning C4005: 'STATUS_DLL_INIT_FAILED' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    4795    1    wfp
    Warning    83    warning C4005: 'STATUS_DLL_NOT_FOUND' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    4668    1    wfp
    Warning    85    warning C4005: 'STATUS_ENTRYPOINT_NOT_FOUND' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    4707    1    wfp
    Warning    72    warning C4005: 'STATUS_FLOAT_DENORMAL_OPERAND' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    3115    1    wfp
    Warning    73    warning C4005: 'STATUS_FLOAT_DIVIDE_BY_ZERO' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    3125    1    wfp
    Warning    74    warning C4005: 'STATUS_FLOAT_INEXACT_RESULT' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    3135    1    wfp
    Warning    75    warning C4005: 'STATUS_FLOAT_INVALID_OPERATION' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    3145    1    wfp
    Warning    88    warning C4005: 'STATUS_FLOAT_MULTIPLE_FAULTS' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    7197    1    wfp
    Warning    89    warning C4005: 'STATUS_FLOAT_MULTIPLE_TRAPS' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    7207    1    wfp
    Warning    76    warning C4005: 'STATUS_FLOAT_OVERFLOW' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    3155    1    wfp
    Warning    77    warning C4005: 'STATUS_FLOAT_STACK_CHECK' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    3165    1    wfp
    Warning    78    warning C4005: 'STATUS_FLOAT_UNDERFLOW' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    3175    1    wfp
    Warning    56    warning C4005: 'STATUS_GUARD_PAGE_VIOLATION' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    1305    1    wfp
    Warning    68    warning C4005: 'STATUS_ILLEGAL_INSTRUCTION' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    2093    1    wfp
    Warning    64    warning C4005: 'STATUS_IN_PAGE_ERROR' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    1873    1    wfp
    Warning    79    warning C4005: 'STATUS_INTEGER_DIVIDE_BY_ZERO' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    3185    1    wfp
    Warning    80    warning C4005: 'STATUS_INTEGER_OVERFLOW' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    3195    1    wfp
    Warning    92    warning C4005: 'STATUS_INVALID_CRUNTIME_PARAMETER' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    8650    1    wfp
    Warning    70    warning C4005: 'STATUS_INVALID_DISPOSITION' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    2183    1    wfp
    Warning    65    warning C4005: 'STATUS_INVALID_HANDLE' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    1891    1    wfp
    Warning    66    warning C4005: 'STATUS_INVALID_PARAMETER' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    1936    1    wfp
    Warning    60    warning C4005: 'STATUS_LONGJUMP' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    1641    1    wfp
    Warning    67    warning C4005: 'STATUS_NO_MEMORY' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    2036    1    wfp
    Warning    69    warning C4005: 'STATUS_NONCONTINUABLE_EXCEPTION' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    2174    1    wfp
    Warning    84    warning C4005: 'STATUS_ORDINAL_NOT_FOUND' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    4697    1    wfp
    Warning    45    warning C4005: 'STATUS_PENDING' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    258    1    wfp
    Warning    81    warning C4005: 'STATUS_PRIVILEGED_INSTRUCTION' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    3205    1    wfp
    Warning    90    warning C4005: 'STATUS_REG_NAT_CONSUMPTION' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    7330    1    wfp
    Warning    48    warning C4005: 'STATUS_SEGMENT_NOTIFICATION' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    746    1    wfp
    Warning    59    warning C4005: 'STATUS_SINGLE_STEP' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    1338    1    wfp
    Warning    91    warning C4005: 'STATUS_STACK_BUFFER_OVERRUN' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    8523    1    wfp
    Warning    82    warning C4005: 'STATUS_STACK_OVERFLOW' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    4151    1    wfp
    Warning    94    warning C4005: 'STATUS_SXS_EARLY_DEACTIVATION' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    11904    1    wfp
    Warning    95    warning C4005: 'STATUS_SXS_INVALID_DEACTIVATION' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    11913    1    wfp
    Warning    44    warning C4005: 'STATUS_TIMEOUT' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    249    1    wfp
    Warning    61    warning C4005: 'STATUS_UNWIND_CONSOLIDATE' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    1668    1    wfp
    Warning    43    warning C4005: 'STATUS_USER_APC' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    222    1    wfp
    Warning    41    warning C4005: 'STATUS_WAIT_0' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntstatus.h    147    1    wfp
    Warning    35    warning C4005: 'SUBLANGID' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntdef.h    2470    1    wfp
    Warning    12    warning C4005: 'UNICODE_STRING_MAX_BYTES' : macro redefinition    c:\winddk\7600.16385.1\inc\api\ntdef.h    1318    1    wfp
    [COLOR=#121212 !important]

    [/COLOR]
    http://www.google.com/uds/css/small-logo.png
    [COLOR=#121212 !important]

    [/COLOR]
    http://www.google.com/uds/css/small-logo.png

  4. #4
    Registered User
    Join Date
    Jan 2012
    Posts
    5
    My fault was that I wanted to write the driver and I included other headers as the DDK.

  5. #5
    Registered User
    Join Date
    Jan 2012
    Posts
    4
    I got such errors before when I've tried to include ntddk.h and other DDK header files in VC++ file. and because I couldn't find a solution, I wrote a driver to reach the functions belong to ntdd.h and other files. so I solved my problem with a driver.

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, 05:09 AM
  2. headers and including
    By l2u in forum C++ Programming
    Replies: 2
    Last Post: 11-26-2006, 09: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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21