GetSessionFlags Method of the IFWXSession Interface

The GetSessionFlags method retrieves flags that provide information about the session.

Syntax

HRESULT GetSessionFlags(
  [out]  LPDWORD pOutputFlags
);

Parameters

pOutputFlags

Pointer to a variable that receives the session flags. The flags can be a combination of the following values:

Value Meaning

FWX_SESSION_NAT

The session is using SecureNAT, or is a session between routed networks (not a Microsoft Firewall service control channel).

FWX_SESSION_PRIVATE

The session was created by a filter by using IFWXFirewall::CreatePrivateSession.

FWX_SESSION_AUTHENTICATED

The Firewall service authenticated the session.

FWX_SESSION_TERMINATED

The session was terminated and is no longer valid.

Return Value

This method returns S_OK if the call is successful; otherwise, it returns an error code.

Requirements

Server Requires Windows Server 2008.
Version Requires Forefront Threat Management Gateway (TMG).
Header

Declared in Wspfwext.idl.

DLL

Requires Wspsrv.exe.

See Also

IFWXSession
IFWXFirewall::CreatePrivateSession


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.