Share via


Support::ProcessIdleTasks method

Requests the system run the maintenance tasks scheduled to run when the system is idle. This prevents the maintenance tasks from running during the assessment.

Syntax

virtual HRESULT ProcessIdleTasks(
  [out] HANDLE *idleTasksHandle
) const = 0;

Parameters

idleTasksHandle [out]

The handle to the idle tasks.

Return value

If the function succeeds, it returns S_OK. If it fails, it returns an error value.

Remarks

This method enables an assessment to request that the operating system to perform maintenance tasks usually run when the system is idle. Maintenance tasks such as disk defragmentation can take extremely long times, and running them beforehand is less likely to interfere with the assessment.

Managed code uses the Support.ProcessIdleTasks method.

Requirements

Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
Windows Server 2008 R2 [desktop apps only]
Header
AxeRuntime.h
DLL
AxeCore.dll

See also

Support