PRB: OpenFile API returns ERROR_BUFFER_OVERFLOW ErrorLast reviewed: September 27, 1995Article ID: Q137233 |
The information in this article applies to:
SYMPTOMSIf the OpenFile API is passed a path that is longer than MAXPATHNAME, OpenFile returns ERROR_BUFFER_OVERFLOW. One of the parameters to OpenFile is a pointer to the pathname to open. Another parameter is a pointer to an OFSTRUCT structure that will receive information. OFSTRUCT contains a fixed size buffer, szPathName that holds MAXPATHNAME bytes. A path longer than that is not valid.
RESOLUTIONConsider using CreateFile instead of OpenFile.
STATUSThis behavior is by design.
|
Additional reference words: 4.00 Windows 95
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |