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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
1 deletion
+33
-1
svcctl.idl
include/wine/svcctl.idl
+27
-0
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 {
...
@@ -94,13 +94,40 @@ typedef struct _SERVICE_DESCRIPTIONW {
LPWSTR
lpDescription
;
LPWSTR
lpDescription
;
}
SERVICE_DESCRIPTIONW
,
*
LPSERVICE_DESCRIPTIONW
;
}
SERVICE_DESCRIPTIONW
,
*
LPSERVICE_DESCRIPTIONW
;
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_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"
)
cpp_quote
(
"#endif"
)
typedef
[
switch_type
(
DWORD
)
]
union
typedef
[
switch_type
(
DWORD
)
]
union
{
{
[
case
(
SERVICE_CONFIG_DESCRIPTION
)
]
SERVICE_DESCRIPTIONW
descr
;
[
case
(
SERVICE_CONFIG_DESCRIPTION
)
]
SERVICE_DESCRIPTIONW
descr
;
[
case
(
SERVICE_CONFIG_FAILURE_ACTIONS
)
]
SERVICE_FAILURE_ACTIONSW
actions
;
}
SERVICE_CONFIG2W
;
}
SERVICE_CONFIG2W
;
/*
Compatible
with
Windows
function
0
x00
*/
/*
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
...
@@ -631,7 +631,12 @@ DWORD svcctl_ChangeServiceConfig2W( SC_RPC_HANDLE hService, DWORD level, SERVICE
service_unlock
(
service
->
service_entry
);
service_unlock
(
service
->
service_entry
);
}
}
break
;
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:
default:
WINE_FIXME
(
"level %u not implemented
\n
"
,
level
);
WINE_FIXME
(
"level %u not implemented
\n
"
,
level
);
err
=
ERROR_INVALID_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