Contents Index Topic Contents | ||
Previous Topic: ITask::SetMaxRunTime Next Topic: ITask::SetPriority |
ITask::SetParameters
HRESULT SetParameters( LPCWSTR pwszParameters );Sets the command-line parameters for the task.
- Returns one of the following values:
S_OK The operation was successful. E_INVALIDARG The arguments are not valid. E_OUTOFMEMORY Not enough memory is available.
- pwszParameters
- LPCWSTR that contains task parameters. These parameters are passed as command-line arguments to the application the task will run.
If the Application Name method contains a document to run by association, the Parameters methods are ignored. To clear the command-line parameter property, set pwszParameters to L"".
The application name and parameters properties are accessed through the Application Name Set and Get methods on the ITask interface. They are properties of a task object.
See also ITask::GetParameters
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.