Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 3237

Show
Ignore:
Timestamp:
02/21/08 13:40:45 (10 months ago)
Author:
schveiguy
Message:

Changed flag for creating process to CREATE_NO_WINDOW, which appears to have the best of both worlds (does not flash a console window, and allows redirection of stdout/err for batch files).

This flag isn't supported on Windows 95/98/Me, but I don't think that really matters much these days.

fixes #933

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/sys/Process.d

    r3178 r3237  
    651651            // file) 
    652652            if (CreateProcessA(null, command.ptr, null, null, true, 
    653                                0
     653                               DETACHED_PROCESS
    654654                               (_env.length > 0 ? toNullEndedBuffer(_env).ptr : null), 
    655655                               toStringz(_workDir), &startup, _info)) 
  • trunk/tango/sys/win32/Types.di

    r3118 r3237  
    14431443    CREATE_NEW_CONSOLE = (16), 
    14441444    CREATE_NEW_PROCESS_GROUP = (512), 
     1445    CREATE_NO_WINDOW = (0x8000000), 
    14451446    CREATE_SEPARATE_WOW_VDM = (2048), 
    14461447    CREATE_SUSPENDED = (4),