@71861387 ,
If the customer isn't writing a cloud sync engine, this will not work since there are no cloud sync engines today (One Drive, iCloud, etc...) who implement partial hydration. Here are the comments from the CFAPI devs: I assume this question is being asked from the perspective of a user who is not an engineer for a cloud provider such as OneDrive, iCloud, etc.
Partial hydration (streaming) a file is a feature that needs to be implemented by the cloud provider app. The Cloud Files platform has APIs in place that support streaming/partial hydration, but since there are no cloud providers that use this feature, it is not possible to partially hydrate a file today. Also, since this feature isn’t being used today, there’s a good chance that if a new provider started using it, they would discover a lot of bugs and we would need to fix them to make this work._
If my assumption was wrong and this is being asked from the perspective of a cloud provider developer, then you just need to try switching the appropriate flags during registration and connection of the sync root. When the provider is hydrating the file, they can specify a range of the file that was hydrated using the_ TransferData params (see CF_OPERATION_PARAMETERS (cfapi.h) - Win32 apps | Microsoft Learn)