Platform SDK: Interprocess Communications |
The GetNamedPipeInfo function retrieves information about the specified named pipe.
BOOL GetNamedPipeInfo( HANDLE hNamedPipe, // handle to named pipe LPDWORD lpFlags, // pipe type LPDWORD lpOutBufferSize, // size of output buffer LPDWORD lpInBufferSize, // size of input buffer LPDWORD lpMaxInstances // maximum number of pipe instances );
Windows NT/2000: This parameter can also be a handle to an anonymous pipe, as returned by the CreatePipe function.
Value | Meaning |
---|---|
PIPE_CLIENT_END | The handle refers to the client end of a named pipe instance. This is the default. |
PIPE_SERVER_END | The handle refers to the server end of a named pipe instance. If this value is not specified, the handle refers to the client end of a named pipe instance. |
PIPE_TYPE_BYTE | The named pipe is a byte pipe. This is the default. |
PIPE_TYPE_MESSAGE | The named pipe is a message pipe. If this value is not specified, the pipe is a byte pipe. |
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Windows NT/2000: Requires Windows NT 3.1 or later.
Windows 95/98: Requires Windows 95 or later.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Kernel32.lib.
Pipes Overview, Pipe Functions, CreateNamedPipe, GetNamedPipeHandleState