The information in this article applies to:
SYMPTOMSOpenFile() successfully opens files with universal naming convention (UNC) names when the server portion of the name is 11 characters or shorter, but fails to open files when the server name is longer than 11 characters. Error code number 2, "File not found," is placed in the nErrCode member of the OFSTRUCT structure passed to OpenFile. CAUSEOpenFile() validates filenames before opening them, and in the case of UNC names, allows server names that are 11 characters or shorter only. No attempt is made to open a file with a UNC name longer than 11 characters. RESOLUTIONTo open files with UNC names when the server name is longer than 11 characters, use _lopen(). STATUS
Microsoft has confirmed this to be a bug in the Windows SDK versions 3.1
and 3.11. We are researching this problem and will post new information
here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONThis problem also affects the File Open common dialog box, because GetOpenFileName() calls OpenFile(). Additional query words: no32bit 3.10
Keywords : kb16bitonly KrFileIO |
Last Reviewed: November 4, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |