Share via


IkeextSaEnum0 (Compact 2013)

3/26/2014

This function returns the next page of results from the Internet Key Exchange (IKE) IP security association enumerator.

Syntax

DWORD IkeextSaEnum0(
  __in   HANDLE engineHandle,
  __in   HANDLE enumHandle,
  __in   UINT32 numEntriesRequested,
  __out  IKEEXT_SA_DETAILS0*** entries,
  __out  UINT32* numEntriesReturned
);

Parameters

  • engineHandle
    Handle for an open session to the Windows Filtering Platform (WFP) filter engine. Call FwpmEngineOpen0 to open a session to the filter engine.
  • numEntriesRequested
    Number of enumeration entries requested.
  • entries
    Pointer to the array of addresses of enumeration entries. See topic IKEEXT_SA_DETAILS0 for more information.
  • numEntriesReturned
    Pointer to an UINT32 variable that will contain the number of enumeration entries returned.

Return Value

Return code / value

Description

ERROR_SUCCESS

0

The security associations were enumerated successfully.

FWP_E_* error code

0x80320001-0x80320039

A WFP-specific error. For more information, see WFP Error Codes.

RPC_* error code

0x80010001-0x80010122

A Remote Procedure Call specific error. For more information see Winerror.h.

Remarks

If the numEntriesReturned is less than the numEntriesRequested, the enumeration is exhausted.

To free the returned array of entries, but not the individual entries themselves, call FwpmFreeMemory0.

A subsequent call using the same enumeration handle will return the next set of items following those in the last output buffer.

This function works on a snapshot of the security associations that were enumerated successfully at the time the enumeration handle was created.

Requirements

Header

fwpmu.h

Library

fwpuclnt.dll

See Also

Reference

WFP IKE Functions
FwpmFreeMemory0

Other Resources

Windows Filtering Platform