Article ID: 133312
Article Last Modified on 2/11/2004
BOOL DefaultBlockingHook ( void ) {
MSG msg;
/* get the next message if any */
if ( PeekMessage ( &msg, NULL, 0, 0, PM_NOREMOVE) ) {
if ( msg.message = WM_QUIT )
return FALSE; // let app process WM_QUIT
PeekMessage ( &msg, NULL, 0, 0, PM_REMOVE) ;
TranslateMessage (&msg) ;
DispatchMessage (&msg) ;
}
/* TRUE if no WM_QUIT received */
return TRUE;
}
NOTE: The SNA Server 2.1 APPC and CPIC API references incorrectly omit the
second parameter on the PeekMessage call above (the NULL parameter).
Additional query words: prodsna
Keywords: kbnetwork kbprogramming KB133312