doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions | Variables
win_shared.cpp File Reference
#include "../../idlib/precompiled.h"
#include "win_local.h"
#include <lmerr.h>
#include <lmcons.h>
#include <lmwksta.h>
#include <errno.h>
#include <fcntl.h>
#include <direct.h>
#include <io.h>
#include <conio.h>
#include <comdef.h>
#include <comutil.h>
#include <Wbemidl.h>
#include <dbghelp.h>

Go to the source code of this file.

Macros

#define PROLOGUE_SIGNATURE   0x00EC8B55
 

Functions

int Sys_Milliseconds (void)
 
int Sys_GetSystemRam (void)
 
int Sys_GetDriveFreeSpace (const char *path)
 
int Sys_GetVideoRam (void)
 
void Sys_GetCurrentMemoryStatus (sysMemoryStats_t &stats)
 
bool Sys_LockMemory (void *ptr, int bytes)
 
bool Sys_UnlockMemory (void *ptr, int bytes)
 
void Sys_SetPhysicalWorkMemory (int minBytes, int maxBytes)
 
char * Sys_GetCurrentUser (void)
 
void Sym_Init (long addr)
 
void Sym_Shutdown (void)
 
void Sym_GetFuncInfo (long addr, idStr &module, idStr &funcName)
 
address_t GetFuncAddr (address_t midPtPtr)
 
address_t GetCallerAddr (long _ebp)
 
void Sys_GetCallStack (address_t *callStack, const int callStackSize)
 
const char * Sys_GetCallStackStr (const address_t *callStack, const int callStackSize)
 
const char * Sys_GetCallStackCurStr (int depth)
 
const char * Sys_GetCallStackCurAddressStr (int depth)
 
void Sys_ShutdownSymbols (void)
 

Variables

const int UNDECORATE_FLAGS
 

Macro Definition Documentation

#define PROLOGUE_SIGNATURE   0x00EC8B55

Definition at line 265 of file win_shared.cpp.

Function Documentation

address_t GetCallerAddr ( long  _ebp)

Definition at line 666 of file win_shared.cpp.

address_t GetFuncAddr ( address_t  midPtPtr)

Definition at line 648 of file win_shared.cpp.

void Sym_GetFuncInfo ( long  addr,
idStr module,
idStr funcName 
)

Definition at line 636 of file win_shared.cpp.

void Sym_Init ( long  addr)

Definition at line 620 of file win_shared.cpp.

void Sym_Shutdown ( void  )

Definition at line 628 of file win_shared.cpp.

void Sys_GetCallStack ( address_t callStack,
const int  callStackSize 
)

Definition at line 692 of file win_shared.cpp.

const char* Sys_GetCallStackCurAddressStr ( int  depth)

Definition at line 756 of file win_shared.cpp.

const char* Sys_GetCallStackCurStr ( int  depth)

Definition at line 743 of file win_shared.cpp.

const char* Sys_GetCallStackStr ( const address_t callStack,
const int  callStackSize 
)

Definition at line 725 of file win_shared.cpp.

void Sys_GetCurrentMemoryStatus ( sysMemoryStats_t stats)

Definition at line 173 of file win_shared.cpp.

char* Sys_GetCurrentUser ( void  )

Definition at line 239 of file win_shared.cpp.

int Sys_GetDriveFreeSpace ( const char *  path)

Definition at line 93 of file win_shared.cpp.

int Sys_GetSystemRam ( void  )

Definition at line 76 of file win_shared.cpp.

int Sys_GetVideoRam ( void  )

Definition at line 112 of file win_shared.cpp.

bool Sys_LockMemory ( void ptr,
int  bytes 
)

Definition at line 212 of file win_shared.cpp.

int Sys_Milliseconds ( void  )

Definition at line 55 of file win_shared.cpp.

void Sys_SetPhysicalWorkMemory ( int  minBytes,
int  maxBytes 
)

Definition at line 230 of file win_shared.cpp.

void Sys_ShutdownSymbols ( void  )

Definition at line 776 of file win_shared.cpp.

bool Sys_UnlockMemory ( void ptr,
int  bytes 
)

Definition at line 221 of file win_shared.cpp.

Variable Documentation

const int UNDECORATE_FLAGS
Initial value:
= UNDNAME_NO_MS_KEYWORDS |
UNDNAME_NO_ACCESS_SPECIFIERS |
UNDNAME_NO_FUNCTION_RETURNS |
UNDNAME_NO_ALLOCATION_MODEL |
UNDNAME_NO_ALLOCATION_LANGUAGE |
UNDNAME_NO_MEMBER_TYPE

Definition at line 269 of file win_shared.cpp.