Rolf Kalbermatter : advapi32: Add access flags to service handle data.

Alexandre Julliard julliard at wine.codeweavers.com
Wed May 16 09:10:26 CDT 2007


Module: wine
Branch: master
Commit: fef82e74b6f41575f8e44326c1c596e08ada2190
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fef82e74b6f41575f8e44326c1c596e08ada2190

Author: Rolf Kalbermatter <r.kalbermatter at hccnet.nl>
Date:   Mon May 14 23:31:41 2007 +0200

advapi32: Add access flags to service handle data.

---

 dlls/advapi32/service.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/advapi32/service.c b/dlls/advapi32/service.c
index 587b9ae..e1d1065 100644
--- a/dlls/advapi32/service.c
+++ b/dlls/advapi32/service.c
@@ -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++;




More information about the wine-cvs mailing list