The information in this article applies to:
SYMPTOMSWhen you are trying to install a system hook function with SetWindowsHookEx in a Dynamic-Link Library (DLL), the hook function is executed only within the calling application even though it is supposed to affect all applications system-wide. CAUSE
In Windows 3.0, the minimum required compile option to generate the
appropriate entry/exit code sequence for a Windows-based application is
the /Gw switch.
RESOLUTIONIf the DLL containing the hook function is compiled with the /GD switch, the hook function should be explicitly marked with the __export keyword:
STATUSThis behavior is by design. MORE INFORMATION
Steps to Reproduce BehaviorAdditional query words: 3.10
Keywords : kb16bitonly kbHook kbSDKPlatform |
Last Reviewed: June 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |