BWAPI
|
00001 #pragma once 00002 00003 #include <windows.h> 00004 00005 #include "BW/Offsets.h" 00006 00007 void __stdcall DrawHook(BW::bitmap *pSurface, BW::bounds *pBounds); 00008 00009 BOOL STORMAPI _SNetLeaveGame(int type); 00010 int __cdecl _nextFrameHook(); 00011 int STORMAPI _SStrCopy(char *dest, const char *source, size_t size); 00012 BOOL STORMAPI _SNetReceiveMessage(int *senderplayerid, u8 **data, int *databytes); 00013 void __stdcall DrawHook(BW::bitmap *pSurface, BW::bounds *pBounds); 00014 void __stdcall DrawDialogHook(BW::bitmap *pSurface, BW::bounds *pBounds); 00015 BOOL STORMAPI _SFileAuthenticateArchive(HANDLE hArchive, DWORD *dwReturnVal); 00016 BOOL STORMAPI _SFileOpenFileEx(HANDLE hMpq, const char *szFileName, DWORD dwSearchScope, HANDLE *phFile); 00017 BOOL STORMAPI _SFileOpenFile(const char *filename, HANDLE *phFile); 00018 void *STORMAPI _SMemAlloc(int amount, char *logfilename, int logline, char defaultValue); 00019 BOOL STORMAPI _SNetSendTurn(char *data, unsigned int databytes); 00020 void __fastcall CommandFilter(BYTE *buffer, DWORD length); 00021 00022 BOOL STORMAPI _SDrawCaptureScreen(const char *pszOutput); 00023 00024 HANDLE WINAPI _FindFirstFile(LPCSTR lpFileName, LPWIN32_FIND_DATA lpFindFileData); 00025 BOOL WINAPI _DeleteFile(LPCTSTR lpFileName); 00026 DWORD WINAPI _GetFileAttributes(LPCTSTR lpFileName); 00027 HANDLE WINAPI _CreateFile(LPCTSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile); 00028 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); 00029 VOID WINAPI _Sleep(DWORD dwMilliseconds); 00030 00031 extern bool hideHUD; 00032 extern DWORD lastTurnTime; 00033 extern DWORD lastTurnFrame; 00034 extern double botAPM_noSelect; 00035 extern double botAPM_select; 00036 extern bool wantRefresh; 00037 extern char gszDesiredReplayName[MAX_PATH]; 00038 extern bool detourCreateWindow; 00039 00040 extern BOOL (STORMAPI *_SNetLeaveGameOld)(int type); 00041 extern int (STORMAPI *_SStrCopyOld)(char *dest, const char *source, size_t size); 00042 extern BOOL (STORMAPI *_SNetReceiveMessageOld)(int *senderplayerid, u8 **data, int *databytes); 00043 extern BOOL (STORMAPI *_SFileOpenFileExOld)(HANDLE hMpq, const char *szFileName, DWORD dwSearchScope, HANDLE *phFile); 00044 extern BOOL (STORMAPI *_SFileOpenFileOld)(const char *filename, HANDLE *phFile); 00045 extern void* (STORMAPI *_SMemAllocOld)(int amount, char *logfilename, int logline, char defaultValue); 00046 extern BOOL (STORMAPI *_SNetSendTurnOld)(char *data, unsigned int databytes); 00047 extern BOOL (STORMAPI *_SDrawCaptureScreenOld)(const char *pszOutput); 00048 extern HANDLE (WINAPI *_FindFirstFileOld)(LPCSTR lpFileName, LPWIN32_FIND_DATA lpFindFileData); 00049 extern BOOL (WINAPI *_DeleteFileOld)(LPCTSTR lpFileName); 00050 extern DWORD (WINAPI *_GetFileAttributesOld)(LPCTSTR lpFileName); 00051 extern HANDLE (WINAPI *_CreateFileOld)(LPCTSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile); 00052 extern HWND (WINAPI *_CreateWindowExAOld)(DWORD dwExStyle, LPCSTR lpClassName, LPCSTR lpWindowName, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hWndParent, HMENU hMenu, HINSTANCE hInstance, LPVOID lpParam); 00053 extern VOID (WINAPI *_SleepOld)(DWORD dwMilliseconds); 00054 00055 bool __fastcall TriggerActionReplacement(BW::Triggers::Action *pAction); 00056 extern bool (__fastcall *BWTriggerActionFxnTable[60])(BW::Triggers::Action*);