Release 10.1A: OpenEdge Development:
Programming Interfaces

> ## Accessing Windows named pipes

> To access a Windows named pipe, you create it, connect it, read it, write it, and close it. Table 11–1 lists these tasks and their C and 4GL equivalents.

> Table 11–1: Using C and 4GL to access Windows named pipes
> Task | C | 4GL
> --- | --- | ---
> Create | CreateNamedPipe() | None
> Connect | ConnectNamedPipe() | None
> Read | ReadFile() FlushFileBuffers() | `INPUT FROM`
> Write | WriteFile() | `OUTPUT TO`
> Close | CloseHandle() | `INPUT CLOSE OUTPUT CLOSE`

> As Table 11–1 shows, C lets you create, connect, read, write, and close Windows named pipes, while the 4GL lets you read, write, and close them.

> Actually, the 4GL lets you perform all the tasks in the table if you use the 4GL’s access to DLLs to call into `kernel32.dll`, which contains all the C functions in the table.

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095