mirror of
https://github.com/reactos/reactos.git
synced 2026-06-03 01:41:13 +08:00
[NTUSER] Estabilish power callouts and invoke the cleanup procedure when unloading Win32k
This commit is contained in:
@@ -917,6 +917,7 @@ DriverUnload(IN PDRIVER_OBJECT DriverObject)
|
||||
FreeFontSupport();
|
||||
ResetCsrApiPort();
|
||||
ResetCsrProcess();
|
||||
IntWin32PowerManagementCleanup();
|
||||
}
|
||||
|
||||
// Return on failure
|
||||
@@ -984,8 +985,8 @@ DriverEntry(
|
||||
CalloutData.ProcessCallout = Win32kProcessCallback;
|
||||
CalloutData.ThreadCallout = Win32kThreadCallback;
|
||||
// CalloutData.GlobalAtomTableCallout = NULL;
|
||||
// CalloutData.PowerEventCallout = NULL;
|
||||
// CalloutData.PowerStateCallout = NULL;
|
||||
CalloutData.PowerEventCallout = IntHandlePowerEvent;
|
||||
CalloutData.PowerStateCallout = IntHandlePowerState;
|
||||
// CalloutData.JobCallout = NULL;
|
||||
CalloutData.BatchFlushRoutine = NtGdiFlushUserBatch;
|
||||
CalloutData.DesktopOpenProcedure = IntDesktopObjectOpen;
|
||||
|
||||
@@ -195,7 +195,14 @@ NtUserInitialize(
|
||||
/* Save the EPROCESS of CSRSS */
|
||||
InitCsrProcess(/*PsGetCurrentProcess()*/);
|
||||
|
||||
// Initialize Power Request List (use hPowerRequestEvent).
|
||||
/* Initialize Power Request List */
|
||||
Status = IntInitWin32PowerManagement(hPowerRequestEvent);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
UserLeave();
|
||||
return Status;
|
||||
}
|
||||
|
||||
// Initialize Media Change (use hMediaRequestEvent).
|
||||
|
||||
/* Initialize various GDI stuff (DirectX, fonts, language ID etc.) */
|
||||
|
||||
Reference in New Issue
Block a user