Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
5f895673
Commit
5f895673
authored
May 31, 2018
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mstask: Implement ITask::GetMostRecentRunTime().
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8226f877
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
task.c
dlls/mstask/task.c
+16
-5
No files found.
dlls/mstask/task.c
View file @
5f895673
...
@@ -63,6 +63,7 @@ typedef struct
...
@@ -63,6 +63,7 @@ typedef struct
HRESULT
status
;
HRESULT
status
;
WORD
idle_minutes
,
deadline_minutes
;
WORD
idle_minutes
,
deadline_minutes
;
DWORD
flags
,
priority
,
maxRunTime
,
exit_code
;
DWORD
flags
,
priority
,
maxRunTime
,
exit_code
;
SYSTEMTIME
last_runtime
;
LPWSTR
accountName
;
LPWSTR
accountName
;
DWORD
trigger_count
;
DWORD
trigger_count
;
TASK_TRIGGER
*
trigger
;
TASK_TRIGGER
*
trigger
;
...
@@ -654,10 +655,18 @@ static HRESULT WINAPI MSTASK_ITask_EditWorkItem(
...
@@ -654,10 +655,18 @@ static HRESULT WINAPI MSTASK_ITask_EditWorkItem(
static
HRESULT
WINAPI
MSTASK_ITask_GetMostRecentRunTime
(
ITask
*
iface
,
SYSTEMTIME
*
st
)
static
HRESULT
WINAPI
MSTASK_ITask_GetMostRecentRunTime
(
ITask
*
iface
,
SYSTEMTIME
*
st
)
{
{
FIXME
(
"(%p, %p): stub
\n
"
,
iface
,
st
);
TaskImpl
*
This
=
impl_from_ITask
(
iface
);
TRACE
(
"(%p, %p)
\n
"
,
iface
,
st
);
if
(
This
->
status
==
SCHED_S_TASK_NOT_SCHEDULED
)
{
memset
(
st
,
0
,
sizeof
(
*
st
));
return
SCHED_S_TASK_HAS_NOT_RUN
;
}
memset
(
st
,
0
,
sizeof
(
*
st
))
;
*
st
=
This
->
last_runtime
;
return
S
CHED_S_TASK_HAS_NOT_RUN
;
return
S
_OK
;
}
}
static
HRESULT
WINAPI
MSTASK_ITask_GetStatus
(
ITask
*
iface
,
HRESULT
*
status
)
static
HRESULT
WINAPI
MSTASK_ITask_GetStatus
(
ITask
*
iface
,
HRESULT
*
status
)
...
@@ -1262,8 +1271,9 @@ static HRESULT load_job_data(TaskImpl *This, BYTE *data, DWORD size)
...
@@ -1262,8 +1271,9 @@ static HRESULT load_job_data(TaskImpl *This, BYTE *data, DWORD size)
This
->
status
=
fixed
->
status
;
This
->
status
=
fixed
->
status
;
TRACE
(
"flags %08x
\n
"
,
fixed
->
flags
);
TRACE
(
"flags %08x
\n
"
,
fixed
->
flags
);
This
->
flags
=
fixed
->
flags
;
This
->
flags
=
fixed
->
flags
;
This
->
last_runtime
=
fixed
->
last_runtime
;
st
=
&
fixed
->
last_runtime
;
st
=
&
fixed
->
last_runtime
;
TRACE
(
"last_runtime %
d/%d/%d wday %d %d:%d:%d.%03d
\n
"
,
TRACE
(
"last_runtime %
u/%u/%u wday %u %u:%02u:%02u.%03u
\n
"
,
st
->
wDay
,
st
->
wMonth
,
st
->
wYear
,
st
->
wDayOfWeek
,
st
->
wDay
,
st
->
wMonth
,
st
->
wYear
,
st
->
wDayOfWeek
,
st
->
wHour
,
st
->
wMinute
,
st
->
wSecond
,
st
->
wMilliseconds
);
st
->
wHour
,
st
->
wMinute
,
st
->
wSecond
,
st
->
wMilliseconds
);
...
@@ -1617,7 +1627,7 @@ static HRESULT WINAPI MSTASK_IPersistFile_Save(IPersistFile *iface, LPCOLESTR ta
...
@@ -1617,7 +1627,7 @@ static HRESULT WINAPI MSTASK_IPersistFile_Save(IPersistFile *iface, LPCOLESTR ta
This
->
status
=
SCHED_S_TASK_HAS_NOT_RUN
;
This
->
status
=
SCHED_S_TASK_HAS_NOT_RUN
;
fixed
.
status
=
This
->
status
;
fixed
.
status
=
This
->
status
;
fixed
.
flags
=
This
->
flags
;
fixed
.
flags
=
This
->
flags
;
memset
(
&
fixed
.
last_runtime
,
0
,
sizeof
(
fixed
.
last_runtime
))
;
fixed
.
last_runtime
=
This
->
last_runtime
;
try
=
1
;
try
=
1
;
for
(;;)
for
(;;)
...
@@ -1855,6 +1865,7 @@ HRESULT TaskConstructor(ITaskService *service, const WCHAR *name, ITask **task)
...
@@ -1855,6 +1865,7 @@ HRESULT TaskConstructor(ITaskService *service, const WCHAR *name, ITask **task)
This
->
is_dirty
=
FALSE
;
This
->
is_dirty
=
FALSE
;
This
->
instance_count
=
0
;
This
->
instance_count
=
0
;
memset
(
&
This
->
last_runtime
,
0
,
sizeof
(
This
->
last_runtime
));
CoCreateGuid
(
&
This
->
uuid
);
CoCreateGuid
(
&
This
->
uuid
);
/* Default time is 3 days = 259200000 ms */
/* Default time is 3 days = 259200000 ms */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment