Share via


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 R2 or Windows Server 2008 x64 Edition with SP2.
Version Requires Forefront Threat Management Gateway (TMG) 2010.
Header

Declared in Wspfwext.idl.

DLL

Requires Wspsrv.exe.

See Also

IFWXSession

Send comments about this topic to Microsoft

Build date: 6/30/2010