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
5bc80775
Commit
5bc80775
authored
Oct 21, 2004
by
Mike McCormack
Committed by
Alexandre Julliard
Oct 21, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement ChangeServiceConfig2A using ChangeServiceConfig2W.
parent
9cbc42bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
2 deletions
+35
-2
service.c
dlls/advapi32/service.c
+35
-2
No files found.
dlls/advapi32/service.c
View file @
5bc80775
...
...
@@ -1500,8 +1500,41 @@ BOOL WINAPI ChangeServiceConfigA( SC_HANDLE hService, DWORD dwServiceType,
BOOL
WINAPI
ChangeServiceConfig2A
(
SC_HANDLE
hService
,
DWORD
dwInfoLevel
,
LPVOID
lpInfo
)
{
FIXME
(
"STUB: %p %ld %p
\n
"
,
hService
,
dwInfoLevel
,
lpInfo
);
return
TRUE
;
BOOL
r
=
FALSE
;
TRACE
(
"%p %ld %p
\n
"
,
hService
,
dwInfoLevel
,
lpInfo
);
if
(
dwInfoLevel
==
SERVICE_CONFIG_DESCRIPTION
)
{
LPSERVICE_DESCRIPTIONA
sd
=
(
LPSERVICE_DESCRIPTIONA
)
lpInfo
;
SERVICE_DESCRIPTIONW
sdw
;
sdw
.
lpDescription
=
SERV_dup
(
sd
->
lpDescription
);
r
=
ChangeServiceConfig2W
(
hService
,
dwInfoLevel
,
&
sdw
);
SERV_free
(
sdw
.
lpDescription
);
}
else
if
(
dwInfoLevel
==
SERVICE_CONFIG_FAILURE_ACTIONS
)
{
LPSERVICE_FAILURE_ACTIONSA
fa
=
(
LPSERVICE_FAILURE_ACTIONSA
)
lpInfo
;
SERVICE_FAILURE_ACTIONSW
faw
;
faw
.
dwResetPeriod
=
fa
->
dwResetPeriod
;
faw
.
lpRebootMsg
=
SERV_dup
(
fa
->
lpRebootMsg
);
faw
.
lpCommand
=
SERV_dup
(
fa
->
lpCommand
);
faw
.
cActions
=
fa
->
cActions
;
faw
.
lpsaActions
=
fa
->
lpsaActions
;
r
=
ChangeServiceConfig2W
(
hService
,
dwInfoLevel
,
&
faw
);
SERV_free
(
faw
.
lpRebootMsg
);
SERV_free
(
faw
.
lpCommand
);
}
else
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
r
;
}
/******************************************************************************
...
...
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