Contents Index Topic Contents | ||
Previous Topic: ITaskScheduler Next Topic: ITaskScheduler::AddWorkItem |
ITaskScheduler::Activate
HRESULT Activate( LPCWSTR pwszName, REFIID riid, IUnknown ** ppunk );Returns an active interface to the specified task.
- Returns one of the following values:
S_OK The method was successful. SCHED_E_UNKNOWN_OBJECT_VERSION The task object version is either unsupported or invalid. E_INVALIDARG pwszName is not valid. E_OUTOFMEMORY A memory allocation failure occurred.
- pwszName
- LPCWSTR that specifies the name of the task to activate.
- riid
- Reference identifier of the interface being requested.
- ppunk
- Address of an interface pointer that receives the requested interface.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.