IRegisteredTask::get_Enabled method (taskschd.h)

Gets or sets a Boolean value that indicates if the registered task is enabled.

This property is read/write.

Syntax

HRESULT get_Enabled(
  VARIANT_BOOL *pEnabled
);

Parameters

pEnabled

Return value

None

Remarks

This property is of type VARIANT_BOOL, which uses -1 to specify a true value and 0 to represent false. This property will not return an error if a value other than -1 or 0 is used.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header taskschd.h
Library Taskschd.lib
DLL Taskschd.dll

See also

IRegisteredTask

Task Scheduler