If you were using wxMax, I might suggest wxGetUserId() and wxGetUserName().
Otherwise, you'll need to investigate the API's for each system.
For example, on Linux/Mac you can use the commandline "who", but you can also use "who am i", which may return a different value depending on who you were originally logged in as - yes, you can change to different users on the fly :-)
Otherwise, you'll need to investigate the API's for each system.
For example, on Linux/Mac you can use the commandline "who", but you can also use "who am i", which may return a different value depending on who you were originally logged in as - yes, you can change to different users on the fly :-)