小编Lan*_*SFT的帖子

Windows 10 文件云/同步提供程序 API - TransferData 问题

我在建设云镜样品和具有类似问题这一个

下面是所涉及的测试代码:

        // When the client needs to fetch data from the cloud, this method will be called.
    // The FakeMirrorDataMover class does the actual work of copying files from
    // the "cloud" to the "client" and updating the transfer status along the way.
    void CALLBACK FakeCloudProvider::OnFetchData(
        _In_ CONST CF_CALLBACK_INFO* callbackInfo,
        _In_ CONST CF_CALLBACK_PARAMETERS* callbackParameters)
    {
        //FileCopierWithProgress::CopyFromServerToClient(callbackInfo, callbackParameters, ProviderFolderLocations::GetServerFolder());
    
            const UINT CHUNKSIZE = 48 * 1024 * 1024;
            UINT len;
            LONG64 offset = callbackParameters->FetchData.RequiredFileOffset.QuadPart;
            LONG64 requiredLength = …
Run Code Online (Sandbox Code Playgroud)

winapi onedrive c++-winrt

1
推荐指数
1
解决办法
143
查看次数

标签 统计

c++-winrt ×1

onedrive ×1

winapi ×1