BUG: ReadFile Returns Wrong Error Code for Mailslots (139715)



The information in this article applies to:

  • Microsoft Win32 Software Development Kit (SDK) 4.0

This article was previously published under Q139715

SYMPTOMS

If a server opens a Mailslot using CreateMailslot(), specifies a timeout, and then uses ReadFile to receive data, the ReadFile will fail if there is no data available. GetLastError() returns an error code of 5 (access denied).

RESOLUTION

Interpret this error code to mean that no data is available.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

Modification Type:MajorLast Reviewed:10/16/2002
Keywords:kbAPI kbBug kbIPC kbMailslot kbnetwork KB139715