Now that Microsoft has restored OneDrive to the file system in Windows 10 (and assuming that they will not give birth again after 6 months), I'm looking for how to determine the synchronization status for an arbitrary file.
There are at least five different states in the conductor (this is exactly what I observed, there may be others):
Available online
Available on this device
Always available on this device.
Sync / Download
Mistake
The first two states for a file can be determined using the FILE_ATTRIBUTE_OFFLINE attribute.
It seems that the Always Available status can be defined for the file using the new undocumented file attribute 0x00080000 .
The definition of these states for folders, as well as synchronization and error states for files and folders, however, remains a mystery.
My first thought was to use a property system ( IPropertyStore ), but the following four property keys did not help:
PKEY_OfflineAvailability returns VT_EMPTYPKEY_OfflineStatus returns VT_EMPTYPKEY_FilePlaceholderStatus returns an undocumented value (0xe), but it does not change when the status executesPKEY_FileOfflineAvailabilityStatus returns VT_EMPTY
I have a feeling that this will become just another undocumented Microsoft API, but I thought I'd ask to see if anyone had any suggestions.
windows winapi windows-shell
Jonathan potter
source share