|
|
1.1 root 1: Sample: Converting Anonymous Pipes in OS/2 to Win32
2:
3: Summary:
4:
5: The sample INHERIT demonstrates how to redirect standard
6: output and standard error to an anonymous pipe via the
7: SetStdHandle Win32 API function call. It also demonstrates
8: how to convert the equivalent OS/2 API function calls needed
9: to do this with Win32 API functions.
10:
11: In the sample, a child process is started whose standard
12: output and standard error handles have been redirected to an
13: anonymous pipe. The parent reads out of this pipe and puts
14: the data to both the console and to a log file specified on
15: the command line.
16:
17: More Information:
18:
19: The following is a list of the Win32 API functions used in
20: this sample:
21:
22: CloseHandle CreateProcess ReadFile
23: CreateFile GetLastError SetStdHandle
24: CreatePipe GetStdHandle WriteFile
25:
26:
27:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.