include/lgdl/system.h
/* Grabs the name of the computer */
Grabs the name of the computer
Grabs the name of the computer
int GetSystemComputerName(UNICHAR *compName)
{
#if (CURRENT_OS == OSNAME_WINDOWS)
    DWORD compNameSize = 32767;
    return GetComputerName(compName, &compNameSize);
#else
    return ((gethostname(compName, HOST_NAME_MAX)) == 0 ? 0 : 1);
#endif 
    return 0;
}
int GetSystemComputerName ( UNICHAR * compName ) { #if ( CURRENT_OS == OSNAME_WINDOWS ) DWORD compNameSize = 32767 ; return GetComputerName ( compName , & compNameSize ) ; #else return ( ( gethostname ( compName , HOST_NAME_MAX ) ) == 0 ? 0 : 1 ) ; #endif return 0 ; }
Grabs the name of the computer
Grabs the name of the computer
/* _WIN32 */