aboutsummaryrefslogtreecommitdiff
path: root/primedev/util/wininfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'primedev/util/wininfo.cpp')
-rw-r--r--primedev/util/wininfo.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/primedev/util/wininfo.cpp b/primedev/util/wininfo.cpp
new file mode 100644
index 00000000..4fd64369
--- /dev/null
+++ b/primedev/util/wininfo.cpp
@@ -0,0 +1,9 @@
+AUTOHOOK_INIT()
+
+HWND* g_gameHWND;
+HMODULE g_NorthstarModule = 0;
+
+ON_DLL_LOAD("engine.dll", WinInfo, (CModule module))
+{
+ g_gameHWND = module.Offset(0x7d88a0).RCast<HWND*>();
+}