FwpsAleEndpointEnum0 function

The FwpsAleEndpointEnum0 function enumerates application layer enforcement (ALE) endpoints.

Note  FwpsAleEndpointEnum0 is a specific version of FwpsAleEndpointEnum. See WFP Version-Independent Names and Targeting Specific Versions of Windows for more information.


NTSTATUS FwpsAleEndpointEnum0(
  HANDLE                        engineHandle,
  HANDLE                        enumHandle,
  UINT32                        numEntriesRequested,
  UINT32                        *numEntriesReturned



The handle for an open session with the filter engine. This handle is obtained when a session is opened by calling FwpmEngineOpen0.


The enumeration handle created by a previous call to FwpsAleEndpointDestroyEnumHandle0.


The maximum number of endpoint property entries to return. The actual number of entries enumerated is returned in numEntriesReturned. The actual number is less than the requested number only if fewer endpoints than the requested are present.


A pointer to an array of FWPS_ALE_ENDPOINT_PROPERTIES0 structure pointers. Each structure contains the properties of a single endpoint. The array contains as many elements as the value returned in numEntriesReturned.


On return, the number of elements in the array of endpoint property structures pointed to by entries.

Return Value

The FwpsAleEndpointEnum0 function returns one of the following NTSTATUS codes.

Return code Description
The function succeeded.
Other status codes
An error occurred.


To enumerate ALE endpoints, the callout driver must first obtain an enumeration handle by calling FwpsAleEndpointCreateEnumHandle0. The handle returned is associated with any parameters specified in the optional enumTemplate parameter of FwpsAleEndpointCreateEnumHandle0.

After obtaining a handle, the callout driver can call FwpsAleEndpointEnum0 to get information about the endpoints that match the enumeration parameters of the handle.

When finished examining endpoint properties, the callout driver must call FwpsAleEndpointDestroyEnumHandle0 to release the system resources associated with the enumeration handle.


Minimum supported client Available starting with Windows 7.
Target Platform Universal
Header fwpsk.h (include Fwpsk.h)
Library Fwpkclnt.lib

See Also

FwpsAleEndpointCreateEnumHandle0 FwpsAleEndpointDestroyEnumHandle0


FwpsAleEndpointGetSecurityInfo0 FwpsAleEndpointSetSecurityInfo0