C language function:GetNamedPipeHandleState sample codes

Search sample code in the internet.It is the result.


TITLE : Pipe.cpp
BOOL Success = GetNamedPipeHandleState(.......
http://graphics.stanford.edu/~mdfisher/Code/Engine/Pipe.cpp.html


TITLE : GetNamedPipeHandleState function (Windows)
BOOL WINAPI GetNamedPipeHandleState(.......
http://msdn.microsoft.com/ja-jp/library/windows/desktop/aa365443(v=vs.85).aspx
TITLE : winapi - How to detect a client disconnect using a named pipe client/server? - Stack Overflow
I've tried using GetNamedPipeHandleState() hoping it return failure and a call to GetLastError() would return ERROR_PIPE_NOT_CONNECTED, but that was not the case. Because of the way this server is set up I had to do this in the CompletedReadRoutine function and create a "controlled" failure. What I did was, with a breakpoint on the CompletedReadRoutine in the server:.......
http://stackoverflow.com/questions/2375320/how-to-detect-a-client-disconnect-using-a-named-pipe-client-server
TITLE : winapi - How to detect a client disconnect using a named pipe client/server? - Stack Overflow
The call to GetNamedPipeHandleState() returns successfully so I never got to do the GetLastError() call. When it gets to the WriteFileEx call it fails and a call to GetLastError at that point returns an ERROR_NO_DATA........
http://stackoverflow.com/questions/2375320/how-to-detect-a-client-disconnect-using-a-named-pipe-client-server
TITLE : 【PB】PowerBuilder API Site
FUNCTION ulong GetNamedPipeHandleState(ulong hNamedPipe,ref ulong lpState,ref ulong lpCurInstances,ref ulong lpMaxCollectionCount,ref ulong lpCollectDataTimeout,ref string lpUserName,ulong nMaxUserNameSize) LIBRARY "kernel32.dll" ALIAS FOR "GetNamedPipeHandleStateA".......
http://www.360doc.com/content/13/0216/20/11408198_266000549.shtml
TITLE : Information and references for other API calls for Windows name pipe and C name pipe client program examples
BOOL GetNamedPipeHandleState(.......
http://www.winsocketdotnetworkprogramming.com/winsock2programming/winsock2advancednamedpipe15b.html
search Google

https://www.google.com/#q=GetNamedPipeHandleState