UserName
ITcUserManager::UserName
Property for display of the current username.
HRESULT UserName(
BSTR* bstrUserName,
);
Parameters
bstrUserName | [out, retval] |
Return Values
HRESULT == S_OK | Query executed successfully. |
HRESULT != S_OK | If an error occurs an error code generated by Windows NT appears in HRESULT. In order to instigate a COM/OLE error handling sequence, an HRESULT is created from the error code from HRESULT_FROM_NT(nErrror). Here it should be noted that the Windows NT error code is displayed in low-order 16 bit format. |
Comments
UserName displays the name of the user account to which the invoking thread belongs. This name can differ from the name of the user who is logged in.