/[rdesktop]/sourceforge.net/trunk/seamlessrdp/ServerExe/HookDll/hookdll.c
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.c

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

revision 1091 by astrand, Fri Mar 10 09:12:36 2006 UTC revision 1096 by ossman_, Fri Mar 10 12:27:38 2006 UTC
# Line 157  wndproc_hook_proc(int code, WPARAM cur_t Line 157  wndproc_hook_proc(int code, WPARAM cur_t
157  static LRESULT CALLBACK  static LRESULT CALLBACK
158  cbt_hook_proc(int code, WPARAM wparam, LPARAM lparam)  cbt_hook_proc(int code, WPARAM wparam, LPARAM lparam)
159  {  {
         char title[150];  
   
160          if (code < 0)          if (code < 0)
161                  goto end;                  goto end;
162    
# Line 170  cbt_hook_proc(int code, WPARAM wparam, L Line 168  cbt_hook_proc(int code, WPARAM wparam, L
168    
169                                  show = LOWORD(lparam);                                  show = LOWORD(lparam);
170    
                                 if ((show == SW_SHOWMINIMIZED) || (show == SW_MINIMIZE))  
                                 {  
                                         MessageBox(0,  
                                                    "Minimizing windows is not allowed in this version. Sorry!",  
                                                    "SeamlessRDP", MB_OK);  
                                         return 1;  
                                 }  
   
                                 GetWindowText((HWND) wparam, title, sizeof(title));  
   
                                 /* FIXME: Strip title of dangerous characters */  
   
171                                  if (show == SW_SHOWNORMAL)                                  if (show == SW_SHOWNORMAL)
172                                          state = 0;                                          state = 0;
173                                  else if (show == SW_SHOWMINIMIZED)                                  else if (show == SW_SHOWMINIMIZED)
174                                          state = 1;                                          state = 1;
175                                  else if (show == SW_SHOWMAXIMIZED)                                  else if (show == SW_SHOWMAXIMIZED)
176                                          state = 2;                                          state = 2;
177                                  vchannel_write("SETSTATE,0x%p,%s,0x%x,0x%x",                                  vchannel_write("STATE,0x%p,0x%x,0x%x", (HWND) wparam, state, 0);
                                                (HWND) wparam, title, state, 0);  
178                                  break;                                  break;
179                          }                          }
180    

Legend:
Removed from v.1091  
changed lines
  Added in v.1096

  ViewVC Help
Powered by ViewVC 1.1.26