Microsoft KB Archive/139715

{|
 * width="100%"|

BUG: ReadFile Returns Wrong Error Code for Mailslots

 * }

Q139715

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK), version 4.0

-

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 kbOSWin95bug kbMailslot kbGrpDSNet

Issue type : kbbug

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch kbWin32SDK400