IRunningTask::InstanceGuid property

Gets the GUID identifier for this instance of the task.

This property is read-only.

Syntax


HRESULT get_InstanceGuid(
  [out]  BSTR *pGuid
);

Property value

The GUID identifier for this instance of the task. An identifier is generated by the Task Scheduler service each time the task is run.

Error codes

NameMeaning
S_OK

The property value was successfully retrieved.

E_POINTER

A NULL value was passed into the pGuid parameter.

Remarks

The IRunningTask::Refresh method is called before the property value is returned.

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

IRunningTask
Task Scheduler
IRunningTask

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.