Contents Index Topic Contents | ||
Previous Topic: ITaskScheduler::NewWorkItem Next Topic: ITask |
ITaskScheduler::SetTargetComputer
HRESULT SetTargetComputer( LPCWSTR pwszComputer );Selects the computer that the ITaskScheduler interface operates on. This allows remote task management and enumeration. The user must have administrative access on the remote computer to use this method. For more information on remote installation requirements, refer to Mstask.hlp.
- Returns one of the following values:
S_OK The method was successful. SCHED_E_SERVICE_NOT_INSTALLED The Task Scheduler service is not installed on the target computer. E_INVALIDARG pwszComputer is not valid. E_OUTOFMEMORY A memory allocation failure occurred.
- pwszComputer
- LPCWSTR that specifies the target computer for the current task. The computer name indicates that the local computer is the target computer; set this value to NULL or to the local computer's Universal Naming Convention (UNC) name.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.