Accessing Windows named pipes
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Accessing Windows named pipes
To access a Windows named pipe, you create it, connect it, read it, write it, and close it. The following table lists these tasks and their C and ABL equivalents.
| Task | C | ABL |
|---|---|---|
| Create | CreateNamedPipe() |
None |
| Connect | ConnectNamedPipe() |
None |
| Read | ReadFile()
|
INPUT FROM |
| Write | WriteFile() |
OUTPUT TO |
| Close | CloseHandle() |
INPUT CLOSE
|
As the above table shows, C lets you create, connect, read, write, and close Windows named pipes, while ABL lets you read, write, and close them.
Actually, ABL lets you perform all the tasks in the table if you use ABL's access to DLLs to call into kernel32.dll, which contains all the C functions in the table.