Determine the user name associated with the currently running process.
status = PMDF_get_user_name
status = PMDFgetUserName
int PMDFgetUserName(char *user_name, int *user_name_len)
user_nameString to receive the current process's user name. Length must be sufficient to receive any user name supported by the operating system in use. Callers of
PMDFgetUserNamemust include an extra byte for zero termination of the returned string.
user_name_lenLength in bytes of the returned user name. Callers using
PMDFgetUserNamemust, on input, supply the maximum length in bytes of user_name.
PMDFgetUserNamecan be called to determine the user name associated with the currently running process.
PMDF__OK Normal, successful completion. PMDF__FATERRLIB Call to LIB$SCOPY_R_DX failed owing to a fatal internal error in the OpenVMS Run Time Library. No user name returned. PMDF__INSVIRMEM Insufficient virtual memory: call to LIB$GET_VM made by LIB$SCOPY_R_DX has failed. No user name returned. PMDF__INVSTRDES Invalid string descriptor for user_name: descriptor has an invalid value in its DSC$B_CLASS field. No user name returned. PMDF__STRTRU Supplied string was too long; value truncated to fit.