When will `CF_CALLBACK_TYPE_NOTIFY_DEHYDRATE` be invoked

229 ho 20 Reputation points
2024-06-11T13:55:29.0466667+00:00

When the user clicks Free up space in the Explorer menu, CF_CALLBACK_TYPE_NOTIFY_DEHYDRATE and CF_CALLBACK_TYPE_NOTIFY_DEHYDRATE_COMPLETION are not invoked.

In the Cloud Mirror Sample, it uses ReadDirectoryChangesW and checks FILE_ATTRIBUTE_UNPINNED flag to detect if the placeholder is dehydrated by the user, then call a preview API CfDehydratePlaceholder for unknown reasons.

Windows development | Windows API - Win32
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xiaopo Yang - MSFT 12,736 Reputation points Microsoft External Staff
    2024-06-12T02:09:06.78+00:00

    Hello @229 ho,

    You can report the issue at https://github.com/microsoft/Windows-classic-samples/issues.

    CF_CALLBACK_TYPE_NOTIFY_DEHYDRATE and CF_CALLBACK_TYPE_NOTIFY_DEHYDRATE_COMPLETION are also not invoked in the Cloud Mirror Sample for me.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.