스레드가 새 메시지를 처리해야 할 때까지 스레드 실행을 차단합니다. 새 메시지는 입력 메시지, 큐에 대기 중인 메시지 또는 큐에 대기되지 않은 메시지일 수 있습니다.
Syntax
BOOL WaitMessage();
Return value
Type: BOOL
함수가 성공하면 반환 값은 0이 아닌 값입니다.
함수가 실패하면 반환 값은 0입니다. To get extended error information, call GetLastError.
Remarks
Note that WaitMessage does not return for unprocessed messages reported by a previous function which checks the queue. This is because functions such as PeekMessage, GetMessage, GetQueueStatus, WaitMessage, MsgWaitForMultipleObjects, and MsgWaitForMultipleObjectsEx check the queue and then change the state information for the queue so that the message is no longer considered new. A subsequent call to WaitMessage will not return until new messages arrive. 처리되지 않은 기존 메시지(스레드가 큐를 마지막으로 확인한 시간 이전에 수신됨)는 새 메시지로 간주되지 않습니다.
Requirements
Requirement | Value |
---|---|
지원되는 최소 클라이언트 | Windows 2000 Professional [데스크톱 앱만 해당] |
지원되는 최소 서버 | Windows 2000 Server [데스크톱 앱만 해당] |
Target Platform | Windows |
Header | winuser.h(Windows.h 포함) |
Library | User32.lib |
DLL | User32.dll |
API set | ext-ms-win-ntuser-window-l1-1-4(Windows 10 버전 10.0.14393에서 도입됨) |
See also
Conceptual
Reference