[Box Backup-dev] Win32 file attributes of locked files
Chris Wilson
boxbackup-dev@fluffy.co.uk
Thu, 10 Aug 2006 01:49:43 +0100 (BST)
Hi all (especially Charles),
I have a bit of a problem with file attributes on Win32. I want people to
be able to exclude files like pagefile.sys which are locked, and avoid
the usual warnings in the event log whenever we can't open a file for
some reason.
At the moment, people have to specify either ExcludeFile or ExcludeDir in
the Box config, but I can't find a way to find out if such a file is
really a file, or a directory. Even GetFileAttributes() returns a sharing
violation on pagefile.sys.
What can I do? Is there a magic API call that does work? Should I check
against both exclude lists, and exclude it without errors if either list
matches?
Cheers, Chris.
--
_ ___ __ _
/ __/ / ,__(_)_ | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |