Retrieves information about a specified named pipe. The information returned can vary during the lifetime of an instance of the named pipe.
BOOL GetNamedPipeHandleState( HANDLE hNamedPipe, LPDWORD lpState, LPDWORD lpCurInstances, LPDWORD lpMaxCollectionCount, LPDWORD lpCollectDataTimeout, LPSTR lpUserName, DWORD nMaxUserNameSize )
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.
The GetNamedPipeHandleState function returns successfully even if all of the pointers passed to it are NULL.
To set the pipe handle state, use the SetNamedPipeHandleState function.
SetNamedPipeHandleState
origin.h