|
0 A.D. | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
| Method Summary | |
|
__declspec( allocate(".WINIT$S$" ) ) PfnLibErrorVoid shutdownBegin = 0
See winit.cpp |
|
__declspec( allocate(".WINIT$IZ" ) ) PfnLibErrorVoid initEnd = 0
See winit.cpp |
|
__declspec( allocate(".WINIT$I$" ) ) PfnLibErrorVoid initBegin = 0
See winit.cpp |
|
__declspec( allocate(".WINIT$SZ" ) ) PfnLibErrorVoid shutdownEnd = 0
See winit.cpp |
extern "C" FARPROC WINAPI |
__delayLoadHelper2( PCImgDelayDescr pidd, FARPROC* ppfnIATEntry )
See wdll_delay_load.cpp |
static void |
active_change_state( SdlActivationType type, uint changed_app_state )
See wsdl.cpp |
static LibError |
add_oal_dlls_in_dir( const char* dir, StringSet* dlls )
See wsnd.cpp |
static void |
AllocStaticObjects()
See wdir_watch.cpp |
static const u8* |
array_iterator( void* internal, size_t el_size )
See wdbg_sym.cpp |
static LibError |
brk_disable_all_in_ctx( BreakInfo* UNUSED( bi ), CONTEXT* context )
See wdbg.cpp |
static LibError |
brk_do_request( HANDLE hThread, void* arg )
See wdbg.cpp |
static LibError |
brk_enable_in_ctx( BreakInfo* bi, CONTEXT* context )
See wdbg.cpp |
static int CALLBACK |
browse_cb( HWND hWnd, unsigned int msg, LPARAM UNUSED( lParam ), LPARAM ldata )
See wsysdep.cpp |
static LibError |
calc_gamma_ramp( float gamma, u16* ramp )
See wsdl.cpp |
static LibError |
call_while_suspended( WhileSuspendedFunc func, void* user_arg )
See wdbg.cpp |
static void |
CallFunctionPointers( PfnLibErrorVoid* begin, PfnLibErrorVoid* end )
call into a range of function pointers. |
static int |
CallStartupWithinTryBlock()
See wseh.cpp |
|
cassert( sizeof( pthread_t )== sizeof( SDL_Thread* ) )
See wsdl.cpp |
inline unsigned |
CountOfImports( PCImgThunkData pitdBase )
See wdll_delay_load.cpp |
LibError |
debug_dump_stack( wchar_t* buf, size_t max_chars, uint skip, void* pcontext )
See wdbg_sym.cpp |
void* |
debug_get_nth_caller( uint skip, void* pcontext )
helper routines for symbol value dump |
void |
debug_heap_check()
See wdbg.cpp |
void |
debug_heap_enable( DebugHeapChecks what )
See wdbg.cpp |
bool |
debug_is_code_ptr( void* p )
See wdbg.cpp |
int |
debug_is_pointer_bogus( const void* p )
See wdbg.cpp |
bool |
debug_is_stack_ptr( void* p )
See wdbg.cpp |
void |
debug_puts( const char* text )
See wdbg.cpp |
LibError |
debug_remove_all_breaks()
See wdbg.cpp |
LibError |
debug_resolve_symbol( void* ptr_of_interest, char* sym_name, char* file, int* line )
See wdbg_sym.cpp |
static LibError |
debug_resolve_symbol_lk( void* ptr_of_interest, char* sym_name, char* file, int* line )
See wdbg_sym.cpp |
LibError |
debug_set_break( void* p, DbgBreakType type )
See wdbg.cpp |
static bool |
dequeue_event( SDL_Event* ev )
See wsdl.cpp |
static void |
DetectClockFrequency()
See wcpu.cpp |
static void |
DetectNumProcessors()
See wcpu.cpp |
static void |
DetectWindowsVersion()
See wutil.cpp |
static void |
DetectWow64()
See wutil.cpp |
static LibError |
determine_symbol_address( DWORD id, DWORD UNUSED( type_id ), const u8** pp )
See wdbg_sym.cpp |
LibError |
dir_add_watch( const char* dir, intptr_t* preqnum )
See wdir_watch.cpp |
LibError |
dir_cancel_watch( const intptr_t reqnum )
See wdir_watch.cpp |
LibError |
dir_get_changed_file( char* fn )
See wdir_watch.cpp |
static BOOL CALLBACK |
DirectSoundCallback( void* guid, const char* UNUSED( description ), const char* module, void* UNUSED( ctx ) )
See wsnd.cpp |
static void |
dlg_resize( HWND hDlg, WPARAM wParam, LPARAM lParam )
See wsysdep.cpp |
static void |
dlg_resize_control( HWND hDlg, int dlg_item, int dx, int dy, uint anchors )
See wsysdep.cpp |
static LibError |
dump_array( const u8* p, size_t el_count, DWORD el_type_id, size_t el_size, DumpState state )
See wdbg_sym.cpp |
static void |
dump_error( LibError err, const u8* p )
See wdbg_sym.cpp |
static LibError |
dump_frame_cb( const STACKFRAME64* sf, void* UNUSED( user_arg ) )
See wdbg_sym.cpp |
static LibError |
dump_sequence( DebugIterator el_iterator, void* internal, size_t el_count, DWORD el_type_id, size_t el_size, DumpState state )
See wdbg_sym.cpp |
static LibError |
dump_string( const u8* p, size_t el_size )
See wdbg_sym.cpp |
static LibError |
dump_sym( DWORD type_id, const u8* p, DumpState state )
stack trace |
static LibError |
dump_sym_array( DWORD type_id, const u8* p, DumpState state )
See wdbg_sym.cpp |
static LibError |
dump_sym_base_class( DWORD type_id, const u8* p, DumpState state )
See wdbg_sym.cpp |
static LibError |
dump_sym_base_type( DWORD type_id, const u8* p, DumpState state )
See wdbg_sym.cpp |
static BOOL CALLBACK |
dump_sym_cb( SYMBOL_INFO* sym, ULONG UNUSED( size ), void* UNUSED( ctx ) )
See wdbg_sym.cpp |
static LibError |
dump_sym_data( DWORD id, const u8* p, DumpState state )
See wdbg_sym.cpp |
static LibError |
dump_sym_enum( DWORD type_id, const u8* p, DumpState UNUSED( state ) )
See wdbg_sym.cpp |
static LibError |
dump_sym_function( DWORD UNUSED( type_id ), const u8* UNUSED( p ), DumpState UNUSED( state ) )
See wdbg_sym.cpp |
static LibError |
dump_sym_function_type( DWORD UNUSED( type_id ), const u8* p, DumpState UNUSED( state ) )
See wdbg_sym.cpp |
static LibError |
dump_sym_pointer( DWORD type_id, const u8* p, DumpState state )
See wdbg_sym.cpp |
static LibError |
dump_sym_typedef( DWORD type_id, const u8* p, DumpState state )
See wdbg_sym.cpp |
static LibError |
dump_sym_udt( DWORD type_id, const u8* p, DumpState state )
See wdbg_sym.cpp |
static LibError |
dump_sym_unknown( DWORD type_id, const u8* UNUSED( p ), DumpState UNUSED( state ) )
See wdbg_sym.cpp |
static LibError |
dump_sym_vtable( DWORD UNUSED( type_id ), const u8* UNUSED( p ), DumpState UNUSED( state ) )
See wdbg_sym.cpp |
static void |
enable_kbd_hook( bool enable )
See wsdl.cpp |
static void |
EnableLowFragmentationHeap()
See wutil.cpp |
static void |
EnableMemoryTracking()
See wutil.cpp |
static INT_PTR CALLBACK |
error_dialog_proc( HWND hDlg, unsigned int msg, WPARAM wParam, LPARAM lParam )
See wsysdep.cpp |
static void |
extract_events( Watch* w )
See wdir_watch.cpp |
std::string |
flags_to_string( char flags )
See wprintf.cpp |
static inline bool WINAPI |
FLoadedAtPreferredAddress( PIMAGE_NT_HEADERS pinh, HMODULE hmod )
See wdll_delay_load.cpp |
static void |
ForciblyLoadUser32Dll()
See wutil.cpp |
static void |
FreeAllWatches()
See wdir_watch.cpp |
static void |
FreeStaticObjects()
See wdir_watch.cpp |
static void |
FreeUser32Dll()
See wutil.cpp |
static void |
gamma_swap( GammaAction action )
See wsdl.cpp |
static HWND |
get_app_main_window()
See wsysdep.cpp |
int |
get_flag( TCHAR c )
See wprintf.cpp |
static void |
get_packet()
See wdir_watch.cpp |
static NT_TIB* |
get_tib()
See wdbg.cpp |
static LibError |
get_ver( const char* module_path, char* out_ver, size_t out_ver_len )
See wdll_ver.cpp |
static LibError |
get_ver_impl( const char* module_path, char* out_ver, size_t out_ver_len, void*& mem )
========================================================================= File : wdll_ver. |
static const wchar_t* |
GetCppExceptionDescription( const EXCEPTION_RECORD* er, wchar_t* description, size_t maxChars )
|
static void |
GetDirectories()
See wutil.cpp |
static const char* |
GetDirectSoundDriverPath()
See wsnd.cpp |
static void |
GetDriverPathname( char* driverPathname, size_t maxChars )
See mahaf.cpp |
static const wchar_t* |
GetExceptionDescription( const EXCEPTION_POINTERS* ep, wchar_t* description, size_t maxChars )
|
static void |
GetExceptionLocus( const EXCEPTION_POINTERS* ep, char* file, int* line, char* func )
See wseh.cpp |
static const wchar_t* |
GetSehExceptionDescription( const EXCEPTION_RECORD* er, wchar_t* description, size_t maxChars )
See wseh.cpp |
int |
GetVRAMInfo( int& remaining, int& total )
See wsdl.cpp |
LibError |
gfx_get_monitor_size( int& width_mm, int& height_mm )
See wgfx.cpp |
LibError |
gfx_get_video_mode( int* xres, int* yres, int* bpp, int* freq )
========================================================================= File : wgfx. |
static HCURSOR |
HCURSOR_from_ptr( void* p )
See wsysdep.cpp |
static HICON |
HICON_from_ptr( void* p )
See wsysdep.cpp |
static void |
ImportWow64Functions()
See wutil.cpp |
inline unsigned |
IndexFromPImgThunkData( PCImgThunkData pitdCur, PCImgThunkData pitdBase )
See wdll_delay_load.cpp |
static void |
init_vkmap( SDLKey(& VK_keymap )[ 256] )
See wsdl.cpp |
static void |
InitLocks()
See wutil.cpp |
static bool |
Is64BitOs()
See mahaf.cpp |
static bool |
is_in_window( int client_x, int client_y )
See wsdl.cpp |
int |
is_lengthmod( TCHAR c )
See wprintf.cpp |
static bool |
is_string( const u8* p, size_t stride )
See wdbg_sym.cpp |
static BOOL CALLBACK |
is_this_our_window( HWND hWnd, LPARAM lParam )
See wsysdep.cpp |
static bool |
IsCppException( const EXCEPTION_RECORD* er )
See wseh.cpp |
static LibError |
IsOpenAlDll( const DirEnt* ent )
========================================================================= File : wsdl. |
static LRESULT CALLBACK |
keyboard_ll_hook( int nCode, WPARAM wParam, LPARAM lParam )
See wsdl.cpp |
LibError |
LibError_from_GLE( bool warn_if_failed = true )
if ret is false, returns LibError_from_GLE. |
LibError |
LibError_from_win32( DWORD ret, bool warn_if_failed )
See wutil.cpp |
static void |
lock()
========================================================================= File : wdbg. |
bool |
mahaf_Init()
See mahaf.cpp |
volatile void* |
mahaf_MapPhysicalMemory( uintptr_t physicalAddress, size_t numBytes )
See mahaf.cpp |
u16 |
mahaf_ReadPort16( u16 port )
See mahaf.cpp |
u32 |
mahaf_ReadPort32( u16 port )
See mahaf.cpp |
u8 |
mahaf_ReadPort8( u16 port )
See mahaf.cpp |
void |
mahaf_Shutdown()
See mahaf.cpp |
void |
mahaf_UnmapPhysicalMemory( volatile void* virtualAddress )
See mahaf.cpp |
void |
mahaf_WritePort16( u16 port, u16 value )
See mahaf.cpp |
void |
mahaf_WritePort32( u16 port, u32 value )
See mahaf.cpp |
void |
mahaf_WritePort8( u16 port, u8 value )
See mahaf.cpp |
EXTERN_C int |
mainCRTStartup()
See wseh.cpp |
static void |
mouse_moved( uint x, uint y )
See wsdl.cpp |
static void |
mouse_update()
See wsdl.cpp |
static FARPROC WINAPI |
notify_hook( unsigned dliNotify, PDelayLoadInfo pdli )
See wdll_delay_load.cpp |
static LibError |
nth_caller_cb( const STACKFRAME64* sf, void* user_arg )
See wdbg_sym.cpp |
static LRESULT |
OnActivate( HWND hWnd, UINT state, HWND UNUSED( hWndActDeact ), BOOL fMinimized )
See wsdl.cpp |
static LRESULT |
OnKey( HWND UNUSED( hWnd ), UINT vk, BOOL fDown, int UNUSED( cRepeat ), UINT flags )
See wsdl.cpp |
static LRESULT |
OnMouseButton( HWND UNUSED( hWnd ), UINT uMsg, int screen_x, int screen_y, UINT UNUSED( flags ) )
See wsdl.cpp |
static LRESULT |
OnMouseWheel( HWND UNUSED( hWnd ), int screen_x, int screen_y, int zDelta, UINT UNUSED( fwKeys ) )
See wsdl.cpp |
static SC_HANDLE |
OpenServiceControlManager()
See mahaf.cpp |
static void |
out( const wchar_t* fmt,... )
See wdbg_sym.cpp |
static LibError |
out_check_limit()
See wdbg_sym.cpp |
static void |
out_erase( size_t num_chars )
See wdbg_sym.cpp |
static void |
out_init( wchar_t* buf, size_t max_chars )
See wdbg_sym.cpp |
static void |
out_latch_pos()
See wdbg_sym.cpp |
static inline void WINAPI |
OverlayIAT( PImgThunkData pitdDst, PCImgThunkData pitdSrc )
See wdll_delay_load.cpp |
template< class X > X |
PFromRva( RVA rva )
See wdll_delay_load.cpp |
static inline PIMAGE_NT_HEADERS WINAPI |
PinhFromImageBase( HMODULE hmod )
See wdll_delay_load.cpp |
static bool |
ptr_already_visited( const u8* p )
See wdbg_sym.cpp |
static void* |
ptr_from_HCURSOR( HCURSOR hCursor )
See wsysdep.cpp |
static void* |
ptr_from_HICON( HICON hIcon )
See wsysdep.cpp |
static void |
ptr_reset_visited()
See wdbg_sym.cpp |
static inline void |
queue_active_event( SdlActivationType type, uint changed_app_state )
See wsdl.cpp |
static void |
queue_button_event( uint button, uint state, uint x, uint y )
See wsdl.cpp |
static void |
queue_event( const SDL_Event& ev )
See wsdl.cpp |
static void |
queue_key_event( uint type, uint sdlk, WCHAR unicode_char )
See wsdl.cpp |
static void |
queue_mouse_event( uint x, uint y )
See wsdl.cpp |
static void |
queue_quit_event()
See wsdl.cpp |
static u32 |
ReadPort( u16 port, u8 numBytes )
See mahaf.cpp |
static void |
reset_all_keys()
See wsdl.cpp |
static void |
screen_to_client( int screen_x, int screen_y, int& client_x, int& client_y )
See wsdl.cpp |
SDL_sem* |
SDL_CreateSemaphore( int cnt )
See wsdl.cpp |
SDL_Thread* |
SDL_CreateThread( int ( * func )( void* ), void* param )
See wsdl.cpp |
inline void |
SDL_Delay( Uint32 ms )
See wsdl.cpp |
inline void |
SDL_DestroySemaphore( SDL_sem* sem )
See wsdl.cpp |
int |
SDL_EnableUNICODE( int UNUSED( enable ) )
See wsdl.cpp |
Uint8 |
SDL_GetAppState()
See wsdl.cpp |
Uint8* |
SDL_GetKeyState( int* num_keys )
See wsdl.cpp |
Uint8 |
SDL_GetMouseState( int* x, int* y )
See wsdl.cpp |
inline u32 |
SDL_GetTicks()
See wsdl.cpp |
SDL_VideoInfo* |
SDL_GetVideoInfo()
See wsdl.cpp |
SDL_Surface* |
SDL_GetVideoSurface()
See wsdl.cpp |
inline void* |
SDL_GL_GetProcAddress( const char* name )
See wsdl.cpp |
int |
SDL_GL_SetAttribute( SDL_GLattr attr, int value )
See wsdl.cpp |
void |
SDL_GL_SwapBuffers()
See wsdl.cpp |
int |
SDL_Init( Uint32 UNUSED( flags ) )
See wsdl.cpp |
int |
SDL_KillThread( SDL_Thread* thread )
See wsdl.cpp |
int |
SDL_PollEvent( SDL_Event* ev )
See wsdl.cpp |
void |
SDL_PumpEvents( void )
See wsdl.cpp |
int |
SDL_PushEvent( SDL_Event* ev )
See wsdl.cpp |
void |
SDL_Quit()
See wsdl.cpp |
int |
SDL_SemPost( SDL_sem* sem )
See wsdl.cpp |
int |
SDL_SemWait( SDL_sem* sem )
See wsdl.cpp |
int |
SDL_SetGamma( float r, float g, float b )
See wsdl.cpp |
int |
SDL_SetVideoMode( int w, int h, int bpp, unsigned long flags )
See wsdl.cpp |
int |
SDL_ShowCursor( int toggle )
See wsdl.cpp |
u16 |
SDL_Swap16( const u16 x )
See wsdl.cpp |
u32 |
SDL_Swap32( const u32 x )
See wsdl.cpp |
u64 |
SDL_Swap64( const u64 x )
See wsdl.cpp |
inline void |
SDL_WarpMouse( int x, int y )
See wsdl.cpp |
void |
SDL_WM_SetCaption( const char* title, const char* icon )
See wsdl.cpp |
static void |
seq_determine_formatting( size_t el_size, size_t el_count, bool* fits_on_one_line, size_t* num_elements_to_show )
See wdbg_sym.cpp |
static void |
ShutdownLocks()
See wutil.cpp |
static void |
skip_this_frame( uint& skip, void* context )
See wdbg_sym.cpp |
static void |
StartDriver( const char* driverPathname )
See mahaf.cpp |
static const wchar_t* |
string_for_register( CV_HREG_e reg )
See wdbg_sym.cpp |
static LibError |
sym_init()
See wdbg_sym.cpp |
static LibError |
sym_shutdown()
See wdbg_sym.cpp |
LibError |
sys_clipboard_free( wchar_t* copy )
See wsysdep.cpp |
wchar_t* |
sys_clipboard_get()
See wsysdep.cpp |
LibError |
sys_clipboard_set( const wchar_t* text )
See wsysdep.cpp |
LibError |
sys_cursor_create( uint w, uint h, void* bgra_img, uint hx, uint hy, void** cursor )
See wsysdep.cpp |
LibError |
sys_cursor_create_empty( void** cursor )
See wsysdep.cpp |
LibError |
sys_cursor_free( void* cursor )
See wsysdep.cpp |
LibError |
sys_cursor_set( void* cursor )
See wsysdep.cpp |
ErrorReaction |
sys_display_error( const wchar_t* text, uint flags )
See wsysdep.cpp |
void |
sys_display_msg( const char* caption, const char* msg )
========================================================================= File : wsysdep. |
void |
sys_display_msgw( const wchar_t* caption, const wchar_t* msg )
See wsysdep.cpp |
LibError |
sys_error_description_r( int user_err, char* buf, size_t max_chars )
See wsysdep.cpp |
inline LibError |
sys_get_executable_name( char* n_path, size_t buf_size )
See wsysdep.cpp |
wchar_t* |
sys_get_module_filename( void* addr, wchar_t* path )
See wsysdep.cpp |
LibError |
sys_pick_directory( char* path, size_t buf_size )
See wsysdep.cpp |
int |
sys_vsnprintf( TCHAR* buffer, size_t count, const TCHAR* format, va_list argptr )
See wprintf.cpp |
static inline DWORD WINAPI |
TimeStampOfImage( PIMAGE_NT_HEADERS pinh )
See wdll_delay_load.cpp |
template< typename T > std::string |
to_string( T n )
See wprintf.cpp |
int |
type_size( TCHAR type, int length )
See wprintf.cpp |
static LibError |
udt_dump_normal( const wchar_t* type_name, const u8* p, size_t size, DumpState state, ULONG num_children, const DWORD* children )
See wdbg_sym.cpp |
static LibError |
udt_dump_std( const wchar_t* wtype_name, const u8* p, size_t size, DumpState state, ULONG num_children, const DWORD* children )
See wdbg_sym.cpp |
static LibError |
udt_dump_suppressed( const wchar_t* type_name, const u8* UNUSED( p ), size_t UNUSED( size ), DumpState state, ULONG UNUSED( num_children ), const DWORD* UNUSED( children ) )
See wdbg_sym.cpp |
static bool |
udt_fits_on_one_line( const wchar_t* type_name, size_t child_count, size_t total_size )
See wdbg_sym.cpp |
static LibError |
udt_get_child_type( const wchar_t* child_name, ULONG num_children, const DWORD* children, DWORD* el_type_id, size_t* el_size )
See wdbg_sym.cpp |
static bool |
udt_should_suppress( const wchar_t* type_name )
See wdbg_sym.cpp |
static void |
UninstallDriver()
See mahaf.cpp |
static void |
UnloadAllDlls()
See wdll_delay_load.cpp |
static void |
unlock()
See wdbg.cpp |
static inline void |
video_enter_game_mode()
See wsdl.cpp |
static inline void |
video_leave_game_mode()
See wsdl.cpp |
static bool |
video_need_change( int w, int h, int cur_w, int cur_h, bool fullscreen )
See wsdl.cpp |
static void |
video_shutdown()
See wsdl.cpp |
inline SDLKey |
vkmap( int vk )
See wsdl.cpp |
static LibError |
walk_stack( StackFrameCallback cb, void* user_arg = 0, uint skip = 0, const CONTEXT* pcontext = 0 )
See wdbg_sym.cpp |
static Watch* |
WatchFromReqnum( intptr_t reqnum )
See wdir_watch.cpp |
LibError |
wcpu_CallByEachCPU( CpuCallback cb, void* param )
See wcpu.cpp |
double |
wcpu_ClockFrequency()
See wcpu.cpp |
static LibError |
wcpu_Init()
See wcpu.cpp |
uint |
wcpu_NumProcessors()
See wcpu.cpp |
void |
wdbg_set_thread_name( const char* name )
See wdbg.cpp |
static LibError |
wdbg_sym_Init()
See wdbg_sym.cpp |
static LibError |
wdbg_sym_Shutdown()
See wdbg_sym.cpp |
void |
wdbg_sym_write_minidump( EXCEPTION_POINTERS* exception_pointers )
See wdbg_sym.cpp |
static LibError |
wdir_watch_Init()
See wdir_watch.cpp |
static LibError |
wdir_watch_Shutdown()
See wdir_watch.cpp |
void |
wdll_add_notify( WdllLoadNotify* notify )
See wdll_delay_load.cpp |
static LibError |
wdll_Shutdown()
See wdll_delay_load.cpp |
LibError |
wdll_ver_list_add( const char* name )
See wdll_ver.cpp |
void |
wdll_ver_list_init( char* buf, size_t chars )
See wdll_ver.cpp |
__declspec( dllimport ) BOOL __stdcall |
wglCopyContext( HGLRC, HGLRC, UINT )
See wgl.h |
__declspec( dllimport ) HGLRC __stdcall |
wglCreateContext( HDC )
See wgl.h |
__declspec( dllimport ) HGLRC __stdcall |
wglCreateLayerContext( HDC, int )
See wgl.h |
__declspec( dllimport ) BOOL __stdcall |
wglDeleteContext( HGLRC )
See wgl.h |
__declspec( dllimport ) HGLRC __stdcall |
wglGetCurrentContext( void )
See wgl.h |
__declspec( dllimport ) HDC __stdcall |
wglGetCurrentDC( void )
See wgl.h |
__declspec( dllimport ) PROC __stdcall |
wglGetProcAddress( LPCSTR )
See wgl.h |
__declspec( dllimport ) BOOL __stdcall |
wglMakeCurrent( HDC, HGLRC )
See wgl.h |
__declspec( dllimport ) BOOL __stdcall |
wglShareLists( HGLRC, HGLRC )
See wgl.h |
__declspec( dllimport ) BOOL __stdcall |
wglUseFontBitmapsA( HDC, DWORD, DWORD, DWORD )
See wgl.h |
__declspec( dllimport ) BOOL __stdcall |
wglUseFontBitmapsW( HDC, DWORD, DWORD, DWORD )
See wgl.h |
static void* |
while_suspended_thread_func( void* user_arg )
See wdbg.cpp |
void* |
win_alloc( size_t size )
See wutil.cpp |
void |
win_free( void* p )
See wutil.cpp |
static LibError |
win_get_gfx_card()
See wgfx.cpp |
static LibError |
win_get_gfx_drv_ver()
See wgfx.cpp |
LibError |
win_get_gfx_info()
See wgfx.cpp |
LibError |
win_get_snd_info()
See wsnd.cpp |
int |
win_is_locked( uint idx )
See wutil.cpp |
void |
win_lock( uint idx )
See wutil.cpp |
void |
win_unlock( uint idx )
See wutil.cpp |
void |
winit_CallInitFunctions()
See winit.cpp |
void |
winit_CallShutdownFunctions()
See winit.cpp |
|
WINIT_REGISTER_EARLY_INIT( wmi_Init )
========================================================================= File : wmi. |
|
WINIT_REGISTER_EARLY_INIT( wutil_Init )
========================================================================= File : wutil. |
|
WINIT_REGISTER_EARLY_INIT( wcpu_Init )
========================================================================= File : wcpu. |
|
WINIT_REGISTER_EARLY_SHUTDOWN( wsdl_Shutdown )
See wsdl.cpp |
|
WINIT_REGISTER_EARLY_SHUTDOWN( wmi_Shutdown )
See wmi.cpp |
|
WINIT_REGISTER_LATE_INIT( wsdl_Init )
========================================================================= File : wsdl. |
|
WINIT_REGISTER_LATE_SHUTDOWN( wutil_Shutdown )
See wutil.cpp |
|
WINIT_REGISTER_LATE_SHUTDOWN2( wdll_Shutdown )
========================================================================= File : wdll_delay_load. |
|
WINIT_REGISTER_MAIN_INIT( wdbg_sym_Init )
========================================================================= File : wdbg_sym. |
|
WINIT_REGISTER_MAIN_INIT( wdir_watch_Init )
========================================================================= File : wdir_watch. |
|
WINIT_REGISTER_MAIN_SHUTDOWN( wdbg_sym_Shutdown )
See wdbg_sym.cpp |
|
WINIT_REGISTER_MAIN_SHUTDOWN( wdir_watch_Shutdown )
See wdir_watch.cpp |
LibError |
wmi_GetClass( const char* className, WmiMap& wmiMap )
See wmi.cpp |
static LibError |
wmi_Init()
See wmi.cpp |
static LibError |
wmi_Shutdown()
See wmi.cpp |
static LRESULT CALLBACK |
wndproc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam )
See wsdl.cpp |
static void |
WritePort( u16 port, u32 value, u8 numBytes )
See mahaf.cpp |
static LibError |
wsdl_Init()
See wsdl.cpp |
static LibError |
wsdl_Shutdown()
See wsdl.cpp |
EXTERN_C int |
wseh_EntryPoint()
See wseh.cpp |
LONG WINAPI |
wseh_ExceptionFilter( EXCEPTION_POINTERS* ep )
See wseh.cpp |
EXTERN_C int |
wstartup_InitAndRegisterShutdown()
========================================================================= File : wstartup. |
void |
wutil_DisableWow64Redirection( void*& wasRedirectionEnabled )
See wutil.cpp |
static LibError |
wutil_Init()
See wutil.cpp |
bool |
wutil_IsWow64()
See wutil.cpp |
void |
wutil_RevertWow64Redirection( void* wasRedirectionEnabled )
See wutil.cpp |
static LibError |
wutil_Shutdown()
See wutil.cpp |
const char* |
wutil_WindowsFamily()
See wutil.cpp |
uint |
wutil_WindowsVersion()
See wutil.cpp |
const char* |
wutil_WindowsVersionString()
See wutil.cpp |
| Symbol Summary | |
#define |
__deref_opt_out
See win.h |
#define |
__deref_out
See win.h |
#define |
__in
See win.h |
#define |
__in_opt
See win.h |
#define |
__inout
See win.h |
#define |
__inout_opt
See win.h |
#define |
__out
See win.h |
#define |
__out_opt
See win.h |
#define |
__specstrings
See win.h |
#define |
_APS_NEXT_COMMAND_VALUE 40001
See error_dialog.h |
#define |
_APS_NEXT_CONTROL_VALUE 1003
See error_dialog.h |
#define |
_APS_NEXT_RESOURCE_VALUE 102
See error_dialog.h |
#define |
_APS_NEXT_SYMED_VALUE 101
See error_dialog.h |
#define |
_APS_NO_MFC 1
See error_dialog.h |
#define |
_NO_CVCONST_H
See wdbg_sym.cpp |
#define |
_WCHAR_T_DEFINED
See wgl.h |
#define |
_WIN32_DCOM
See wmi.h |
#define |
_WIN32_WINNT 0x0501
See win.h |
#define |
_WINSOCKAPI_
See win.h |
#define |
APIENTRY __stdcall
See wgl.h |
#define |
CALLBACK __stdcall
See wgl.h |
#define |
DDRAW
See wsdl.cpp |
#define |
debug_break __asm { int 3 }
See wdbg.h |
#define |
DS_OK 0
See wsnd.cpp |
#define |
DWORD_PTR DWORD
See win.h |
#define |
FACILITY_VISUALCPP ((LONG)0x6d)
See wdll_delay_load.cpp |
#define |
IDC_BREAK 2002
See error_dialog.h |
#define |
IDC_CONTINUE 2000
See error_dialog.h |
#define |
IDC_COPY 1002
See error_dialog.h |
#define |
IDC_EDIT1 1001
See error_dialog.h |
#define |
IDC_EXIT 2003
See error_dialog.h |
#define |
IDC_SUPPRESS 2001
See error_dialog.h |
#define |
IDD_DIALOG1 101
See error_dialog.h |
#define |
INCLUDED_MAHAF
See mahaf.h |
#define |
INCLUDED_WCPU
See wcpu.h |
#define |
INCLUDED_WDBG
See wdbg.h |
#define |
INCLUDED_WDBG_SYM
See wdbg_sym.h |
#define |
INCLUDED_WDLL_DELAY_LOAD
See wdll_delay_load.h |
#define |
INCLUDED_WDLL_VER
See wdll_ver.h |
#define |
INCLUDED_WIN
See win.h |
#define |
INCLUDED_WINIT
See winit.h |
#define |
INCLUDED_WMI
See wmi.h |
#define |
INCLUDED_WSDL
See wsdl.h |
#define |
INCLUDED_WSEH
See wseh.h |
#define |
INCLUDED_WUTIL
See wutil.h |
#define |
INDENT STMT(for(uint i = 0 i <= state.level i++) out(L" "))
See wdbg_sym.cpp |
#define |
INVALID_FILE_ATTRIBUTES ((DWORD)-1)
See win.h |
#define |
NEED_COOKIE_INIT
See wseh.cpp |
#define |
NOATOM
See win.h |
#define |
NODEFERWINDOWPOS
See win.h |
#define |
NODRAWTEXT
See win.h |
#define |
NOGDICAPMASKS
See win.h |
#define |
NOHELP
See win.h |
#define |
NOKANJI
See win.h |
#define |
NOKEYSTATES
See win.h |
#define |
NOMCX
See win.h |
#define |
NOMEMMGR
See win.h |
#define |
NOMENUS
See win.h |
#define |
NOMETAFILE
See win.h |
#define |
NOMINMAX
See win.h |
#define |
NONLS
See win.h |
#define |
NOOPENFILE
See win.h |
#define |
NOPROFILER
See win.h |
#define |
NORASTEROPS
See win.h |
#define |
NOSCROLL
See win.h |
#define |
NOTEXTMETRIC
See win.h |
#define |
NTSTATUS long
See win.h |
#define |
OEMRESOURCE
See win.h |
#define |
PO_TZ_INVALID_MODE 0
See win.h |
#define |
PROCESSOR_ARCHITECTURE_AMD64 9
See win.h |
#define |
SDL_BIG_ENDIAN 4321
See wsdl.h |
#define |
SDL_BUTTON_LMASK SDL_BUTTON(SDL_BUTTON_LEFT)
See wsdl.h |
#define |
SDL_BUTTON_MMASK SDL_BUTTON(SDL_BUTTON_MIDDLE)
See wsdl.h |
#define |
SDL_BUTTON_RMASK SDL_BUTTON(SDL_BUTTON_RIGHT)
See wsdl.h |
#define |
SDL_BYTEORDER SDL_LIL_ENDIAN
See wsdl.h |
#define |
SDL_DEFAULT_REPEAT_DELAY 500
See wsdl.h |
#define |
SDL_DEFAULT_REPEAT_INTERVAL 30
See wsdl.h |
#define |
SDL_FULLSCREEN 1
See wsdl.h |
#define |
SDL_GetError ""
See wsdl.h |
#define |
SDL_GRAB_ON 0
See wsdl.h |
#define |
SDL_INIT_AUDIO 0
See wsdl.h |
#define |
SDL_INIT_NOPARACHUTE 0
See wsdl.h |
#define |
SDL_INIT_TIMER 0
See wsdl.h |
#define |
SDL_INIT_VIDEO 0
See wsdl.h |
#define |
SDL_LIL_ENDIAN 1234
See wsdl.h |
#define |
SDL_OPENGL 0
See wsdl.h |
#define |
SDL_Swap16 _byteswap_ushort
See wsdl.h |
#define |
SDL_Swap32 _byteswap_ulong
See wsdl.h |
#define |
SDL_Swap64 _byteswap_uint64
See wsdl.h |
#define |
STATUS_SUCCESS 0
See win.h |
#define |
UNINDENT STMT(out_erase((state.level+1)*4))
See wdbg_sym.cpp |
#define |
USE_I64_FORMAT 0
See wprintf.cpp |
#define |
VC_EXTRALEAN
See win.h |
#define |
VK_0 '0'
See wsdl.cpp |
#define |
VK_A 'A'
See wsdl.cpp |
#define |
WARN_WIN32_ERR (void)LibError_from_GLE(true)
See wutil.h |
#define |
WIN32_LEAN_AND_MEAN
See win.h |
#define |
WIN_RESTORE_LAST_ERROR STMT(if(last_err__ != 0 && GetLastError() == 0) SetLastError(last_err__))
See wutil.h |
#define |
WIN_SAVE_LAST_ERROR DWORD last_err__ = GetLastError()
See wutil.h |
#define |
WINAPI __stdcall
See wgl.h |
#define |
WINGDIAPI __declspec(dllimport)
See wgl.h |
| Macro Summary | |
#define |
__in_bcount(s)
See win.h |
#define |
__in_ecount(s)
See win.h |
#define |
__inout_bcount(s)
See win.h |
#define |
__inout_ecount(s)
See win.h |
#define |
__out_bcount(s)
See win.h |
#define |
__out_ecount(s)
See win.h |
#define |
__out_xcount(s)
See win.h |
#define |
_T2(a) ((a<<8) | a)
See wprintf.cpp |
#define |
DECLARE_HANDLE(name) typedef HANDLE name
See wgl.h |
#define |
InterlockedExchangePointer(Target, Value) (PVOID)(uintptr_t)InterlockedExchange((PLONG)(Target), (LONG)(uintptr_t)(Value))
See win.h |
#define |
INTSIZE(n) ( (n + sizeof(int) - 1) & ~(sizeof(int) - 1) )
See wprintf.cpp |
#define |
readchar(x) if ((x = *format++) == '\0') { delete s goto finished_reading }
See wprintf.cpp |
#define |
SDL_BUTTON(b) (SDL_PRESSED << (b-1))
See wsdl.h |
#define |
SDL_EnableKeyRepeat(delay, interval)
See wsdl.h |
#define |
SDL_WM_GrabInput(a)
See wsdl.h |
#define |
SUPPRESS_HANDLE(name) if(!wcscmp(type_name, L#name L"__")) return true
See wdbg_sym.cpp |
#define |
VcppException(sev, err) ((sev) | (FACILITY_VISUALCPP<<16) | err)
See wdll_delay_load.cpp |
#define |
WDLL_ADD_NOTIFY(dll_name, funcSTMT(static WdllLoadNotify UID__ = { dll_name, func }wdll_add_notify(&UID__)
See wdll_delay_load.h |
#define |
WIN_ONCE(code{win_lock(ONCE_CSstatic) bool ONCE_init_ if(!ONCE_init_){ONCE_init_ = truecode}win_unlock(ONCE_CS)}
See wutil.h |
#define |
WINIT_REGISTER_CRITICAL_INIT(func) static LibError func(void) EXTERN_C __declspec(allocate(".WINIT$I0")) LibError (*p##func)(void) = func __pragma(comment(linker, "/include:_p"#func))
See winit.h |
#define |
WINIT_REGISTER_EARLY_INIT(func) static LibError func(void) EXTERN_C __declspec(allocate(".WINIT$I1")) LibError (*p##func)(void) = func __pragma(comment(linker, "/include:_p"#func))
See winit.h |
#define |
WINIT_REGISTER_EARLY_INIT2(func) static LibError func(void) EXTERN_C __declspec(allocate(".WINIT$I2")) LibError (*p##func)(void) = func __pragma(comment(linker, "/include:_p"#func))
See winit.h |
#define |
WINIT_REGISTER_EARLY_SHUTDOWN(func) static LibError func(void) EXTERN_C __declspec(allocate(".WINIT$S0")) LibError (*p##func)(void) = func __pragma(comment(linker, "/include:_p"#func))
See winit.h |
#define |
WINIT_REGISTER_EARLY_SHUTDOWN2(func) static LibError func(void) EXTERN_C __declspec(allocate(".WINIT$S1")) LibError (*p##func)(void) = func __pragma(comment(linker, "/include:_p"#func))
See winit.h |
#define |
WINIT_REGISTER_LATE_INIT(func) static LibError func(void) EXTERN_C __declspec(allocate(".WINIT$I7")) LibError (*p##func)(void) = func __pragma(comment(linker, "/include:_p"#func))
See winit.h |
#define |
WINIT_REGISTER_LATE_SHUTDOWN(func) static LibError func(void) EXTERN_C __declspec(allocate(".WINIT$S7")) LibError (*p##func)(void) = func __pragma(comment(linker, "/include:_p"#func))
See winit.h |
#define |
WINIT_REGISTER_LATE_SHUTDOWN2(func) static LibError func(void) EXTERN_C __declspec(allocate(".WINIT$S8")) LibError (*p##func)(void) = func __pragma(comment(linker, "/include:_p"#func))
See winit.h |
#define |
WINIT_REGISTER_MAIN_INIT(func) static LibError func(void) EXTERN_C __declspec(allocate(".WINIT$I6")) LibError (*p##func)(void) = func __pragma(comment(linker, "/include:_p"#func))
See winit.h |
#define |
WINIT_REGISTER_MAIN_SHUTDOWN(func) static LibError func(void) EXTERN_C __declspec(allocate(".WINIT$S6")) LibError (*p##func)(void) = func __pragma(comment(linker, "/include:_p"#func))
See winit.h |
| Field Detail |
extern "C" const IMAGE_DOS_HEADER __ImageBase;
EXTERN_C PfnDliHook __pfnDliFailureHook2;
EXTERN_C PfnDliHook __pfnDliNotifyHook2;
extern "C" PUnloadInfo __puiHead;
static PtrSet* already_visited_ptrs;
static const uint ANCHOR_ALL;
static const uint ANCHOR_BOTTOM;
static const uint ANCHOR_LEFT;
static const uint ANCHOR_RIGHT;
static const uint ANCHOR_TOP;
static uint app_state;
static DWORD brk_all_local_enables;
static BreakInfo brk_info;
static double clockFrequency;
static CRITICAL_SECTION cs[ NUM_CS ];
static bool cs_valid;
static u16 cur_ramp[ 3 ][ 256 ];
static const STACKFRAME64* current_stackframe64;
static int depth_bits;
static char directSoundDriverPath[ MAX_PATH + 1 ];
static POINTS dlg_client_origin;
static POINTS dlg_prev_client_size;
static DEVMODE dm;
static bool fullscreen;
static bool gamma_changed;
static HANDLE hAken;
static HDC hDC;
static HGLRC hGLRC;
static HINSTANCE hInst;
static HANDLE hIOCP;
static HHOOK hKeyboard_LL_Hook;
static HANDLE hProcess;
static HMODULE hUser32Dll;
HWND hWnd;
static ModuleInitState initState;
static bool is_quitting;
static bool isWow64;
static Uint8 keys[ SDLK_LAST ];
static intptr_t last_reqnum;
static WORD machine;
static const uint MAX_BREAKPOINTS;
static const uint MAX_INDIRECTION;
static const uint MAX_LEVEL;
static ULONG64 mod_base;
static uint mouse_buttons;
static uint mouse_x;
static uint mouse_y;
static WdllLoadNotify* notify_list;
static uint numProcessors;
static u16 org_ramp[ 3 ][ 256 ];
static size_t out_chars_left;
static bool out_have_warned_of_limit;
static bool out_have_warned_of_overflow;
static wchar_t* out_latched_pos;
static wchar_t* out_pos;
static Events* pending_events;
static BOOL( WINAPI* pIsWow64Process )( HANDLE, PBOOL );
static IWbemLocator* pLoc;
static VOID ( * pRtlCaptureContext )( PCONTEXT* );
static IWbemServices* pSvc;
static BOOL( WINAPI* pWow64DisableWow64FsRedirection )( PVOID* )= 0;
static BOOL( WINAPI* pWow64RevertWow64FsRedirection )( PVOID )= 0;
static Queue queue;
static char* ver_list_buf;
static size_t ver_list_chars;
static char* ver_list_pos;
static Watches* watches;
char win_exe_dir[ MAX_PATH + 1 ];
char win_sys_dir[ MAX_PATH + 1 ];
static uint windowsVersion;
static char windowsVersionString[ 20 ];
EXTERN_C int ( * wstartup_pInitAndRegisterShutdown )();
const uint WUTIL_VERSION_2K;
const uint WUTIL_VERSION_VISTA;
const uint WUTIL_VERSION_XP;
const uint WUTIL_VERSION_XP64;
| Method Detail |
__declspec( allocate(".WINIT$S$" ) ) PfnLibErrorVoid shutdownBegin = 0;
__declspec( allocate(".WINIT$IZ" ) ) PfnLibErrorVoid initEnd = 0;
__declspec( allocate(".WINIT$I$" ) ) PfnLibErrorVoid initBegin = 0;
__declspec( allocate(".WINIT$SZ" ) ) PfnLibErrorVoid shutdownEnd = 0;
extern "C" FARPROC WINAPI __delayLoadHelper2( PCImgDelayDescr pidd, FARPROC* ppfnIATEntry );
static void active_change_state( SdlActivationType type, uint changed_app_state );
static LibError add_oal_dlls_in_dir( const char* dir, StringSet* dlls );
static void AllocStaticObjects();
static const u8* array_iterator( void* internal, size_t el_size );
static LibError brk_disable_all_in_ctx( BreakInfo* UNUSED( bi ), CONTEXT* context );
static LibError brk_do_request( HANDLE hThread, void* arg );
static LibError brk_enable_in_ctx( BreakInfo* bi, CONTEXT* context );
static int CALLBACK browse_cb( HWND hWnd, unsigned int msg, LPARAM UNUSED( lParam ), LPARAM ldata );
static LibError calc_gamma_ramp( float gamma, u16* ramp );
static LibError call_while_suspended( WhileSuspendedFunc func, void* user_arg );
static void CallFunctionPointers( PfnLibErrorVoid* begin, PfnLibErrorVoid* end );
[begin, - end): STL-style range
note: pointers = 0 are ignored. this is because the above placeholders
are initialized to 0 and because the range may be larger than
expected due to COFF section padding (with zeroes).
static int CallStartupWithinTryBlock();
cassert( sizeof( pthread_t )== sizeof( SDL_Thread* ) );
inline unsigned CountOfImports( PCImgThunkData pitdBase );
LibError debug_dump_stack( wchar_t* buf, size_t max_chars, uint skip, void* pcontext );
void* debug_get_nth_caller( uint skip, void* pcontext );
void debug_heap_check();
void debug_heap_enable( DebugHeapChecks what );
bool debug_is_code_ptr( void* p );
int debug_is_pointer_bogus( const void* p );
bool debug_is_stack_ptr( void* p );
void debug_puts( const char* text );
LibError debug_remove_all_breaks();
LibError debug_resolve_symbol( void* ptr_of_interest, char* sym_name, char* file, int* line );
static LibError debug_resolve_symbol_lk( void* ptr_of_interest, char* sym_name, char* file, int* line );
LibError debug_set_break( void* p, DbgBreakType type );
static bool dequeue_event( SDL_Event* ev );
static void DetectClockFrequency();
static void DetectNumProcessors();
static void DetectWindowsVersion();
static void DetectWow64();
static LibError determine_symbol_address( DWORD id, DWORD UNUSED( type_id ), const u8** pp );
LibError dir_add_watch( const char* dir, intptr_t* preqnum );
LibError dir_cancel_watch( const intptr_t reqnum );
LibError dir_get_changed_file( char* fn );
static BOOL CALLBACK DirectSoundCallback( void* guid, const char* UNUSED( description ), const char* module, void* UNUSED( ctx ) );
static void dlg_resize( HWND hDlg, WPARAM wParam, LPARAM lParam );
static void dlg_resize_control( HWND hDlg, int dlg_item, int dx, int dy, uint anchors );
static LibError dump_array( const u8* p, size_t el_count, DWORD el_type_id, size_t el_size, DumpState state );
static void dump_error( LibError err, const u8* p );
static LibError dump_frame_cb( const STACKFRAME64* sf, void* UNUSED( user_arg ) );
static LibError dump_sequence( DebugIterator el_iterator, void* internal, size_t el_count, DWORD el_type_id, size_t el_size, DumpState state );
static LibError dump_string( const u8* p, size_t el_size );
static LibError dump_sym( DWORD type_id, const u8* p, DumpState state );
static LibError dump_sym_array( DWORD type_id, const u8* p, DumpState state );
static LibError dump_sym_base_class( DWORD type_id, const u8* p, DumpState state );
static LibError dump_sym_base_type( DWORD type_id, const u8* p, DumpState state );
static BOOL CALLBACK dump_sym_cb( SYMBOL_INFO* sym, ULONG UNUSED( size ), void* UNUSED( ctx ) );
static LibError dump_sym_data( DWORD id, const u8* p, DumpState state );
static LibError dump_sym_enum( DWORD type_id, const u8* p, DumpState UNUSED( state ) );
static LibError dump_sym_function( DWORD UNUSED( type_id ), const u8* UNUSED( p ), DumpState UNUSED( state ) );
static LibError dump_sym_function_type( DWORD UNUSED( type_id ), const u8* p, DumpState UNUSED( state ) );
static LibError dump_sym_pointer( DWORD type_id, const u8* p, DumpState state );
static LibError dump_sym_typedef( DWORD type_id, const u8* p, DumpState state );
static LibError dump_sym_udt( DWORD type_id, const u8* p, DumpState state );
static LibError dump_sym_unknown( DWORD type_id, const u8* UNUSED( p ), DumpState UNUSED( state ) );
static LibError dump_sym_vtable( DWORD UNUSED( type_id ), const u8* UNUSED( p ), DumpState UNUSED( state ) );
static void enable_kbd_hook( bool enable );
static void EnableLowFragmentationHeap();
static void EnableMemoryTracking();
static INT_PTR CALLBACK error_dialog_proc( HWND hDlg, unsigned int msg, WPARAM wParam, LPARAM lParam );
static void extract_events( Watch* w );
std::string flags_to_string( char flags );
static inline bool WINAPI FLoadedAtPreferredAddress( PIMAGE_NT_HEADERS pinh, HMODULE hmod );
static void ForciblyLoadUser32Dll();
static void FreeAllWatches();
static void FreeStaticObjects();
static void FreeUser32Dll();
static void gamma_swap( GammaAction action );
static HWND get_app_main_window();
int get_flag( TCHAR c );
static void get_packet();
static NT_TIB* get_tib();
static LibError get_ver( const char* module_path, char* out_ver, size_t out_ver_len );
static LibError get_ver_impl( const char* module_path, char* out_ver, size_t out_ver_len, void*& mem );
static const wchar_t* GetCppExceptionDescription( const EXCEPTION_RECORD* er, wchar_t* description, size_t maxChars );
er - an exception record for which IsCppException returned true.
static void GetDirectories();
static const char* GetDirectSoundDriverPath();
static void GetDriverPathname( char* driverPathname, size_t maxChars );
static const wchar_t* GetExceptionDescription( const EXCEPTION_POINTERS* ep, wchar_t* description, size_t maxChars );
static void GetExceptionLocus( const EXCEPTION_POINTERS* ep, char* file, int* line, char* func );
static const wchar_t* GetSehExceptionDescription( const EXCEPTION_RECORD* er, wchar_t* description, size_t maxChars );
int GetVRAMInfo( int& remaining, int& total );
LibError gfx_get_monitor_size( int& width_mm, int& height_mm );
LibError gfx_get_video_mode( int* xres, int* yres, int* bpp, int* freq );
static HCURSOR HCURSOR_from_ptr( void* p );
static HICON HICON_from_ptr( void* p );
static void ImportWow64Functions();
inline unsigned IndexFromPImgThunkData( PCImgThunkData pitdCur, PCImgThunkData pitdBase );
static void init_vkmap( SDLKey(& VK_keymap )[ 256] );
static void InitLocks();
static bool Is64BitOs();
static bool is_in_window( int client_x, int client_y );
int is_lengthmod( TCHAR c );
static bool is_string( const u8* p, size_t stride );
static BOOL CALLBACK is_this_our_window( HWND hWnd, LPARAM lParam );
static bool IsCppException( const EXCEPTION_RECORD* er );
static LibError IsOpenAlDll( const DirEnt* ent );
static LRESULT CALLBACK keyboard_ll_hook( int nCode, WPARAM wParam, LPARAM lParam );
LibError LibError_from_GLE( bool warn_if_failed = true );
LibError LibError_from_win32( DWORD ret, bool warn_if_failed );
static void lock();
bool mahaf_Init();
volatile void* mahaf_MapPhysicalMemory( uintptr_t physicalAddress, size_t numBytes );
u16 mahaf_ReadPort16( u16 port );
u32 mahaf_ReadPort32( u16 port );
u8 mahaf_ReadPort8( u16 port );
void mahaf_Shutdown();
void mahaf_UnmapPhysicalMemory( volatile void* virtualAddress );
void mahaf_WritePort16( u16 port, u16 value );
void mahaf_WritePort32( u16 port, u32 value );
void mahaf_WritePort8( u16 port, u8 value );
EXTERN_C int mainCRTStartup();
static void mouse_moved( uint x, uint y );
static void mouse_update();
static FARPROC WINAPI notify_hook( unsigned dliNotify, PDelayLoadInfo pdli );
static LibError nth_caller_cb( const STACKFRAME64* sf, void* user_arg );
static LRESULT OnActivate( HWND hWnd, UINT state, HWND UNUSED( hWndActDeact ), BOOL fMinimized );
static LRESULT OnKey( HWND UNUSED( hWnd ), UINT vk, BOOL fDown, int UNUSED( cRepeat ), UINT flags );
static LRESULT OnMouseButton( HWND UNUSED( hWnd ), UINT uMsg, int screen_x, int screen_y, UINT UNUSED( flags ) );
static LRESULT OnMouseWheel( HWND UNUSED( hWnd ), int screen_x, int screen_y, int zDelta, UINT UNUSED( fwKeys ) );
static SC_HANDLE OpenServiceControlManager();
static void out( const wchar_t* fmt,... );
static LibError out_check_limit();
static void out_erase( size_t num_chars );
static void out_init( wchar_t* buf, size_t max_chars );
static void out_latch_pos();
static inline void WINAPI OverlayIAT( PImgThunkData pitdDst, PCImgThunkData pitdSrc );
template< class X > X PFromRva( RVA rva );
static inline PIMAGE_NT_HEADERS WINAPI PinhFromImageBase( HMODULE hmod );
static bool ptr_already_visited( const u8* p );
static void* ptr_from_HCURSOR( HCURSOR hCursor );
static void* ptr_from_HICON( HICON hIcon );
static void ptr_reset_visited();
static inline void queue_active_event( SdlActivationType type, uint changed_app_state );
static void queue_button_event( uint button, uint state, uint x, uint y );
static void queue_event( const SDL_Event& ev );
static void queue_key_event( uint type, uint sdlk, WCHAR unicode_char );
static void queue_mouse_event( uint x, uint y );
static void queue_quit_event();
static u32 ReadPort( u16 port, u8 numBytes );
static void reset_all_keys();
static void screen_to_client( int screen_x, int screen_y, int& client_x, int& client_y );
SDL_sem* SDL_CreateSemaphore( int cnt );
SDL_Thread* SDL_CreateThread( int ( * func )( void* ), void* param );
inline void SDL_Delay( Uint32 ms );
inline void SDL_DestroySemaphore( SDL_sem* sem );
int SDL_EnableUNICODE( int UNUSED( enable ) );
Uint8 SDL_GetAppState();
Uint8* SDL_GetKeyState( int* num_keys );
Uint8 SDL_GetMouseState( int* x, int* y );
inline u32 SDL_GetTicks();
SDL_VideoInfo* SDL_GetVideoInfo();
SDL_Surface* SDL_GetVideoSurface();
inline void* SDL_GL_GetProcAddress( const char* name );
int SDL_GL_SetAttribute( SDL_GLattr attr, int value );
void SDL_GL_SwapBuffers();
int SDL_Init( Uint32 UNUSED( flags ) );
int SDL_KillThread( SDL_Thread* thread );
int SDL_PollEvent( SDL_Event* ev );
void SDL_PumpEvents( void );
int SDL_PushEvent( SDL_Event* ev );
void SDL_Quit();
int SDL_SemPost( SDL_sem* sem );
int SDL_SemWait( SDL_sem* sem );
int SDL_SetGamma( float r, float g, float b );
int SDL_SetVideoMode( int w, int h, int bpp, unsigned long flags );
int SDL_ShowCursor( int toggle );
u16 SDL_Swap16( const u16 x );
u32 SDL_Swap32( const u32 x );
u64 SDL_Swap64( const u64 x );
inline void SDL_WarpMouse( int x, int y );
void SDL_WM_SetCaption( const char* title, const char* icon );
static void seq_determine_formatting( size_t el_size, size_t el_count, bool* fits_on_one_line, size_t* num_elements_to_show );
static void ShutdownLocks();
static void skip_this_frame( uint& skip, void* context );
static void StartDriver( const char* driverPathname );
static const wchar_t* string_for_register( CV_HREG_e reg );
static LibError sym_init();
static LibError sym_shutdown();
LibError sys_clipboard_free( wchar_t* copy );
wchar_t* sys_clipboard_get();
LibError sys_clipboard_set( const wchar_t* text );
LibError sys_cursor_create( uint w, uint h, void* bgra_img, uint hx, uint hy, void** cursor );
LibError sys_cursor_create_empty( void** cursor );
LibError sys_cursor_free( void* cursor );
LibError sys_cursor_set( void* cursor );
ErrorReaction sys_display_error( const wchar_t* text, uint flags );
void sys_display_msg( const char* caption, const char* msg );
void sys_display_msgw( const wchar_t* caption, const wchar_t* msg );
LibError sys_error_description_r( int user_err, char* buf, size_t max_chars );
inline LibError sys_get_executable_name( char* n_path, size_t buf_size );
wchar_t* sys_get_module_filename( void* addr, wchar_t* path );
LibError sys_pick_directory( char* path, size_t buf_size );
int sys_vsnprintf( TCHAR* buffer, size_t count, const TCHAR* format, va_list argptr );
static inline DWORD WINAPI TimeStampOfImage( PIMAGE_NT_HEADERS pinh );
template< typename T > std::string to_string( T n );
int type_size( TCHAR type, int length );
static LibError udt_dump_normal( const wchar_t* type_name, const u8* p, size_t size, DumpState state, ULONG num_children, const DWORD* children );
static LibError udt_dump_std( const wchar_t* wtype_name, const u8* p, size_t size, DumpState state, ULONG num_children, const DWORD* children );
static LibError udt_dump_suppressed( const wchar_t* type_name, const u8* UNUSED( p ), size_t UNUSED( size ), DumpState state, ULONG UNUSED( num_children ), const DWORD* UNUSED( children ) );
static bool udt_fits_on_one_line( const wchar_t* type_name, size_t child_count, size_t total_size );
static LibError udt_get_child_type( const wchar_t* child_name, ULONG num_children, const DWORD* children, DWORD* el_type_id, size_t* el_size );
static bool udt_should_suppress( const wchar_t* type_name );
static void UninstallDriver();
static void UnloadAllDlls();
static void unlock();
static inline void video_enter_game_mode();
static inline void video_leave_game_mode();
static bool video_need_change( int w, int h, int cur_w, int cur_h, bool fullscreen );
static void video_shutdown();
inline SDLKey vkmap( int vk );
static LibError walk_stack( StackFrameCallback cb, void* user_arg = 0, uint skip = 0, const CONTEXT* pcontext = 0 );
static Watch* WatchFromReqnum( intptr_t reqnum );
LibError wcpu_CallByEachCPU( CpuCallback cb, void* param );
double wcpu_ClockFrequency();
static LibError wcpu_Init();
uint wcpu_NumProcessors();
void wdbg_set_thread_name( const char* name );
static LibError wdbg_sym_Init();
static LibError wdbg_sym_Shutdown();
void wdbg_sym_write_minidump( EXCEPTION_POINTERS* exception_pointers );
static LibError wdir_watch_Init();
static LibError wdir_watch_Shutdown();
void wdll_add_notify( WdllLoadNotify* notify );
static LibError wdll_Shutdown();
LibError wdll_ver_list_add( const char* name );
void wdll_ver_list_init( char* buf, size_t chars );
__declspec( dllimport ) BOOL __stdcall wglCopyContext( HGLRC, HGLRC, UINT );
__declspec( dllimport ) HGLRC __stdcall wglCreateContext( HDC );
__declspec( dllimport ) HGLRC __stdcall wglCreateLayerContext( HDC, int );
__declspec( dllimport ) BOOL __stdcall wglDeleteContext( HGLRC );
__declspec( dllimport ) HGLRC __stdcall wglGetCurrentContext( void );
__declspec( dllimport ) HDC __stdcall wglGetCurrentDC( void );
__declspec( dllimport ) PROC __stdcall wglGetProcAddress( LPCSTR );
__declspec( dllimport ) BOOL __stdcall wglMakeCurrent( HDC, HGLRC );
__declspec( dllimport ) BOOL __stdcall wglShareLists( HGLRC, HGLRC );
__declspec( dllimport ) BOOL __stdcall wglUseFontBitmapsA( HDC, DWORD, DWORD, DWORD );
__declspec( dllimport ) BOOL __stdcall wglUseFontBitmapsW( HDC, DWORD, DWORD, DWORD );
static void* while_suspended_thread_func( void* user_arg );
void* win_alloc( size_t size );
void win_free( void* p );
static LibError win_get_gfx_card();
static LibError win_get_gfx_drv_ver();
LibError win_get_gfx_info();
LibError win_get_snd_info();
int win_is_locked( uint idx );
void win_lock( uint idx );
void win_unlock( uint idx );
void winit_CallInitFunctions();
void winit_CallShutdownFunctions();
WINIT_REGISTER_EARLY_INIT( wmi_Init );
WINIT_REGISTER_EARLY_INIT( wutil_Init );
WINIT_REGISTER_EARLY_INIT( wcpu_Init );
WINIT_REGISTER_EARLY_SHUTDOWN( wsdl_Shutdown );
WINIT_REGISTER_EARLY_SHUTDOWN( wmi_Shutdown );
WINIT_REGISTER_LATE_INIT( wsdl_Init );
WINIT_REGISTER_LATE_SHUTDOWN( wutil_Shutdown );
WINIT_REGISTER_LATE_SHUTDOWN2( wdll_Shutdown );
WINIT_REGISTER_MAIN_INIT( wdbg_sym_Init );
WINIT_REGISTER_MAIN_INIT( wdir_watch_Init );
WINIT_REGISTER_MAIN_SHUTDOWN( wdbg_sym_Shutdown );
WINIT_REGISTER_MAIN_SHUTDOWN( wdir_watch_Shutdown );
LibError wmi_GetClass( const char* className, WmiMap& wmiMap );
static LibError wmi_Init();
static LibError wmi_Shutdown();
static LRESULT CALLBACK wndproc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
static void WritePort( u16 port, u32 value, u8 numBytes );
static LibError wsdl_Init();
static LibError wsdl_Shutdown();
EXTERN_C int wseh_EntryPoint();
LONG WINAPI wseh_ExceptionFilter( EXCEPTION_POINTERS* ep );
EXTERN_C int wstartup_InitAndRegisterShutdown();
void wutil_DisableWow64Redirection( void*& wasRedirectionEnabled );
static LibError wutil_Init();
bool wutil_IsWow64();
void wutil_RevertWow64Redirection( void* wasRedirectionEnabled );
static LibError wutil_Shutdown();
const char* wutil_WindowsFamily();
uint wutil_WindowsVersion();
const char* wutil_WindowsVersionString();
| Symbol Detail |
#define __deref_opt_out
#define __deref_out
#define __in
#define __in_opt
#define __inout
#define __inout_opt
#define __out
#define __out_opt
#define __specstrings
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1003
#define _APS_NEXT_RESOURCE_VALUE 102
#define _APS_NEXT_SYMED_VALUE 101
#define _APS_NO_MFC 1
#define _NO_CVCONST_H
#define _WCHAR_T_DEFINED
#define _WIN32_DCOM
#define _WIN32_WINNT 0x0501
#define _WINSOCKAPI_
#define APIENTRY __stdcall
#define CALLBACK __stdcall
#define DDRAW
#define debug_break __asm { int 3 }
#define DS_OK 0
#define DWORD_PTR DWORD
#define FACILITY_VISUALCPP ((LONG)0x6d)
#define IDC_BREAK 2002
#define IDC_CONTINUE 2000
#define IDC_COPY 1002
#define IDC_EDIT1 1001
#define IDC_EXIT 2003
#define IDC_SUPPRESS 2001
#define IDD_DIALOG1 101
#define INCLUDED_MAHAF
#define INCLUDED_WCPU
#define INCLUDED_WDBG
#define INCLUDED_WDBG_SYM
#define INCLUDED_WDLL_DELAY_LOAD
#define INCLUDED_WDLL_VER
#define INCLUDED_WIN
#define INCLUDED_WINIT
#define INCLUDED_WMI
#define INCLUDED_WSDL
#define INCLUDED_WSEH
#define INCLUDED_WUTIL
#define INDENT STMT(for(uint i = 0; i <= state.level; i++) out(L" ");)
#define INVALID_FILE_ATTRIBUTES ((DWORD)-1)
#define NEED_COOKIE_INIT
#define NOATOM
#define NODEFERWINDOWPOS
#define NODRAWTEXT
#define NOGDICAPMASKS
#define NOHELP
#define NOKANJI
#define NOKEYSTATES
#define NOMCX
#define NOMEMMGR
#define NOMENUS
#define NOMETAFILE
#define NOMINMAX
#define NONLS
#define NOOPENFILE
#define NOPROFILER
#define NORASTEROPS
#define NOSCROLL
#define NOTEXTMETRIC
#define NTSTATUS long
#define OEMRESOURCE
#define PO_TZ_INVALID_MODE 0
#define PROCESSOR_ARCHITECTURE_AMD64 9
#define SDL_BIG_ENDIAN 4321
#define SDL_BUTTON_LMASK SDL_BUTTON(SDL_BUTTON_LEFT)
#define SDL_BUTTON_MMASK SDL_BUTTON(SDL_BUTTON_MIDDLE)
#define SDL_BUTTON_RMASK SDL_BUTTON(SDL_BUTTON_RIGHT)
#define SDL_BYTEORDER SDL_LIL_ENDIAN
#define SDL_DEFAULT_REPEAT_DELAY 500
#define SDL_DEFAULT_REPEAT_INTERVAL 30
#define SDL_FULLSCREEN 1
#define SDL_GetError ""
#define SDL_GRAB_ON 0
#define SDL_INIT_AUDIO 0
#define SDL_INIT_NOPARACHUTE 0
#define SDL_INIT_TIMER 0
#define SDL_INIT_VIDEO 0
#define SDL_LIL_ENDIAN 1234
#define SDL_OPENGL 0
#define SDL_Swap16 _byteswap_ushort
#define SDL_Swap32 _byteswap_ulong
#define SDL_Swap64 _byteswap_uint64
#define STATUS_SUCCESS 0
#define UNINDENT STMT(out_erase((state.level+1)*4);)
#define USE_I64_FORMAT 0
#define VC_EXTRALEAN
#define VK_0 '0'
#define VK_A 'A'
#define WARN_WIN32_ERR (void)LibError_from_GLE(true)
#define WIN32_LEAN_AND_MEAN
#define WIN_RESTORE_LAST_ERROR STMT(if(last_err__ != 0 && GetLastError() == 0) SetLastError(last_err__););
#define WIN_SAVE_LAST_ERROR DWORD last_err__ = GetLastError();
#define WINAPI __stdcall
#define WINGDIAPI __declspec(dllimport)
| Macro Detail |
#define __in_bcount(s)
#define __in_ecount(s)
#define __inout_bcount(s)
#define __inout_ecount(s)
#define __out_bcount(s)
#define __out_ecount(s)
#define __out_xcount(s)
#define _T2(a) ((a<<8) | a)
#define DECLARE_HANDLE(name) typedef HANDLE name
#define InterlockedExchangePointer(Target, Value) (PVOID)(uintptr_t)InterlockedExchange((PLONG)(Target), (LONG)(uintptr_t)(Value))
#define INTSIZE(n) ( (n + sizeof(int) - 1) & ~(sizeof(int) - 1) )
#define readchar(x) if ((x = *format++) == '\0') { delete s; goto finished_reading; }
#define SDL_BUTTON(b) (SDL_PRESSED << (b-1))
#define SDL_EnableKeyRepeat(delay, interval)
#define SDL_WM_GrabInput(a)
#define SUPPRESS_HANDLE(name) if(!wcscmp(type_name, L#name L"__")) return true;
#define VcppException(sev, err) ((sev) | (FACILITY_VISUALCPP<<16) | err)
#define WDLL_ADD_NOTIFY(dll_name, funcSTMT(static WdllLoadNotify UID__ = { dll_name, func };wdll_add_notify(&UID__;)
#define WIN_ONCE(code{win_lock(ONCE_CS;static) bool ONCE_init_; if(!ONCE_init_){ONCE_init_ = true;code;}win_unlock(ONCE_CS);}
#define WINIT_REGISTER_CRITICAL_INIT(func) static LibError func(void); EXTERN_C __declspec(allocate(".WINIT$I0")) LibError (*p##func)(void) = func; __pragma(comment(linker, "/include:_p"#func))
#define WINIT_REGISTER_EARLY_INIT(func) static LibError func(void); EXTERN_C __declspec(allocate(".WINIT$I1")) LibError (*p##func)(void) = func; __pragma(comment(linker, "/include:_p"#func))
#define WINIT_REGISTER_EARLY_INIT2(func) static LibError func(void); EXTERN_C __declspec(allocate(".WINIT$I2")) LibError (*p##func)(void) = func; __pragma(comment(linker, "/include:_p"#func))
#define WINIT_REGISTER_EARLY_SHUTDOWN(func) static LibError func(void); EXTERN_C __declspec(allocate(".WINIT$S0")) LibError (*p##func)(void) = func; __pragma(comment(linker, "/include:_p"#func))
#define WINIT_REGISTER_EARLY_SHUTDOWN2(func) static LibError func(void); EXTERN_C __declspec(allocate(".WINIT$S1")) LibError (*p##func)(void) = func; __pragma(comment(linker, "/include:_p"#func))
#define WINIT_REGISTER_LATE_INIT(func) static LibError func(void); EXTERN_C __declspec(allocate(".WINIT$I7")) LibError (*p##func)(void) = func; __pragma(comment(linker, "/include:_p"#func))
#define WINIT_REGISTER_LATE_SHUTDOWN(func) static LibError func(void); EXTERN_C __declspec(allocate(".WINIT$S7")) LibError (*p##func)(void) = func; __pragma(comment(linker, "/include:_p"#func))
#define WINIT_REGISTER_LATE_SHUTDOWN2(func) static LibError func(void); EXTERN_C __declspec(allocate(".WINIT$S8")) LibError (*p##func)(void) = func; __pragma(comment(linker, "/include:_p"#func))
#define WINIT_REGISTER_MAIN_INIT(func) static LibError func(void); EXTERN_C __declspec(allocate(".WINIT$I6")) LibError (*p##func)(void) = func; __pragma(comment(linker, "/include:_p"#func))
#define WINIT_REGISTER_MAIN_SHUTDOWN(func) static LibError func(void); EXTERN_C __declspec(allocate(".WINIT$S6")) LibError (*p##func)(void) = func; __pragma(comment(linker, "/include:_p"#func))
|
0 A.D.
Generated on September 04, 2007 at 18:13 CppDoc v2.4.0 |
|||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||