OperationEnd function (winbase.h)

Notifies the system that the application is about to end an operation

Every call to OperationStart must be followed by a call to OperationEnd, otherwise the operation's record of file access patterns is discarded after 10 seconds.

Syntax

BOOL OperationEnd(
  [in] OPERATION_END_PARAMETERS *OperationEndParams
);

Parameters

[in] OperationEndParams

An _OPERATION_END_PARAMETERS structure that specifies VERSION, OPERATION_ID and FLAGS.

Return value

TRUE for all valid parameters and FALSE otherwise. To get extended error information, call GetLastError.

Remarks

The version of the _OPERATION_END_PARAMETERS structure is defined as OPERATION_API_VERSION in the Windows SDK.

The OperationEnd function is safe to call on any thread.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header winbase.h (include Windows.h)
Library Advapi32.lib
DLL Advapi32.dll

See also

OPERATION_ID

Operation Recorder

OperationStart

_OPERATION_END_PARAMETERS

_OPERATION_START_PARAMETERS