/[rdesktop]/sourceforge.net/trunk/seamlessrdp/ServerExe/HookDll/hookdll.cpp
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/seamlessrdp/ServerExe/HookDll/hookdll.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 994 by astrand, Sun Aug 28 13:06:05 2005 UTC revision 995 by astrand, Mon Aug 29 09:10:13 2005 UTC
# Line 5  Line 5 
5  #include "hookdll.h"  #include "hookdll.h"
6  #include <windows.h>  #include <windows.h>
7  #include <winuser.h>  #include <winuser.h>
8    #include <stdio.h>
9    
10  #include "wtsapi32.h"  #include "wtsapi32.h"
11  #include "Cchannel.h"  #include "Cchannel.h"
# Line 80  LRESULT CALLBACK CallWndProc( int nCode, Line 81  LRESULT CALLBACK CallWndProc( int nCode,
81      RECT rect;      RECT rect;
82            
83      CWPSTRUCT *details = ( CWPSTRUCT * ) lParam;      CWPSTRUCT *details = ( CWPSTRUCT * ) lParam;
84        CREATESTRUCT *cs = ( CREATESTRUCT * ) details->lParam;
85        LONG dwStyle = GetWindowLong( details->hwnd, GWL_STYLE );
86            
87      switch ( details->message ) {      switch ( details->message ) {
88          case WM_SIZING:          case WM_SIZING:
# Line 262  LRESULT CALLBACK CallWndProc( int nCode, Line 265  LRESULT CALLBACK CallWndProc( int nCode,
265                    
266          break;          break;
267                    
268            
269            case WM_CREATE:
270            if ( cs->style & WS_DLGFRAME ) {
271                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",
272                         cs->cx, cs->cy, cs->x, cs->y, cs->lpszName, cs->hMenu, details->hwnd,
273                         cs->style & WS_BORDER, cs->style & WS_DLGFRAME,
274                         cs->style & WS_POPUP );
275                buffer = result;
276            }
277            
278            break;
279            
280            
281            case WM_DESTROY:
282            if ( dwStyle & WS_DLGFRAME ) {
283                sprintf( result, "WM_DESTROY:%p", details->hwnd );
284                buffer = result;
285            }
286            
287            break;
288            
289          default:          default:
290          break;          break;
291      }      }

Legend:
Removed from v.994  
changed lines
  Added in v.995

  ViewVC Help
Powered by ViewVC 1.1.26