Share via


IFWXSession::GetClientAddress method

Applies to: desktop apps only

The GetClientAddress method retrieves the address of the user.

Syntax

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

Parameters

  • Address [out]
    Pointer to a sockaddr structure that receives the client address (port = 0 for AF_INET).

  • AddressLength [in, out]
    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

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)

Version

Forefront Threat Management Gateway (TMG) 2010

Header

Wspfwext.idl

DLL

Wspsrv.exe

See also

IFWXSession

 

 

Build date: 7/12/2010