GetClientAddress Method of the IFWXSession Interface

The GetClientAddress method retrieves the address of the user.

Syntax

HRESULT GetClientAddress(
  [out]	LPSOCKADDR Address,
  [in, out]  LPDWORD AddressLength
);

Parameters

Address

Pointer to a sockaddr structure that receives the client address (port = 0 for AF_INET).

AddressLength

Pointer to the length, in bytes, of the address specified in the Address parameter. On return, AddressLength receives the actual size of the address returned in Address.

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


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.

[an error occurred while processing this directive]