Message52540
Another source seems to suggest that the error message will
differ depending on the Windows version. I think the error
message might be more related to the underlying file system.
Hence since my C drive is formated as FAT WinXP might be
reporting attempted access to the locked pagefile.sys as ERROR_ACCESS_DENIED, however, in other machines where the
C drive could be formated as an NTFS then the error message
will be changed to SHARING_ERROR_VIOLATION.
This makes sense because pagefile.sys seems to be opened
exclusively by Windows in either case. The error differs
depending on the capability of the file system. And so one
would be expected to test for both errors to see if stat
worked.
Regards,
Khalid
Reference [Search of ERROR_SHARING_VIOLATION] in syscalls.cc of Cygwin:
http://www.koders.com/cpp/fid05B16888E9827D2766C45C718ED8620BC82B4DCE.aspx
pagefile.sys |
|
Date |
User |
Action |
Args |
2007-08-23 15:58:17 | admin | link | issue1709112 messages |
2007-08-23 15:58:17 | admin | create | |
|