::wxGetUserName

Bool wxGetUserName(char *buf, int bufSize)

Copies the user's name (such as "Julian Smart'') into the buffer buf, of maximum size bufSize, returning TRUE if successful. Under Windows, this returns "unknown''.