Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

OperationEnd function

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 *OperationParams
);

Parameters

OperationParams [in]

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

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

WinBase.h (include Windows.h)

Library

Advapi32.lib

DLL

Advapi32.dll

See also

Operation Recorder
OperationStart
_OPERATION_START_PARAMETERS
_OPERATION_END_PARAMETERS
OPERATION_ID

 

 

Show: