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
493d8589
Commit
493d8589
authored
Nov 06, 2012
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Nov 06, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mstask: Implement GetTargetComputer.
parent
d2607ff6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
+24
-2
task_scheduler.c
dlls/mstask/task_scheduler.c
+24
-2
No files found.
dlls/mstask/task_scheduler.c
View file @
493d8589
...
...
@@ -93,8 +93,30 @@ static HRESULT WINAPI MSTASK_ITaskScheduler_GetTargetComputer(
ITaskScheduler
*
iface
,
LPWSTR
*
ppwszComputer
)
{
FIXME
(
"%p, %p: stub
\n
"
,
iface
,
ppwszComputer
);
return
E_NOTIMPL
;
TaskSchedulerImpl
*
This
=
impl_from_ITaskScheduler
(
iface
);
LPWSTR
buffer
;
DWORD
len
=
MAX_COMPUTERNAME_LENGTH
+
1
;
/* extra space for the zero */
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
ppwszComputer
);
if
(
!
ppwszComputer
)
return
E_INVALIDARG
;
/* extra space for two '\' and a zero */
buffer
=
CoTaskMemAlloc
((
MAX_COMPUTERNAME_LENGTH
+
3
)
*
sizeof
(
WCHAR
));
if
(
buffer
)
{
buffer
[
0
]
=
'\\'
;
buffer
[
1
]
=
'\\'
;
if
(
GetComputerNameW
(
buffer
+
2
,
&
len
))
{
*
ppwszComputer
=
buffer
;
return
S_OK
;
}
CoTaskMemFree
(
buffer
);
}
*
ppwszComputer
=
NULL
;
return
HRESULT_FROM_WIN32
(
GetLastError
());
}
static
HRESULT
WINAPI
MSTASK_ITaskScheduler_Enum
(
...
...
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