wxString wxGetUserId()
bool wxGetUserId(char * buf, int sz)
This function returns the "user id" also known as "login name" under Unix i.e. something like "jsmith". It uniquely identifies the current user (on this system).
Under Windows or NT, this function first looks in the environment variables USER and LOGNAME; if neither of these is found, the entry UserId in the wxWindows section of the WIN.INI file is tried.
The first variant of this function returns the login name if successful or an empty string otherwise. The second (deprecated) function returns TRUE if successful, FALSE otherwise.
See also
Include files
<wx/utils.h>
wxString wxGetUserName()
bool wxGetUserName(char * buf, int sz)
This function returns the full user name (something like "Mr. John Smith").
Under Windows or NT, this function looks for the entry UserName in the wxWindows section of the WIN.INI file. If PenWindows is running, the entry Current in the section User of the PENWIN.INI file is used.
The first variant of this function returns the user name if successful or an empty string otherwise. The second (deprecated) function returns TRUE if successful, FALSE otherwise.
See also
Include files
<wx/utils.h>