/[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 1441 by astrand, Thu Mar 6 15:12:26 2008 UTC revision 1442 by astrand, Thu Mar 6 15:35:28 2008 UTC
# Line 183  update_zorder(HWND hwnd) Line 183  update_zorder(HWND hwnd)
183          if ((hwnd == block_hwnd) && (behind == block_behind))          if ((hwnd == block_hwnd) && (behind == block_behind))
184                  vchannel_write("ACK", "%u", serial);                  vchannel_write("ACK", "%u", serial);
185          else          else
186                  vchannel_write("ZCHANGE", "0x%08lx,0x%08lx,0x%08x", hwnd, behind, 0);          {
187                    int flags = 0;
188                    LONG exstyle = GetWindowLong(hwnd, GWL_EXSTYLE);
189                    // handle always on top
190                    if (exstyle & WS_EX_TOPMOST)
191                            flags |= SEAMLESS_CREATE_TOPMOST;
192                    vchannel_write("ZCHANGE", "0x%08lx,0x%08lx,0x%08x", hwnd, behind, flags);
193            }
194    
195          vchannel_unblock();          vchannel_unblock();
196  }  }
# Line 392  wndproc_hook_proc(int code, WPARAM cur_t Line 399  wndproc_hook_proc(int code, WPARAM cur_t
399                                          DWORD pid;                                          DWORD pid;
400                                          int flags;                                          int flags;
401                                          HICON icon;                                          HICON icon;
402                                            LONG exstyle;
403    
404                                            exstyle = GetWindowLong(hwnd, GWL_EXSTYLE);
405                                          GetWindowThreadProcessId(hwnd, &pid);                                          GetWindowThreadProcessId(hwnd, &pid);
406    
407                                          flags = 0;                                          flags = 0;
408                                          if (style & DS_MODALFRAME)                                          if (style & DS_MODALFRAME)
409                                                  flags |= SEAMLESS_CREATE_MODAL;                                                  flags |= SEAMLESS_CREATE_MODAL;
410                                            // handle always on top
411                                            if (exstyle & WS_EX_TOPMOST)
412                                                    flags |= SEAMLESS_CREATE_TOPMOST;
413    
414                                          vchannel_write("CREATE", "0x%08lx,0x%08lx,0x%08lx,0x%08x",                                          vchannel_write("CREATE", "0x%08lx,0x%08lx,0x%08lx,0x%08x",
415                                                         (long) hwnd, (long) pid,                                                         (long) hwnd, (long) pid,

Legend:
Removed from v.1441  
changed lines
  Added in v.1442

  ViewVC Help
Powered by ViewVC 1.1.26