How can I set timeout for ReadFile and WriteFile operations,
When using interprocess pipes?
How can I set timeout for ReadFile and WriteFile operations,
When using interprocess pipes?
You have to use the asynchronous version of the function, by specifying FILE_FLAG_OVERLAPPED
.
When a timeout is reached you can call CancelIO
with the file handle.