--- sourceforge.net/trunk/seamlessrdp/ServerExe/HookDll/hookdll.c 2006/03/20 09:36:23 1162 +++ sourceforge.net/trunk/seamlessrdp/ServerExe/HookDll/hookdll.c 2006/03/20 10:31:58 1163 @@ -88,7 +88,7 @@ && (rect.right == blocked.right) && (rect.bottom == blocked.bottom)) return; - vchannel_write("POSITION,0x%p,%d,%d,%d,%d,0x%x", + vchannel_write("POSITION", "0x%p,%d,%d,%d,%d,0x%x", hwnd, rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, 0); } @@ -120,7 +120,7 @@ if ((hwnd == block_hwnd) && (behind == block_behind)) return; - vchannel_write("ZCHANGE,0x%p,0x%p,0x%x", hwnd, behind, 0); + vchannel_write("ZCHANGE", "0x%p,0x%p,0x%x", hwnd, behind, 0); } static LRESULT CALLBACK @@ -168,11 +168,11 @@ unsigned short title[150]; int state; - vchannel_write("CREATE,0x%p,0x%p,0x%x", hwnd, parent, 0); + vchannel_write("CREATE", "0x%p,0x%p,0x%x", hwnd, parent, 0); GetWindowTextW(hwnd, title, sizeof(title) / sizeof(*title)); - vchannel_write("TITLE,0x%x,%s,0x%x", hwnd, + vchannel_write("TITLE", "0x%x,%s,0x%x", hwnd, vchannel_strfilter_unicode(title), 0); if (style & WS_MAXIMIZE) @@ -184,11 +184,11 @@ update_position(hwnd); - vchannel_write("STATE,0x%p,0x%x,0x%x", hwnd, state, 0); + vchannel_write("STATE", "0x%p,0x%x,0x%x", hwnd, state, 0); } if (wp->flags & SWP_HIDEWINDOW) - vchannel_write("DESTROY,0x%p,0x%x", hwnd, 0); + vchannel_write("DESTROY", "0x%p,0x%x", hwnd, 0); if (!(style & WS_VISIBLE) || (style & WS_MINIMIZE)) break; @@ -214,7 +214,7 @@ case WM_DESTROY: if (!(style & WS_VISIBLE)) break; - vchannel_write("DESTROY,0x%p,0x%x", hwnd, 0); + vchannel_write("DESTROY", "0x%p,0x%x", hwnd, 0); break; default: @@ -283,7 +283,7 @@ /* We cannot use the string in lparam because we need unicode. */ GetWindowTextW(hwnd, title, sizeof(title) / sizeof(*title)); - vchannel_write("TITLE,0x%p,%s,0x%x", hwnd, + vchannel_write("TITLE", "0x%p,%s,0x%x", hwnd, vchannel_strfilter_unicode(title), 0); break; } @@ -338,8 +338,8 @@ } if ((blocked_hwnd != (HWND) wparam) || (blocked != state)) - vchannel_write("STATE,0x%p,0x%x,0x%x", (HWND) wparam, state, - 0); + vchannel_write("STATE", "0x%p,0x%x,0x%x", (HWND) wparam, + state, 0); break; }