[ros-diffs] [fireball] 42096: - Add CsrNotifyShowDesktop CSR notification, not used now and its future is unclear.

fireball at svn.reactos.org fireball at svn.reactos.org
Mon Jul 20 14:04:51 CEST 2009


Author: fireball
Date: Mon Jul 20 14:04:51 2009
New Revision: 42096

URL: http://svn.reactos.org/svn/reactos?rev=42096&view=rev
Log:
- Add CsrNotifyShowDesktop CSR notification, not used now and its future is unclear.

Modified:
    branches/arwinss/reactos/subsystems/win32/win32k/include/csr.h
    branches/arwinss/reactos/subsystems/win32/win32k/main/csr.c

Modified: branches/arwinss/reactos/subsystems/win32/win32k/include/csr.h
URL: http://svn.reactos.org/svn/reactos/branches/arwinss/reactos/subsystems/win32/win32k/include/csr.h?rev=42096&r1=42095&r2=42096&view=diff
==============================================================================
--- branches/arwinss/reactos/subsystems/win32/win32k/include/csr.h [iso-8859-1] (original)
+++ branches/arwinss/reactos/subsystems/win32/win32k/include/csr.h [iso-8859-1] Mon Jul 20 14:04:51 2009
@@ -5,4 +5,8 @@
 NTSTATUS NTAPI
 CsrNotifyCreateDesktop(HDESK Desktop);
 
+/* Notifies CSR about a show desktop event */
+NTSTATUS NTAPI
+CsrNotifyShowDesktop(HWND DesktopWindow, ULONG Width, ULONG Height);
+
 #endif

Modified: branches/arwinss/reactos/subsystems/win32/win32k/main/csr.c
URL: http://svn.reactos.org/svn/reactos/branches/arwinss/reactos/subsystems/win32/win32k/main/csr.c?rev=42096&r1=42095&r2=42096&view=diff
==============================================================================
--- branches/arwinss/reactos/subsystems/win32/win32k/main/csr.c [iso-8859-1] (original)
+++ branches/arwinss/reactos/subsystems/win32/win32k/main/csr.c [iso-8859-1] Mon Jul 20 14:04:51 2009
@@ -206,4 +206,18 @@
     return STATUS_SUCCESS;
 }
 
+NTSTATUS
+NTAPI
+CsrNotifyShowDesktop(HWND DesktopWindow, ULONG Width, ULONG Height)
+{
+   CSR_API_MESSAGE Request;
+
+   Request.Type = MAKE_CSR_API(SHOW_DESKTOP, CSR_GUI);
+   Request.Data.ShowDesktopRequest.DesktopWindow = DesktopWindow;
+   Request.Data.ShowDesktopRequest.Width = Width;
+   Request.Data.ShowDesktopRequest.Height = Height;
+
+   return co_CsrNotify(&Request);
+}
+
 /* EOF */



More information about the Ros-diffs mailing list