具体实现我没有试过 给你些提示,看看有没有帮助 如果是用delphi来实现,最好先去jedi下载taskschedule对应的pas单元 IScheduledWorkItem接口提供了GetStatus方法 IScheduledWorkItem::GetStatusHRESULT GetStatus( HRESULT *phrStatus ); 返回的就是当前条目的状态 phrStatus [out] Pointer to an HRESULT value that contains one of the following values on return. SCHED_S_TASK_READY The work item is ready to run at its next scheduled time. SCHED_S_TASK_RUNNING The work item is currently running. SCHED_S_TASK_NOT_SCHEDULED One or more of the properties that are needed to run this work item on a schedule have not been set.
给你些提示,看看有没有帮助
如果是用delphi来实现,最好先去jedi下载taskschedule对应的pas单元
IScheduledWorkItem接口提供了GetStatus方法
IScheduledWorkItem::GetStatusHRESULT GetStatus(
HRESULT *phrStatus
);
返回的就是当前条目的状态
phrStatus
[out] Pointer to an HRESULT value that contains one of the following values on return.
SCHED_S_TASK_READY
The work item is ready to run at its next scheduled time.
SCHED_S_TASK_RUNNING
The work item is currently running.
SCHED_S_TASK_NOT_SCHEDULED
One or more of the properties that are needed to run this work item on a schedule have not been set.
是这个网址么?