Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.2 KB

ConnectNamedPipe.md

File metadata and controls

54 lines (36 loc) · 1.2 KB

Home

Function name : ConnectNamedPipe

Group: Pipe - Library: kernel32


Enables a named pipe server process to wait for a client process to connect to an instance of a named pipe.


Code examples:

Using named pipes for interprocess communication

Declaration:

BOOL ConnectNamedPipe(
	HANDLE hNamedPipe,
	LPOVERLAPPED lpOverlapped
);  

FoxPro declaration:

DECLARE INTEGER ConnectNamedPipe IN kernel32;
	INTEGER hNamedPipe,;
	INTEGER lpOverlapped  

Parameters:

hNamedPipe [in] A handle to the server end of a named pipe instance. This handle is returned by the CreateNamedPipe function.

lpOverlapped [in] A pointer to an OVERLAPPED structure.


Return value:

If the function succeeds, the return value is nonzero.


Comments:

A client process connects by calling either the CreateFile or CallNamedPipe function.

See also: DisconnectNamedPipe, CloseHandle.