GetClientMachineName Method of the IFWXSession Interface

The GetClientMachineName method retrieves the name of the client computer, if it is available. The Forefront TMG Client or Firewall Client computer passes the computer name in the request. The name is not available for SecureNAT clients.

Syntax

HRESULT GetClientMachineName(
  [out]  LPSTR* pszMachineName
);

Parameters

  • pszMachineName
    Address of a a pointer to a buffer that receives the requested computer name string. The caller must free the pszMachineName buffer by using the CoTaskMemFree function.

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