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
e782b836
Commit
e782b836
authored
Apr 24, 2007
by
Rolf Kalbermatter
Committed by
Alexandre Julliard
Apr 24, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Make struct service_data_t have the new SERVICE_STATUS_PROCESS struct.
parent
68b11d12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
service.c
dlls/advapi32/service.c
+5
-8
No files found.
dlls/advapi32/service.c
View file @
e782b836
...
...
@@ -62,7 +62,7 @@ typedef struct service_data_t
LPHANDLER_FUNCTION_EX
handler_ex
;
}
handler
;
LPVOID
context
;
SERVICE_STATUS
status
;
SERVICE_STATUS
_PROCESS
status
;
HANDLE
thread
;
BOOL
unicode
:
1
;
BOOL
extended
:
1
;
/* uses handler_ex instead of handler? */
...
...
@@ -499,7 +499,7 @@ static BOOL service_handle_get_status(HANDLE pipe, const service_data *service)
/******************************************************************************
* service_get_status
*/
static
BOOL
service_get_status
(
HANDLE
pipe
,
LPSERVICE_STATUS
status
)
static
BOOL
service_get_status
(
HANDLE
pipe
,
LPSERVICE_STATUS
_PROCESS
status
)
{
DWORD
cmd
[
2
],
count
=
0
;
BOOL
r
;
...
...
@@ -1470,6 +1470,8 @@ static DWORD service_start_process(struct sc_service *hsvc)
r
=
CreateProcessW
(
NULL
,
path
,
NULL
,
NULL
,
FALSE
,
0
,
NULL
,
NULL
,
&
si
,
&
pi
);
if
(
r
)
{
/* FIXME: Put the pid into the service struct */
handles
[
1
]
=
pi
.
hProcess
;
ret
=
WaitForMultipleObjectsEx
(
2
,
handles
,
FALSE
,
30000
,
FALSE
);
if
(
ret
!=
WAIT_OBJECT_0
)
...
...
@@ -1645,17 +1647,12 @@ BOOL WINAPI QueryServiceStatusEx(SC_HANDLE hService, SC_STATUS_TYPE InfoLevel,
pipe
=
service_open_pipe
(
hsvc
->
name
);
if
(
pipe
!=
INVALID_HANDLE_VALUE
)
{
r
=
service_get_status
(
pipe
,
(
LPSERVICE_STATUS
)
&
pSvcStatusData
);
r
=
service_get_status
(
pipe
,
pSvcStatusData
);
CloseHandle
(
pipe
);
if
(
r
)
return
TRUE
;
}
/* FIXME: this would be the pid from service_start_process() */
pSvcStatusData
->
dwProcessId
=
0
;
/* service is running in a process that is not a system process */
pSvcStatusData
->
dwServiceFlags
=
0
;
TRACE
(
"Failed to read service status
\n
"
);
/* read the service type from the registry */
...
...
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