Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

lib.sysdep.win
(lib.sysdep.win globals)

   in error_dialog.h
   in mahaf.h
   in wcpu.h
   in wdbg.h
   in wdbg_sym.h
   in wdll_delay_load.h
   in wdll_ver.h
   in wgl.h
   in win.h
   in winit.h
   in wmi.h
   in wsdl.h
   in wseh.h
   in wutil.h
   in wgl.h
   in wseh.h
   in wutil.h
   in wdbg_sym.cpp
   in wdll_delay_load.cpp
   in wprintf.cpp
   in wsdl.cpp
   in wseh.cpp
   in wsnd.cpp
   in mahaf.cpp
   in wcpu.cpp
   in wdbg.cpp
   in wdbg_sym.cpp
   in wdir_watch.cpp
   in wdll_delay_load.cpp
   in wdll_ver.cpp
   in wgfx.cpp
   in winit.cpp
   in wmi.cpp
   in wprintf.cpp
   in wsdl.cpp
   in wseh.cpp
   in wsnd.cpp
   in wstartup.cpp
   in wsysdep.cpp
   in wutil.cpp

(lib.sysdep.win globals)


Field Summary
 extern "C" const IMAGE_DOS_HEADER __ImageBase
          See wdll_delay_load.cpp
 EXTERN_C PfnDliHook __pfnDliFailureHook2
          See wdll_delay_load.cpp
 EXTERN_C PfnDliHook __pfnDliNotifyHook2
          See wdll_delay_load.cpp
 extern "C" PUnloadInfo __puiHead
          See wdll_delay_load.cpp
 static PtrSet* already_visited_ptrs
          See wdbg_sym.cpp
 static const uint ANCHOR_ALL
          See wsysdep.cpp
 static const uint ANCHOR_BOTTOM
          See wsysdep.cpp
 static const uint ANCHOR_LEFT
          See wsysdep.cpp
 static const uint ANCHOR_RIGHT
          See wsysdep.cpp
 static const uint ANCHOR_TOP
          See wsysdep.cpp
 static uint app_state
          See wsdl.cpp
 static DWORD brk_all_local_enables
          See wdbg.cpp
 static BreakInfo brk_info
          See wdbg.cpp
 static double clockFrequency
          See wcpu.cpp
 static CRITICAL_SECTION[ NUM_CS ] cs
          See wutil.cpp
 static bool cs_valid
          See wutil.cpp
 static u16[ 3 ][ 256 ] cur_ramp
          See wsdl.cpp
 static const STACKFRAME64* current_stackframe64
          See wdbg_sym.cpp
 static int depth_bits
          See wsdl.cpp
 static char[ MAX_PATH + 1 ] directSoundDriverPath
          See wsnd.cpp
 static POINTS dlg_client_origin
          See wsysdep.cpp
 static POINTS dlg_prev_client_size
          See wsysdep.cpp
 static DEVMODE dm
          See wsdl.cpp
 static bool fullscreen
          See wsdl.cpp
 static bool gamma_changed
          See wsdl.cpp
 static HANDLE hAken
          ========================================================================= File : mahaf.
 static HDC hDC
          See wsdl.cpp
 static HGLRC hGLRC
          See wsdl.cpp
 static HINSTANCE hInst
          See wsdl.cpp
 static HANDLE hIOCP
          See wdir_watch.cpp
 static HHOOK hKeyboard_LL_Hook
          See wsdl.cpp
 static HANDLE hProcess
          See wdbg_sym.cpp
 static HMODULE hUser32Dll
          See wutil.cpp
 HWND hWnd
          See wsdl.cpp
 static ModuleInitState initState
          See mahaf.cpp
 static bool is_quitting
          See wsdl.cpp
 static bool isWow64
          See wutil.cpp
 static Uint8[ SDLK_LAST ] keys
          See wsdl.cpp
 static intptr_t last_reqnum
          See wdir_watch.cpp
 static WORD machine
          See wdbg_sym.cpp
 static const uint MAX_BREAKPOINTS
          See wdbg.cpp
 static const uint MAX_INDIRECTION
          See wdbg_sym.cpp
 static const uint MAX_LEVEL
          See wdbg_sym.cpp
 static ULONG64 mod_base
          See wdbg_sym.cpp
 static uint mouse_buttons
          See wsdl.cpp
 static uint mouse_x
          See wsdl.cpp
 static uint mouse_y
          See wsdl.cpp
 static WdllLoadNotify* notify_list
          See wdll_delay_load.cpp
 static uint numProcessors
          get number of CPUs (can't fail)
 static u16[ 3 ][ 256 ] org_ramp
          See wsdl.cpp
 static size_t out_chars_left
          See wdbg_sym.cpp
 static bool out_have_warned_of_limit
          See wdbg_sym.cpp
 static bool out_have_warned_of_overflow
          See wdbg_sym.cpp
 static wchar_t* out_latched_pos
          See wdbg_sym.cpp
 static wchar_t* out_pos
          See wdbg_sym.cpp
 static Events* pending_events
          See wdir_watch.cpp
 static BOOL( WINAPI* )( HANDLE, PBOOL ) pIsWow64Process
          See wutil.cpp
 static IWbemLocator* pLoc
          See wmi.cpp
 static VOID ( * )( PCONTEXT* ) pRtlCaptureContext
          See wdbg_sym.cpp
 static IWbemServices* pSvc
          See wmi.cpp
 static BOOL( WINAPI* )( PVOID* )= 0 pWow64DisableWow64FsRedirection
          See wutil.cpp
 static BOOL( WINAPI* )( PVOID )= 0 pWow64RevertWow64FsRedirection
          See wutil.cpp
 static Queue queue
          See wsdl.cpp
 static char* ver_list_buf
          See wdll_ver.cpp
 static size_t ver_list_chars
          See wdll_ver.cpp
 static char* ver_list_pos
          See wdll_ver.cpp
 static Watches* watches
          See wdir_watch.cpp
 char[ MAX_PATH + 1 ] win_exe_dir
          See wutil.cpp
 char[ MAX_PATH + 1 ] win_sys_dir
          See wutil.cpp
 static uint windowsVersion
          See wutil.cpp
 static char[ 20 ] windowsVersionString
          See wutil.cpp
 EXTERN_C int ( * )() wstartup_pInitAndRegisterShutdown
          See wstartup.cpp
 const uint WUTIL_VERSION_2K
          See wutil.h
 const uint WUTIL_VERSION_VISTA
          See wutil.h
 const uint WUTIL_VERSION_XP
          See wutil.h
 const uint WUTIL_VERSION_XP64
          See wutil.h
 
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

__ImageBase

 extern "C" const IMAGE_DOS_HEADER __ImageBase;
See wdll_delay_load.cpp.

__pfnDliFailureHook2

 EXTERN_C PfnDliHook __pfnDliFailureHook2;
See wdll_delay_load.cpp.

__pfnDliNotifyHook2

 EXTERN_C PfnDliHook __pfnDliNotifyHook2;
See wdll_delay_load.cpp.

__puiHead

 extern "C" PUnloadInfo __puiHead;
See wdll_delay_load.cpp.

already_visited_ptrs

 static PtrSet* already_visited_ptrs;
See wdbg_sym.cpp.

ANCHOR_ALL

 static const uint ANCHOR_ALL;
See wsysdep.cpp.

ANCHOR_BOTTOM

 static const uint ANCHOR_BOTTOM;
See wsysdep.cpp.

ANCHOR_LEFT

 static const uint ANCHOR_LEFT;
See wsysdep.cpp.

ANCHOR_RIGHT

 static const uint ANCHOR_RIGHT;
See wsysdep.cpp.

ANCHOR_TOP

 static const uint ANCHOR_TOP;
See wsysdep.cpp.

app_state

 static uint app_state;
See wsdl.cpp.

brk_all_local_enables

 static DWORD brk_all_local_enables;
See wdbg.cpp.

brk_info

 static BreakInfo brk_info;
See wdbg.cpp.

clockFrequency

 static double clockFrequency;
See wcpu.cpp.

cs

 static CRITICAL_SECTION cs[ NUM_CS ];
See wutil.cpp.

cs_valid

 static bool cs_valid;
See wutil.cpp.

cur_ramp

 static u16 cur_ramp[ 3 ][ 256 ];
See wsdl.cpp.

current_stackframe64

 static const STACKFRAME64* current_stackframe64;
See wdbg_sym.cpp.

depth_bits

 static int depth_bits;
See wsdl.cpp.

directSoundDriverPath

 static char directSoundDriverPath[ MAX_PATH + 1 ];
See wsnd.cpp.

dlg_client_origin

 static POINTS dlg_client_origin;
See wsysdep.cpp.

dlg_prev_client_size

 static POINTS dlg_prev_client_size;
See wsysdep.cpp.

dm

 static DEVMODE dm;
See wsdl.cpp.

fullscreen

 static bool fullscreen;
See wsdl.cpp.

gamma_changed

 static bool gamma_changed;
See wsdl.cpp.

hAken

 static HANDLE hAken;
========================================================================= File : mahaf.cpp Project : 0 A.D. Description : user-mode interface to Aken driver =========================================================================
See mahaf.cpp.

hDC

 static HDC hDC;
See wsdl.cpp.

hGLRC

 static HGLRC hGLRC;
See wsdl.cpp.

hInst

 static HINSTANCE hInst;
See wsdl.cpp.

hIOCP

 static HANDLE hIOCP;
See wdir_watch.cpp.

hKeyboard_LL_Hook

 static HHOOK hKeyboard_LL_Hook;
See wsdl.cpp.

hProcess

 static HANDLE hProcess;
See wdbg_sym.cpp.

hUser32Dll

 static HMODULE hUser32Dll;
See wutil.cpp.

hWnd

 HWND hWnd;
See wsdl.cpp.

initState

 static ModuleInitState initState;
See mahaf.cpp.

is_quitting

 static bool is_quitting;
See wsdl.cpp.

isWow64

 static bool isWow64;
See wutil.cpp.

keys

 static Uint8 keys[ SDLK_LAST ];
See wsdl.cpp.

last_reqnum

 static intptr_t last_reqnum;
See wdir_watch.cpp.

machine

 static WORD machine;
See wdbg_sym.cpp.

MAX_BREAKPOINTS

 static const uint MAX_BREAKPOINTS;
See wdbg.cpp.

MAX_INDIRECTION

 static const uint MAX_INDIRECTION;
See wdbg_sym.cpp.

MAX_LEVEL

 static const uint MAX_LEVEL;
See wdbg_sym.cpp.

mod_base

 static ULONG64 mod_base;
See wdbg_sym.cpp.

mouse_buttons

 static uint mouse_buttons;
See wsdl.cpp.

mouse_x

 static uint mouse_x;
See wsdl.cpp.

mouse_y

 static uint mouse_y;
See wsdl.cpp.

notify_list

 static WdllLoadNotify* notify_list;
See wdll_delay_load.cpp.

numProcessors

 static uint numProcessors;
get number of CPUs (can't fail)
See wcpu.cpp.

org_ramp

 static u16 org_ramp[ 3 ][ 256 ];
See wsdl.cpp.

out_chars_left

 static size_t out_chars_left;
See wdbg_sym.cpp.

out_have_warned_of_limit

 static bool out_have_warned_of_limit;
See wdbg_sym.cpp.

out_have_warned_of_overflow

 static bool out_have_warned_of_overflow;
See wdbg_sym.cpp.

out_latched_pos

 static wchar_t* out_latched_pos;
See wdbg_sym.cpp.

out_pos

 static wchar_t* out_pos;
See wdbg_sym.cpp.

pending_events

 static Events* pending_events;
See wdir_watch.cpp.

pIsWow64Process

 static BOOL( WINAPI* pIsWow64Process )( HANDLE, PBOOL );
See wutil.cpp.

pLoc

 static IWbemLocator* pLoc;
See wmi.cpp.

pRtlCaptureContext

 static VOID ( * pRtlCaptureContext )( PCONTEXT* );
See wdbg_sym.cpp.

pSvc

 static IWbemServices* pSvc;
See wmi.cpp.

pWow64DisableWow64FsRedirection

 static BOOL( WINAPI* pWow64DisableWow64FsRedirection )( PVOID* )= 0;
See wutil.cpp.

pWow64RevertWow64FsRedirection

 static BOOL( WINAPI* pWow64RevertWow64FsRedirection )( PVOID )= 0;
See wutil.cpp.

queue

 static Queue queue;
See wsdl.cpp.

ver_list_buf

 static char* ver_list_buf;
See wdll_ver.cpp.

ver_list_chars

 static size_t ver_list_chars;
See wdll_ver.cpp.

ver_list_pos

 static char* ver_list_pos;
See wdll_ver.cpp.

watches

 static Watches* watches;
See wdir_watch.cpp.

win_exe_dir

 char win_exe_dir[ MAX_PATH + 1 ];
See wutil.cpp.

win_sys_dir

 char win_sys_dir[ MAX_PATH + 1 ];
See wutil.cpp.

windowsVersion

 static uint windowsVersion;
See wutil.cpp.

windowsVersionString

 static char windowsVersionString[ 20 ];
See wutil.cpp.

wstartup_pInitAndRegisterShutdown

 EXTERN_C int ( * wstartup_pInitAndRegisterShutdown )();
See wstartup.cpp.

WUTIL_VERSION_2K

 const uint WUTIL_VERSION_2K;
See wutil.h.

WUTIL_VERSION_VISTA

 const uint WUTIL_VERSION_VISTA;
See wutil.h.

WUTIL_VERSION_XP

 const uint WUTIL_VERSION_XP;
See wutil.h.

WUTIL_VERSION_XP64

 const uint WUTIL_VERSION_XP64;
See wutil.h.


Method Detail

__declspec

 __declspec( allocate(".WINIT$S$" ) ) PfnLibErrorVoid shutdownBegin = 0;
See winit.cpp.

__declspec

 __declspec( allocate(".WINIT$IZ" ) ) PfnLibErrorVoid initEnd = 0;
See winit.cpp.

__declspec

 __declspec( allocate(".WINIT$I$" ) ) PfnLibErrorVoid initBegin = 0;
See winit.cpp.

__declspec

 __declspec( allocate(".WINIT$SZ" ) ) PfnLibErrorVoid shutdownEnd = 0;
See winit.cpp.

__delayLoadHelper2

 extern "C" FARPROC WINAPI __delayLoadHelper2( PCImgDelayDescr pidd, FARPROC* ppfnIATEntry );
See wdll_delay_load.cpp.

active_change_state

 static void active_change_state( SdlActivationType type, uint changed_app_state );
See wsdl.cpp.

add_oal_dlls_in_dir

 static LibError add_oal_dlls_in_dir( const char* dir, StringSet* dlls );
See wsnd.cpp.

AllocStaticObjects

 static void AllocStaticObjects();
See wdir_watch.cpp.

array_iterator

 static const u8* array_iterator( void* internal, size_t el_size );
See wdbg_sym.cpp.

brk_disable_all_in_ctx

 static LibError brk_disable_all_in_ctx( BreakInfo* UNUSED( bi ), CONTEXT* context );
See wdbg.cpp.

brk_do_request

 static LibError brk_do_request( HANDLE hThread, void* arg );
See wdbg.cpp.

brk_enable_in_ctx

 static LibError brk_enable_in_ctx( BreakInfo* bi, CONTEXT* context );
See wdbg.cpp.

browse_cb

 static int CALLBACK browse_cb( HWND hWnd, unsigned int msg, LPARAM UNUSED( lParam ), LPARAM ldata );
See wsysdep.cpp.

calc_gamma_ramp

 static LibError calc_gamma_ramp( float gamma, u16* ramp );
See wsdl.cpp.

call_while_suspended

 static LibError call_while_suspended( WhileSuspendedFunc func, void* user_arg );
See wdbg.cpp.

CallFunctionPointers

 static void CallFunctionPointers( PfnLibErrorVoid* begin, PfnLibErrorVoid* end );
call into a range of function pointers.
Parameters:
[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).
See winit.cpp.

CallStartupWithinTryBlock

 static int CallStartupWithinTryBlock();
See wseh.cpp.

cassert

 cassert( sizeof( pthread_t )== sizeof( SDL_Thread* ) );
See wsdl.cpp.

CountOfImports

 inline unsigned CountOfImports( PCImgThunkData pitdBase );
See wdll_delay_load.cpp.

debug_dump_stack

 LibError debug_dump_stack( wchar_t* buf, size_t max_chars, uint skip, void* pcontext );
See wdbg_sym.cpp.

debug_get_nth_caller

 void* debug_get_nth_caller( uint skip, void* pcontext );
helper routines for symbol value dump
See wdbg_sym.cpp.

debug_heap_check

 void debug_heap_check();
See wdbg.cpp.

debug_heap_enable

 void debug_heap_enable( DebugHeapChecks what );
See wdbg.cpp.

debug_is_code_ptr

 bool debug_is_code_ptr( void* p );
See wdbg.cpp.

debug_is_pointer_bogus

 int debug_is_pointer_bogus( const void* p );
See wdbg.cpp.

debug_is_stack_ptr

 bool debug_is_stack_ptr( void* p );
See wdbg.cpp.

debug_puts

 void debug_puts( const char* text );
See wdbg.cpp.

debug_remove_all_breaks

 LibError debug_remove_all_breaks();
See wdbg.cpp.

debug_resolve_symbol

 LibError debug_resolve_symbol( void* ptr_of_interest, char* sym_name, char* file, int* line );
See wdbg_sym.cpp.

debug_resolve_symbol_lk

 static LibError debug_resolve_symbol_lk( void* ptr_of_interest, char* sym_name, char* file, int* line );
See wdbg_sym.cpp.

debug_set_break

 LibError debug_set_break( void* p, DbgBreakType type );
See wdbg.cpp.

dequeue_event

 static bool dequeue_event( SDL_Event* ev );
See wsdl.cpp.

DetectClockFrequency

 static void DetectClockFrequency();
See wcpu.cpp.

DetectNumProcessors

 static void DetectNumProcessors();
See wcpu.cpp.

DetectWindowsVersion

 static void DetectWindowsVersion();
See wutil.cpp.

DetectWow64

 static void DetectWow64();
See wutil.cpp.

determine_symbol_address

 static LibError determine_symbol_address( DWORD id, DWORD UNUSED( type_id ), const u8** pp );
See wdbg_sym.cpp.

dir_add_watch

 LibError dir_add_watch( const char* dir, intptr_t* preqnum );
See wdir_watch.cpp.

dir_cancel_watch

 LibError dir_cancel_watch( const intptr_t reqnum );
See wdir_watch.cpp.

dir_get_changed_file

 LibError dir_get_changed_file( char* fn );
See wdir_watch.cpp.

DirectSoundCallback

 static BOOL CALLBACK DirectSoundCallback( void* guid, const char* UNUSED( description ), const char* module, void* UNUSED( ctx ) );
See wsnd.cpp.

dlg_resize

 static void dlg_resize( HWND hDlg, WPARAM wParam, LPARAM lParam );
See wsysdep.cpp.

dlg_resize_control

 static void dlg_resize_control( HWND hDlg, int dlg_item, int dx, int dy, uint anchors );
See wsysdep.cpp.

dump_array

 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.

dump_error

 static void dump_error( LibError err, const u8* p );
See wdbg_sym.cpp.

dump_frame_cb

 static LibError dump_frame_cb( const STACKFRAME64* sf, void* UNUSED( user_arg ) );
See wdbg_sym.cpp.

dump_sequence

 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.

dump_string

 static LibError dump_string( const u8* p, size_t el_size );
See wdbg_sym.cpp.

dump_sym

 static LibError dump_sym( DWORD type_id, const u8* p, DumpState state );
stack trace
See wdbg_sym.cpp.

dump_sym_array

 static LibError dump_sym_array( DWORD type_id, const u8* p, DumpState state );
See wdbg_sym.cpp.

dump_sym_base_class

 static LibError dump_sym_base_class( DWORD type_id, const u8* p, DumpState state );
See wdbg_sym.cpp.

dump_sym_base_type

 static LibError dump_sym_base_type( DWORD type_id, const u8* p, DumpState state );
See wdbg_sym.cpp.

dump_sym_cb

 static BOOL CALLBACK dump_sym_cb( SYMBOL_INFO* sym, ULONG UNUSED( size ), void* UNUSED( ctx ) );
See wdbg_sym.cpp.

dump_sym_data

 static LibError dump_sym_data( DWORD id, const u8* p, DumpState state );
See wdbg_sym.cpp.

dump_sym_enum

 static LibError dump_sym_enum( DWORD type_id, const u8* p, DumpState UNUSED( state ) );
See wdbg_sym.cpp.

dump_sym_function

 static LibError dump_sym_function( DWORD UNUSED( type_id ), const u8* UNUSED( p ), DumpState UNUSED( state ) );
See wdbg_sym.cpp.

dump_sym_function_type

 static LibError dump_sym_function_type( DWORD UNUSED( type_id ), const u8* p, DumpState UNUSED( state ) );
See wdbg_sym.cpp.

dump_sym_pointer

 static LibError dump_sym_pointer( DWORD type_id, const u8* p, DumpState state );
See wdbg_sym.cpp.

dump_sym_typedef

 static LibError dump_sym_typedef( DWORD type_id, const u8* p, DumpState state );
See wdbg_sym.cpp.

dump_sym_udt

 static LibError dump_sym_udt( DWORD type_id, const u8* p, DumpState state );
See wdbg_sym.cpp.

dump_sym_unknown

 static LibError dump_sym_unknown( DWORD type_id, const u8* UNUSED( p ), DumpState UNUSED( state ) );
See wdbg_sym.cpp.

dump_sym_vtable

 static LibError dump_sym_vtable( DWORD UNUSED( type_id ), const u8* UNUSED( p ), DumpState UNUSED( state ) );
See wdbg_sym.cpp.

enable_kbd_hook

 static void enable_kbd_hook( bool enable );
See wsdl.cpp.

EnableLowFragmentationHeap

 static void EnableLowFragmentationHeap();
See wutil.cpp.

EnableMemoryTracking

 static void EnableMemoryTracking();
See wutil.cpp.

error_dialog_proc

 static INT_PTR CALLBACK error_dialog_proc( HWND hDlg, unsigned int msg, WPARAM wParam, LPARAM lParam );
See wsysdep.cpp.

extract_events

 static void extract_events( Watch* w );
See wdir_watch.cpp.

flags_to_string

 std::string flags_to_string( char flags );
See wprintf.cpp.

FLoadedAtPreferredAddress

 static inline bool WINAPI FLoadedAtPreferredAddress( PIMAGE_NT_HEADERS pinh, HMODULE hmod );
See wdll_delay_load.cpp.

ForciblyLoadUser32Dll

 static void ForciblyLoadUser32Dll();
See wutil.cpp.

FreeAllWatches

 static void FreeAllWatches();
See wdir_watch.cpp.

FreeStaticObjects

 static void FreeStaticObjects();
See wdir_watch.cpp.

FreeUser32Dll

 static void FreeUser32Dll();
See wutil.cpp.

gamma_swap

 static void gamma_swap( GammaAction action );
See wsdl.cpp.

get_app_main_window

 static HWND get_app_main_window();
See wsysdep.cpp.

get_flag

 int get_flag( TCHAR c );
See wprintf.cpp.

get_packet

 static void get_packet();
See wdir_watch.cpp.

get_tib

 static NT_TIB* get_tib();
See wdbg.cpp.

get_ver

 static LibError get_ver( const char* module_path, char* out_ver, size_t out_ver_len );
See wdll_ver.cpp.

get_ver_impl

 static LibError get_ver_impl( const char* module_path, char* out_ver, size_t out_ver_len, void*& mem );
========================================================================= File : wdll_ver.cpp Project : 0 A.D. Description : return DLL version information. =========================================================================
See wdll_ver.cpp.

GetCppExceptionDescription

 static const wchar_t* GetCppExceptionDescription( const EXCEPTION_RECORD* er, wchar_t* description, size_t maxChars );
Parameters:
er - an exception record for which IsCppException returned true.
See wseh.cpp.

GetDirectories

 static void GetDirectories();
See wutil.cpp.

GetDirectSoundDriverPath

 static const char* GetDirectSoundDriverPath();
See wsnd.cpp.

GetDriverPathname

 static void GetDriverPathname( char* driverPathname, size_t maxChars );
See mahaf.cpp.

GetExceptionDescription

 static const wchar_t* GetExceptionDescription( const EXCEPTION_POINTERS* ep, wchar_t* description, size_t maxChars );
Returns:
a description of the exception type and cause (in English).
See wseh.cpp.

GetExceptionLocus

 static void GetExceptionLocus( const EXCEPTION_POINTERS* ep, char* file, int* line, char* func );
See wseh.cpp.

GetSehExceptionDescription

 static const wchar_t* GetSehExceptionDescription( const EXCEPTION_RECORD* er, wchar_t* description, size_t maxChars );
See wseh.cpp.

GetVRAMInfo

 int GetVRAMInfo( int& remaining, int& total );
See wsdl.cpp.

gfx_get_monitor_size

 LibError gfx_get_monitor_size( int& width_mm, int& height_mm );
See wgfx.cpp.

gfx_get_video_mode

 LibError gfx_get_video_mode( int* xres, int* yres, int* bpp, int* freq );
========================================================================= File : wgfx.cpp Project : 0 A.D. Description : graphics card detection on Windows. =========================================================================
See wgfx.cpp.

HCURSOR_from_ptr

 static HCURSOR HCURSOR_from_ptr( void* p );
See wsysdep.cpp.

HICON_from_ptr

 static HICON HICON_from_ptr( void* p );
See wsysdep.cpp.

ImportWow64Functions

 static void ImportWow64Functions();
See wutil.cpp.

IndexFromPImgThunkData

 inline unsigned IndexFromPImgThunkData( PCImgThunkData pitdCur, PCImgThunkData pitdBase );
See wdll_delay_load.cpp.

init_vkmap

 static void init_vkmap( SDLKey(& VK_keymap )[ 256] );
See wsdl.cpp.

InitLocks

 static void InitLocks();
See wutil.cpp.

Is64BitOs

 static bool Is64BitOs();
See mahaf.cpp.

is_in_window

 static bool is_in_window( int client_x, int client_y );
See wsdl.cpp.

is_lengthmod

 int is_lengthmod( TCHAR c );
See wprintf.cpp.

is_string

 static bool is_string( const u8* p, size_t stride );
See wdbg_sym.cpp.

is_this_our_window

 static BOOL CALLBACK is_this_our_window( HWND hWnd, LPARAM lParam );
See wsysdep.cpp.

IsCppException

 static bool IsCppException( const EXCEPTION_RECORD* er );
See wseh.cpp.

IsOpenAlDll

 static LibError IsOpenAlDll( const DirEnt* ent );
========================================================================= File : wsdl.cpp Project : 0 A.D. Description : sound card detection on Windows. =========================================================================
See wsnd.cpp.

keyboard_ll_hook

 static LRESULT CALLBACK keyboard_ll_hook( int nCode, WPARAM wParam, LPARAM lParam );
See wsdl.cpp.

LibError_from_GLE

 LibError LibError_from_GLE( bool warn_if_failed = true );
if ret is false, returns LibError_from_GLE.
See wutil.cpp.

LibError_from_win32

 LibError LibError_from_win32( DWORD ret, bool warn_if_failed );
See wutil.cpp.

lock

 static void lock();
========================================================================= File : wdbg.cpp Project : 0 A.D. Description : Win32 debug support code and exception handler. =========================================================================
See wdbg.cpp.

mahaf_Init

 bool mahaf_Init();
See mahaf.cpp.

mahaf_MapPhysicalMemory

 volatile void* mahaf_MapPhysicalMemory( uintptr_t physicalAddress, size_t numBytes );
See mahaf.cpp.

mahaf_ReadPort16

 u16 mahaf_ReadPort16( u16 port );
See mahaf.cpp.

mahaf_ReadPort32

 u32 mahaf_ReadPort32( u16 port );
See mahaf.cpp.

mahaf_ReadPort8

 u8 mahaf_ReadPort8( u16 port );
See mahaf.cpp.

mahaf_Shutdown

 void mahaf_Shutdown();
See mahaf.cpp.

mahaf_UnmapPhysicalMemory

 void mahaf_UnmapPhysicalMemory( volatile void* virtualAddress );
See mahaf.cpp.

mahaf_WritePort16

 void mahaf_WritePort16( u16 port, u16 value );
See mahaf.cpp.

mahaf_WritePort32

 void mahaf_WritePort32( u16 port, u32 value );
See mahaf.cpp.

mahaf_WritePort8

 void mahaf_WritePort8( u16 port, u8 value );
See mahaf.cpp.

mainCRTStartup

 EXTERN_C int mainCRTStartup();
See wseh.cpp.

mouse_moved

 static void mouse_moved( uint x, uint y );
See wsdl.cpp.

mouse_update

 static void mouse_update();
See wsdl.cpp.

notify_hook

 static FARPROC WINAPI notify_hook( unsigned dliNotify, PDelayLoadInfo pdli );
See wdll_delay_load.cpp.

nth_caller_cb

 static LibError nth_caller_cb( const STACKFRAME64* sf, void* user_arg );
See wdbg_sym.cpp.

OnActivate

 static LRESULT OnActivate( HWND hWnd, UINT state, HWND UNUSED( hWndActDeact ), BOOL fMinimized );
See wsdl.cpp.

OnKey

 static LRESULT OnKey( HWND UNUSED( hWnd ), UINT vk, BOOL fDown, int UNUSED( cRepeat ), UINT flags );
See wsdl.cpp.

OnMouseButton

 static LRESULT OnMouseButton( HWND UNUSED( hWnd ), UINT uMsg, int screen_x, int screen_y, UINT UNUSED( flags ) );
See wsdl.cpp.

OnMouseWheel

 static LRESULT OnMouseWheel( HWND UNUSED( hWnd ), int screen_x, int screen_y, int zDelta, UINT UNUSED( fwKeys ) );
See wsdl.cpp.

OpenServiceControlManager

 static SC_HANDLE OpenServiceControlManager();
See mahaf.cpp.

out

 static void out( const wchar_t* fmt,... );
See wdbg_sym.cpp.

out_check_limit

 static LibError out_check_limit();
See wdbg_sym.cpp.

out_erase

 static void out_erase( size_t num_chars );
See wdbg_sym.cpp.

out_init

 static void out_init( wchar_t* buf, size_t max_chars );
See wdbg_sym.cpp.

out_latch_pos

 static void out_latch_pos();
See wdbg_sym.cpp.

OverlayIAT

 static inline void WINAPI OverlayIAT( PImgThunkData pitdDst, PCImgThunkData pitdSrc );
See wdll_delay_load.cpp.

PFromRva

 template< class X > X PFromRva( RVA rva );
See wdll_delay_load.cpp.

PinhFromImageBase

 static inline PIMAGE_NT_HEADERS WINAPI PinhFromImageBase( HMODULE hmod );
See wdll_delay_load.cpp.

ptr_already_visited

 static bool ptr_already_visited( const u8* p );
See wdbg_sym.cpp.

ptr_from_HCURSOR

 static void* ptr_from_HCURSOR( HCURSOR hCursor );
See wsysdep.cpp.

ptr_from_HICON

 static void* ptr_from_HICON( HICON hIcon );
See wsysdep.cpp.

ptr_reset_visited

 static void ptr_reset_visited();
See wdbg_sym.cpp.

queue_active_event

 static inline void queue_active_event( SdlActivationType type, uint changed_app_state );
See wsdl.cpp.

queue_button_event

 static void queue_button_event( uint button, uint state, uint x, uint y );
See wsdl.cpp.

queue_event

 static void queue_event( const SDL_Event& ev );
See wsdl.cpp.

queue_key_event

 static void queue_key_event( uint type, uint sdlk, WCHAR unicode_char );
See wsdl.cpp.

queue_mouse_event

 static void queue_mouse_event( uint x, uint y );
See wsdl.cpp.

queue_quit_event

 static void queue_quit_event();
See wsdl.cpp.

ReadPort

 static u32 ReadPort( u16 port, u8 numBytes );
See mahaf.cpp.

reset_all_keys

 static void reset_all_keys();
See wsdl.cpp.

screen_to_client

 static void screen_to_client( int screen_x, int screen_y, int& client_x, int& client_y );
See wsdl.cpp.

SDL_CreateSemaphore

 SDL_sem* SDL_CreateSemaphore( int cnt );
See wsdl.cpp.

SDL_CreateThread

 SDL_Thread* SDL_CreateThread( int ( * func )( void* ), void* param );
See wsdl.cpp.

SDL_Delay

 inline void SDL_Delay( Uint32 ms );
See wsdl.cpp.

SDL_DestroySemaphore

 inline void SDL_DestroySemaphore( SDL_sem* sem );
See wsdl.cpp.

SDL_EnableUNICODE

 int SDL_EnableUNICODE( int UNUSED( enable ) );
See wsdl.cpp.

SDL_GetAppState

 Uint8 SDL_GetAppState();
See wsdl.cpp.

SDL_GetKeyState

 Uint8* SDL_GetKeyState( int* num_keys );
See wsdl.cpp.

SDL_GetMouseState

 Uint8 SDL_GetMouseState( int* x, int* y );
See wsdl.cpp.

SDL_GetTicks

 inline u32 SDL_GetTicks();
See wsdl.cpp.

SDL_GetVideoInfo

 SDL_VideoInfo* SDL_GetVideoInfo();
See wsdl.cpp.

SDL_GetVideoSurface

 SDL_Surface* SDL_GetVideoSurface();
See wsdl.cpp.

SDL_GL_GetProcAddress

 inline void* SDL_GL_GetProcAddress( const char* name );
See wsdl.cpp.

SDL_GL_SetAttribute

 int SDL_GL_SetAttribute( SDL_GLattr attr, int value );
See wsdl.cpp.

SDL_GL_SwapBuffers

 void SDL_GL_SwapBuffers();
See wsdl.cpp.

SDL_Init

 int SDL_Init( Uint32 UNUSED( flags ) );
See wsdl.cpp.

SDL_KillThread

 int SDL_KillThread( SDL_Thread* thread );
See wsdl.cpp.

SDL_PollEvent

 int SDL_PollEvent( SDL_Event* ev );
See wsdl.cpp.

SDL_PumpEvents

 void SDL_PumpEvents( void );
See wsdl.cpp.

SDL_PushEvent

 int SDL_PushEvent( SDL_Event* ev );
See wsdl.cpp.

SDL_Quit

 void SDL_Quit();
See wsdl.cpp.

SDL_SemPost

 int SDL_SemPost( SDL_sem* sem );
See wsdl.cpp.

SDL_SemWait

 int SDL_SemWait( SDL_sem* sem );
See wsdl.cpp.

SDL_SetGamma

 int SDL_SetGamma( float r, float g, float b );
See wsdl.cpp.

SDL_SetVideoMode

 int SDL_SetVideoMode( int w, int h, int bpp, unsigned long flags );
See wsdl.cpp.

SDL_ShowCursor

 int SDL_ShowCursor( int toggle );
See wsdl.cpp.

SDL_Swap16

 u16 SDL_Swap16( const u16 x );
See wsdl.cpp.

SDL_Swap32

 u32 SDL_Swap32( const u32 x );
See wsdl.cpp.

SDL_Swap64

 u64 SDL_Swap64( const u64 x );
See wsdl.cpp.

SDL_WarpMouse

 inline void SDL_WarpMouse( int x, int y );
See wsdl.cpp.

SDL_WM_SetCaption

 void SDL_WM_SetCaption( const char* title, const char* icon );
See wsdl.cpp.

seq_determine_formatting

 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.

ShutdownLocks

 static void ShutdownLocks();
See wutil.cpp.

skip_this_frame

 static void skip_this_frame( uint& skip, void* context );
See wdbg_sym.cpp.

StartDriver

 static void StartDriver( const char* driverPathname );
See mahaf.cpp.

string_for_register

 static const wchar_t* string_for_register( CV_HREG_e reg );
See wdbg_sym.cpp.

sym_init

 static LibError sym_init();
See wdbg_sym.cpp.

sym_shutdown

 static LibError sym_shutdown();
See wdbg_sym.cpp.

sys_clipboard_free

 LibError sys_clipboard_free( wchar_t* copy );
See wsysdep.cpp.

sys_clipboard_get

 wchar_t* sys_clipboard_get();
See wsysdep.cpp.

sys_clipboard_set

 LibError sys_clipboard_set( const wchar_t* text );
See wsysdep.cpp.

sys_cursor_create

 LibError sys_cursor_create( uint w, uint h, void* bgra_img, uint hx, uint hy, void** cursor );
See wsysdep.cpp.

sys_cursor_create_empty

 LibError sys_cursor_create_empty( void** cursor );
See wsysdep.cpp.

sys_cursor_free

 LibError sys_cursor_free( void* cursor );
See wsysdep.cpp.

sys_cursor_set

 LibError sys_cursor_set( void* cursor );
See wsysdep.cpp.

sys_display_error

 ErrorReaction sys_display_error( const wchar_t* text, uint flags );
See wsysdep.cpp.

sys_display_msg

 void sys_display_msg( const char* caption, const char* msg );
========================================================================= File : wsysdep.cpp Project : 0 A.D. Description : Windows backend of the sysdep interface =========================================================================
See wsysdep.cpp.

sys_display_msgw

 void sys_display_msgw( const wchar_t* caption, const wchar_t* msg );
See wsysdep.cpp.

sys_error_description_r

 LibError sys_error_description_r( int user_err, char* buf, size_t max_chars );
See wsysdep.cpp.

sys_get_executable_name

 inline LibError sys_get_executable_name( char* n_path, size_t buf_size );
See wsysdep.cpp.

sys_get_module_filename

 wchar_t* sys_get_module_filename( void* addr, wchar_t* path );
See wsysdep.cpp.

sys_pick_directory

 LibError sys_pick_directory( char* path, size_t buf_size );
See wsysdep.cpp.

sys_vsnprintf

 int sys_vsnprintf( TCHAR* buffer, size_t count, const TCHAR* format, va_list argptr );
See wprintf.cpp.

TimeStampOfImage

 static inline DWORD WINAPI TimeStampOfImage( PIMAGE_NT_HEADERS pinh );
See wdll_delay_load.cpp.

to_string

 template< typename T > std::string to_string( T n );
See wprintf.cpp.

type_size

 int type_size( TCHAR type, int length );
See wprintf.cpp.

udt_dump_normal

 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.

udt_dump_std

 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.

udt_dump_suppressed

 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.

udt_fits_on_one_line

 static bool udt_fits_on_one_line( const wchar_t* type_name, size_t child_count, size_t total_size );
See wdbg_sym.cpp.

udt_get_child_type

 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.

udt_should_suppress

 static bool udt_should_suppress( const wchar_t* type_name );
See wdbg_sym.cpp.

UninstallDriver

 static void UninstallDriver();
See mahaf.cpp.

UnloadAllDlls

 static void UnloadAllDlls();
See wdll_delay_load.cpp.

unlock

 static void unlock();
See wdbg.cpp.

video_enter_game_mode

 static inline void video_enter_game_mode();
See wsdl.cpp.

video_leave_game_mode

 static inline void video_leave_game_mode();
See wsdl.cpp.

video_need_change

 static bool video_need_change( int w, int h, int cur_w, int cur_h, bool fullscreen );
See wsdl.cpp.

video_shutdown

 static void video_shutdown();
See wsdl.cpp.

vkmap

 inline SDLKey vkmap( int vk );
See wsdl.cpp.

walk_stack

 static LibError walk_stack( StackFrameCallback cb, void* user_arg = 0, uint skip = 0, const CONTEXT* pcontext = 0 );
See wdbg_sym.cpp.

WatchFromReqnum

 static Watch* WatchFromReqnum( intptr_t reqnum );
See wdir_watch.cpp.

wcpu_CallByEachCPU

 LibError wcpu_CallByEachCPU( CpuCallback cb, void* param );
See wcpu.cpp.

wcpu_ClockFrequency

 double wcpu_ClockFrequency();
See wcpu.cpp.

wcpu_Init

 static LibError wcpu_Init();
See wcpu.cpp.

wcpu_NumProcessors

 uint wcpu_NumProcessors();
See wcpu.cpp.

wdbg_set_thread_name

 void wdbg_set_thread_name( const char* name );
See wdbg.cpp.

wdbg_sym_Init

 static LibError wdbg_sym_Init();
See wdbg_sym.cpp.

wdbg_sym_Shutdown

 static LibError wdbg_sym_Shutdown();
See wdbg_sym.cpp.

wdbg_sym_write_minidump

 void wdbg_sym_write_minidump( EXCEPTION_POINTERS* exception_pointers );
See wdbg_sym.cpp.

wdir_watch_Init

 static LibError wdir_watch_Init();
See wdir_watch.cpp.

wdir_watch_Shutdown

 static LibError wdir_watch_Shutdown();
See wdir_watch.cpp.

wdll_add_notify

 void wdll_add_notify( WdllLoadNotify* notify );
See wdll_delay_load.cpp.

wdll_Shutdown

 static LibError wdll_Shutdown();
See wdll_delay_load.cpp.

wdll_ver_list_add

 LibError wdll_ver_list_add( const char* name );
See wdll_ver.cpp.

wdll_ver_list_init

 void wdll_ver_list_init( char* buf, size_t chars );
See wdll_ver.cpp.

wglCopyContext

 __declspec( dllimport ) BOOL __stdcall wglCopyContext( HGLRC, HGLRC, UINT );
See wgl.h.

wglCreateContext

 __declspec( dllimport ) HGLRC __stdcall wglCreateContext( HDC );
See wgl.h.

wglCreateLayerContext

 __declspec( dllimport ) HGLRC __stdcall wglCreateLayerContext( HDC, int );
See wgl.h.

wglDeleteContext

 __declspec( dllimport ) BOOL __stdcall wglDeleteContext( HGLRC );
See wgl.h.

wglGetCurrentContext

 __declspec( dllimport ) HGLRC __stdcall wglGetCurrentContext( void );
See wgl.h.

wglGetCurrentDC

 __declspec( dllimport ) HDC __stdcall wglGetCurrentDC( void );
See wgl.h.

wglGetProcAddress

 __declspec( dllimport ) PROC __stdcall wglGetProcAddress( LPCSTR );
See wgl.h.

wglMakeCurrent

 __declspec( dllimport ) BOOL __stdcall wglMakeCurrent( HDC, HGLRC );
See wgl.h.

wglShareLists

 __declspec( dllimport ) BOOL __stdcall wglShareLists( HGLRC, HGLRC );
See wgl.h.

wglUseFontBitmapsA

 __declspec( dllimport ) BOOL __stdcall wglUseFontBitmapsA( HDC, DWORD, DWORD, DWORD );
See wgl.h.

wglUseFontBitmapsW

 __declspec( dllimport ) BOOL __stdcall wglUseFontBitmapsW( HDC, DWORD, DWORD, DWORD );
See wgl.h.

while_suspended_thread_func

 static void* while_suspended_thread_func( void* user_arg );
See wdbg.cpp.

win_alloc

 void* win_alloc( size_t size );
See wutil.cpp.

win_free

 void win_free( void* p );
See wutil.cpp.

win_get_gfx_card

 static LibError win_get_gfx_card();
See wgfx.cpp.

win_get_gfx_drv_ver

 static LibError win_get_gfx_drv_ver();
See wgfx.cpp.

win_get_gfx_info

 LibError win_get_gfx_info();
See wgfx.cpp.

win_get_snd_info

 LibError win_get_snd_info();
See wsnd.cpp.

win_is_locked

 int win_is_locked( uint idx );
See wutil.cpp.

win_lock

 void win_lock( uint idx );
See wutil.cpp.

win_unlock

 void win_unlock( uint idx );
See wutil.cpp.

winit_CallInitFunctions

 void winit_CallInitFunctions();
See winit.cpp.

winit_CallShutdownFunctions

 void winit_CallShutdownFunctions();
See winit.cpp.

WINIT_REGISTER_EARLY_INIT

 WINIT_REGISTER_EARLY_INIT( wmi_Init );
========================================================================= File : wmi.cpp Project : 0 A.D. Description : wrapper for Windows Management Instrumentation =========================================================================
See wmi.cpp.

WINIT_REGISTER_EARLY_INIT

 WINIT_REGISTER_EARLY_INIT( wutil_Init );
========================================================================= File : wutil.cpp Project : 0 A.D. Description : various Windows-specific utilities =========================================================================
See wutil.cpp.

WINIT_REGISTER_EARLY_INIT

 WINIT_REGISTER_EARLY_INIT( wcpu_Init );
========================================================================= File : wcpu.cpp Project : 0 A.D. Description : Windows backend for CPU related code =========================================================================
See wcpu.cpp.

WINIT_REGISTER_EARLY_SHUTDOWN

 WINIT_REGISTER_EARLY_SHUTDOWN( wsdl_Shutdown );
See wsdl.cpp.

WINIT_REGISTER_EARLY_SHUTDOWN

 WINIT_REGISTER_EARLY_SHUTDOWN( wmi_Shutdown );
See wmi.cpp.

WINIT_REGISTER_LATE_INIT

 WINIT_REGISTER_LATE_INIT( wsdl_Init );
========================================================================= File : wsdl.cpp Project : 0 A.D. Description : emulate SDL on Windows. =========================================================================
See wsdl.cpp.

WINIT_REGISTER_LATE_SHUTDOWN

 WINIT_REGISTER_LATE_SHUTDOWN( wutil_Shutdown );
See wutil.cpp.

WINIT_REGISTER_LATE_SHUTDOWN2

 WINIT_REGISTER_LATE_SHUTDOWN2( wdll_Shutdown );
========================================================================= File : wdll_delay_load.cpp Project : 0 A.D. Description : DLL delay loading and notification =========================================================================
See wdll_delay_load.cpp.

WINIT_REGISTER_MAIN_INIT

 WINIT_REGISTER_MAIN_INIT( wdbg_sym_Init );
========================================================================= File : wdbg_sym.cpp Project : 0 A.D. Description : Win32 stack trace and symbol engine. =========================================================================
See wdbg_sym.cpp.

WINIT_REGISTER_MAIN_INIT

 WINIT_REGISTER_MAIN_INIT( wdir_watch_Init );
========================================================================= File : wdir_watch.cpp Project : 0 A.D. Description : Win32 directory change notification =========================================================================
See wdir_watch.cpp.

WINIT_REGISTER_MAIN_SHUTDOWN

 WINIT_REGISTER_MAIN_SHUTDOWN( wdbg_sym_Shutdown );
See wdbg_sym.cpp.

WINIT_REGISTER_MAIN_SHUTDOWN

 WINIT_REGISTER_MAIN_SHUTDOWN( wdir_watch_Shutdown );
See wdir_watch.cpp.

wmi_GetClass

 LibError wmi_GetClass( const char* className, WmiMap& wmiMap );
See wmi.cpp.

wmi_Init

 static LibError wmi_Init();
See wmi.cpp.

wmi_Shutdown

 static LibError wmi_Shutdown();
See wmi.cpp.

wndproc

 static LRESULT CALLBACK wndproc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
See wsdl.cpp.

WritePort

 static void WritePort( u16 port, u32 value, u8 numBytes );
See mahaf.cpp.

wsdl_Init

 static LibError wsdl_Init();
See wsdl.cpp.

wsdl_Shutdown

 static LibError wsdl_Shutdown();
See wsdl.cpp.

wseh_EntryPoint

 EXTERN_C int wseh_EntryPoint();
See wseh.cpp.

wseh_ExceptionFilter

 LONG WINAPI wseh_ExceptionFilter( EXCEPTION_POINTERS* ep );
See wseh.cpp.

wstartup_InitAndRegisterShutdown

 EXTERN_C int wstartup_InitAndRegisterShutdown();
========================================================================= File : wstartup.cpp Project : 0 A.D. Description : windows-specific startup code =========================================================================
See wstartup.cpp.

wutil_DisableWow64Redirection

 void wutil_DisableWow64Redirection( void*& wasRedirectionEnabled );
See wutil.cpp.

wutil_Init

 static LibError wutil_Init();
See wutil.cpp.

wutil_IsWow64

 bool wutil_IsWow64();
See wutil.cpp.

wutil_RevertWow64Redirection

 void wutil_RevertWow64Redirection( void* wasRedirectionEnabled );
See wutil.cpp.

wutil_Shutdown

 static LibError wutil_Shutdown();
See wutil.cpp.

wutil_WindowsFamily

 const char* wutil_WindowsFamily();
See wutil.cpp.

wutil_WindowsVersion

 uint wutil_WindowsVersion();
See wutil.cpp.

wutil_WindowsVersionString

 const char* wutil_WindowsVersionString();
See wutil.cpp.


Symbol Detail

__deref_opt_out

 #define __deref_opt_out 
See win.h.

__deref_out

 #define __deref_out 
See win.h.

__in

 #define __in 
See win.h.

__in_opt

 #define __in_opt 
See win.h.

__inout

 #define __inout 
See win.h.

__inout_opt

 #define __inout_opt 
See win.h.

__out

 #define __out 
See win.h.

__out_opt

 #define __out_opt 
See win.h.

__specstrings

 #define __specstrings 
See win.h.

_APS_NEXT_COMMAND_VALUE

 #define _APS_NEXT_COMMAND_VALUE 40001
See error_dialog.h.

_APS_NEXT_CONTROL_VALUE

 #define _APS_NEXT_CONTROL_VALUE 1003
See error_dialog.h.

_APS_NEXT_RESOURCE_VALUE

 #define _APS_NEXT_RESOURCE_VALUE 102
See error_dialog.h.

_APS_NEXT_SYMED_VALUE

 #define _APS_NEXT_SYMED_VALUE 101
See error_dialog.h.

_APS_NO_MFC

 #define _APS_NO_MFC 1
See error_dialog.h.

_NO_CVCONST_H

 #define _NO_CVCONST_H 
See wdbg_sym.cpp.

_WCHAR_T_DEFINED

 #define _WCHAR_T_DEFINED 
See wgl.h.

_WIN32_DCOM

 #define _WIN32_DCOM 
See wmi.h.

_WIN32_WINNT

 #define _WIN32_WINNT 0x0501
See win.h.

_WINSOCKAPI_

 #define _WINSOCKAPI_ 
See win.h.

APIENTRY

 #define APIENTRY __stdcall
See wgl.h.

CALLBACK

 #define CALLBACK __stdcall
See wgl.h.

DDRAW

 #define DDRAW 
See wsdl.cpp.

debug_break

 #define debug_break __asm { int 3 }
See wdbg.h.

DS_OK

 #define DS_OK 0
See wsnd.cpp.

DWORD_PTR

 #define DWORD_PTR DWORD
See win.h.

FACILITY_VISUALCPP

 #define FACILITY_VISUALCPP ((LONG)0x6d)
See wdll_delay_load.cpp.

IDC_BREAK

 #define IDC_BREAK 2002
See error_dialog.h.

IDC_CONTINUE

 #define IDC_CONTINUE 2000
See error_dialog.h.

IDC_COPY

 #define IDC_COPY 1002
See error_dialog.h.

IDC_EDIT1

 #define IDC_EDIT1 1001
See error_dialog.h.

IDC_EXIT

 #define IDC_EXIT 2003
See error_dialog.h.

IDC_SUPPRESS

 #define IDC_SUPPRESS 2001
See error_dialog.h.

IDD_DIALOG1

 #define IDD_DIALOG1 101
See error_dialog.h.

INCLUDED_MAHAF

 #define INCLUDED_MAHAF 
See mahaf.h.

INCLUDED_WCPU

 #define INCLUDED_WCPU 
See wcpu.h.

INCLUDED_WDBG

 #define INCLUDED_WDBG 
See wdbg.h.

INCLUDED_WDBG_SYM

 #define INCLUDED_WDBG_SYM 
See wdbg_sym.h.

INCLUDED_WDLL_DELAY_LOAD

 #define INCLUDED_WDLL_DELAY_LOAD 
See wdll_delay_load.h.

INCLUDED_WDLL_VER

 #define INCLUDED_WDLL_VER 
See wdll_ver.h.

INCLUDED_WIN

 #define INCLUDED_WIN 
See win.h.

INCLUDED_WINIT

 #define INCLUDED_WINIT 
See winit.h.

INCLUDED_WMI

 #define INCLUDED_WMI 
See wmi.h.

INCLUDED_WSDL

 #define INCLUDED_WSDL 
See wsdl.h.

INCLUDED_WSEH

 #define INCLUDED_WSEH 
See wseh.h.

INCLUDED_WUTIL

 #define INCLUDED_WUTIL 
See wutil.h.

INDENT

 #define INDENT STMT(for(uint i = 0; i <= state.level; i++) out(L"    ");)
See wdbg_sym.cpp.

INVALID_FILE_ATTRIBUTES

 #define INVALID_FILE_ATTRIBUTES ((DWORD)-1)
See win.h.

NEED_COOKIE_INIT

 #define NEED_COOKIE_INIT 
See wseh.cpp.

NOATOM

 #define NOATOM 
See win.h.

NODEFERWINDOWPOS

 #define NODEFERWINDOWPOS 
See win.h.

NODRAWTEXT

 #define NODRAWTEXT 
See win.h.

NOGDICAPMASKS

 #define NOGDICAPMASKS 
See win.h.

NOHELP

 #define NOHELP 
See win.h.

NOKANJI

 #define NOKANJI 
See win.h.

NOKEYSTATES

 #define NOKEYSTATES 
See win.h.

NOMCX

 #define NOMCX 
See win.h.

NOMEMMGR

 #define NOMEMMGR 
See win.h.

NOMENUS

 #define NOMENUS 
See win.h.

NOMETAFILE

 #define NOMETAFILE 
See win.h.

NOMINMAX

 #define NOMINMAX 
See win.h.

NONLS

 #define NONLS 
See win.h.

NOOPENFILE

 #define NOOPENFILE 
See win.h.

NOPROFILER

 #define NOPROFILER 
See win.h.

NORASTEROPS

 #define NORASTEROPS 
See win.h.

NOSCROLL

 #define NOSCROLL 
See win.h.

NOTEXTMETRIC

 #define NOTEXTMETRIC 
See win.h.

NTSTATUS

 #define NTSTATUS long
See win.h.

OEMRESOURCE

 #define OEMRESOURCE 
See win.h.

PO_TZ_INVALID_MODE

 #define PO_TZ_INVALID_MODE 0 
See win.h.

PROCESSOR_ARCHITECTURE_AMD64

 #define PROCESSOR_ARCHITECTURE_AMD64 9
See win.h.

SDL_BIG_ENDIAN

 #define SDL_BIG_ENDIAN 4321
See wsdl.h.

SDL_BUTTON_LMASK

 #define SDL_BUTTON_LMASK SDL_BUTTON(SDL_BUTTON_LEFT)
See wsdl.h.

SDL_BUTTON_MMASK

 #define SDL_BUTTON_MMASK SDL_BUTTON(SDL_BUTTON_MIDDLE)
See wsdl.h.

SDL_BUTTON_RMASK

 #define SDL_BUTTON_RMASK SDL_BUTTON(SDL_BUTTON_RIGHT)
See wsdl.h.

SDL_BYTEORDER

 #define SDL_BYTEORDER SDL_LIL_ENDIAN
See wsdl.h.

SDL_DEFAULT_REPEAT_DELAY

 #define SDL_DEFAULT_REPEAT_DELAY 500
See wsdl.h.

SDL_DEFAULT_REPEAT_INTERVAL

 #define SDL_DEFAULT_REPEAT_INTERVAL 30
See wsdl.h.

SDL_FULLSCREEN

 #define SDL_FULLSCREEN 1
See wsdl.h.

SDL_GetError

 #define SDL_GetError ""
See wsdl.h.

SDL_GRAB_ON

 #define SDL_GRAB_ON 0
See wsdl.h.

SDL_INIT_AUDIO

 #define SDL_INIT_AUDIO 0
See wsdl.h.

SDL_INIT_NOPARACHUTE

 #define SDL_INIT_NOPARACHUTE 0
See wsdl.h.

SDL_INIT_TIMER

 #define SDL_INIT_TIMER 0
See wsdl.h.

SDL_INIT_VIDEO

 #define SDL_INIT_VIDEO 0
See wsdl.h.

SDL_LIL_ENDIAN

 #define SDL_LIL_ENDIAN 1234
See wsdl.h.

SDL_OPENGL

 #define SDL_OPENGL 0
See wsdl.h.

SDL_Swap16

 #define SDL_Swap16 _byteswap_ushort
See wsdl.h.

SDL_Swap32

 #define SDL_Swap32 _byteswap_ulong
See wsdl.h.

SDL_Swap64

 #define SDL_Swap64 _byteswap_uint64
See wsdl.h.

STATUS_SUCCESS

 #define STATUS_SUCCESS 0
See win.h.

UNINDENT

 #define UNINDENT STMT(out_erase((state.level+1)*4);)
See wdbg_sym.cpp.

USE_I64_FORMAT

 #define USE_I64_FORMAT 0
See wprintf.cpp.

VC_EXTRALEAN

 #define VC_EXTRALEAN 
See win.h.

VK_0

 #define VK_0 '0'
See wsdl.cpp.

VK_A

 #define VK_A 'A'
See wsdl.cpp.

WARN_WIN32_ERR

 #define WARN_WIN32_ERR (void)LibError_from_GLE(true)
See wutil.h.

WIN32_LEAN_AND_MEAN

 #define WIN32_LEAN_AND_MEAN 
See win.h.

WIN_RESTORE_LAST_ERROR

 #define WIN_RESTORE_LAST_ERROR STMT(if(last_err__ != 0 && GetLastError() == 0) SetLastError(last_err__););
See wutil.h.

WIN_SAVE_LAST_ERROR

 #define WIN_SAVE_LAST_ERROR DWORD last_err__ = GetLastError();
See wutil.h.

WINAPI

 #define WINAPI __stdcall
See wgl.h.

WINGDIAPI

 #define WINGDIAPI __declspec(dllimport)
See wgl.h.


Macro Detail

__in_bcount

 #define __in_bcount(s) 
See win.h.

__in_ecount

 #define __in_ecount(s) 
See win.h.

__inout_bcount

 #define __inout_bcount(s) 
See win.h.

__inout_ecount

 #define __inout_ecount(s) 
See win.h.

__out_bcount

 #define __out_bcount(s) 
See win.h.

__out_ecount

 #define __out_ecount(s) 
See win.h.

__out_xcount

 #define __out_xcount(s) 
See win.h.

_T2

 #define _T2(a) ((a<<8) | a)
See wprintf.cpp.

DECLARE_HANDLE

 #define DECLARE_HANDLE(name) typedef HANDLE name
See wgl.h.

InterlockedExchangePointer

 #define InterlockedExchangePointer(Target, Value) (PVOID)(uintptr_t)InterlockedExchange((PLONG)(Target), (LONG)(uintptr_t)(Value))
See win.h.

INTSIZE

 #define INTSIZE(n) ( (n + sizeof(int) - 1) & ~(sizeof(int) - 1) )
See wprintf.cpp.

readchar

 #define readchar(x) if ((x = *format++) == '\0') { delete s; goto finished_reading; }
See wprintf.cpp.

SDL_BUTTON

 #define SDL_BUTTON(b) (SDL_PRESSED << (b-1))
See wsdl.h.

SDL_EnableKeyRepeat

 #define SDL_EnableKeyRepeat(delay, interval) 
See wsdl.h.

SDL_WM_GrabInput

 #define SDL_WM_GrabInput(a) 
See wsdl.h.

SUPPRESS_HANDLE

 #define SUPPRESS_HANDLE(name) if(!wcscmp(type_name, L#name L"__")) return true;
See wdbg_sym.cpp.

VcppException

 #define VcppException(sev, err) ((sev) | (FACILITY_VISUALCPP<<16) | err)
See wdll_delay_load.cpp.

WDLL_ADD_NOTIFY

 #define WDLL_ADD_NOTIFY(dll_name, funcSTMT(static WdllLoadNotify UID__ = { dll_name, func };wdll_add_notify(&UID__;) 
See wdll_delay_load.h.

WIN_ONCE

 #define WIN_ONCE(code{win_lock(ONCE_CS;static) bool ONCE_init_;	if(!ONCE_init_){ONCE_init_ = true;code;}win_unlock(ONCE_CS);}
See wutil.h.

WINIT_REGISTER_CRITICAL_INIT

 #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.

WINIT_REGISTER_EARLY_INIT

 #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.

WINIT_REGISTER_EARLY_INIT2

 #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.

WINIT_REGISTER_EARLY_SHUTDOWN

 #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.

WINIT_REGISTER_EARLY_SHUTDOWN2

 #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.

WINIT_REGISTER_LATE_INIT

 #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.

WINIT_REGISTER_LATE_SHUTDOWN

 #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.

WINIT_REGISTER_LATE_SHUTDOWN2

 #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.

WINIT_REGISTER_MAIN_INIT

 #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.

WINIT_REGISTER_MAIN_SHUTDOWN

 #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.

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:13
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD