|
1 | 1 | ! Copyright (C) 2007, 2010 Doug Coleman, Slava Pestov. |
2 | 2 | ! See http://factorcode.org/license.txt for BSD license. |
3 | 3 | USING: accessors alien alien.c-types alien.data arrays assocs |
4 | | -classes classes.struct combinators concurrency.flags |
5 | | -continuations debugger destructors init io io.backend |
6 | | -io.backend.windows io.files io.files.private io.files.windows |
7 | | -io.launcher io.launcher.private io.pathnames io.pipes |
8 | | -io.pipes.windows io.ports kernel libc locals make math |
9 | | -namespaces prettyprint sequences specialized-arrays splitting |
10 | | -splitting.monotonic strings system threads windows |
| 4 | +classes classes.struct combinators combinators.short-circuit |
| 5 | +concurrency.flags continuations debugger destructors init io |
| 6 | +io.backend io.backend.windows io.files io.files.private |
| 7 | +io.files.windows io.launcher io.launcher.private io.pathnames |
| 8 | +io.pipes io.pipes.windows io.ports kernel libc literals locals |
| 9 | +make math namespaces prettyprint sequences specialized-arrays |
| 10 | +splitting splitting.monotonic strings system threads windows |
11 | 11 | windows.errors windows.handles windows.kernel32 windows.types |
12 | | -combinators.short-circuit ; |
| 12 | +windows.user32 ; |
13 | 13 | SPECIALIZED-ARRAY: ushort |
14 | 14 | SPECIALIZED-ARRAY: void* |
15 | 15 | IN: io.launcher.windows |
@@ -123,7 +123,13 @@ TUPLE: CreateProcess-args |
123 | 123 | ] when ; |
124 | 124 |
|
125 | 125 | : fill-startup-info ( process args -- process args ) |
126 | | - dup lpStartupInfo>> STARTF_USESTDHANDLES >>dwFlags drop ; |
| 126 | + over hidden>> [ dup lpStartupInfo>> ] dip |
| 127 | + [ |
| 128 | + flags{ STARTF_USESTDHANDLES STARTF_USESHOWWINDOW } >>dwFlags |
| 129 | + SW_HIDE >>wShowWindow |
| 130 | + ] [ |
| 131 | + STARTF_USESTDHANDLES >>dwFlags |
| 132 | + ] if drop ; |
127 | 133 |
|
128 | 134 | : make-CreateProcess-args ( process -- args ) |
129 | 135 | default-CreateProcess-args |
|
0 commit comments