Retrieves the name of the user for whom the request is being processed.
GetUserName( IUSERINFO_HANDLE i_hIUserInfo , unsigned short* io_userNameSize, Char* o_userName)
The handle to the interface. See hIUserInfo Variable.
Each function returns a RET_VALUE that is an error code of type Long. The return value is greater than zero if the call was successful, and zero or less if not. Use RET_OK(x) and RET_ERROR(x) to check for failure.
If the function call fails, check the value of the buffer size parameter. After a successful function call, this parameter contains the size of the buffer that you passed in. However, if the buffer size is too small, then the function returns PROCESSEXTERR_BUFFERSIZETOOSMALL, and the buffer size that is needed is specified in the parameter.
During a view request, GetUsername retrieves the name of the user who has logged on to the system and is viewing the report. During a schedule request, this function retrieves the name of the user who owns the instance that is being scheduled, and not the name of the submitter or the report owner.
| Crystal Decisions, Inc. http://www.crystaldecisions.com Support services: http://support.crystaldecisions.com |