Share via


Username Property of the IFWXAuthenticatedUser Interface

The Username property gets the name of the authenticated user.

HRESULT get_Username(
  [out]  BSTR* pbstrUsername
);

Parameters

  • 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.

Remarks

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.

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

IFWXAuthenticatedUser

Send comments about this topic to Microsoft

Build date: 6/30/2010