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
74694855
Commit
74694855
authored
Jan 27, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
services: Add stub implementation for SERVICE_CONFIG_FAILURE_ACTIONS in ChangeServiceConfig2W.
parent
5e7f7db9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
2 deletions
+34
-2
svcctl.idl
include/wine/svcctl.idl
+28
-1
rpc.c
programs/services/rpc.c
+6
-1
No files found.
include/wine/svcctl.idl
View file @
74694855
...
...
@@ -94,13 +94,40 @@ typedef struct _SERVICE_DESCRIPTIONW {
LPWSTR
lpDescription
;
}
SERVICE_DESCRIPTIONW
,
*
LPSERVICE_DESCRIPTIONW
;
#
define
SERVICE_CONFIG_DESCRIPTION
1
typedef
enum
_SC_ACTION_TYPE
{
SC_ACTION_NONE
=
0
,
SC_ACTION_RESTART
=
1
,
SC_ACTION_REBOOT
=
2
,
SC_ACTION_RUN_COMMAND
=
3
}
SC_ACTION_TYPE
;
typedef
struct
_SC_ACTION
{
SC_ACTION_TYPE
Type
;
DWORD
Delay
;
}
SC_ACTION
,
*
LPSC_ACTION
;
typedef
struct
_SERVICE_FAILURE_ACTIONSW
{
DWORD
dwResetPeriod
;
[
unique
]
LPWSTR
lpRebootMsg
;
[
unique
]
LPWSTR
lpCommand
;
DWORD
cActions
;
[
size_is
(
cActions
)
]
SC_ACTION
*
lpsaActions
;
}
SERVICE_FAILURE_ACTIONSW
,
*
LPSERVICE_FAILURE_ACTIONSW
;
#
define
SERVICE_CONFIG_DESCRIPTION
1
#
define
SERVICE_CONFIG_FAILURE_ACTIONS
2
#
define
SERVICE_CONFIG_DELAYED_AUTO_START_INFO
3
#
define
SERVICE_CONFIG_FAILURE_ACTIONS_FLAG
4
#
define
SERVICE_CONFIG_SERVICE_SID_INFO
5
#
define
SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO
6
#
define
SERVICE_CONFIG_PRESHUTDOWN_INFO
7
cpp_quote
(
"#endif"
)
typedef
[
switch_type
(
DWORD
)
]
union
{
[
case
(
SERVICE_CONFIG_DESCRIPTION
)
]
SERVICE_DESCRIPTIONW
descr
;
[
case
(
SERVICE_CONFIG_FAILURE_ACTIONS
)
]
SERVICE_FAILURE_ACTIONSW
actions
;
}
SERVICE_CONFIG2W
;
/*
Compatible
with
Windows
function
0
x00
*/
...
...
programs/services/rpc.c
View file @
74694855
...
...
@@ -631,7 +631,12 @@ DWORD svcctl_ChangeServiceConfig2W( SC_RPC_HANDLE hService, DWORD level, SERVICE
service_unlock
(
service
->
service_entry
);
}
break
;
case
SERVICE_CONFIG_FAILURE_ACTIONS
:
WINE_FIXME
(
"SERVICE_CONFIG_FAILURE_ACTIONS not implemented: period %u msg %s cmd %s
\n
"
,
config
->
actions
.
dwResetPeriod
,
wine_dbgstr_w
(
config
->
actions
.
lpRebootMsg
),
wine_dbgstr_w
(
config
->
actions
.
lpCommand
)
);
break
;
default:
WINE_FIXME
(
"level %u not implemented
\n
"
,
level
);
err
=
ERROR_INVALID_LEVEL
;
...
...
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