P
Patrick Kranz
Guest
I try to use CfSetInSyncState with an USN.
The [documentation][1] says that you can provide an USN and the change will only performed when the USN still matches.
However calling the Method on an NOT_IN_SYNC file with the current USN will not succeed. It returns `0x80070179` "The File is not in sync with the cloud" (translated from German, so maybe the text does not 100% match). The returned USN value did also not changed.
I have a minimal sample on [github][0] that will demonstrate this.
I have tried different flags to obtain the handle and also using the CreateFile method instead. Opening the file also does not seems to change the USN. But until know I wasn't able to set SyncState if USN was provided nor I could retrieve the current USN from the function.
Somehow my account is not verified, and I don't know what I can do to verify it. So I can't post links. Sorry for the inconvenience.
[0]: LokiMidgard/CloudTest
[1]: CfSetInSyncState function (cfapi.h) - Win32 apps
Continue reading...
The [documentation][1] says that you can provide an USN and the change will only performed when the USN still matches.
However calling the Method on an NOT_IN_SYNC file with the current USN will not succeed. It returns `0x80070179` "The File is not in sync with the cloud" (translated from German, so maybe the text does not 100% match). The returned USN value did also not changed.
I have a minimal sample on [github][0] that will demonstrate this.
I have tried different flags to obtain the handle and also using the CreateFile method instead. Opening the file also does not seems to change the USN. But until know I wasn't able to set SyncState if USN was provided nor I could retrieve the current USN from the function.
Somehow my account is not verified, and I don't know what I can do to verify it. So I can't post links. Sorry for the inconvenience.
[0]: LokiMidgard/CloudTest
[1]: CfSetInSyncState function (cfapi.h) - Win32 apps
Continue reading...