summaryrefslogtreecommitdiff
path: root/alf/alfcompat.h
diff options
context:
space:
mode:
Diffstat (limited to 'alf/alfcompat.h')
-rw-r--r--alf/alfcompat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/alf/alfcompat.h b/alf/alfcompat.h
index e0faf62..0d5a7d4 100644
--- a/alf/alfcompat.h
+++ b/alf/alfcompat.h
@@ -8,6 +8,9 @@
#define WM_DPICHANGED 0x02E0
#endif
+extern "C" IMAGE_DOS_HEADER __ImageBase;
+#define ALF_HINSTANCE ((HINSTANCE)&__ImageBase)
+
typedef LRESULT (CALLBACK *ALF_COMPAT_SUBCLASSPROC)(HWND,UINT,WPARAM,LPARAM,UINT_PTR,DWORD_PTR);
typedef struct {