更新:2006.12.10 (dmd 0.177) dmd test.d win32/winbase.d -unittest import std.stdio; import std.stream; import std.string; import win32.windows; import win32.psapi; import win32.winbase; void main(char[][]argv){ } unittest{ PipeTest a = new PipeTest(); a.createPipe("0.in"); a.createProcess("a.exe"); a.resume(0); a.writeToPipe(); a.readFromPipe(); } class PipeTest { private: const uint BUFSIZE = 4096;