Commit 90160bd6 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

mstask: Implement ITask::GetTriggerCount().

parent bdb78491
...@@ -62,6 +62,7 @@ typedef struct ...@@ -62,6 +62,7 @@ typedef struct
WORD idle_minutes, deadline_minutes; WORD idle_minutes, deadline_minutes;
DWORD priority, maxRunTime; DWORD priority, maxRunTime;
LPWSTR accountName; LPWSTR accountName;
DWORD trigger_count;
} TaskImpl; } TaskImpl;
static inline TaskImpl *impl_from_ITask(ITask *iface) static inline TaskImpl *impl_from_ITask(ITask *iface)
...@@ -155,12 +156,14 @@ static HRESULT WINAPI MSTASK_ITask_DeleteTrigger( ...@@ -155,12 +156,14 @@ static HRESULT WINAPI MSTASK_ITask_DeleteTrigger(
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI MSTASK_ITask_GetTriggerCount( static HRESULT WINAPI MSTASK_ITask_GetTriggerCount(ITask *iface, WORD *count)
ITask* iface,
WORD *plCount)
{ {
FIXME("(%p, %p): stub\n", iface, plCount); TaskImpl *This = impl_from_ITask(iface);
return E_NOTIMPL;
TRACE("(%p, %p)\n", iface, count);
*count = This->trigger_count;
return S_OK;
} }
static HRESULT WINAPI MSTASK_ITask_GetTrigger( static HRESULT WINAPI MSTASK_ITask_GetTrigger(
...@@ -1131,6 +1134,7 @@ HRESULT TaskConstructor(ITaskService *service, const WCHAR *name, ITask **task) ...@@ -1131,6 +1134,7 @@ HRESULT TaskConstructor(ITaskService *service, const WCHAR *name, ITask **task)
This->deadline_minutes = 60; This->deadline_minutes = 60;
This->priority = NORMAL_PRIORITY_CLASS; This->priority = NORMAL_PRIORITY_CLASS;
This->accountName = NULL; This->accountName = NULL;
This->trigger_count = 0;
/* Default time is 3 days = 259200000 ms */ /* Default time is 3 days = 259200000 ms */
This->maxRunTime = 259200000; This->maxRunTime = 259200000;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment