InitializeListHead(&ppiCurrent->DriverObjListHead);
ExInitializeFastMutex(&ppiCurrent->DriverObjListLock);
- ppiCurrent->KeyboardLayout = W32kGetDefaultKeyLayout();
{
PKEVENT Event;
return Status;
}
+VOID
+UserDisplayNotifyShutdown(PPROCESSINFO ppiCurrent);
+
NTSTATUS
NTAPI
ExitThreadCallback(PETHREAD Thread)
ptiCurrent->TIF_flags |= TIF_DONTATTACHQUEUE;
ptiCurrent->pClientInfo->dwTIFlags = ptiCurrent->TIF_flags;
+ UserCloseClipboard();
+
/* Decrement thread count and check if its 0 */
ppiCurrent->cThreads--;
gptiForeground = NULL;
}
+ /* Restore display mode when we are the last thread, and we changed the display mode */
+ if (ppiCurrent->cThreads == 0)
+ UserDisplayNotifyShutdown(ppiCurrent);
+
+
// Fixes CORE-6384 & CORE-7030.
/* if (ptiLastInput == ptiCurrent)
{
NT_ROF(InitTimerImpl());
NT_ROF(InitDCEImpl());
+ gusLanguageID = UserGetLanguageID();
+
/* Initialize FreeType library */
if (!InitFontSupport())
{
return Status;
}
- gusLanguageID = UserGetLanguageID();
-
return STATUS_SUCCESS;
}