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.
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.
Build date: 11/30/2009
© 2008 Microsoft Corporation. All rights reserved.