Contents Index Topic Contents | ||
Previous Topic: IScheduledWorkItem Next Topic: IScheduledWorkItem::DeleteTrigger |
IScheduledWorkItem::CreateTrigger
HRESULT CreateTrigger( WORD * piNewTrigger, ITaskTrigger ** ppTrigger );Creates a task trigger.
- 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.
- piNewTrigger
- Address of a value that specifies the new trigger. piNewTrigger receives the new trigger index value. DeleteTrigger would take this value to delete the trigger.
- ppTrigger
- Address of a pointer to an ITaskTrigger interface.
See also IScheduledWorkItem::DeleteTrigger
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.