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/dciman…
==============================================================================
--- 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;
+}
+
+
/***********************************************************************************************************/
/***********************************************************************************************************/