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 API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,650 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xiaopo Yang - MSFT 12,726 Reputation points Microsoft Vendor
    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 Answers by the question author, which helps users to know the answer solved the author's problem.