|
|
Microsoft Windows NT Build 297 06-28-1992
Sample: Converting Anonymous Pipes in OS/2 to Win32 Summary: The sample INHERIT demonstrates how to redirect standard output and standard error to an anonymous pipe via the SetStdHandle Win32 API function call. It also demonstrates how to convert the equivalent OS/2 API function calls needed to do this with Win32 API functions. In the sample, a child process is started whose standard output and standard error handles have been redirected to an anonymous pipe. The parent reads out of this pipe and puts the data to both the console and to a log file specified on the command line. More Information: The following is a list of the Win32 API functions used in this sample: CloseHandle CreateProcess ReadFile CreateFile GetLastError SetStdHandle CreatePipe GetStdHandle WriteFile
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.