Priority in CF_CALLBACK_INFO

Neeraj Sharma 11 Reputation points
2022-04-04T05:51:05.813+00:00

Structure CF_CALLBACK_INFO contain a variable PriorityHint which can very from 0 to 15. It can be used to prioritise fetch requests.
I am not able to find anywhere how can we set this.

For workflow
i just open a file handle and read data and OS starts fetching data using extension by passing this structure. How can i tell OS to change this PriorityHint.

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,654 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Junjie Zhu - MSFT 18,501 Reputation points Microsoft Vendor
    2022-04-11T06:38:53.773+00:00

    Hello,@Neeraj Sharma
    Welcome to Microsoft Q&A!

    PriorityHint is managed by Cloud filter, and there is no such attribute in normal files.
    Currently, there is no dedicated api to serve it, and it can only be modified through the callback structure.

    https://github.com/microsoft/Windows-classic-samples/blob/27ffb0811ca761741502feaefdb591aebf592193/Samples/CloudMirror/CloudMirror/FileCopierWithProgress.cpp#L343

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


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.