forked from noah-/d2bs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathD2Loader.h
32 lines (27 loc) · 810 Bytes
/
D2Loader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// This file is for debugging purposes only.
// You must #define _MSVC_DEBUG in order to enable it.
// It enables loading from D2Loader as a plugin,
// making debugging easier.
#ifdef _MSVC_DEBUG
#include <windows.h>
typedef DWORD(__stdcall* PluginEntryFunc)(DWORD dwReason, LPVOID lpData);
DWORD __stdcall PluginEntry(DWORD dwReason, LPVOID lpData) {
return TRUE;
}
typedef struct {
DWORD dwMagicword;
DWORD dwVersion;
LPCSTR szDescription;
PluginEntryFunc fpEntry;
} PLUGIN_INTERFACE, *LPPLUGIN_INTERFACE;
PLUGIN_INTERFACE Interface = {0x44320000, 0x01000912, "D2BS", PluginEntry};
#ifdef __cplusplus
extern "C" {
#endif
__declspec(dllexport) LPPLUGIN_INTERFACE __cdecl QueryInterface(void) {
return &Interface;
}
#ifdef __cplusplus
}
#endif
#endif