Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- M E W E L - <b>bool peekmessage(lpmsg lpmsg, hwnd hwnd, word wmsgfiltermin,</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
BOOL PeekMessage(LPMSG lpMsg, HWND hWnd, WORD wMsgFilterMin,
                              WORD wMsgFilterMax, WORD wRemoveMsg)

 This function checks the application queue for a message and places the
 message (if any) in the data structure pointed to by the lpMsg parameter.
 Unlike the GetMessage function, the PeekMessage function does not wait for
 a message to be placed in the queue before returning.

 PeekMessage retrieves only messages associated with the window specified by
 the hWnd parameter, or any of its children as specified by the IsChild
 function, and within the range of message values given by the wMsgFilterMin
 and wMsgFilterMax parameters. If hWnd is NULL, PeekMessage retrieves mes-
 sages for any window that belongs to the application making the call. If
 wMsgFilterMin and wMsgFilterMax are both zero, PeekMessage returns all
 available messages (no range filtering is performed).

Parameters
  lpMsg Points to an MSG data structure that contains message information
        from the message queue.

  hWnd  Identifies the window whose messages are to be examined. If hWnd is
        NULL, GetMessage retrieves messages for any window.

  wMsgFilterMin Specifies the integer value of the lowest message value to be
                retrieved.

  wMsgFilterMax Specifies the integer value of the highest message value to
                be retrieved.

  wRemoveMsg Specifies a combination of the flags described in the following
             list.

        PM_NOREMOVE - Messages are not removed from the queue after
                        processing by PeekMessage.

        PM_REMOVE - Messages are removed from the queue after processing by
                        PeekMessage.

Returns
 The return value specifies whether or not a message is found. It is nonzero
if a message is available. Otherwise, it is zero.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson