BWAPI
Functions | Variables
trunk/bwapi/BWAPI/Source/Detours.cpp File Reference
#include <windows.h>
#include <string>
#include <vector>
#include <math.h>
#include <Util/Exceptions.h>
#include "../Storm/storm.h"
#include "WMode.h"
#include "DLLMain.h"
#include "Resolution.h"
#include "Holiday/Holiday.h"
#include "Detours.h"
#include "BWAPI/GameImpl.h"
#include "BWAPI/PlayerImpl.h"
#include "BW/Offsets.h"
#include "Config.h"
#include "NewHackUtil.h"
#include "BW/TriggerEngine.h"
#include "BW/MenuPosition.h"
#include "../../Debug.h"
Include dependency graph for Detours.cpp:

Functions

 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)
VOID WINAPI _Sleep (DWORD dwMilliseconds)
void DDInit ()
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)
HANDLE WINAPI _FindFirstFile (LPCSTR lpFileName, LPWIN32_FIND_DATA lpFindFileData)
void setReplayName (char *pOutFilename, const char *pInFileName)
void DebugHookLog (const char *pszFxn, const char *pszFile)
BOOL WINAPI _DeleteFile (LPCSTR lpFileName)
DWORD WINAPI _GetFileAttributes (LPCSTR lpFileName)
HANDLE WINAPI _CreateFile (LPCSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile)
BOOL STORMAPI _SDrawCaptureScreen (const char *pszOutput)
BOOL __stdcall _SNetLeaveGame (int type)
int __cdecl _nextFrameHook ()
int __stdcall _SStrCopy (char *dest, const char *source, size_t size)
BOOL __stdcall _SNetReceiveMessage (int *senderplayerid, u8 **data, int *databytes)
void __stdcall DrawHook (BW::bitmap *pSurface, BW::bounds *pBounds)
void __stdcall DrawDialogHook (BW::bitmap *pSurface, BW::bounds *pBounds)
BOOL __stdcall _SFileAuthenticateArchive (HANDLE hArchive, DWORD *dwReturnVal)
BOOL __stdcall _SFileOpenFileEx (HANDLE hMpq, const char *szFileName, DWORD dwSearchScope, HANDLE *phFile)
BOOL __stdcall _SFileOpenFile (const char *filename, HANDLE *phFile)
void *__stdcall _SMemAlloc (int amount, char *logfilename, int logline, char defaultValue)
BOOL __stdcall _SNetSendTurn (char *data, unsigned int databytes)
void __fastcall CommandFilter (BYTE *buffer, DWORD length)

Variables

bool hideHUD
char gszDesiredReplayName [MAX_PATH]
void * leakUIClassLoc
void * leakUIGrpLoc
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
bool(__fastcall
*BWTriggerActionFxnTable[60])(BW
bool __fastcall 
TriggerActionReplacement (BW::Triggers::Action *pAction)
bool detourCreateWindow = false
bool wantRefresh = false
DWORD dwLastAPMCount
double botAPM_noSelect
double botAPM_select
bool nosound = false
std::string lastFile
DWORD lastTurnTime
DWORD lastTurnFrame
int lastHotkey
DWORD lastHotkeyTime

Function Documentation

HANDLE WINAPI _CreateFile ( LPCSTR  lpFileName,
DWORD  dwDesiredAccess,
DWORD  dwShareMode,
LPSECURITY_ATTRIBUTES  lpSecurityAttributes,
DWORD  dwCreationDisposition,
DWORD  dwFlagsAndAttributes,
HANDLE  hTemplateFile 
)

Here is the call graph for this function:

Here is the caller graph for this function:

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 ( LPCSTR  lpFileName)

Here is the call graph for this function:

Here is the caller graph for this function:

HANDLE WINAPI _FindFirstFile ( LPCSTR  lpFileName,
LPWIN32_FIND_DATA  lpFindFileData 
)

Here is the caller graph for this function:

DWORD WINAPI _GetFileAttributes ( LPCSTR  lpFileName)

Here is the call graph for this function:

Here is the caller graph for this function:

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 __stdcall _SFileAuthenticateArchive ( HANDLE  hArchive,
DWORD dwReturnVal 
)

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL __stdcall _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* __stdcall _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 
)

Here is the caller graph for this function:

BOOL __stdcall _SNetLeaveGame ( int  type)

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

int __stdcall _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 DDInit ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void DebugHookLog ( const char *  pszFxn,
const char *  pszFile 
)

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)

Here is the caller graph for this function:

int ( STORMAPI *  _SStrCopyOld)
void setReplayName ( char *  pOutFilename,
const char *  pInFileName 
)

BWAPI::BroodwarImpl.outOfGame &&

Here is the call graph for this function:

Here is the caller graph for this function:

VOID ( WINAPI *  _SleepOld)

Variable Documentation

double botAPM_select
u8** data
unsigned int databytes
bool detourCreateWindow = false
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
std::string lastFile
void* leakUIGrpLoc
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
bool nosound = false
LPCSTR LPCSTR DWORD int int int nWidth
const char size_t size
const char* source
const char* szFileName
bool (__fastcall *BWTriggerActionFxnTable[60])(BW bool __fastcall TriggerActionReplacement(BW::Triggers::Action *pAction)
bool wantRefresh = false
LPCSTR LPCSTR DWORD int x
LPCSTR LPCSTR DWORD int int y
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines