Nota:
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
Bloquea la ejecución del subproceso hasta que el subproceso necesite procesar un nuevo mensaje. El nuevo mensaje podría ser un mensaje de entrada, un mensaje en cola o un mensaje no en cola.
Syntax
BOOL WaitMessage();
Return value
Type: BOOL
Si la función se ejecuta correctamente, el valor devuelto es distinto de cero.
Si se produce un error en la función, el valor devuelto es cero. 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. Los mensajes no procesados existentes (recibidos antes de la última vez que el subproceso ha comprobado la cola) no se consideran nuevos.
Requirements
| Requirement | Value |
|---|---|
| Cliente mínimo compatible | Windows 2000 Professional [solo aplicaciones de escritorio] |
| Servidor mínimo admitido | Windows 2000 Server [solo aplicaciones de escritorio] |
| Target Platform | Windows |
| Header | winuser.h (incluya Windows.h) |
| Library | User32.lib |
| DLL | User32.dll |
| API set | ext-ms-win-ntuser-window-l1-1-4 (introducido en Windows 10, versión 10.0.14393) |
See also
Conceptual
Reference