branch update for HEAD-2003050101
[reactos.git] / subsys / win32k / ntuser / winsta.c
index 1bec018..9833d55 100644 (file)
@@ -847,6 +847,18 @@ W32kInitializeDesktopGraphics(VOID)
   NtUserAcquireOrReleaseInputOwnership(FALSE);
 }
 
+VOID
+W32kEndDesktopGraphics(VOID)
+{
+  NtUserAcquireOrReleaseInputOwnership(TRUE);
+  EnableMouse(FALSE);
+  if (NULL != ScreenDeviceContext)
+    {
+      W32kDeleteDC(ScreenDeviceContext);
+      ScreenDeviceContext = NULL;
+    }
+}
+
 HDC
 W32kGetScreenDC(VOID)
 {