Username Property of the IFWXAuthenticatedUser Interface

The Username property gets the name of the authenticated user.

HRESULT get_Username(
  [out]  BSTR* pbstrUsername



Pointer to a BSTR that is set on return to a string value specifying the name of the authenticated user.

Return Value

This property method returns S_OK if the call is successful; otherwise, it returns an error code.


Memory is allocated by the Microsoft Firewall service, which implements the Username property. The caller should free the memory using SysFreeString. For recommendations on memory allocation for BSTR strings, see Best Practices.


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.