55 lines
936 B
C++
55 lines
936 B
C++
|
//======Copyright 1996-2006, Valve Corporation, All rights reserved. ======//
|
||
|
//
|
||
|
// winutils.cpp
|
||
|
//
|
||
|
//===========================================================================//
|
||
|
|
||
|
#include "winutils.h"
|
||
|
|
||
|
#ifndef _WIN32
|
||
|
|
||
|
#include "appframework/ilaunchermgr.h"
|
||
|
|
||
|
void GlobalMemoryStatus( MEMORYSTATUS *pOut )
|
||
|
{
|
||
|
//cheese: return 2GB physical
|
||
|
pOut->dwTotalPhys = (1<<31);
|
||
|
}
|
||
|
|
||
|
void Sleep( unsigned int ms )
|
||
|
{
|
||
|
DebuggerBreak();
|
||
|
ThreadSleep( ms );
|
||
|
}
|
||
|
|
||
|
bool IsIconic( VD3DHWND hWnd )
|
||
|
{
|
||
|
// FIXME for now just act non-minimized all the time
|
||
|
//DebuggerBreak();
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
BOOL ClientToScreen( VD3DHWND hWnd, LPPOINT pPoint )
|
||
|
{
|
||
|
DebuggerBreak();
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
void* GetCurrentThread()
|
||
|
{
|
||
|
DebuggerBreak();
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
void SetThreadAffinityMask( void *hThread, int nMask )
|
||
|
{
|
||
|
DebuggerBreak();
|
||
|
}
|
||
|
|
||
|
bool GUID::operator==( const struct _GUID &other ) const
|
||
|
{
|
||
|
DebuggerBreak();
|
||
|
return memcmp( this, &other, sizeof( GUID ) ) == 0;
|
||
|
}
|
||
|
#endif
|