runProcessCollectStdout

Run a command and intercept its stdout, which is redirected to sink().

version(Windows)
int
runProcessCollectStdout
(
const(wchar)* szCommand
,
ubyte[] buffer
,
void delegate
(
ubyte[]
)
sink
)

Parameters

szCommand const(wchar)*

command to run

buffer ubyte[]

buffer to collect stdout data to

sink void delegate
(
ubyte[]
)

stdout data is sent to sink()

Return Value

Type: int

Meta