diff options
| author | Javier <dev.git@javispedro.com> | 2026-11-30 12:53:58 +0100 |
|---|---|---|
| committer | Javier <dev.git@javispedro.com> | 2026-11-30 12:53:58 +0100 |
| commit | 9f46f39f48d3acf4806473b331b654111a6e2084 (patch) | |
| tree | 047142a32fda5820ff3f00851903afe33ec3359c /mousew16.c | |
| parent | 2938a67c400930d2d5e6f23bb8e13b1ec3b99000 (diff) | |
| download | vbados-9f46f39f48d3acf4806473b331b654111a6e2084.tar.gz vbados-9f46f39f48d3acf4806473b331b654111a6e2084.zip | |
mousew16: found a way to use the same binary in both 2.x and >3.x
What was missing is to use mark.exe (same as the MEMORY option in wlink)
to mark the 2.0 executable as being "protected mode compatible".
Thanks to Pietrek's Windows Internals book and their description of
what LoadModule is doing.
Diffstat (limited to 'mousew16.c')
| -rw-r--r-- | mousew16.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -370,7 +370,7 @@ static BOOL send_native_wheel_msgs(HWND hWnd, DWORD time, POINT cursor, int z, B } /** GetMsgProc hook, called for every message before being returned by GetMessage. */ -LRESULT CALLBACK WheelHookProc(int code, WPARAM wParam, LPARAM lParam) +LRESULT CALLBACK __loadds WheelHookProc(int code, WPARAM wParam, LPARAM lParam) { if (code >= 0) { // TODO Unclear if on win9x PeekMessage will also call this hook |
