Hi,
You don’t need any special API just to see those files. Normal directory traversal APIs do enumerate them.
For me, directory traversal should list all items the same as Explorer:
-
FindFirstFileW/FindNextFileW- C++:
std::filesystem::directory_iterator
- C++:
If you’re not seeing some entries, check for Unicode issues (filenames with non‑ASCII chars; use wide APIs and std::wcout / WriteConsoleW).
I'm not sure I understand what you really want. Do you want to make your program make your program differentiate file types like how your explorer shows different status? If so, enumeration can give you names + attributes. You can interpret those attributes:
- File attribute bits are documented here: File Attribute Constants
- For Cloud Files specifically, you can use the CFAPI helper: CfGetPlaceholderStateFromAttributeTag → returns a CF_PLACEHOLDER_STATE.
I'm not sure if this is what you wanted though, let me know if you mean something else.