GetClientMachineName Method of the IFWXSession Interface

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


HRESULT GetClientMachineName(
  [out]  LPSTR* 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.


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

Declared in Wspfwext.idl.


Requires Wspsrv.exe.

See Also


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.

508 Resource Limit Is Reached

Resource Limit Is Reached

The website is temporarily unable to service your request as it exceeded resource limit. Please try again later.