Contents Index Topic Contents | ||
Previous Topic: IScheduledWorkItem::GetTriggerString Next Topic: IScheduledWorkItem::Run |
IScheduledWorkItem::GetWorkItemData
HRESULT GetWorkItemData( WORD * pcBytes, BYTE ** ppBytes );Retrieves application-defined data associated with the work item.
- 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.
- pcBytes
- Number of bytes copied.
- ppBytes
- Address of a BYTE pointer that contains user-defined data for the current task. The method that invokes GetWorkItemData is responsible for freeing this memory by using CoTaskMemFree.
See also IScheduledWorkItem::SetWorkItemData
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.