IScheduledWorkItem::GetRunTimesIScheduledWorkItem::GetRunTimes*
*Contents  *Index  *Topic Contents
*Previous Topic: IScheduledWorkItem::GetNextRunTime
*Next Topic: IScheduledWorkItem::GetStatus

IScheduledWorkItem::GetRunTimes

HRESULT GetRunTimes(
    const LPSYSTEMTIME pstBegin,
    const LPSYSTEMTIME pstEnd,
    WORD * pCount,
    LPSYSTEMTIME * rgstTaskTimes
);

Retrieves the work item run times for a specified time period.

pstBegin
Address of a SYSTEMTIME structure that contains the starting time of the time period to check. This value is inclusive.
pstEnd
Address of a SYSTEMTIME structure that contains the ending time of the time period to check. This value is exclusive. If NULL is passed for this value, the end time is infinite.
pCount
Address of a value that specifies the number of run times to retrieve. Before calling GetRunTimes, this value contains the number of run times being requested. This can be a number between 1 and TASK_MAX_RUN_TIMES. After GetRunTimes is called, this value contains the number of run times actually retrieved.
rgstTaskTimes
Address of an array of SYSTEMTIME structures. This array contains pCount run times. This array must be freed using the CoTaskMemFree function.

Back to top


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.