[Box Backup-dev] Win32 file attributes of locked files
Charles Lecklider
boxbackup-dev@fluffy.co.uk
Thu, 10 Aug 2006 02:43:39 +0100
Chris Wilson wrote:
> 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 what point in the cycle does box try to get the attributes?
I've not got time to dig into this tonight (pile of evil SQL to write
for tomorrow...), but:
In order to find the file in the first place, surely something like
FindFirstFile/FindNextFile was called? In which case the
dwFileAttributes field in WIN32_FIND_DATA should have what you need.
-C