[ros-diffs] [greatlrd] 37587: Implement WinWatchOpen

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Sun Nov 23 14:50:48 CET 2008


Author: greatlrd
Date: Sun Nov 23 07:50:47 2008
New Revision: 37587

URL: http://svn.reactos.org/svn/reactos?rev=37587&view=rev
Log:
Implement WinWatchOpen

Modified:
    branches/reactx/reactos/dll/win32/dciman32/dciman_main.c

Modified: branches/reactx/reactos/dll/win32/dciman32/dciman_main.c
URL: http://svn.reactos.org/svn/reactos/branches/reactx/reactos/dll/win32/dciman32/dciman_main.c?rev=37587&r1=37586&r2=37587&view=diff
==============================================================================
--- branches/reactx/reactos/dll/win32/dciman32/dciman_main.c [iso-8859-1] (original)
+++ branches/reactx/reactos/dll/win32/dciman32/dciman_main.c [iso-8859-1] Sun Nov 23 07:50:47 2008
@@ -12,6 +12,14 @@
 CRITICAL_SECTION ddcs;
 
 
+/* Winwatch internal struct */
+typedef struct _WINWATCH_INT
+{
+    HWND hWnd;
+} WINWATCH_INT, *LPWINWATCH_INT;
+
+
+/* DCI internal struct */
 typedef struct _DCISURFACE_LCL
 {
     BOOL LostSurface;
@@ -393,6 +401,22 @@
     return retvalue;
 }
 
+HWINWATCH WINAPI
+WinWatchOpen(HWND hwnd)
+{
+    LPWINWATCH_INT pWinwatch_int;
+
+    EnterCriticalSection(&ddcs);
+
+    if ( (pWinwatch_int = (LPWINWATCH_INT) HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(WINWATCH_INT) )) != NULL )
+    {
+        pWinwatch_int->hWnd = hwnd;
+    }
+    LeaveCriticalSection(&ddcs);
+    return (HWINWATCH) pWinwatch_int;
+}
+
+
 
 /***********************************************************************************************************/
 /***********************************************************************************************************/



More information about the Ros-diffs mailing list