/[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 1162 by ossman_, Mon Mar 20 09:36:23 2006 UTC revision 1163 by ossman_, Mon Mar 20 10:31:58 2006 UTC
# Line 88  update_position(HWND hwnd) Line 88  update_position(HWND hwnd)
88              && (rect.right == blocked.right) && (rect.bottom == blocked.bottom))              && (rect.right == blocked.right) && (rect.bottom == blocked.bottom))
89                  return;                  return;
90    
91          vchannel_write("POSITION,0x%p,%d,%d,%d,%d,0x%x",          vchannel_write("POSITION", "0x%p,%d,%d,%d,%d,0x%x",
92                         hwnd,                         hwnd,
93                         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);
94  }  }
# Line 120  update_zorder(HWND hwnd) Line 120  update_zorder(HWND hwnd)
120          if ((hwnd == block_hwnd) && (behind == block_behind))          if ((hwnd == block_hwnd) && (behind == block_behind))
121                  return;                  return;
122    
123          vchannel_write("ZCHANGE,0x%p,0x%p,0x%x", hwnd, behind, 0);          vchannel_write("ZCHANGE", "0x%p,0x%p,0x%x", hwnd, behind, 0);
124  }  }
125    
126  static LRESULT CALLBACK  static LRESULT CALLBACK
# Line 168  wndproc_hook_proc(int code, WPARAM cur_t Line 168  wndproc_hook_proc(int code, WPARAM cur_t
168                                          unsigned short title[150];                                          unsigned short title[150];
169                                          int state;                                          int state;
170    
171                                          vchannel_write("CREATE,0x%p,0x%p,0x%x", hwnd, parent, 0);                                          vchannel_write("CREATE", "0x%p,0x%p,0x%x", hwnd, parent, 0);
172    
173                                          GetWindowTextW(hwnd, title, sizeof(title) / sizeof(*title));                                          GetWindowTextW(hwnd, title, sizeof(title) / sizeof(*title));
174    
175                                          vchannel_write("TITLE,0x%x,%s,0x%x", hwnd,                                          vchannel_write("TITLE", "0x%x,%s,0x%x", hwnd,
176                                                         vchannel_strfilter_unicode(title), 0);                                                         vchannel_strfilter_unicode(title), 0);
177    
178                                          if (style & WS_MAXIMIZE)                                          if (style & WS_MAXIMIZE)
# Line 184  wndproc_hook_proc(int code, WPARAM cur_t Line 184  wndproc_hook_proc(int code, WPARAM cur_t
184    
185                                          update_position(hwnd);                                          update_position(hwnd);
186    
187                                          vchannel_write("STATE,0x%p,0x%x,0x%x", hwnd, state, 0);                                          vchannel_write("STATE", "0x%p,0x%x,0x%x", hwnd, state, 0);
188                                  }                                  }
189    
190                                  if (wp->flags & SWP_HIDEWINDOW)                                  if (wp->flags & SWP_HIDEWINDOW)
191                                          vchannel_write("DESTROY,0x%p,0x%x", hwnd, 0);                                          vchannel_write("DESTROY", "0x%p,0x%x", hwnd, 0);
192    
193                                  if (!(style & WS_VISIBLE) || (style & WS_MINIMIZE))                                  if (!(style & WS_VISIBLE) || (style & WS_MINIMIZE))
194                                          break;                                          break;
# Line 214  wndproc_hook_proc(int code, WPARAM cur_t Line 214  wndproc_hook_proc(int code, WPARAM cur_t
214                  case WM_DESTROY:                  case WM_DESTROY:
215                          if (!(style & WS_VISIBLE))                          if (!(style & WS_VISIBLE))
216                                  break;                                  break;
217                          vchannel_write("DESTROY,0x%p,0x%x", hwnd, 0);                          vchannel_write("DESTROY", "0x%p,0x%x", hwnd, 0);
218                          break;                          break;
219    
220                  default:                  default:
# Line 283  wndprocret_hook_proc(int code, WPARAM cu Line 283  wndprocret_hook_proc(int code, WPARAM cu
283                                  /* We cannot use the string in lparam because                                  /* We cannot use the string in lparam because
284                                     we need unicode. */                                     we need unicode. */
285                                  GetWindowTextW(hwnd, title, sizeof(title) / sizeof(*title));                                  GetWindowTextW(hwnd, title, sizeof(title) / sizeof(*title));
286                                  vchannel_write("TITLE,0x%p,%s,0x%x", hwnd,                                  vchannel_write("TITLE", "0x%p,%s,0x%x", hwnd,
287                                                 vchannel_strfilter_unicode(title), 0);                                                 vchannel_strfilter_unicode(title), 0);
288                                  break;                                  break;
289                          }                          }
# Line 338  cbt_hook_proc(int code, WPARAM wparam, L Line 338  cbt_hook_proc(int code, WPARAM wparam, L
338                                  }                                  }
339    
340                                  if ((blocked_hwnd != (HWND) wparam) || (blocked != state))                                  if ((blocked_hwnd != (HWND) wparam) || (blocked != state))
341                                          vchannel_write("STATE,0x%p,0x%x,0x%x", (HWND) wparam, state,                                          vchannel_write("STATE", "0x%p,0x%x,0x%x", (HWND) wparam,
342                                                         0);                                                         state, 0);
343    
344                                  break;                                  break;
345                          }                          }

Legend:
Removed from v.1162  
changed lines
  Added in v.1163

  ViewVC Help
Powered by ViewVC 1.1.26