Returns information about a named pipe.
#define INCL_DOSNMPIPES #include <os2.h> HPIPE hpipe; /* The named-pipe handle to query. */ ULONG infolevel; /* Level of the required pipe information. */ PVOID pBuf; /* A pointer to the storage area in which the requested level of named-pipe information is returned. */ ULONG cbBuf; /* The length, in bytes, of pBuf. */ APIRET ulrc; /* Return Code. */ ulrc = DosQueryNPipeInfo(hpipe, infolevel, pBuf, cbBuf);