[ADVAPI32]
authorEric Kohl <eric.kohl@reactos.org>
Sun, 6 May 2012 22:29:46 +0000 (22:29 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sun, 6 May 2012 22:29:46 +0000 (22:29 +0000)
The third parameter of LsaCreateAccount and LsaOpenAccount is an ACCESS_MASK.

svn path=/trunk/; revision=56528

reactos/dll/win32/advapi32/sec/lsa.c
reactos/include/psdk/ntsecapi.h

index 8b39360..66b341c 100644 (file)
@@ -208,7 +208,7 @@ NTSTATUS
 WINAPI
 LsaCreateAccount(IN LSA_HANDLE PolicyHandle,
                  IN PSID AccountSid,
-                 IN ULONG Flags,
+                 IN ACCESS_MASK DesiredAccess,
                  OUT PLSA_HANDLE AccountHandle)
 {
     NTSTATUS Status;
@@ -219,7 +219,7 @@ LsaCreateAccount(IN LSA_HANDLE PolicyHandle,
     {
         Status = LsarCreateAccount((LSAPR_HANDLE)PolicyHandle,
                                    AccountSid,
-                                   Flags,
+                                   DesiredAccess,
                                    AccountHandle);
     }
     RpcExcept(EXCEPTION_EXECUTE_HANDLER)
@@ -697,18 +697,18 @@ NTSTATUS
 WINAPI
 LsaOpenAccount(IN LSA_HANDLE PolicyHandle,
                IN PSID AccountSid,
-               IN ULONG Flags,
+               IN ACCESS_MASK DesiredAccess,
                OUT PLSA_HANDLE AccountHandle)
 {
     NTSTATUS Status;
 
-    TRACE("(%p,%p,0x%08x,%p)\n", PolicyHandle, AccountSid, Flags, AccountHandle);
+    TRACE("(%p,%p,0x%08lx,%p)\n", PolicyHandle, AccountSid, DesiredAccess, AccountHandle);
 
     RpcTryExcept
     {
         Status = LsarOpenAccount((LSAPR_HANDLE)PolicyHandle,
                                  AccountSid,
-                                 Flags,
+                                 DesiredAccess,
                                  AccountHandle);
     }
     RpcExcept(EXCEPTION_EXECUTE_HANDLER)
index 58995c7..1735634 100644 (file)
@@ -678,7 +678,7 @@ NTSTATUS NTAPI LsaCallAuthenticationPackage(HANDLE,ULONG,PVOID,ULONG,PVOID*,
                             PULONG,PNTSTATUS);
 NTSTATUS NTAPI LsaClose(LSA_HANDLE);
 NTSTATUS NTAPI LsaConnectUntrusted(PHANDLE);
-NTSTATUS NTAPI LsaCreateAccount(LSA_HANDLE, PSID, ULONG, PLSA_HANDLE);
+NTSTATUS NTAPI LsaCreateAccount(LSA_HANDLE, PSID, ACCESS_MASK, PLSA_HANDLE);
 NTSTATUS NTAPI LsaCreateTrustedDomain(LSA_HANDLE, PLSA_TRUST_INFORMATION,
                             ACCESS_MASK, PLSA_HANDLE);
 NTSTATUS NTAPI LsaCreateTrustedDomainEx(LSA_HANDLE, PTRUSTED_DOMAIN_INFORMATION_EX,
@@ -708,7 +708,7 @@ NTSTATUS NTAPI LsaLookupPrivilegeValue(LSA_HANDLE, PLSA_UNICODE_STRING, PLUID);
 NTSTATUS NTAPI LsaLookupSids(LSA_HANDLE,ULONG,PSID*,
                             PLSA_REFERENCED_DOMAIN_LIST*,PLSA_TRANSLATED_NAME*);
 ULONG NTAPI LsaNtStatusToWinError(NTSTATUS);
-NTSTATUS NTAPI LsaOpenAccount(LSA_HANDLE, PSID, ULONG, PLSA_HANDLE);
+NTSTATUS NTAPI LsaOpenAccount(LSA_HANDLE, PSID, ACCESS_MASK, PLSA_HANDLE);
 NTSTATUS NTAPI LsaOpenPolicy(PLSA_UNICODE_STRING,PLSA_OBJECT_ATTRIBUTES,
                             ACCESS_MASK,PLSA_HANDLE);
 NTSTATUS NTAPI LsaOpenTrustedDomainByName(LSA_HANDLE, PLSA_UNICODE_STRING,