diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2018-07-02 01:06:39 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2018-07-02 03:08:59 +0200 |
commit | c2a2445897af17adb56a32dcf111312763a575d4 (patch) | |
tree | ad459cdd682aff3a011d11b6f2a3c518c60dec6a /csgo_wh/include/DLLMain.h |
initial commit
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'csgo_wh/include/DLLMain.h')
-rwxr-xr-x | csgo_wh/include/DLLMain.h | 36 |
1 files changed, 36 insertions, 0 deletions
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 <windows.h> +#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__ |