locked
IPSEC_TRAFFIC1 - Undeclared identifier on Win7 RRS feed

  • Question

  • Hi,

    I am using windows 7...and Using MS visual studio 2005.

    I am trying to use Win 7 data structure IPSEC_TRAFFIC1.

    I tries various cominations:

    Use Windows SDK v6.1 + declare IPSEC_TRAFFIC0 --> Compiles fine !.

    Use Windows SDK v6.1 + declare IPSEC_TRAFFIC1 --> I am getting one compilation error saying "IPSEC_TRAFFIC1 : undeclared identifier" .

    Use Windows SDK v7.1 + decalre either (IPSEC_TRAFFIC0 Or IPSEC_TRAFFIC1) --> I am geting some "syntax error" in fwtypes.h Line 275... Also some in iketypes.h .. as many as 49 errors..

    I also tried setting _WIN32_WINNT = 0x0601 ( which is for win7 )... But no luck ..

    First i need to get rid of these 49 errors and then i should be able to use IPSEC_TRAFFIC1 in my application..

    Please do the needful.

    Regards,

    Kishore


    k.
    Thursday, May 12, 2011 5:50 AM

Answers

  • There is a bug in the header files (extra line spaces). You can modify your copies directly:

    FwpTypes.h @ line 275:

    #define FWP_ACTION_BLOCK \
    (0x00000001 | FWP_ACTION_FLAG_TERMINATING)
    #define FWP_ACTION_PERMIT \
    (0x00000002 | FWP_ACTION_FLAG_TERMINATING)
    #define FWP_ACTION_CALLOUT_TERMINATING \
    (0x00000003 | FWP_ACTION_FLAG_CALLOUT | FWP_ACTION_FLAG_TERMINATING)
    #define FWP_ACTION_CALLOUT_INSPECTION \
    (0x00000004 | FWP_ACTION_FLAG_CALLOUT | FWP_ACTION_FLAG_NON_TERMINATING)
    #define FWP_ACTION_CALLOUT_UNKNOWN \
    (0x00000005 | FWP_ACTION_FLAG_CALLOUT)
    #define FWP_ACTION_CONTINUE \
    (0x00000006 | FWP_ACTION_FLAG_NON_TERMINATING)
    #define FWP_ACTION_NONE \
    (0x00000007)
    #define FWP_ACTION_NONE_NO_MATCH \
    (0x00000008)

    FwpTypes.h @ line 343

    #define FWP_FILTER_ENUM_VALID_FLAGS \
    (FWP_FILTER_ENUM_FLAG_BEST_TERMINATING_MATCH | \
    FWP_FILTER_ENUM_FLAG_SORTED)

    IkeTypes.h @ line 367

    #define IKEEXT_ERROR_CODE_COUNT \
    (ERROR_IPSEC_IKE_NEG_STATUS_END - ERROR_IPSEC_IKE_NEG_STATUS_BEGIN)

    Hope this helps,


    Dusty Harper [MSFT]
    Microsoft Corporation
    ------------------------------------------------------------
    This posting is provided "AS IS", with NO warranties and confers NO rights
    ------------------------------------------------------------
    Thursday, May 12, 2011 3:26 PM
    Moderator