Article ID: 171624
Article Last Modified on 2/22/2007
/* 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) ;
}
The second parameter passed to PeekMessage(), the Window handle (hWnd),
must be NULL in order for the underlying TCP/IP sockets interface to
receive messages on behalf of the application.
NOTE: If an API communication layer is being developed (for example, an
ODBC/DRDA driver), the developer may not have control over the
architecture of the calling application. If this is occurring, then the
following strategy can be used to function over TCP/IP sockets:
Additional query words: HIS 2000
Keywords: kbprb KB171624