include/lgdl/system.h
/* Determines what the user's name is */
Determines what the user's name is
Determines what the user ' s name is
int GetSystemUserName(UNICHAR *userName)
{
#if (CURRENT_OS == OSNAME_WINDOWS)
    DWORD uNameSize = 256;
    return GetUserName(userName, &uNameSize+1);
#else
    return ((getlogin_r(userName, LOGIN_NAME_MAX) == 0) ? 0 : 1);
#endif 
}
int GetSystemUserName ( UNICHAR * userName ) { #if ( CURRENT_OS == OSNAME_WINDOWS ) DWORD uNameSize = 256 ; return GetUserName ( userName , & uNameSize + 1 ) ; #else return ( ( getlogin_r ( userName , LOGIN_NAME_MAX ) == 0 ) ? 0 : 1 ) ; #endif }
Determines what the user's name is
Determines what the user ' s name is
/* _WIN32 */