OneDrive on demand istatus cons

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

OneDrive on demand istatus cons

Post by *Horst.Epp »

Is there any way to get the OneDrive on demand status icons as shown in Explorer ?
This Windows feature is available with Fall Creators Update and the actual OneDrive client.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48028
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I have investigated this for the last few days, but decided against adding it to TC9.10 yet: It's almost completely undocumented how to check these file system links whether they point to local data or not. I hope that Microsoft will bring out some official documentation for this soon, now that the Fall Creators Update is out.

So far I only found one way to check this:
1. Open the "file" with CreateFileW and option FILE_FLAG_OPEN_REPARSE_POINT.
2. Call DeviceIoControl with option FSCTL_GET_REPARSE_POINT
3. Check the value of the ReparseTag variable: If the value is 0x9000401A, the file is cloud only. If it's $9000601A, it's also available locally.

However, I couldn't find a way to check whether the file is local (green hollow circle), or if it's set to always be available locally (green filled circle).

So if anyone knows an API to check this status, please let me know!
Author of Total Commander
https://www.ghisler.com
Post Reply