ITaskService::HighestVersion property

Indicates the highest version of Task Scheduler that a computer supports.

This property is read-only.

Syntax


HRESULT get_HighestVersion(
  [out] DWORD *pVersion
);

Property value

The highest version of Task Scheduler that a computer supports. The highest version is a DWORD value that is split into MajorVersion/MinorVersion on the 16-bit boundary. The Task Scheduler service returns 1 for the major version and 2 for the minor version.

Error codes

NameMeaning
S_OK

The property value was successfully retrieved.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Taskschd.h

Library

Taskschd.lib

DLL

Taskschd.dll

See also

ITaskService

 

 

Show: