On Tue, Apr 11, 2000 at 05:04:15PM +0200, Andreas Mohr wrote:
> FILE_CreateFile() does:
[snip]

While you're at it; something I discovered last night.

CreateFile("c:\\mydocu~1", GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE,
        NULL, OPEN_EXISTING, 0, 0);
returns -1 with ERROR_ACCESS_DENIED

however
CreateFile("c:\\mydocu~1\\", GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE,
        NULL, OPEN_EXISTING, 0, 0);
[ie. the same thing with '\\' appended to the path]
returns -1 with ERROR_PATH_NOT_FOUND

Huw.
-- 
   Dr. Huw D M Davies              | Clarendon Laboratory
   [EMAIL PROTECTED]      | Parks Road
   Tel: +44 1865 272390            | Oxford OX1 3PU
   Fax: +44 1865 272400            | UK

Reply via email to