Hello @sysadmin ,
According to the Cloud Files API documentation, CF_CALLBACK_TYPE_CANCEL_FETCH_PLACEHOLDERS is used to notify the provider that the contents of a placeholder directory are no longer needed, usually because the original request was canceled. The documentation also marks this callback as optional.
So conceptually, it is meant to be triggered when an in-progress placeholder enumeration request is no longer needed by the platform. However, I set up a minimal repro to check the runtime behavior and observed that CF_CALLBACK_TYPE_FETCH_PLACEHOLDERS was triggered successfully, but CF_CALLBACK_TYPE_CANCEL_FETCH_PLACEHOLDERS was not triggered when I:
- closed the Explorer window,
- navigated away to another folder,
- or pressed F5 / Refresh.
I only observed CF_CALLBACK_TYPE_CANCEL_FETCH_PLACEHOLDERS when I terminated explorer.exe from Task Manager.
So based on this repro, the callback does appear to work, but it was not observed for those more typical Explorer actions. In this scenario, it seems safer to treat it as a best-effort notification, rather than assuming it will be raised for every apparent cancellation.
Hope this clarifies your question. If you found my response helpful, please follow this guide to give feedback.
Thank you.