[INCLUDE]
[reactos.git] / reactos / include / reactos / idl / lsa.idl
index 00949cf..b8840ce 100644 (file)
@@ -9,7 +9,7 @@ typedef [handle] LPWSTR PLSAPR_SERVER_NAME;
 typedef [context_handle] PVOID LSAPR_HANDLE;
 typedef LSAPR_HANDLE *PLSAPR_HANDLE;
 
-cpp_quote("#ifndef _WINNT_H")
+cpp_quote("#ifndef _WINNT_")
 typedef struct _LUID {
     DWORD LowPart;
     LONG HighPart;
@@ -33,7 +33,7 @@ typedef struct _LSAPR_ACL {
     [size_is(AclSize - 4)] BYTE Dummy1[*];
 } LSAPR_ACL, *PLSAPR_ACL;
 
-cpp_quote("#ifndef _WINNT_H")
+cpp_quote("#ifndef _WINNT_")
 typedef WORD SECURITY_DESCRIPTOR_CONTROL, *PSECURITY_DESCRIPTOR_CONTROL;
 cpp_quote("#endif")
 
@@ -240,14 +240,14 @@ typedef struct _POLICY_AUDIT_LOG_INFO {
     DWORD AuditLogPercentFull;
     DWORD MaximumLogSize;
     LARGE_INTEGER AuditRetentionPeriod;
-    BYTE AuditLogFullShutdownInProgress;
+    BOOLEAN AuditLogFullShutdownInProgress;
     LARGE_INTEGER TimeToShutdown;
     DWORD NextAuditRecordId;
 } POLICY_AUDIT_LOG_INFO, *PPOLICY_AUDIT_LOG_INFO;
 cpp_quote("#endif")
 
 typedef struct _LSAPR_POLICY_AUDIT_EVENTS_INFO {
-    BYTE AuditingMode;
+    BOOLEAN AuditingMode;
     [size_is(MaximumAuditEventCount)] DWORD *EventAuditingOptions;
     DWORD MaximumAuditEventCount;
 } LSAPR_POLICY_AUDIT_EVENTS_INFO, *PLSAPR_POLICY_AUDIT_EVENTS_INFO;
@@ -282,7 +282,7 @@ typedef struct _POLICY_LSA_REPLICA_SRCE_INFO {
     RPC_UNICODE_STRING ReplicaAccountName;
 } POLICY_LSA_REPLICA_SRCE_INFO, *PPOLICY_LSA_REPLICA_SRCE_INFO;
 
-cpp_quote("#ifndef _WINNT_H")
+cpp_quote("#ifndef _WINNT_")
 typedef struct _QUOTA_LIMITS {
     INT64 PagedPoolLimit;
     INT64 NonPagedPoolLimit;
@@ -584,7 +584,8 @@ cpp_quote("#endif")
 [
   uuid(12345778-1234-abcd-ef00-0123456789ab),
   version(0.0),
-  pointer_default(unique)
+  pointer_default(unique),
+  endpoint("ncacn_np:[\\pipe\\lsarpc]")
   #ifndef __midl
   ,explicit_handle
   #endif
@@ -774,7 +775,7 @@ interface lsarpc
 
     /* Function 29 */
     NTSTATUS __stdcall LsarSetSecret(
-        [in] LSAPR_HANDLE *SecretHandle,
+        [in] LSAPR_HANDLE SecretHandle,
         [in, unique] PLSAPR_CR_CIPHER_VALUE EncryptedCurrentValue,
         [in, unique] PLSAPR_CR_CIPHER_VALUE EncryptedOldValue);
 
@@ -888,31 +889,27 @@ cpp_quote("#if _WIN32_WINNT >= 0x0500")
     NTSTATUS __stdcall LsarQueryInformationPolicy2(
         [in] LSAPR_HANDLE PolicyHandle,
         [in] POLICY_INFORMATION_CLASS InformationClass,
-        [out] unsigned long *PolicyInformation);
-        /* FIXME: should be [out, switch_is(InformationClass)] PLSAPR_POLICY_INFORMATION *PolicyInformation); */
+        [out, switch_is(InformationClass)] PLSAPR_POLICY_INFORMATION *PolicyInformation);
 
     /* Function 47 */
     NTSTATUS __stdcall LsarSetInformationPolicy2(
         [in] LSAPR_HANDLE PolicyHandle,
         [in] POLICY_INFORMATION_CLASS InformationClass,
-        [in] unsigned long PolicyInformation);
-        /* FIXME: should be [in, switch_is(InformationClass)] PLSAPR_POLICY_INFORMATION PolicyInformation); */
+        [in, switch_is(InformationClass)] PLSAPR_POLICY_INFORMATION PolicyInformation);
 
     /* Function 48 */
     NTSTATUS __stdcall LsarQueryTrustedDomainInfoByName(
         [in] LSAPR_HANDLE PolicyHandle,
         [in] PRPC_UNICODE_STRING TrustedDomainName,
         [in] POLICY_INFORMATION_CLASS InformationClass,
-        [out] unsigned long *PolicyInformation);
-        /* FIXME: should be [out, switch_is(InformationClass)] PLSAPR_POLICY_INFORMATION *PolicyInformation); */
+        [out, switch_is(InformationClass)] PLSAPR_TRUSTED_DOMAIN_INFO *PolicyInformation);
 
     /* Function 49 */
     NTSTATUS __stdcall LsarSetTrustedDomainInfoByName(
         [in] LSAPR_HANDLE PolicyHandle,
         [in] PRPC_UNICODE_STRING TrustedDomainName,
         [in] POLICY_INFORMATION_CLASS InformationClass,
-        [in] unsigned long PolicyInformation);
-        /* FIXME: should be [in, switch_is(InformationClass)] PLSAPR_POLICY_INFORMATION PolicyInformation); */
+        [in, switch_is(InformationClass)] PLSAPR_TRUSTED_DOMAIN_INFO PolicyInformation);
 
     /* Function 50 */
     NTSTATUS __stdcall LsarEnumerateTrustedDomainsEx(
@@ -937,15 +934,13 @@ cpp_quote("#if _WIN32_WINNT >= 0x0500")
     NTSTATUS __stdcall LsarQueryDomainInformationPolicy(
         [in] LSAPR_HANDLE PolicyHandle,
         [in] POLICY_INFORMATION_CLASS InformationClass,
-        [out] unsigned long *PolicyInformation);
-        /* FIXME: should be [out, switch_is(InformationClass)] PLSAPR_POLICY_INFORMATION *PolicyInformation); */
+        [out, switch_is(InformationClass)] PLSAPR_POLICY_DOMAIN_INFORMATION *PolicyInformation);
 
     /* Function 54 */
     NTSTATUS __stdcall LsarSetDomainInformationPolicy(
         [in] LSAPR_HANDLE PolicyHandle,
         [in] POLICY_INFORMATION_CLASS InformationClass,
-        [in] unsigned long PolicyInformation);
-        /* FIXME: should be [in, switch_is(InformationClass)] PLSAPR_POLICY_INFORMATION PolicyInformation); */
+        [in, switch_is(InformationClass)] PLSAPR_POLICY_DOMAIN_INFORMATION PolicyInformation);
 
     /* Function 55 */
     NTSTATUS __stdcall LsarOpenTrustedDomainByName(
@@ -975,7 +970,7 @@ cpp_quote("#if _WIN32_WINNT >= 0x0500")
         [in] DWORD Count,
         [in, size_is(Count)] PRPC_UNICODE_STRING Names,
         [out] PLSAPR_REFERENCED_DOMAIN_LIST *ReferencedDomains,
-        [in, out] PLSAPR_TRANSLATED_SID_EX TranslatedSids,
+        [in, out] PLSAPR_TRANSLATED_SIDS_EX TranslatedSids,
         [in] LSAP_LOOKUP_LEVEL LookupLevel,
         [in, out] DWORD *MappedCount,
         [in] DWORD LookupOptions,
@@ -1029,7 +1024,7 @@ cpp_quote("#if _WIN32_WINNT >= 0x0501")
         [in] DWORD Count,
         [in, size_is(Count)] PRPC_UNICODE_STRING Names,
         [out] PLSAPR_REFERENCED_DOMAIN_LIST *ReferencedDomains,
-        [in, out] PLSAPR_TRANSLATED_SID_EX2 TranslatedSids,
+        [in, out] PLSAPR_TRANSLATED_SIDS_EX2 TranslatedSids,
         [in] LSAP_LOOKUP_LEVEL LookupLevel,
         [in, out] DWORD *MappedCount,
         [in] DWORD LookupOptions,
@@ -1088,7 +1083,7 @@ cpp_quote("#if _WIN32_WINNT >= 0x0501")
         [in] DWORD Count,
         [in, size_is(Count)] PRPC_UNICODE_STRING Names,
         [out] PLSAPR_REFERENCED_DOMAIN_LIST *ReferencedDomains,
-        [in, out] PLSAPR_TRANSLATED_SID_EX2 TranslatedSids,
+        [in, out] PLSAPR_TRANSLATED_SIDS_EX2 TranslatedSids,
         [in] LSAP_LOOKUP_LEVEL LookupLevel,
         [in, out] DWORD *MappedCount,
         [in] DWORD LookupOptions,