BWAPI
Functions | Variables
trunk/bwapi/BWAPI/Source/Detours.h File Reference
#include <windows.h>
#include "BW/Offsets.h"
Include dependency graph for Detours.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void __stdcall DrawHook (BW::bitmap *pSurface, BW::bounds *pBounds)
BOOL STORMAPI _SNetLeaveGame (int type)
int __cdecl _nextFrameHook ()
int STORMAPI _SStrCopy (char *dest, const char *source, size_t size)
BOOL STORMAPI _SNetReceiveMessage (int *senderplayerid, u8 **data, int *databytes)
void __stdcall DrawDialogHook (BW::bitmap *pSurface, BW::bounds *pBounds)
BOOL STORMAPI _SFileAuthenticateArchive (HANDLE hArchive, DWORD *dwReturnVal)
BOOL STORMAPI _SFileOpenFileEx (HANDLE hMpq, const char *szFileName, DWORD dwSearchScope, HANDLE *phFile)
BOOL STORMAPI _SFileOpenFile (const char *filename, HANDLE *phFile)
void *STORMAPI _SMemAlloc (int amount, char *logfilename, int logline, char defaultValue)
BOOL STORMAPI _SNetSendTurn (char *data, unsigned int databytes)
void __fastcall CommandFilter (BYTE *buffer, DWORD length)
BOOL STORMAPI _SDrawCaptureScreen (const char *pszOutput)
HANDLE WINAPI _FindFirstFile (LPCSTR lpFileName, LPWIN32_FIND_DATA lpFindFileData)
BOOL WINAPI _DeleteFile (LPCTSTR lpFileName)
DWORD WINAPI _GetFileAttributes (LPCTSTR lpFileName)
HANDLE WINAPI _CreateFile (LPCTSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile)
HWND WINAPI _CreateWindowExA (DWORD dwExStyle, LPCSTR lpClassName, LPCSTR lpWindowName, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hWndParent, HMENU hMenu, HINSTANCE hInstance, LPVOID lpParam)
VOID WINAPI _Sleep (DWORD dwMilliseconds)
 BOOL (STORMAPI *_SNetLeaveGameOld)(int type)
 int (STORMAPI *_SStrCopyOld)(char *dest
void *STORMAPI * _SMemAllocOld (int amount, char *logfilename, int logline, char defaultValue)
 HANDLE (WINAPI *_FindFirstFileOld)(LPCSTR lpFileName
 BOOL (WINAPI *_DeleteFileOld)(LPCTSTR lpFileName)
 DWORD (WINAPI *_GetFileAttributesOld)(LPCTSTR lpFileName)
 HWND (WINAPI *_CreateWindowExAOld)(DWORD dwExStyle
 VOID (WINAPI *_SleepOld)(DWORD dwMilliseconds)
bool __fastcall TriggerActionReplacement (BW::Triggers::Action *pAction)

Variables

bool hideHUD
DWORD lastTurnTime
DWORD lastTurnFrame
double botAPM_noSelect
double botAPM_select
bool wantRefresh
char gszDesiredReplayName [MAX_PATH]
bool detourCreateWindow
const char * source
const char size_t size
u8 ** data
u8 intdatabytes
const char * szFileName
const char DWORD dwSearchScope
const char DWORD HANDLEphFile
LPWIN32_FIND_DATA lpFindFileData
DWORD dwDesiredAccess
DWORD DWORD dwShareMode
DWORD DWORD LPSECURITY_ATTRIBUTES lpSecurityAttributes
DWORD DWORD
LPSECURITY_ATTRIBUTES DWORD 
dwCreationDisposition
DWORD DWORD
LPSECURITY_ATTRIBUTES DWORD
DWORD 
dwFlagsAndAttributes
DWORD DWORD
LPSECURITY_ATTRIBUTES DWORD
DWORD HANDLE 
hTemplateFile
LPCSTR lpClassName
LPCSTR LPCSTR lpWindowName
LPCSTR LPCSTR DWORD dwStyle
LPCSTR LPCSTR DWORD int x
LPCSTR LPCSTR DWORD int int y
LPCSTR LPCSTR DWORD int int int nWidth
LPCSTR LPCSTR DWORD int int int int nHeight
LPCSTR LPCSTR DWORD int int
int int HWND 
hWndParent
LPCSTR LPCSTR DWORD int int
int int HWND HMENU 
hMenu
LPCSTR LPCSTR DWORD int int
int int HWND HMENU HINSTANCE 
hInstance
LPCSTR LPCSTR DWORD int int
int int HWND HMENU HINSTANCE
LPVOID 
lpParam

Function Documentation

HANDLE WINAPI _CreateFile ( LPCTSTR  lpFileName,
DWORD  dwDesiredAccess,
DWORD  dwShareMode,
LPSECURITY_ATTRIBUTES  lpSecurityAttributes,
DWORD  dwCreationDisposition,
DWORD  dwFlagsAndAttributes,
HANDLE  hTemplateFile 
)
HWND WINAPI _CreateWindowExA ( DWORD  dwExStyle,
LPCSTR  lpClassName,
LPCSTR  lpWindowName,
DWORD  dwStyle,
int  x,
int  y,
int  nWidth,
int  nHeight,
HWND  hWndParent,
HMENU  hMenu,
HINSTANCE  hInstance,
LPVOID  lpParam 
)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL WINAPI _DeleteFile ( LPCTSTR  lpFileName)
HANDLE WINAPI _FindFirstFile ( LPCSTR  lpFileName,
LPWIN32_FIND_DATA  lpFindFileData 
)

Here is the caller graph for this function:

DWORD WINAPI _GetFileAttributes ( LPCTSTR  lpFileName)
int __cdecl _nextFrameHook ( )

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL STORMAPI _SDrawCaptureScreen ( const char *  pszOutput)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL STORMAPI _SFileAuthenticateArchive ( HANDLE  hArchive,
DWORD dwReturnVal 
)

Here is the caller graph for this function:

BOOL STORMAPI _SFileOpenFile ( const char *  filename,
HANDLE phFile 
)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL STORMAPI _SFileOpenFileEx ( HANDLE  hMpq,
const char *  szFileName,
DWORD  dwSearchScope,
HANDLE phFile 
)

Here is the call graph for this function:

Here is the caller graph for this function:

VOID WINAPI _Sleep ( DWORD  dwMilliseconds)

Here is the caller graph for this function:

void* STORMAPI _SMemAlloc ( int  amount,
char *  logfilename,
int  logline,
char  defaultValue 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void* STORMAPI* _SMemAllocOld ( int  amount,
char *  logfilename,
int  logline,
char  defaultValue 
)
BOOL STORMAPI _SNetLeaveGame ( int  type)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL STORMAPI _SNetReceiveMessage ( int senderplayerid,
u8 **  data,
int databytes 
)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL STORMAPI _SNetSendTurn ( char *  data,
unsigned int  databytes 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int STORMAPI _SStrCopy ( char *  dest,
const char *  source,
size_t  size 
)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL ( STORMAPI *  _SNetLeaveGameOld)
BOOL ( WINAPI *  _DeleteFileOld)
void __fastcall CommandFilter ( BYTE buffer,
DWORD  length 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void __stdcall DrawDialogHook ( BW::bitmap pSurface,
BW::bounds pBounds 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void __stdcall DrawHook ( BW::bitmap pSurface,
BW::bounds pBounds 
)

Here is the call graph for this function:

Here is the caller graph for this function:

DWORD ( WINAPI *  _GetFileAttributesOld)
HANDLE ( WINAPI *  _FindFirstFileOld)
HWND ( WINAPI *  _CreateWindowExAOld)
int ( STORMAPI *  _SStrCopyOld)
bool __fastcall TriggerActionReplacement ( BW::Triggers::Action pAction)
VOID ( WINAPI *  _SleepOld)

Variable Documentation

double botAPM_select
u8** data
unsigned int databytes
DWORD DWORD LPSECURITY_ATTRIBUTES DWORD dwCreationDisposition
DWORD DWORD LPSECURITY_ATTRIBUTES DWORD DWORD dwFlagsAndAttributes
const char DWORD dwSearchScope
LPCSTR LPCSTR DWORD dwStyle
char gszDesiredReplayName[MAX_PATH]
bool hideHUD
LPCSTR LPCSTR DWORD int int int int HWND HMENU HINSTANCE hInstance
LPCSTR LPCSTR DWORD int int int int HWND HMENU hMenu
DWORD DWORD LPSECURITY_ATTRIBUTES DWORD DWORD HANDLE hTemplateFile
LPCSTR LPCSTR DWORD int int int int HWND hWndParent
LPCSTR lpClassName
LPWIN32_FIND_DATA lpFindFileData
LPCSTR LPCSTR DWORD int int int int HWND HMENU HINSTANCE LPVOID lpParam
DWORD DWORD LPSECURITY_ATTRIBUTES lpSecurityAttributes
LPCSTR LPCSTR lpWindowName
LPCSTR LPCSTR DWORD int int int int nHeight
LPCSTR LPCSTR DWORD int int int nWidth
const char size_t size
const char* source
const char* szFileName
LPCSTR LPCSTR DWORD int x
LPCSTR LPCSTR DWORD int int y
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines