Funzione GetCurrentUmsThread (winbase.h)

Restituisce il contesto del thread di pianificazione in modalità utente del thread di messaggistica unificata chiamante.

Avviso

A partire da Windows 11, la pianificazione in modalità utente non è supportata. Tutte le chiamate hanno esito negativo con l'errore ERROR_NOT_SUPPORTED.

Sintassi

PUMS_CONTEXT GetCurrentUmsThread();

Valore restituito

La funzione restituisce un puntatore al contesto del thread UMS del thread chiamante.

Se il thread chiamante non è un thread UMS, la funzione restituisce NULL. Per informazioni dettagliate sull'errore, chiamare GetLastError.

Commenti

La funzione GetCurrentUmsThread può essere chiamata per un thread dell'utilità di pianificazione UMS o un thread di lavoro UMS.

Requisiti

Requisito Valore
Client minimo supportato Windows 7 (solo a 64 bit) [solo app desktop]
Server minimo supportato Windows Server 2008 R2 [solo app desktop]
Piattaforma di destinazione Windows
Intestazione winbase.h (include Windows.h)
Libreria Kernel32.lib
DLL Kernel32.dll
Set di API api-ms-win-core-ums-l1-1-0 (introdotto in Windows 7)