`CfSetInSyncState` docs say the `InSyncUsn` parameter NEEDS to be a null pointer? (cfapi)

oknick 101 Reputation points
2022-03-05T20:46:45.81+00:00

The docs for CfSetInSyncState say that the InSyncUsn parameter must be a null pointer. I don't understand this, doesn't that render the parameter useless? The point of passing in a usn is so that the in sync state doesn't change if there is a newer version of the file available.
Is it a documentation mistake? Or is it just an unsupported feature of this function?

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

1 answer

Sort by: Most helpful
  1. Junjie Zhu - MSFT 21,646 Reputation points
    2022-03-07T08:57:44.89+00:00

    Hello,
    Welcome to Microsoft Q&A!

    After my test, no matter how this parameter is called, there is no return value at present. Related functions may be added in the future.

    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][1] to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

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.