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 getmessage(lpmsg lpmsg, hwnd hwnd, word wmsgfiltermin,</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
BOOL GetMessage(LPMSG lpMsg, HWND hWnd, WORD wMsgFilterMin,
                        WORD wMsgFilterMax)

 This function retrieves a message from the application queue and places the
 message in the data structure pointed to by the lpMsg parameter. If no mes-
 sage is available, the GetMessage function waits until a message becomes
 available.

 GetMessage() retrieves only messages associated with the window specified
 by the hWnd parameter and within the range of message values given by the
 wMsgFilterMin and wMsgFilterMax parameters. If hWnd is NULL, GetMessage
 retrieves messages for any window that belongs to the application making
 the call. If wMsgFilterMin and wMsgFilterMax are both zero, GetMessage
 returns all available messages (no 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.

Returns
 The return value specifies the outcome of the function. It is nonzero if a
message other than WM_QUIT is retrieved. It is zero if the WM_QUIT message
is retrieved. The return value is usually used to decide whether to ter-
minate the application's main loop and exit the program.

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