IMsTscAx::get_UserName (Windows CE 5.0)
This method retrieves the value of the Username property, which specifies the name of the user initiating the control's connection.
HRESULT get_UserName(BSTR* pUserName);
Parameters
- pUserName
[out] Pointer to string with the user name.
Return Values
If the method succeeds, the return value is S_OK.
If it fails, the method returns a nonzero error code.
Remarks
This method allocates the memory for the buffer pointed to by pServer. C/C++ applications must call the SysFreeString function to free the memory. This is not required for Visual Basic clients.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Discodlg.h. Mstsax.idl.
Link Library: Mstsax.lib.
See Also
IMsTscAx | IMsTscAx::put_UserName
Send Feedback on this topic to the authors