I have a thread in my main application which is to act as a named pipe server to other processes. Part of the thread's loop is the call to ConnectNamedPipe() which waits for clients to connect to the pipe.
This is fine, but how do I close down the server application? The ConnectNamedPipe() function only returns when a connection is made so my thread cannot terminate properly.
Thanks in advance.