Wine-bug: https://bugs.winehq.org/show_bug.cgi?id=46643 Signed-off-by: Louis Lenders xerox.xerox2000x@gmail.com --- dlls/advapi32/advapi32.spec | 2 +- dlls/advapi32/lsa.c | 12 ++++++++++++ .../api-ms-win-security-audit-l1-1-1.spec | 2 +- include/ntsecapi.h | 9 +++++++++ 4 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/dlls/advapi32/advapi32.spec b/dlls/advapi32/advapi32.spec index eb1f546335..e996bd2017 100644 --- a/dlls/advapi32/advapi32.spec +++ b/dlls/advapi32/advapi32.spec @@ -51,7 +51,7 @@ # @ stub AuditQueryGlobalSaclW # @ stub AuditQueryPerUserPolicy # @ stub AuditQuerySecurity -# @ stub AuditQuerySystemPolicy +@ stdcall AuditQuerySystemPolicy(ptr long ptr) # @ stub AuditSetGlobalSaclA # @ stub AuditSetGlobalSaclW # @ stub AuditSetPerUserPolicy diff --git a/dlls/advapi32/lsa.c b/dlls/advapi32/lsa.c index 354db65929..592876a97f 100644 --- a/dlls/advapi32/lsa.c +++ b/dlls/advapi32/lsa.c @@ -1072,3 +1072,15 @@ NTSTATUS WINAPI LsaLookupPrivilegeDisplayName(LSA_HANDLE handle, LSA_UNICODE_STR
return STATUS_NO_SUCH_PRIVILEGE; } + +/****************************************************************************** + * AuditQuerySystemPolicy [ADVAPI32.@] + * + */ +BOOLEAN WINAPI AuditQuerySystemPolicy(const GUID* guids, ULONG count, AUDIT_POLICY_INFORMATION** policy) +{ + + FIXME("(%p, %d, %p)\n", guids, count, policy); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return FALSE; +} diff --git a/dlls/api-ms-win-security-audit-l1-1-1/api-ms-win-security-audit-l1-1-1.spec b/dlls/api-ms-win-security-audit-l1-1-1/api-ms-win-security-audit-l1-1-1.spec index 1e677eda9b..2283eafa81 100644 --- a/dlls/api-ms-win-security-audit-l1-1-1/api-ms-win-security-audit-l1-1-1.spec +++ b/dlls/api-ms-win-security-audit-l1-1-1/api-ms-win-security-audit-l1-1-1.spec @@ -8,7 +8,7 @@ @ stub AuditQueryGlobalSaclW @ stub AuditQueryPerUserPolicy @ stub AuditQuerySecurity -@ stub AuditQuerySystemPolicy +@ stdcall AuditQuerySystemPolicy(ptr long ptr) advapi32.AuditQuerySystemPolicy @ stub AuditSetGlobalSaclW @ stub AuditSetPerUserPolicy @ stub AuditSetSecurity diff --git a/include/ntsecapi.h b/include/ntsecapi.h index 6d5e01d675..729a89c86b 100644 --- a/include/ntsecapi.h +++ b/include/ntsecapi.h @@ -349,6 +349,13 @@ typedef enum _POLICY_NOTIFICATION_INFORMATION_CLASS PolicyNotifyMachineAccountPasswordInformation } POLICY_NOTIFICATION_INFORMATION_CLASS, *PPOLICY_NOTIFICATION_INFORMATION_CLASS;
+typedef struct _AUDIT_POLICY_INFORMATION +{ + GUID AuditSubCategoryGuid; + ULONG AuditingInformation; + GUID AuditCategoryGuid; +} AUDIT_POLICY_INFORMATION, *PAUDIT_POLICY_INFORMATION; + #define MICROSOFT_KERBEROS_NAME_A "Kerberos" #if defined(_MSC_VER) #define MICROSOFT_KERBEROS_NAME_W L"Kerberos" @@ -458,6 +465,8 @@ typedef struct _KERB_PURGE_TKT_CACHE_REQUEST #define RtlEncryptMemory SystemFunction040 #define RtlDecryptMemory SystemFunction041
+BOOLEAN WINAPI AuditQuerySystemPolicy(const GUID*,ULONG,AUDIT_POLICY_INFORMATION**); + BOOLEAN WINAPI RtlGenRandom(PVOID,ULONG); NTSTATUS WINAPI RtlEncryptMemory(PVOID,ULONG,ULONG); NTSTATUS WINAPI RtlDecryptMemory(PVOID,ULONG,ULONG);