Returns information about a named-pipe handle.
#define INCL_DOSNMPIPES #include <os2.h> HPIPE hpipe; /* The named-pipe handle to query. */ PULONG pState; /* A pointer to the named-pipe handle state. */ APIRET ulrc; /* Return Code. */ ulrc = DosQueryNPHState(hpipe, pState);