Microsoft Internet Security and Acceleration Server 2004 SDK

Username Property of IFWXAuthenticatedUser

The Username property gets the name of the authenticated user.

HRESULT get_Username(
  BSTR* pbstrUsername
);

Parameters

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

Return Values

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 2003 or Windows 2000.
Version: Requires Internet Security and Acceleration Server 2004.
Header: Declared in Wspfwext.idl.

See Also

IFWXAuthenticatedUser