wRemoveMsg
[in] Specifies how messages are handled. This parameter can be one of the following values. Value Meaning
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.
You can optionally combine the value PM_NOYIELD with either PM_NOREMOVE or PM_REMOVE. This flag prevents the system from releasing any thread that is waiting for the caller to go idle (see WaitForInputIdle).
By default, all message types are processed. To specify that only certain message should be processed, specify one or more of the following values.