Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
bf635fd4
Commit
bf635fd4
authored
Apr 25, 2018
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mstask: Implement ITaskScheduler::Activate().
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
71c26452
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
9 deletions
+31
-9
task_scheduler.c
dlls/mstask/task_scheduler.c
+31
-9
No files found.
dlls/mstask/task_scheduler.c
View file @
bf635fd4
...
...
@@ -268,16 +268,38 @@ static HRESULT WINAPI MSTASK_ITaskScheduler_Enum(
return
create_task_enum
(
tasks
);
}
static
HRESULT
WINAPI
MSTASK_ITaskScheduler_Activate
(
ITaskScheduler
*
iface
,
LPCWSTR
pwszName
,
REFIID
riid
,
IUnknown
**
ppunk
)
static
HRESULT
WINAPI
MSTASK_ITaskScheduler_Activate
(
ITaskScheduler
*
iface
,
LPCWSTR
task_name
,
REFIID
riid
,
IUnknown
**
unknown
)
{
TRACE
(
"%p, %s, %s, %p: stub
\n
"
,
iface
,
debugstr_w
(
pwszName
),
debugstr_guid
(
riid
),
ppunk
);
FIXME
(
"Partial stub always returning ERROR_FILE_NOT_FOUND
\n
"
);
return
HRESULT_FROM_WIN32
(
ERROR_FILE_NOT_FOUND
);
ITask
*
task
;
IPersistFile
*
pfile
;
HRESULT
hr
;
TRACE
(
"%p, %s, %s, %p
\n
"
,
iface
,
debugstr_w
(
task_name
),
debugstr_guid
(
riid
),
unknown
);
hr
=
ITaskScheduler_NewWorkItem
(
iface
,
task_name
,
&
CLSID_CTask
,
riid
,
(
IUnknown
**
)
&
task
);
if
(
hr
!=
S_OK
)
return
hr
;
hr
=
ITask_QueryInterface
(
task
,
&
IID_IPersistFile
,
(
void
**
)
&
pfile
);
if
(
hr
==
S_OK
)
{
WCHAR
*
curfile
;
hr
=
IPersistFile_GetCurFile
(
pfile
,
&
curfile
);
if
(
hr
==
S_OK
)
{
hr
=
IPersistFile_Load
(
pfile
,
curfile
,
STGM_READ
|
STGM_SHARE_DENY_WRITE
);
CoTaskMemFree
(
curfile
);
}
IPersistFile_Release
(
pfile
);
}
if
(
hr
==
S_OK
)
*
unknown
=
(
IUnknown
*
)
task
;
else
ITask_Release
(
task
);
return
hr
;
}
static
HRESULT
WINAPI
MSTASK_ITaskScheduler_Delete
(
...
...
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