CVS: seamlessrdp/ServerExe/HookDll hookdll.cpp,1.7,1.8

Peter Åstrand <[email protected]>
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/seamlessrdp/ServerExe/HookDll
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10996

Modified Files:
	hookdll.cpp 
Log Message:
Added temporary stubs for WM_CREATE and WM_DESTROY.


Index: hookdll.cpp
===================================================================
RCS file: /cvsroot/rdesktop/seamlessrdp/ServerExe/HookDll/hookdll.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** hookdll.cpp	28 Aug 2005 13:06:05 -0000	1.7
--- hookdll.cpp	29 Aug 2005 09:10:13 -0000	1.8
***************
*** 6,9 ****
--- 6,10 ----
  #include <windows.h>
  #include <winuser.h>
+ #include <stdio.h>
  
  #include "wtsapi32.h"
***************
*** 81,84 ****
--- 82,87 ----
      
      CWPSTRUCT *details = ( CWPSTRUCT * ) lParam;
+     CREATESTRUCT *cs = ( CREATESTRUCT * ) details->lParam;
+     LONG dwStyle = GetWindowLong( details->hwnd, GWL_STYLE );
      
      switch ( details->message ) {
***************
*** 263,266 ****
--- 266,290 ----
          break;
          
+         
+         case WM_CREATE:
+         if ( cs->style & WS_DLGFRAME ) {
+             sprintf( result, "DEBUG:WM_CREATE:%dx%d at %d,%d, title=%s, menu=%p, window=%p, WS_BORDER=%d, WS_DLGFRAME=%d, WS_POPUP=%d",
+                      cs->cx, cs->cy, cs->x, cs->y, cs->lpszName, cs->hMenu, details->hwnd,
+                      cs->style & WS_BORDER, cs->style & WS_DLGFRAME,
+                      cs->style & WS_POPUP );
+             buffer = result;
+         }
+         
+         break;
+         
+         
+         case WM_DESTROY:
+         if ( dwStyle & WS_DLGFRAME ) {
+             sprintf( result, "WM_DESTROY:%p", details->hwnd );
+             buffer = result;
+         }
+         
+         break;
+         
          default:
          break;



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.