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
fef82e74
Commit
fef82e74
authored
May 14, 2007
by
Rolf Kalbermatter
Committed by
Alexandre Julliard
May 16, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Add access flags to service handle data.
parent
a9c2e15c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
service.c
dlls/advapi32/service.c
+4
-0
No files found.
dlls/advapi32/service.c
View file @
fef82e74
...
...
@@ -110,12 +110,14 @@ struct sc_manager /* service control manager handle */
{
struct
sc_handle
hdr
;
HKEY
hkey
;
/* handle to services database in the registry */
DWORD
dwAccess
;
};
struct
sc_service
/* service handle */
{
struct
sc_handle
hdr
;
HKEY
hkey
;
/* handle to service entry in the registry (under hkey) */
DWORD
dwAccess
;
struct
sc_manager
*
scm
;
/* pointer to SCM handle */
WCHAR
name
[
1
];
};
...
...
@@ -1055,6 +1057,7 @@ SC_HANDLE WINAPI OpenSCManagerW( LPCWSTR lpMachineName, LPCWSTR lpDatabaseName,
if
(
r
!=
ERROR_SUCCESS
)
goto
error
;
manager
->
dwAccess
=
dwDesiredAccess
;
TRACE
(
"returning %p
\n
"
,
manager
);
return
(
SC_HANDLE
)
&
manager
->
hdr
;
...
...
@@ -1233,6 +1236,7 @@ SC_HANDLE WINAPI OpenServiceW( SC_HANDLE hSCManager, LPCWSTR lpServiceName,
return
NULL
;
strcpyW
(
hsvc
->
name
,
lpServiceName
);
hsvc
->
hkey
=
hKey
;
hsvc
->
dwAccess
=
dwDesiredAccess
;
/* add reference to SCM handle */
hscm
->
hdr
.
ref_count
++
;
...
...
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