::wxGetUserId

Bool wxGetUserId(char *buf, int bufSize)

Copies the user's login identity (such as "jacs'') into the buffer buf, of maximum size bufSize, returning TRUE if successful. Under Windows, this returns "user''.