Progress
External Program
Interfaces


Accessing Windows NT Named Pipes

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

Table 4–1: Using C and 4GL To Access Windows NT 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 4–1 shows, C lets you create, connect, read, write, and close Windows NT 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. For more information on using the 4GL to access DLLs, see Shared Library and DLL Support."


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