/[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 1112 by ossman_, Fri Mar 10 15:12:28 2006 UTC revision 1113 by ossman_, Fri Mar 10 16:40:57 2006 UTC
# Line 115  wndproc_hook_proc(int code, WPARAM cur_t Line 115  wndproc_hook_proc(int code, WPARAM cur_t
115    
116                                          GetWindowText(hwnd, title, sizeof(title));                                          GetWindowText(hwnd, title, sizeof(title));
117    
118                                          /* FIXME: Strip title of dangerous characters */                                          vchannel_write("TITLE,0x%x,%s,0x%x", hwnd,
119                                                           vchannel_strfilter(title), 0);
                                         vchannel_write("TITLE,0x%x,%s,0x%x", hwnd, title, 0);  
120    
121                                          if (style & WS_MAXIMIZE)                                          if (style & WS_MAXIMIZE)
122                                                  state = 2;                                                  state = 2;
# Line 166  wndproc_hook_proc(int code, WPARAM cur_t Line 165  wndproc_hook_proc(int code, WPARAM cur_t
165                          break;                          break;
166    
167                  case WM_SETTEXT:                  case WM_SETTEXT:
168                          if (!(style & WS_VISIBLE))                          {
169                                    char *title;
170                                    if (!(style & WS_VISIBLE))
171                                            break;
172                                    title = _strdup((char *) lparam);
173                                    vchannel_write("TITLE,0x%p,%s,0x%x", hwnd,
174                                                   vchannel_strfilter(title), 0);
175                                    free(title);
176                                  break;                                  break;
177                          /* FIXME: Strip title of dangerous characters */                          }
                         vchannel_write("TITLE,0x%p,%s,0x%x", hwnd, (char *) lparam, 0);  
                         break;  
178    
179                  case WM_DESTROY:                  case WM_DESTROY:
180                          if (!(style & WS_VISIBLE))                          if (!(style & WS_VISIBLE))

Legend:
Removed from v.1112  
changed lines
  Added in v.1113

  ViewVC Help
Powered by ViewVC 1.1.26