BUG: ReadFile Returns Wrong Error Code for Mailslots

ID: Q139715


The information in this article applies to:


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.


Keywords          : kbnetwork kbAPI kbIPC kbSDKPlatform kbWinOS95bug kbMailslot kbGrpNet 
Version           : 
Platform          : 
Issue type        : kbbug 

Last Reviewed: March 5, 1999