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
2e04dd1c
Commit
2e04dd1c
authored
Apr 20, 2018
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mstask: Implement ITask::GetPriority().
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d08a101a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
7 deletions
+18
-7
task.c
dlls/mstask/task.c
+9
-6
task.c
dlls/mstask/tests/task.c
+9
-1
No files found.
dlls/mstask/task.c
View file @
2e04dd1c
...
...
@@ -41,7 +41,7 @@ typedef struct
LPWSTR
task_name
;
HRESULT
status
;
WORD
idle_minutes
,
deadline_minutes
;
DWORD
maxRunTime
;
DWORD
priority
,
maxRunTime
;
LPWSTR
accountName
;
}
TaskImpl
;
...
...
@@ -626,12 +626,14 @@ static HRESULT WINAPI MSTASK_ITask_SetPriority(
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
MSTASK_ITask_GetPriority
(
ITask
*
iface
,
DWORD
*
pdwPriority
)
static
HRESULT
WINAPI
MSTASK_ITask_GetPriority
(
ITask
*
iface
,
DWORD
*
priority
)
{
FIXME
(
"(%p, %p): stub
\n
"
,
iface
,
pdwPriority
);
return
E_NOTIMPL
;
TaskImpl
*
This
=
impl_from_ITask
(
iface
);
TRACE
(
"(%p, %p)
\n
"
,
iface
,
priority
);
*
priority
=
This
->
priority
;
return
S_OK
;
}
static
HRESULT
WINAPI
MSTASK_ITask_SetTaskFlags
(
...
...
@@ -845,6 +847,7 @@ HRESULT TaskConstructor(ITaskService *service, const WCHAR *task_name, ITask **t
This
->
status
=
SCHED_S_TASK_NOT_SCHEDULED
;
This
->
idle_minutes
=
10
;
This
->
deadline_minutes
=
60
;
This
->
priority
=
NORMAL_PRIORITY_CLASS
;
This
->
accountName
=
NULL
;
/* Default time is 3 days = 259200000 ms */
...
...
dlls/mstask/tests/task.c
View file @
2e04dd1c
...
...
@@ -501,7 +501,7 @@ static void test_task_state(void)
{
BOOL
setup
;
HRESULT
hr
,
status
;
DWORD
flags
;
DWORD
flags
,
val
;
WORD
val1
,
val2
;
setup
=
setup_task
();
...
...
@@ -557,6 +557,14 @@ static void test_task_state(void)
ok
(
val1
==
10
,
"got %u
\n
"
,
val1
);
ok
(
val2
==
60
,
"got %u
\n
"
,
val2
);
if
(
0
)
/* crashes under Windows */
hr
=
ITask_GetPriority
(
test_task
,
NULL
);
val
=
0xdeadbeef
;
hr
=
ITask_GetPriority
(
test_task
,
&
val
);
ok
(
hr
==
S_OK
,
"got %#x
\n
"
,
hr
);
ok
(
val
==
NORMAL_PRIORITY_CLASS
,
"got %#x
\n
"
,
val
);
cleanup_task
();
}
...
...
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