The CallMsgFilter function passes the specified message and hook code to the hook procedures associated with the WH_SYSMSGFILTER and WH_MSGFILTER hooks. A WH_SYSMSGFILTER or WH_MSGFILTER hook procedure is an application-defined callback function that examines and, optionally, modifies messages for a dialog box, message box, menu, or scroll bar.
BOOL CallMsgFilter(
LPMSG lpMsg, |
// pointer to structure with message data |
int nCode |
// hook code |
); |
If the application should process the message further, the return value is zero.
If the application should not process the message further, the return value is nonzero.
Windows calls CallMsgFilter to enable applications to examine and control the flow of messages during internal processing of dialog boxes, message boxes, menus, and scroll bars, or when the user activates a different window by pressing the ALT+TAB key combination.
An application installs a hook procedure by using the SetWindowsHookEx function.
MessageProc, MSG, SetWindowsHookEx, SysMsgProc
file: /Techref/os/win/api/win32/func/src/f03_23.htm, 2KB, , updated: 2000/4/7 11:19, local time: 2024/11/8 10:33,
18.117.254.236:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://techref.massmind.org/techref/os/win/api/win32/func/src/f03_23.htm"> CallMsgFilter</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232! |
.