The get_UserName property returns the user name associated with the profile.
HRESULT get_UserName( BSTR* pbstrUserName );
- [out] Pointer to a BSTR containing the user name. The caller is responsible for freeing this memory with SysFreeString.
RTC methods may return an RTC_E_ constant.
|RTC_E_NOT_EXIST||No user name.|
This is an optional field in the profile. If the field is not present in the profile, the method will return E_FAIL.
Client: Requires Windows XP.
Server: Requires Windows Server 2003.
Redistributable: Requires Rtcdll.dll on Windows 2000, and Windows Me/98.
Header: Declared in Rtccore.h.
Library: Included as a resource in Rtcdll.dll.
GUID: IID_IRTCProfile is defined as d07eca9e-4062-4dd4-9e7d-722a49ba7303.