title: GetLastError returning ERROR_SUCCESS after calling ConnectNamedPipe
body: <p>When I call ConnectNamedPipe with an OVERLAPPED structure and check GetLastError afterwards, I often see GetLastError return ERROR_SUCCESS. The way I'm reading the <a href="http://msdn.microsoft.com/en-us/library/aa365146%28VS.85%29.aspx" rel="nofollow noreferrer">documentation</a>, that should never happen. My understanding is that if a client has already connected, ERROR_PIPE_CONNECTED should be set, not ERROR_SUCCESS.</p>
  
  <p>Has anyone else seen this? The OS is 32-bit Windows 7.</p>