diff --git a/sdk-api-src/content/winuser/nf-winuser-peekmessagea.md b/sdk-api-src/content/winuser/nf-winuser-peekmessagea.md index ea2bfead75f8..0904e3f08578 100644 --- a/sdk-api-src/content/winuser/nf-winuser-peekmessagea.md +++ b/sdk-api-src/content/winuser/nf-winuser-peekmessagea.md @@ -106,104 +106,22 @@ Type: UINT Specifies how messages are to be handled. This parameter can be one or more of the following values. - - - - - - - - - - - - - - - - - -
ValueMeaning
-
PM_NOREMOVE
-
0x0000
-
-
-Messages are not removed from the queue after processing by PeekMessage. - -
-
PM_REMOVE
-
0x0001
-
-
-Messages are removed from the queue after processing by PeekMessage. - -
-
PM_NOYIELD
-
0x0002
-
-
-Prevents the system from releasing any thread that is waiting for the caller to go idle (see WaitForInputIdle). - -Combine this value with either PM_NOREMOVE or PM_REMOVE. - -
-  - +| Value | Meaning | +|-------|---------| +| **PM\_NOREMOVE**
`0x0000` | Messages are not removed from the queue after processing by **PeekMessage**. | +| **PM\_REMOVE**
`0x0001` | Messages are removed from the queue after processing by **PeekMessage**. | +| **PM\_NOYIELD**
`0x0002` | Prevents the system from releasing any thread that is waiting for the caller to go idle (see [WaitForInputIdle](/windows/desktop/api/winuser/nf-winuser-waitforinputidle)). Combine this value with either **PM\_NOREMOVE** or **PM\_REMOVE**. | By default, all message types are processed. To specify that only certain message should be processed, specify one or more of the following values. +| Value | Meaning | +|-------|---------| +| **PM\_QS\_INPUT**
`(QS_INPUT << 16)` | Process mouse and keyboard messages. | +| **PM\_QS\_POSTMESSAGE**
`((QS_POSTMESSAGE \| QS_HOTKEY \| QS_TIMER) << 16)` | Process all posted messages, including timers and hotkeys. | +| **PM\_QS\_PAINT**
`(QS_PAINT << 16)` | Process paint messages. | +| **PM\_QS\_SENDMESSAGE**
`(QS_SENDMESSAGE << 16)` | Process all sent messages. | - - - - - - - - - - - - - - - - - - - - - - -
ValueMeaning
-
PM_QS_INPUT
-
(QS_INPUT << 16)
-
-
- Process mouse and keyboard messages. - -
-
PM_QS_PAINT
-
(QS_PAINT << 16)
-
-
- Process paint messages. - -
-
PM_QS_POSTMESSAGE
-
((QS_POSTMESSAGE | QS_HOTKEY | QS_TIMER) << 16)
-
-
- Process all posted messages, including timers and hotkeys. - -
-
PM_QS_SENDMESSAGE
-
(QS_SENDMESSAGE << 16)
-
-
- Process all sent messages. - -
+For more info on listed `QS_` flags and types of messages see [GetQueueStatus](nf-winuser-getqueuestatus.md) documentation. ## -returns diff --git a/sdk-api-src/content/winuser/nf-winuser-peekmessagew.md b/sdk-api-src/content/winuser/nf-winuser-peekmessagew.md index 2c0c06a31426..69c5242fae20 100644 --- a/sdk-api-src/content/winuser/nf-winuser-peekmessagew.md +++ b/sdk-api-src/content/winuser/nf-winuser-peekmessagew.md @@ -106,104 +106,22 @@ Type: UINT Specifies how messages are to be handled. This parameter can be one or more of the following values. - - - - - - - - - - - - - - - - - -
ValueMeaning
-
PM_NOREMOVE
-
0x0000
-
-
-Messages are not removed from the queue after processing by PeekMessage. - -
-
PM_REMOVE
-
0x0001
-
-
-Messages are removed from the queue after processing by PeekMessage. - -
-
PM_NOYIELD
-
0x0002
-
-
-Prevents the system from releasing any thread that is waiting for the caller to go idle (see WaitForInputIdle). - -Combine this value with either PM_NOREMOVE or PM_REMOVE. - -
-  - +| Value | Meaning | +|-------|---------| +| **PM\_NOREMOVE**
`0x0000` | Messages are not removed from the queue after processing by **PeekMessage**. | +| **PM\_REMOVE**
`0x0001` | Messages are removed from the queue after processing by **PeekMessage**. | +| **PM\_NOYIELD**
`0x0002` | Prevents the system from releasing any thread that is waiting for the caller to go idle (see [WaitForInputIdle](/windows/desktop/api/winuser/nf-winuser-waitforinputidle)). Combine this value with either **PM\_NOREMOVE** or **PM\_REMOVE**. | By default, all message types are processed. To specify that only certain message should be processed, specify one or more of the following values. +| Value | Meaning | +|-------|---------| +| **PM\_QS\_INPUT**
`(QS_INPUT << 16)` | Process mouse and keyboard messages. | +| **PM\_QS\_POSTMESSAGE**
`((QS_POSTMESSAGE \| QS_HOTKEY \| QS_TIMER) << 16)` | Process all posted messages, including timers and hotkeys. | +| **PM\_QS\_PAINT**
`(QS_PAINT << 16)` | Process paint messages. | +| **PM\_QS\_SENDMESSAGE**
`(QS_SENDMESSAGE << 16)` | Process all sent messages. | - - - - - - - - - - - - - - - - - - - - - - -
ValueMeaning
-
PM_QS_INPUT
-
(QS_INPUT << 16)
-
-
- Process mouse and keyboard messages. - -
-
PM_QS_PAINT
-
(QS_PAINT << 16)
-
-
- Process paint messages. - -
-
PM_QS_POSTMESSAGE
-
((QS_POSTMESSAGE | QS_HOTKEY | QS_TIMER) << 16)
-
-
- Process all posted messages, including timers and hotkeys. - -
-
PM_QS_SENDMESSAGE
-
(QS_SENDMESSAGE << 16)
-
-
- Process all sent messages. - -
+For more info on listed `QS_` flags and types of messages see [GetQueueStatus](nf-winuser-getqueuestatus.md) documentation. ## -returns