C 言語関数:GetNamedPipeHandleState サンプルコード

サンプルコードを検索した結果です。


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


TITLE : TransactNamedPipe function (Windows)
BOOL WINAPI GetNamedPipeHandleState(.......
http://msdn.microsoft.com/en-us/library/windows/desktop/aa365443(v=vs.85).aspx
TITLE : WaitNamedPipe 関数
BOOL GetNamedPipeHandleState(.......
http://msdn.microsoft.com/ja-jp/library/cc429826.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 : 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
Googleで検索

https://www.google.co.jp/#q=GetNamedPipeHandleState