Lines 184-189
Link Here
|
184 |
} |
184 |
} |
185 |
|
185 |
|
186 |
static void |
186 |
static void |
|
|
187 |
do_spawn(char *command_line) |
188 |
{ |
189 |
BOOL result; |
190 |
PROCESS_INFORMATION proc_info; |
191 |
STARTUPINFO startup_info; |
192 |
|
193 |
memset(&startup_info, 0, sizeof(STARTUPINFO)); |
194 |
startup_info.cb = sizeof(STARTUPINFO); |
195 |
|
196 |
result = CreateProcess(NULL, command_line, NULL, NULL, FALSE, 0, |
197 |
NULL, NULL, &startup_info, &proc_info); |
198 |
// Release handles |
199 |
CloseHandle(proc_info.hProcess); |
200 |
CloseHandle(proc_info.hThread); |
201 |
} |
202 |
|
203 |
static void |
187 |
process_cmds(void) |
204 |
process_cmds(void) |
188 |
{ |
205 |
{ |
189 |
char line[VCHANNEL_MAX_LINE]; |
206 |
char line[VCHANNEL_MAX_LINE]; |
Lines 219-224
Link Here
|
219 |
(HWND) strtoul(tok4, NULL, 0)); |
236 |
(HWND) strtoul(tok4, NULL, 0)); |
220 |
else if (strcmp(tok1, "FOCUS") == 0) |
237 |
else if (strcmp(tok1, "FOCUS") == 0) |
221 |
do_focus(strtoul(tok2, NULL, 0), (HWND) strtoul(tok3, NULL, 0)); |
238 |
do_focus(strtoul(tok2, NULL, 0), (HWND) strtoul(tok3, NULL, 0)); |
|
|
239 |
else if (strcmp(tok1, "SPAWN") == 0) |
240 |
{ |
241 |
do_spawn(tok3); |
242 |
} |
222 |
} |
243 |
} |
223 |
} |
244 |
} |
224 |
|
245 |
|