ITAgent::get_User method (tapi3.h)
The get_User method gets the agent user name, which is the same as the operating system user login or e-mail name.
Syntax
HRESULT get_User(
[out] BSTR *ppUser
);
Parameters
[out] ppUser
Pointer to BSTR containing user name.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Method succeeded. |
|
The ppUser parameter is not a valid pointer. |
|
Insufficient memory exists to perform the operation. |
Remarks
The application must free the memory allocated for the ppUser parameter through SysFreeString when the variable is no longer needed.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | tapi3.h (include Tapi3.h) |
Library | Uuid.lib |
DLL | Tapi3.dll |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for