CreateFile() Does Not Function Correctly with Certain Flags and Nwredir (242309)
The information in this article applies to:
- Microsoft Windows 95
- Microsoft Windows 98
- Microsoft Windows 98 Second Edition
This article was previously published under Q242309 SYMPTOMS
Creating a file on a NetWare server with Read/Write access may return a handle to a read-only file. The caller is unaware that the file is read-only because GENERIC_READ and GENERIC_WRITE were specified in the CreateFile call.
CAUSE
When CreateFile is called, a read-only file can be opened even thought the GENERIC_READ and GENERIC_WRITE flags were specified by the caller. The problem occurs when you create a file with a long file name on a NetWare server by using Nwredir. The problem occurs in the bindery client as well as Services for NetWare Directory Services.
WORKAROUND
If you call CreateFile(..., GENERIC_READ, ...), this issue is likely to occur. If it succeeds, you can then close the returned handle and call CreateFile(..., GENERIC_READ | GENERIC_WRITE, ...) as normal.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 12/17/2004 |
---|
Keywords: | kbprb kbProgramming KB242309 |
---|
|