
HRESULT SetWorkingDirectory(
LPCWSTR pwszWorkingDirectory
);
Sets the working directory for the task.
| S_OK | The operation was successful. |
| E_INVALIDARG | The arguments are not valid. |
| E_OUTOFMEMORY | Not enough memory is available. |
See also ITask::GetWorkingDirectory
Applications use the methods of the ITaskTrigger interface to access and set triggers for a task. Triggers specify task start times, repetition criteria, and other parameters. The following list of methods is organized in vtable order.
| ITaskTrigger methods |
| SetTrigger |
| GetTrigger |
| GetTriggerString |
HRESULT GetTrigger(
PTASK_TRIGGER pTrigger
);
Retrieves the current task trigger.
| S_OK | The operation was successful. |
| E_INVALIDARG | The arguments are not valid. |
| E_OUTOFMEMORY | Not enough memory is available. |
See also ITaskTrigger::SetTrigger
HRESULT GetTriggerString(
LPWSTR * ppwszTrigger
);
Retrieves the current task trigger in the form of a string. This string appears in the Scheduling Agent user interface in a form similar to "At 2PM every day, starting 5/11/97."
| S_OK | The operation was successful. |
| E_INVALIDARG | The arguments are not valid. |
| E_OUTOFMEMORY | Not enough memory is available. |
HRESULT SetTrigger(
const PTASK_TRIGGER pTrigger
);
Sets the task trigger values.
| S_OK | The operation was successful. |
| E_INVALIDARG | The arguments are not valid. |
| E_OUTOFMEMORY | Not enough memory is available. |
See also ITaskTrigger::GetTrigger
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.