Knowledge Base

BUG: ReadFile Returns Wrong Error Code for Mailslots

Article ID: 139715

Article Last Modified on 10/16/2002


APPLIES TO


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.

Keywords: kbbug kbapi kbmailslot kbnetwork kbipc KB139715