/[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 1083 by ossman_, Thu Mar 9 16:28:57 2006 UTC revision 1091 by astrand, Fri Mar 10 09:12:36 2006 UTC
# Line 60  update_position(HWND hwnd) Line 60  update_position(HWND hwnd)
60                  return;                  return;
61          }          }
62    
63          vchannel_write("POSITION1,0x%p,%d,%d,%d,%d,0x%x",          vchannel_write("POSITION,0x%p,%d,%d,%d,%d,0x%x",
64                         hwnd,                         hwnd,
65                         rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, 0);                         rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, 0);
66  }  }
# Line 101  wndproc_hook_proc(int code, WPARAM cur_t Line 101  wndproc_hook_proc(int code, WPARAM cur_t
101                                  {                                  {
102                                          // FIXME: Now, just like create!                                          // FIXME: Now, just like create!
103                                          debug("SWP_SHOWWINDOW for %p!", hwnd);                                          debug("SWP_SHOWWINDOW for %p!", hwnd);
104                                          vchannel_write("CREATE1,0x%p,0x%x", hwnd, 0);                                          vchannel_write("CREATE,0x%p,0x%x", hwnd, 0);
105    
106                                          // FIXME: SETSTATE                                          // FIXME: SETSTATE
107    
# Line 109  wndproc_hook_proc(int code, WPARAM cur_t Line 109  wndproc_hook_proc(int code, WPARAM cur_t
109                                  }                                  }
110    
111                                  if (wp->flags & SWP_HIDEWINDOW)                                  if (wp->flags & SWP_HIDEWINDOW)
112                                          vchannel_write("DESTROY1,0x%p,0x%x", hwnd, 0);                                          vchannel_write("DESTROY,0x%p,0x%x", hwnd, 0);
113    
114                                  if (!(style & WS_VISIBLE))                                  if (!(style & WS_VISIBLE))
115                                          break;                                          break;
# Line 119  wndproc_hook_proc(int code, WPARAM cur_t Line 119  wndproc_hook_proc(int code, WPARAM cur_t
119    
120                                  if (!(wp->flags & SWP_NOZORDER))                                  if (!(wp->flags & SWP_NOZORDER))
121                                  {                                  {
122                                          vchannel_write("ZCHANGE1,0x%p,0x%p,0x%x",                                          vchannel_write("ZCHANGE,0x%p,0x%p,0x%x",
123                                                         hwnd,                                                         hwnd,
124                                                         wp->flags & SWP_NOACTIVATE ? wp->                                                         wp->flags & SWP_NOACTIVATE ? wp->
125                                                         hwndInsertAfter : 0, 0);                                                         hwndInsertAfter : 0, 0);
# Line 143  wndproc_hook_proc(int code, WPARAM cur_t Line 143  wndproc_hook_proc(int code, WPARAM cur_t
143                  case WM_DESTROY:                  case WM_DESTROY:
144                          if (!(style & WS_VISIBLE))                          if (!(style & WS_VISIBLE))
145                                  break;                                  break;
146                          vchannel_write("DESTROY1,0x%p,0x%x", hwnd, 0);                          vchannel_write("DESTROY,0x%p,0x%x", hwnd, 0);
147                          break;                          break;
148    
149                  default:                  default:
# Line 188  cbt_hook_proc(int code, WPARAM wparam, L Line 188  cbt_hook_proc(int code, WPARAM wparam, L
188                                          state = 1;                                          state = 1;
189                                  else if (show == SW_SHOWMAXIMIZED)                                  else if (show == SW_SHOWMAXIMIZED)
190                                          state = 2;                                          state = 2;
191                                  vchannel_write("SETSTATE1,0x%p,%s,0x%x,0x%x",                                  vchannel_write("SETSTATE,0x%p,%s,0x%x,0x%x",
192                                                 (HWND) wparam, title, state, 0);                                                 (HWND) wparam, title, state, 0);
193                                  break;                                  break;
194                          }                          }

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

  ViewVC Help
Powered by ViewVC 1.1.26