Share via


Engine::RemovePendingRebootJob method

Removes an abandoned task that restarts job execution upon a system restart so that other jobs can be executed.

Syntax

virtual HRESULT RemovePendingRebootJob() = 0;

Parameters

This method has no parameters.

Return value

If successful, the method returns S_OK.

If an internal error occurs the method returns AXE_E_INTERNAL_ERROR. See the log files for information on the exact failure.

If a job is running, the method returns AXE_E_JOB_RUNNING. The pending reboot registration cannot be removed while a job is running.

If the job was not terminated, the method returns AXE_E_TERMINATE_FAILED.

Remarks

Managed code uses the Engine.RemovePendingRebootJob | removePendingRebootJob method

Requirements

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

See also

Engine

ExecuteJob

JobExecutionInfo