summaryrefslogtreecommitdiffstats
path: root/private/sdktools/spy/hook.h
diff options
context:
space:
mode:
authorAdam <you@example.com>2020-05-17 05:51:50 +0200
committerAdam <you@example.com>2020-05-17 05:51:50 +0200
commite611b132f9b8abe35b362e5870b74bce94a1e58e (patch)
treea5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/sdktools/spy/hook.h
downloadNT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip
Diffstat (limited to 'private/sdktools/spy/hook.h')
-rw-r--r--private/sdktools/spy/hook.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/private/sdktools/spy/hook.h b/private/sdktools/spy/hook.h
new file mode 100644
index 000000000..050f6a67a
--- /dev/null
+++ b/private/sdktools/spy/hook.h
@@ -0,0 +1,45 @@
+/*----------------------------------------------------------------------------
+*| hook.h - Windows message spy application |
+| |
+| History: |
+| 01/01/87 toddla Created |
+| 04/14/87 toddla Cleaned up |
+| |
+\*----------------------------------------------------------------------------*/
+
+#define PUBLIC
+#if !DBG
+#define PRIVATE static
+#else
+#define PRIVATE
+#endif
+
+// special hwnds for the hooks to recognize
+#define HWND_ALL ((HWND)0xffffffff)
+#define HWND_NULL ((HWND)0L)
+
+#define SPYAPPNAME "Spy"
+#define SPYCLASSNAME "Spy Class"
+#define HOOKWINDOWNAME "SpyHookWindow"
+#define HOOKWINDOWCLASS "SpyHookClass"
+
+
+//
+// Structure that contains the spy message data sent from the hook
+// to the spy app to display. The hwnd is sent using wParam of
+// the WM_COPYDATA message, and the message number is in the dwData
+// field of the COPYDATASTRUCT. This structure allows the wParam,
+// lParam and any optional extra data to be passed across.
+//
+typedef struct
+{
+ WPARAM wParam;
+ LPARAM lParam;
+ BYTE ExtraData[64];
+} SPYMSGDATA, *PSPYMSGDATA;
+
+
+LRESULT CALLBACK SpyGetMsgProc(INT hc, WPARAM wParam, LPARAM lParam);
+LRESULT CALLBACK SpyCallWndProc(INT hc, WPARAM wParam, LPARAM lParam);
+
+