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
67100eb2
Commit
67100eb2
authored
Apr 09, 2014
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 09, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
schedsvc: Add SchRpcGetTaskInfo stub implementation.
parent
9b9b07e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
14 deletions
+17
-14
schedsvc.c
dlls/schedsvc/schedsvc.c
+15
-1
rpcapi.c
dlls/schedsvc/tests/rpcapi.c
+2
-13
No files found.
dlls/schedsvc/schedsvc.c
View file @
67100eb2
...
...
@@ -664,8 +664,22 @@ HRESULT __cdecl SchRpcGetLastRunInfo(const WCHAR *path, SYSTEMTIME *last_runtime
HRESULT
__cdecl
SchRpcGetTaskInfo
(
const
WCHAR
*
path
,
DWORD
flags
,
DWORD
*
enabled
,
DWORD
*
task_state
)
{
WCHAR
*
full_name
,
*
xml
;
HRESULT
hr
;
FIXME
(
"%s,%#x,%p,%p: stub
\n
"
,
debugstr_w
(
path
),
flags
,
enabled
,
task_state
);
return
E_NOTIMPL
;
full_name
=
get_full_name
(
path
,
NULL
);
if
(
!
full_name
)
return
E_OUTOFMEMORY
;
hr
=
read_xml
(
full_name
,
&
xml
);
heap_free
(
full_name
);
if
(
hr
!=
S_OK
)
return
hr
;
heap_free
(
xml
);
*
enabled
=
0
;
*
task_state
=
(
flags
&
SCH_FLAG_STATE
)
?
TASK_STATE_DISABLED
:
TASK_STATE_UNKNOWN
;
return
S_OK
;
}
HRESULT
__cdecl
SchRpcGetNumberOfMissedRuns
(
const
WCHAR
*
path
,
DWORD
*
runs
)
...
...
dlls/schedsvc/tests/rpcapi.c
View file @
67100eb2
...
...
@@ -482,28 +482,19 @@ START_TEST(rpcapi)
}
hr
=
SchRpcGetTaskInfo
(
Task1
,
0
,
&
enabled
,
&
state
);
todo_wine
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_FILE_NOT_FOUND
),
"expected ERROR_FILE_NOT_FOUND, got %#x
\n
"
,
hr
);
enabled
=
state
=
0xdeadbeef
;
hr
=
SchRpcGetTaskInfo
(
Wine_Task1
,
0
,
&
enabled
,
&
state
);
todo_wine
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
ok
(
enabled
==
0
,
"expected 0, got %u
\n
"
,
enabled
);
ok
(
state
==
TASK_STATE_UNKNOWN
,
"expected TASK_STATE_UNKNOWN, got %u
\n
"
,
state
);
}
enabled
=
state
=
0xdeadbeef
;
hr
=
SchRpcGetTaskInfo
(
Wine_Task1
,
SCH_FLAG_STATE
,
&
enabled
,
&
state
);
todo_wine
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
ok
(
enabled
==
0
,
"expected 0, got %u
\n
"
,
enabled
);
ok
(
state
==
TASK_STATE_DISABLED
,
"expected TASK_STATE_DISABLED, got %u
\n
"
,
state
);
}
hr
=
SchRpcEnableTask
(
Wine_Task1
,
0xdeadbeef
);
todo_wine
...
...
@@ -511,13 +502,11 @@ todo_wine
enabled
=
state
=
0xdeadbeef
;
hr
=
SchRpcGetTaskInfo
(
Wine_Task1
,
SCH_FLAG_STATE
,
&
enabled
,
&
state
);
todo_wine
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
todo_wine
ok
(
enabled
==
1
,
"expected 1, got %u
\n
"
,
enabled
);
todo_wine
ok
(
state
==
TASK_STATE_READY
,
"expected TASK_STATE_READY, got %u
\n
"
,
state
);
}
hr
=
SchRpcDelete
(
Wine_Task1
+
1
,
0
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
...
...
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