CF_OPERATION_PARAMETERS CompletionStatus behavior (cfapi)

oknick 101 Reputation points
2022-01-19T17:04:51.89+00:00

Hi, I am looking through the Cloud Filters API and was wondering about the exact behavior of the AckData parameter. If I call CfExecute with AckData and the CompletionStatus is set to STATUS_UNSUCCESSFUL, are the Offset and Length fields still relevant? Will it acknowledge certain ranges as unsuccessful?

EDIT: I want to make this question a little more general. For any of the operation parameters, does a failure CompletionStatus mean that the rest of the fields are irrelevant? Like in the case of AckData as described above?
Also, I did some minimal testing on the CF_OPERATION_TYPE_TRANSFER_DATA parameter a while ago and found that it requires the buffer field to be valid and defined to at least something even if the CompletionStatus is STATUS_UNSUCCESSFUL. Does the buffer actually serve any purpose on a failed call? I'm trying to understand why it's required no matter what?

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