/[cvs]/joko/Uni/BSArch/03/win32/utils_proc.c
ViewVC logotype

Diff of /joko/Uni/BSArch/03/win32/utils_proc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by joko, Thu Jun 15 22:58:58 2006 UTC revision 1.2 by joko, Thu Jun 15 23:09:44 2006 UTC
# Line 6  BOOL os_start_process(char * filename, B Line 6  BOOL os_start_process(char * filename, B
6    
7    STARTUPINFO si;    STARTUPINFO si;
8    PROCESS_INFORMATION pi;    PROCESS_INFORMATION pi;
9      BOOL proc_ok;
10    
11    //printf("start_process: '%s'\n", filename);    //printf("start_process: '%s'\n", filename);
12        
# Line 15  BOOL os_start_process(char * filename, B Line 16  BOOL os_start_process(char * filename, B
16    ZeroMemory(&pi,sizeof(pi));    ZeroMemory(&pi,sizeof(pi));
17        
18    // actually do something now...    // actually do something now...
19    CreateProcess(    proc_ok = CreateProcess(
20      NULL, filename,      NULL, filename,
21      NULL, NULL, FALSE, 0,      NULL, NULL, FALSE, 0,
22      NULL, NULL,      NULL, NULL,
23      &si,      &si,
24      &pi      &pi
25    );    );
26    check_alert_error("CreateProcess");  
27      // did something fail?
28      if (!proc_ok) {
29        check_alert_error("CreateProcess");
30        return FALSE;
31      }
32        
33    // 1. background mode    // 1. background mode
34    if (background) {    if (background) {

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed