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
5bff2fb6
Commit
5bff2fb6
authored
Nov 08, 2012
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Nov 08, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mstask: Implement SetTargetComputer.
parent
02250bb1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
task_scheduler.c
dlls/mstask/task_scheduler.c
+21
-2
No files found.
dlls/mstask/task_scheduler.c
View file @
5bff2fb6
...
...
@@ -85,8 +85,27 @@ static HRESULT WINAPI MSTASK_ITaskScheduler_SetTargetComputer(
ITaskScheduler
*
iface
,
LPCWSTR
pwszComputer
)
{
FIXME
(
"%p, %s: stub
\n
"
,
iface
,
debugstr_w
(
pwszComputer
));
return
E_NOTIMPL
;
TaskSchedulerImpl
*
This
=
impl_from_ITaskScheduler
(
iface
);
WCHAR
buffer
[
MAX_COMPUTERNAME_LENGTH
+
3
];
/* extra space for two '\' and a zero */
DWORD
len
=
MAX_COMPUTERNAME_LENGTH
+
1
;
/* extra space for a zero */
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
pwszComputer
));
/* NULL is an alias for the local computer */
if
(
!
pwszComputer
)
return
S_OK
;
buffer
[
0
]
=
'\\'
;
buffer
[
1
]
=
'\\'
;
if
(
GetComputerNameW
(
buffer
+
2
,
&
len
))
{
if
(
!
lstrcmpiW
(
buffer
,
pwszComputer
)
||
/* full unc name */
!
lstrcmpiW
(
buffer
+
2
,
pwszComputer
))
/* name without backslash */
return
S_OK
;
}
FIXME
(
"remote computer %s not supported
\n
"
,
debugstr_w
(
pwszComputer
));
return
HRESULT_FROM_WIN32
(
ERROR_BAD_NETPATH
);
}
static
HRESULT
WINAPI
MSTASK_ITaskScheduler_GetTargetComputer
(
...
...
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