ITsSbTaskPluginNotifySink::OnSetTaskTime method (sbtsv.h)

Notifies Remote Desktop Connection Broker (RD Connection Broker) that a task has been scheduled.

Syntax

HRESULT OnSetTaskTime(
  [in] BSTR      szTargetName,
  [in] FILETIME  TaskStartTime,
  [in] FILETIME  TaskEndTime,
  [in] FILETIME  TaskDeadline,
  [in] BSTR      szTaskLabel,
  [in] BSTR      szTaskIdentifier,
  [in] BSTR      szTaskPlugin,
  [in] DWORD     dwTaskStatus,
  [in] SAFEARRAY *saContext
);

Parameters

[in] szTargetName

The name of the target.

[in] TaskStartTime

A FILETIME structure specifying the start time (UTC).

[in] TaskEndTime

A FILETIME structure specifying the end time (UTC).

[in] TaskDeadline

A FILETIME structure specifying the deadline (UTC).

[in] szTaskLabel

A label describing the purpose of the task.

[in] szTaskIdentifier

Identifies the target.

[in] szTaskPlugin

The display name of the task agent.

[in] dwTaskStatus

An RDV_TASK_STATUS enumeration value that represents the state of the task.

[in] saContext

The context bytes associated with the task.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2012
Target Platform Windows
Header sbtsv.h

See also

ITsSbTaskPluginNotifySink