DOCERR: Return Values for EditStreamCallback Are Incorrect

Last reviewed: January 5, 1998
Article ID: Q136810
The information in this article applies to:
  • Microsoft Win32 Application Programming Interface (API) included with: - Microsoft Windows NT version 3.51 - Microsoft Windows 95 - Microsoft Win32s version 1.3

SUMMARY

The Win32 SDK documents the return values for the EditStreamCallback incorrectly when the RichEdit control is streaming text in and out. Currently the documentation states that the return value is dependant on whether the control is reading text in or writing text out.

The correct return value for both reading and writing is zero if the read or write was successful, or a non-zero error code otherwise. The number of bytes read or written should be returned in the *pcb parameter. The EditStreamCallback function is called until *pcb receives a zero value. The return value from the EditStreamCallback is interpreted as an SCODE and zero is a successful SCODE. The error code that is returned by the EditStreamCallback is copied to the EDITSTREAM.dwError field so the caller can get an error status.


Additional query words: 1.30 4.00 EM_STREAMIN EM_STREAMOUT RichEdit
Keywords : UsrCtl
Platform : Win95 winnt
Issue type : kbdocerr


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 5, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.