Mercurial > hg > xemacs-beta
comparison src/ntproc.c @ 406:b8cc9ab3f761 r21-2-33
Import from CVS: tag r21-2-33
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:17:09 +0200 |
parents | 2f8bb876ab1d |
children | 501cfd01ee6d |
comparison
equal
deleted
inserted
replaced
405:0e08f63c74d2 | 406:b8cc9ab3f761 |
---|---|
407 if (cp == NULL) abort (); | 407 if (cp == NULL) abort (); |
408 | 408 |
409 xzero (start); | 409 xzero (start); |
410 start.cb = sizeof (start); | 410 start.cb = sizeof (start); |
411 | 411 |
412 #ifdef HAVE_NTGUI | |
413 if (NILP (Vwin32_start_process_show_window)) | 412 if (NILP (Vwin32_start_process_show_window)) |
414 start.dwFlags = STARTF_USESTDHANDLES | STARTF_USESHOWWINDOW; | 413 start.dwFlags = STARTF_USESTDHANDLES | STARTF_USESHOWWINDOW; |
415 else | 414 else |
416 start.dwFlags = STARTF_USESTDHANDLES; | 415 start.dwFlags = STARTF_USESTDHANDLES; |
417 start.wShowWindow = SW_HIDE; | 416 start.wShowWindow = SW_HIDE; |
418 | 417 |
419 start.hStdInput = GetStdHandle (STD_INPUT_HANDLE); | 418 start.hStdInput = GetStdHandle (STD_INPUT_HANDLE); |
420 start.hStdOutput = GetStdHandle (STD_OUTPUT_HANDLE); | 419 start.hStdOutput = GetStdHandle (STD_OUTPUT_HANDLE); |
421 start.hStdError = GetStdHandle (STD_ERROR_HANDLE); | 420 start.hStdError = GetStdHandle (STD_ERROR_HANDLE); |
422 #endif /* HAVE_NTGUI */ | |
423 | 421 |
424 /* Explicitly specify no security */ | 422 /* Explicitly specify no security */ |
425 if (!InitializeSecurityDescriptor (&sec_desc, SECURITY_DESCRIPTOR_REVISION)) | 423 if (!InitializeSecurityDescriptor (&sec_desc, SECURITY_DESCRIPTOR_REVISION)) |
426 goto EH_Fail; | 424 goto EH_Fail; |
427 if (!SetSecurityDescriptorDacl (&sec_desc, TRUE, NULL, FALSE)) | 425 if (!SetSecurityDescriptorDacl (&sec_desc, TRUE, NULL, FALSE)) |