launcher/launcher.cpp
static bool IsWin98OrOlder()
{
	bool retval = false;

#if defined( WIN32 ) && !defined( _X360 )
	OSVERSIONINFOEX osvi;
	ZeroMemory(&osvi, sizeof(OSVERSIONINFOEX));
	osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
	
	BOOL bOsVersionInfoEx = GetVersionEx ((OSVERSIONINFO *) &osvi);
	if( !bOsVersionInfoEx )
	{
		// If OSVERSIONINFOEX doesn't work, try OSVERSIONINFO.
		osvi.dwOSVersionInfoSize = sizeof (OSVERSIONINFO);
		if ( !GetVersionEx ( (OSVERSIONINFO *) &osvi) )
		{
			Error( "IsWin98OrOlder:  Unable to get OS version information" );
		}
	}

	switch (osvi.dwPlatformId)
	{
	case VER_PLATFORM_WIN32_NT:
		// NT, XP, Win2K, etc. all OK for SSE
		break;
	case VER_PLATFORM_WIN32_WINDOWS:
		// Win95, 98, Me can't do SSE
		retval = true;
		break;
	case VER_PLATFORM_WIN32s:
		// Can't really run this way I don't think...
		retval = true;
		break;
	default:
		break;
	}
#endif

	return retval;
}
//-----------------------------------------------------------------------------
// Purpose: This is a bit of a hack because it appears 
// Output : Returns true on success, false on failure.
//-----------------------------------------------------------------------------
This is a bit of a hack because it appears
Output : Returns true on success, false on failure.
This is a bit of a hack because it appears Output : Returns true on success false on failure .
static bool IsWin98OrOlder()
{
	bool retval = false;
#if defined( WIN32 ) && !defined( _X360 )
	OSVERSIONINFOEX osvi;
	ZeroMemory(&osvi, sizeof(OSVERSIONINFOEX));
	osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
	BOOL bOsVersionInfoEx = GetVersionEx ((OSVERSIONINFO *) &osvi);
	if( !bOsVersionInfoEx )
	{
		osvi.dwOSVersionInfoSize = sizeof (OSVERSIONINFO);
		if ( !GetVersionEx ( (OSVERSIONINFO *) &osvi) )
		{
			Error( "IsWin98OrOlder:  Unable to get OS version information" );
		}
	}
	switch (osvi.dwPlatformId)
	{
	case VER_PLATFORM_WIN32_NT:
		break;
	case VER_PLATFORM_WIN32_WINDOWS:
		retval = true;
		break;
	case VER_PLATFORM_WIN32s:
		retval = true;
		break;
	default:
		break;
	}
#endif
	return retval;
}
static bool IsWin98OrOlder ( ) { bool retval = false ; #if defined ( WIN32 ) && ! defined ( _X360 ) OSVERSIONINFOEX osvi ; ZeroMemory ( & osvi , sizeof ( OSVERSIONINFOEX ) ) ; osvi . dwOSVersionInfoSize = sizeof ( OSVERSIONINFOEX ) ; BOOL bOsVersionInfoEx = GetVersionEx ( ( OSVERSIONINFO * ) & osvi ) ; if ( ! bOsVersionInfoEx ) { osvi . dwOSVersionInfoSize = sizeof ( OSVERSIONINFO ) ; if ( ! GetVersionEx ( ( OSVERSIONINFO * ) & osvi ) ) { Error ( " " ) ; } } switch ( osvi . dwPlatformId ) { case VER_PLATFORM_WIN32_NT : break ; case VER_PLATFORM_WIN32_WINDOWS : retval = true ; break ; case VER_PLATFORM_WIN32s : retval = true ; break ; default : break ; } #endif return retval ; }
Purpose: This is a bit of a hack because it appears
Output : Returns true on success, false on failure.
Purpose : This is a bit of a hack because it appears Output : Returns true on success false on failure .
// If OSVERSIONINFOEX doesn't work, try OSVERSIONINFO. // NT, XP, Win2K, etc. all OK for SSE // Win95, 98, Me can't do SSE // Can't really run this way I don't think...