From c2a2445897af17adb56a32dcf111312763a575d4 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Mon, 2 Jul 2018 01:06:39 +0200 Subject: initial commit Signed-off-by: Toni Uhlig --- csgo_wh/include/DLLMain.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 csgo_wh/include/DLLMain.h (limited to 'csgo_wh/include/DLLMain.h') diff --git a/csgo_wh/include/DLLMain.h b/csgo_wh/include/DLLMain.h new file mode 100755 index 0000000..a11f94a --- /dev/null +++ b/csgo_wh/include/DLLMain.h @@ -0,0 +1,36 @@ +#ifndef __MAIN_H__ +#define __MAIN_H__ + +#include +#include "D9DW.h" + +#define VERSION "0.3a" +#define COPYRIGHT "CS:GO_HACK (C) by lnslbrty" +#define CINTERFACE 1 + +#ifdef BUILD_DLL +#define DLL_EXPORT __declspec(dllexport) +#else +#define DLL_EXPORT __declspec(dllimport) +#endif + + +#ifdef __cplusplus +extern "C" +{ +#endif + +__declspec(dllexport) BOOL APIENTRY DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved); + +#ifdef ENABLE_DEBUG +#define DBG(fmt, ...) D9DW::DbgMessageBox(256, fmt, __VA_ARGS__) +void DbgMessageBox(size_t sz_len, const char *fmt, ...); +#else +#define DBG(fmt, ...) +#endif + +#ifdef __cplusplus +} +#endif + +#endif // __MAIN_H__ -- cgit v1.2.3