Returns information about local named pipes that are attached to a semaphore.
#define INCL_DOSNMPIPES
#include <os2.h>
HSEM hsem; /* The handle of a shared event or muxwait semaphore that was previously attached to one or more named pipes with DosSetNPipeSem. */
PPIPESEMSTATE pnpss; /* A pointer to a buffer containing a record for each named pipe that is attached to the semaphore. */
ULONG cbBuf; /* The size, in bytes, of pnpss. */
APIRET ulrc; /* Return Code. */
ulrc = DosQueryNPipeSemState(hsem, pnpss,
cbBuf);