2003-11-21 16:14:17 +03:00
#include "idl_types.h"
2003-11-06 15:34:04 +03:00
/*
lsa interface definition
*/
2006-11-07 01:54:49 +03:00
import "security.idl";
2004-10-27 08:48:41 +04:00
[ uuid("12345778-1234-abcd-ef00-0123456789ab"),
2003-11-06 15:34:04 +03:00
version(0.0),
2006-09-01 11:21:13 +04:00
endpoint("ncacn_np:[\\pipe\\lsarpc]","ncacn_np:[\\pipe\\netlogon]","ncacn_np:[\\pipe\\lsass]", "ncacn_ip_tcp:", "ncalrpc:"),
2004-08-16 23:03:22 +04:00
pointer_default(unique),
2006-11-07 01:54:49 +03:00
helpstring("Local Security Authority")
2003-11-06 15:34:04 +03:00
] interface lsarpc
{
2005-08-24 15:01:10 +04:00
declare bitmap security_secinfo;
2005-07-09 09:28:42 +04:00
typedef [public,noejs] struct {
2005-07-08 12:09:02 +04:00
[value(2*strlen_m(string))] uint16 length;
[value(2*strlen_m(string))] uint16 size;
2005-10-17 03:39:13 +04:00
[charset(UTF16),size_is(size/2),length_is(length/2)] uint16 *string;
2005-07-08 12:09:02 +04:00
} lsa_String;
2005-07-12 16:25:50 +04:00
typedef [public] struct {
[value(2*strlen_m(string))] uint16 length;
[value(2*(strlen_m(string)+1))] uint16 size;
2005-12-31 07:31:02 +03:00
[charset(UTF16),size_is(size/2),length_is(length/2)] uint16 *string;
2005-07-12 16:25:50 +04:00
} lsa_StringLarge;
2005-07-08 12:09:02 +04:00
typedef [public] struct {
uint32 count;
[size_is(count)] lsa_String *names;
} lsa_Strings;
typedef [public] struct {
[value(strlen_m(string))] uint16 length;
[value(strlen_m(string))] uint16 size;
ascstr_noterm *string;
} lsa_AsciiString;
2003-11-09 11:30:29 +03:00
/******************/
/* Function: 0x00 */
NTSTATUS lsa_Close (
2005-10-16 19:47:28 +04:00
[in,out] policy_handle *handle
2003-11-09 11:30:29 +03:00
);
2003-11-08 14:21:57 +03:00
2003-11-09 12:04:28 +03:00
2003-11-09 11:30:29 +03:00
/******************/
/* Function: 0x01 */
2007-02-16 01:59:10 +03:00
[public] NTSTATUS lsa_Delete (
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle
2003-11-09 12:44:06 +03:00
);
2003-11-09 11:30:29 +03:00
2003-11-10 14:37:19 +03:00
2003-11-09 11:30:29 +03:00
/******************/
/* Function: 0x02 */
2004-12-14 08:32:51 +03:00
typedef struct {
uint32 low;
uint32 high;
} lsa_LUID;
2003-11-09 12:44:06 +03:00
typedef struct {
2005-12-31 07:31:02 +03:00
lsa_StringLarge name;
2004-12-14 08:32:51 +03:00
lsa_LUID luid;
2003-11-09 12:44:06 +03:00
} lsa_PrivEntry;
typedef struct {
uint32 count;
2005-05-27 19:49:15 +04:00
[size_is(count)] lsa_PrivEntry *privs;
2003-11-09 12:44:06 +03:00
} lsa_PrivArray;
2007-02-16 03:35:11 +03:00
[public] NTSTATUS lsa_EnumPrivs (
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
[in,out] uint32 *resume_handle,
2003-11-09 12:44:06 +03:00
[in] uint32 max_count,
2005-10-16 19:47:28 +04:00
[out] lsa_PrivArray *privs
2003-11-09 12:44:06 +03:00
);
2003-11-09 11:30:29 +03:00
/******************/
/* Function: 0x03 */
2003-11-16 09:00:15 +03:00
2004-11-22 11:47:47 +03:00
NTSTATUS lsa_QuerySecurity (
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
2005-08-24 15:01:10 +04:00
[in] security_secinfo sec_info,
2005-10-16 19:47:28 +04:00
[out,unique] sec_desc_buf *sdbuf
2003-11-15 07:42:48 +03:00
);
2003-11-09 11:30:29 +03:00
2003-11-10 14:37:19 +03:00
2003-11-09 11:30:29 +03:00
/******************/
/* Function: 0x04 */
NTSTATUS lsa_SetSecObj ();
2003-11-10 14:37:19 +03:00
2003-11-09 11:30:29 +03:00
/******************/
/* Function: 0x05 */
NTSTATUS lsa_ChangePassword ();
/******************/
/* Function: 0x06 */
2003-11-08 14:21:57 +03:00
typedef struct {
2003-11-15 00:39:13 +03:00
uint32 len; /* ignored */
2003-11-08 14:21:57 +03:00
uint16 impersonation_level;
uint8 context_mode;
uint8 effective_only;
} lsa_QosInfo;
typedef struct {
2003-11-15 00:39:13 +03:00
uint32 len; /* ignored */
2003-11-08 14:21:57 +03:00
uint8 *root_dir;
2005-10-16 22:54:31 +04:00
[string,charset(UTF16)] uint16 *object_name;
2003-11-08 14:21:57 +03:00
uint32 attributes;
security_descriptor *sec_desc;
lsa_QosInfo *sec_qos;
} lsa_ObjectAttribute;
2003-11-09 12:04:28 +03:00
/* notice the screwup with the system_name - thats why MS created
OpenPolicy2 */
2007-02-16 01:07:18 +03:00
[public] NTSTATUS lsa_OpenPolicy (
2005-10-16 19:47:28 +04:00
[in,unique] uint16 *system_name,
[in] lsa_ObjectAttribute *attr,
2004-05-27 08:13:58 +04:00
[in] uint32 access_mask,
2005-10-16 19:47:28 +04:00
[out] policy_handle *handle
2003-11-08 14:21:57 +03:00
);
2003-11-06 15:34:04 +03:00
2003-11-09 12:04:28 +03:00
2003-11-09 11:30:29 +03:00
/******************/
/* Function: 0x07 */
2003-11-11 05:02:29 +03:00
typedef struct {
uint32 percent_full;
uint32 log_size;
NTTIME retention_time;
uint8 shutdown_in_progress;
NTTIME time_to_shutdown;
uint32 next_audit_record;
uint32 unknown;
} lsa_AuditLogInfo;
typedef struct {
uint32 auditing_mode;
2005-05-27 19:49:15 +04:00
[size_is(count)] uint32 *settings;
2003-11-19 08:53:05 +03:00
uint32 count;
2003-11-11 05:02:29 +03:00
} lsa_AuditEventsInfo;
2003-11-11 09:54:54 +03:00
typedef struct {
2005-12-31 07:31:02 +03:00
lsa_StringLarge name;
2003-11-11 09:54:54 +03:00
dom_sid2 *sid;
2003-11-11 10:57:08 +03:00
} lsa_DomainInfo;
typedef struct {
2004-11-22 14:59:59 +03:00
lsa_String name;
2003-11-11 10:57:08 +03:00
} lsa_PDAccountInfo;
typedef struct {
2003-11-19 10:31:17 +03:00
uint16 unknown; /* an midl padding bug? */
2003-11-11 10:57:08 +03:00
uint16 role;
} lsa_ServerRole;
typedef struct {
2004-11-22 14:59:59 +03:00
lsa_String source;
lsa_String account;
2003-11-11 10:57:08 +03:00
} lsa_ReplicaSourceInfo;
typedef struct {
uint32 paged_pool;
uint32 non_paged_pool;
uint32 min_wss;
uint32 max_wss;
uint32 pagefile;
2005-01-27 09:33:07 +03:00
hyper unknown;
2003-11-11 10:57:08 +03:00
} lsa_DefaultQuotaInfo;
typedef struct {
2005-01-27 09:33:07 +03:00
hyper modified_id;
2003-11-11 10:57:08 +03:00
NTTIME db_create_time;
} lsa_ModificationInfo;
typedef struct {
2003-11-19 10:31:17 +03:00
uint8 shutdown_on_full;
2003-11-11 10:57:08 +03:00
} lsa_AuditFullSetInfo;
typedef struct {
2003-11-19 10:31:17 +03:00
uint16 unknown; /* an midl padding bug? */
uint8 shutdown_on_full;
uint8 log_is_full;
2003-11-11 10:57:08 +03:00
} lsa_AuditFullQueryInfo;
typedef struct {
2005-07-12 16:25:50 +04:00
/* it's important that we use the lsa_StringLarge here,
* because otherwise windows clients result with such dns hostnames
* e.g. w2k3-client.samba4.samba.orgsamba4.samba.org
* where it should be
* w2k3-client.samba4.samba.org
*/
lsa_StringLarge name;
lsa_StringLarge dns_domain;
lsa_StringLarge dns_forest;
2003-11-11 10:57:08 +03:00
GUID domain_guid;
dom_sid2 *sid;
} lsa_DnsDomainInfo;
2003-11-11 09:54:54 +03:00
2004-03-31 16:52:21 +04:00
typedef enum {
LSA_POLICY_INFO_AUDIT_LOG=1,
LSA_POLICY_INFO_AUDIT_EVENTS=2,
LSA_POLICY_INFO_DOMAIN=3,
LSA_POLICY_INFO_PD=4,
LSA_POLICY_INFO_ACCOUNT_DOMAIN=5,
LSA_POLICY_INFO_ROLE=6,
LSA_POLICY_INFO_REPLICA=7,
LSA_POLICY_INFO_QUOTA=8,
LSA_POLICY_INFO_DB=9,
LSA_POLICY_INFO_AUDIT_FULL_SET=10,
LSA_POLICY_INFO_AUDIT_FULL_QUERY=11,
LSA_POLICY_INFO_DNS=12
} lsaPolicyInfo;
2005-03-06 20:02:14 +03:00
typedef [switch_type(uint16)] union {
2004-05-27 08:13:58 +04:00
[case(LSA_POLICY_INFO_AUDIT_LOG)] lsa_AuditLogInfo audit_log;
[case(LSA_POLICY_INFO_AUDIT_EVENTS)] lsa_AuditEventsInfo audit_events;
[case(LSA_POLICY_INFO_DOMAIN)] lsa_DomainInfo domain;
[case(LSA_POLICY_INFO_PD)] lsa_PDAccountInfo pd;
[case(LSA_POLICY_INFO_ACCOUNT_DOMAIN)] lsa_DomainInfo account_domain;
[case(LSA_POLICY_INFO_ROLE)] lsa_ServerRole role;
[case(LSA_POLICY_INFO_REPLICA)] lsa_ReplicaSourceInfo replica;
[case(LSA_POLICY_INFO_QUOTA)] lsa_DefaultQuotaInfo quota;
[case(LSA_POLICY_INFO_DB)] lsa_ModificationInfo db;
[case(LSA_POLICY_INFO_AUDIT_FULL_SET)] lsa_AuditFullSetInfo auditfullset;
[case(LSA_POLICY_INFO_AUDIT_FULL_QUERY)] lsa_AuditFullQueryInfo auditfullquery;
[case(LSA_POLICY_INFO_DNS)] lsa_DnsDomainInfo dns;
2003-11-11 05:02:29 +03:00
} lsa_PolicyInformation;
NTSTATUS lsa_QueryInfoPolicy (
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
[in] uint16 level,
[out,unique,switch_is(level)] lsa_PolicyInformation *info
2003-11-11 05:02:29 +03:00
);
2003-11-09 11:30:29 +03:00
/******************/
/* Function: 0x08 */
NTSTATUS lsa_SetInfoPolicy ();
/******************/
/* Function: 0x09 */
NTSTATUS lsa_ClearAuditLog ();
/******************/
/* Function: 0x0a */
2007-02-16 01:59:10 +03:00
[public] NTSTATUS lsa_CreateAccount (
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
[in] dom_sid2 *sid,
[in] uint32 access_mask,
[out] policy_handle *acct_handle
2004-03-31 16:52:21 +04:00
);
2003-11-09 11:30:29 +03:00
/******************/
2005-01-06 15:02:39 +03:00
/* NOTE: This only returns accounts that have at least
one privilege set
*/
2003-11-09 11:30:29 +03:00
/* Function: 0x0b */
2003-11-08 14:21:57 +03:00
typedef struct {
dom_sid2 *sid;
} lsa_SidPtr;
2003-12-02 07:33:57 +03:00
typedef [public] struct {
2004-11-18 08:17:24 +03:00
[range(0,1000)] uint32 num_sids;
2005-05-27 19:49:15 +04:00
[size_is(num_sids)] lsa_SidPtr *sids;
2003-11-08 14:21:57 +03:00
} lsa_SidArray;
2003-11-06 15:34:04 +03:00
2007-02-16 02:53:53 +03:00
[public] NTSTATUS lsa_EnumAccounts (
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
[in,out] uint32 *resume_handle,
2004-12-31 20:56:05 +03:00
[in,range(0,8192)] uint32 num_entries,
2005-10-16 19:47:28 +04:00
[out] lsa_SidArray *sids
2003-11-08 14:21:57 +03:00
);
2003-11-06 15:34:04 +03:00
2003-11-09 11:30:29 +03:00
/*************************************************/
/* Function: 0x0c */
2004-04-03 20:44:39 +04:00
2007-02-16 02:53:53 +03:00
[public] NTSTATUS lsa_CreateTrustedDomain(
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
2006-08-31 12:22:13 +04:00
[in] lsa_DomainInfo *info,
2004-05-27 08:13:58 +04:00
[in] uint32 access_mask,
2005-10-16 19:47:28 +04:00
[out] policy_handle *trustdom_handle
2004-04-03 20:44:39 +04:00
);
2003-11-09 11:30:29 +03:00
2003-11-09 13:01:24 +03:00
2003-11-09 11:30:29 +03:00
/******************/
/* Function: 0x0d */
2003-11-09 13:01:24 +03:00
2005-01-12 10:57:33 +03:00
/* w2k3 treats max_size as max_domains*60 */
const int LSA_ENUM_TRUST_DOMAIN_MULTIPLIER = 60;
2003-11-09 13:01:24 +03:00
typedef struct {
uint32 count;
2006-08-31 12:22:13 +04:00
[size_is(count)] lsa_DomainInfo *domains;
2003-11-09 14:01:39 +03:00
} lsa_DomainList;
2003-11-09 13:01:24 +03:00
NTSTATUS lsa_EnumTrustDom (
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
[in,out] uint32 *resume_handle,
2005-01-12 10:57:33 +03:00
[in,range(0,1000)] uint32 max_size,
2005-10-16 19:47:28 +04:00
[out] lsa_DomainList *domains
2003-11-09 13:01:24 +03:00
);
2003-11-09 11:30:29 +03:00
/******************/
/* Function: 0x0e */
2005-01-06 16:34:18 +03:00
typedef enum {
SID_NAME_USE_NONE = 0,/* NOTUSED */
2005-01-13 01:57:40 +03:00
SID_NAME_USER = 1, /* user */
SID_NAME_DOM_GRP = 2, /* domain group */
SID_NAME_DOMAIN = 3, /* domain: don't know what this is */
SID_NAME_ALIAS = 4, /* local group */
SID_NAME_WKN_GRP = 5, /* well-known group */
SID_NAME_DELETED = 6, /* deleted account: needed for c2 rating */
SID_NAME_INVALID = 7, /* invalid account */
2006-09-08 01:33:35 +04:00
SID_NAME_UNKNOWN = 8, /* oops. */
SID_NAME_COMPUTER = 9 /* machine */
2005-01-06 16:34:18 +03:00
} lsa_SidType;
typedef struct {
lsa_SidType sid_type;
2003-11-09 11:30:29 +03:00
uint32 rid;
2003-11-09 03:58:40 +03:00
uint32 sid_index;
2003-11-09 11:30:29 +03:00
} lsa_TranslatedSid;
2003-11-09 03:58:40 +03:00
typedef struct {
2004-11-18 08:17:24 +03:00
[range(0,1000)] uint32 count;
2005-05-27 19:49:15 +04:00
[size_is(count)] lsa_TranslatedSid *sids;
2003-11-09 11:30:29 +03:00
} lsa_TransSidArray;
2003-11-09 03:58:40 +03:00
2006-08-31 12:22:13 +04:00
const int LSA_REF_DOMAIN_LIST_MULTIPLIER = 32;
2003-11-09 14:01:39 +03:00
typedef struct {
2004-11-18 08:17:24 +03:00
[range(0,1000)] uint32 count;
2006-08-31 12:22:13 +04:00
[size_is(count)] lsa_DomainInfo *domains;
uint32 max_size;
2003-11-09 14:01:39 +03:00
} lsa_RefDomainList;
2007-02-16 01:07:18 +03:00
[public] NTSTATUS lsa_LookupNames (
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
2004-11-18 08:17:24 +03:00
[in,range(0,1000)] uint32 num_names,
2005-03-05 21:34:18 +03:00
[in,size_is(num_names)] lsa_String names[],
2005-10-16 19:47:28 +04:00
[out,unique] lsa_RefDomainList *domains,
[in,out] lsa_TransSidArray *sids,
2003-11-09 03:58:40 +03:00
[in] uint16 level,
2005-10-16 19:47:28 +04:00
[in,out] uint32 *count
2003-11-09 03:58:40 +03:00
);
2003-11-09 05:21:24 +03:00
2003-11-09 11:30:29 +03:00
/******************/
/* Function: 0x0f */
2003-11-09 05:21:24 +03:00
typedef struct {
2005-01-06 16:34:18 +03:00
lsa_SidType sid_type;
2004-11-22 14:59:59 +03:00
lsa_String name;
2003-11-09 05:21:24 +03:00
uint32 sid_index;
2003-11-09 11:30:29 +03:00
} lsa_TranslatedName;
2003-11-09 05:21:24 +03:00
typedef struct {
2004-11-18 08:17:24 +03:00
[range(0,1000)] uint32 count;
2005-05-27 19:49:15 +04:00
[size_is(count)] lsa_TranslatedName *names;
2003-11-09 11:30:29 +03:00
} lsa_TransNameArray;
2003-11-09 05:21:24 +03:00
2007-02-16 01:07:18 +03:00
[public] NTSTATUS lsa_LookupSids (
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
[in] lsa_SidArray *sids,
[out,unique] lsa_RefDomainList *domains,
[in,out] lsa_TransNameArray *names,
2003-11-09 05:21:24 +03:00
[in] uint16 level,
2005-10-16 19:47:28 +04:00
[in,out] uint32 *count
2003-11-09 05:21:24 +03:00
);
2003-11-09 11:30:29 +03:00
/* Function: 0x10 */
2007-02-16 01:59:10 +03:00
[public] NTSTATUS lsa_CreateSecret(
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
2004-11-22 14:59:59 +03:00
[in] lsa_String name,
2004-05-27 08:13:58 +04:00
[in] uint32 access_mask,
2005-10-16 19:47:28 +04:00
[out] policy_handle *sec_handle
2004-04-03 21:15:32 +04:00
);
2003-11-09 14:01:39 +03:00
/*****************************************/
/* Function: 0x11 */
NTSTATUS lsa_OpenAccount (
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
[in] dom_sid2 *sid,
2004-05-27 08:13:58 +04:00
[in] uint32 access_mask,
2005-10-16 19:47:28 +04:00
[out] policy_handle *acct_handle
2003-11-09 14:01:39 +03:00
);
2003-11-10 14:37:19 +03:00
/****************************************/
/* Function: 0x12 */
typedef struct {
lsa_LUID luid;
uint32 attribute;
} lsa_LUIDAttribute;
typedef struct {
2004-12-19 10:20:55 +03:00
[range(0,1000)] uint32 count;
2003-11-13 12:26:53 +03:00
uint32 unknown;
2003-11-10 14:37:19 +03:00
[size_is(count)] lsa_LUIDAttribute set[*];
} lsa_PrivilegeSet;
NTSTATUS lsa_EnumPrivsAccount (
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
[out,unique] lsa_PrivilegeSet *privs
2003-11-10 14:37:19 +03:00
);
2004-12-19 10:20:55 +03:00
/****************************************/
2003-11-09 11:30:29 +03:00
/* Function: 0x13 */
2004-12-19 10:20:55 +03:00
NTSTATUS lsa_AddPrivilegesToAccount(
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
[in] lsa_PrivilegeSet *privs
2004-12-19 10:20:55 +03:00
);
2004-08-13 05:31:11 +04:00
2004-12-19 10:20:55 +03:00
/****************************************/
2003-11-09 11:30:29 +03:00
/* Function: 0x14 */
2004-12-19 10:20:55 +03:00
NTSTATUS lsa_RemovePrivilegesFromAccount(
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
2004-12-19 10:20:55 +03:00
[in] uint8 remove_all,
2005-10-16 19:47:28 +04:00
[in,unique] lsa_PrivilegeSet *privs
2004-12-19 10:20:55 +03:00
);
2004-08-13 05:31:11 +04:00
2003-11-09 11:30:29 +03:00
/* Function: 0x15 */
2004-08-13 05:31:11 +04:00
NTSTATUS lsa_GetQuotasForAccount();
2003-11-09 11:30:29 +03:00
/* Function: 0x16 */
2004-08-13 05:31:11 +04:00
NTSTATUS lsa_SetQuotasForAccount();
2003-11-09 11:30:29 +03:00
/* Function: 0x17 */
2004-08-13 05:31:11 +04:00
NTSTATUS lsa_GetSystemAccessAccount();
2003-11-09 11:30:29 +03:00
/* Function: 0x18 */
2004-08-13 05:31:11 +04:00
NTSTATUS lsa_SetSystemAccessAccount();
2004-11-22 11:47:47 +03:00
2003-11-09 11:30:29 +03:00
/* Function: 0x19 */
2004-11-22 11:47:47 +03:00
NTSTATUS lsa_OpenTrustedDomain(
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
[in] dom_sid2 *sid,
2004-11-22 11:47:47 +03:00
[in] uint32 access_mask,
2005-10-16 19:47:28 +04:00
[out] policy_handle *trustdom_handle
2004-11-22 11:47:47 +03:00
);
2004-11-22 14:59:59 +03:00
typedef [flag(NDR_PAHEX)] struct {
uint32 length;
uint32 size;
2005-05-27 19:49:15 +04:00
[size_is(size),length_is(length)] uint8 *data;
2004-11-22 14:59:59 +03:00
} lsa_DATA_BUF;
2004-11-23 06:11:38 +03:00
typedef [flag(NDR_PAHEX)] struct {
2005-01-13 01:57:40 +03:00
[range(0,65536)] uint32 size;
2005-05-27 19:49:15 +04:00
[size_is(size)] uint8 *data;
2004-11-23 06:11:38 +03:00
} lsa_DATA_BUF2;
typedef enum {
2005-06-08 18:22:09 +04:00
LSA_TRUSTED_DOMAIN_INFO_NAME = 1,
LSA_TRUSTED_DOMAIN_INFO_CONTROLLERS_INFO = 2,
LSA_TRUSTED_DOMAIN_INFO_POSIX_OFFSET = 3,
LSA_TRUSTED_DOMAIN_INFO_PASSWORD = 4,
LSA_TRUSTED_DOMAIN_INFO_BASIC = 5,
LSA_TRUSTED_DOMAIN_INFO_INFO_EX = 6,
LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO = 7,
LSA_TRUSTED_DOMAIN_INFO_FULL_INFO = 8,
LSA_TRUSTED_DOMAIN_INFO_11 = 11,
LSA_TRUSTED_DOMAIN_INFO_INFO_ALL = 12
2004-11-23 06:11:38 +03:00
} lsa_TrustDomInfoEnum;
2004-11-22 14:59:59 +03:00
typedef struct {
2005-12-31 07:31:02 +03:00
lsa_StringLarge netbios_name;
2004-11-23 06:11:38 +03:00
} lsa_TrustDomainInfoName;
2004-11-22 14:59:59 +03:00
typedef struct {
2005-01-13 01:57:40 +03:00
uint32 posix_offset;
2005-01-12 14:16:04 +03:00
} lsa_TrustDomainInfoPosixOffset;
2004-11-23 06:11:38 +03:00
typedef struct {
2005-01-13 01:57:40 +03:00
lsa_DATA_BUF *password;
lsa_DATA_BUF *old_password;
2004-11-23 06:11:38 +03:00
} lsa_TrustDomainInfoPassword;
typedef struct {
2004-11-29 20:51:13 +03:00
lsa_String netbios_name;
2005-01-13 01:57:40 +03:00
dom_sid2 *sid;
2005-06-08 18:22:09 +04:00
} lsa_TrustDomainInfoBasic;
2004-11-22 14:59:59 +03:00
typedef struct {
2005-12-31 07:31:02 +03:00
lsa_StringLarge domain_name;
lsa_StringLarge netbios_name;
2005-01-13 01:57:40 +03:00
dom_sid2 *sid;
uint32 trust_direction;
uint32 trust_type;
uint32 trust_attributes;
2004-11-23 06:11:38 +03:00
} lsa_TrustDomainInfoInfoEx;
typedef struct {
2005-01-13 01:57:40 +03:00
NTTIME_hyper last_update_time;
uint32 secret_type;
lsa_DATA_BUF2 data;
2004-11-23 06:11:38 +03:00
} lsa_TrustDomainInfoBuffer;
typedef struct {
2005-01-13 01:57:40 +03:00
uint32 incoming_count;
2005-01-16 04:23:15 +03:00
lsa_TrustDomainInfoBuffer *incoming_current_auth_info;
lsa_TrustDomainInfoBuffer *incoming_previous_auth_info;
2005-01-13 01:57:40 +03:00
uint32 outgoing_count;
2005-01-16 04:23:15 +03:00
lsa_TrustDomainInfoBuffer *outgoing_current_auth_info;
lsa_TrustDomainInfoBuffer *outgoing_previous_auth_info;
2004-11-23 06:11:38 +03:00
} lsa_TrustDomainInfoAuthInfo;
typedef struct {
2005-01-13 01:57:40 +03:00
lsa_TrustDomainInfoInfoEx info_ex;
2005-01-12 14:16:04 +03:00
lsa_TrustDomainInfoPosixOffset posix_offset;
2005-01-13 01:57:40 +03:00
lsa_TrustDomainInfoAuthInfo auth_info;
2004-11-23 06:11:38 +03:00
} lsa_TrustDomainInfoFullInfo;
typedef struct {
2005-01-13 01:57:40 +03:00
lsa_TrustDomainInfoInfoEx info_ex;
lsa_DATA_BUF2 data1;
2004-11-23 06:11:38 +03:00
} lsa_TrustDomainInfo11;
typedef struct {
2005-01-13 01:57:40 +03:00
lsa_TrustDomainInfoInfoEx info_ex;
lsa_DATA_BUF2 data1;
2005-01-12 14:16:04 +03:00
lsa_TrustDomainInfoPosixOffset posix_offset;
2005-01-13 01:57:40 +03:00
lsa_TrustDomainInfoAuthInfo auth_info;
2004-11-23 06:11:38 +03:00
} lsa_TrustDomainInfoInfoAll;
2004-11-22 14:59:59 +03:00
2005-03-06 20:02:14 +03:00
typedef [switch_type(lsa_TrustDomInfoEnum)] union {
2005-01-12 14:16:04 +03:00
[case(LSA_TRUSTED_DOMAIN_INFO_NAME)] lsa_TrustDomainInfoName name;
[case(LSA_TRUSTED_DOMAIN_INFO_POSIX_OFFSET)] lsa_TrustDomainInfoPosixOffset posix_offset;
[case(LSA_TRUSTED_DOMAIN_INFO_PASSWORD)] lsa_TrustDomainInfoPassword password;
2005-06-08 18:22:09 +04:00
[case(LSA_TRUSTED_DOMAIN_INFO_BASIC)] lsa_TrustDomainInfoBasic info_basic;
2005-01-12 14:16:04 +03:00
[case(LSA_TRUSTED_DOMAIN_INFO_INFO_EX)] lsa_TrustDomainInfoInfoEx info_ex;
[case(LSA_TRUSTED_DOMAIN_INFO_AUTH_INFO)] lsa_TrustDomainInfoAuthInfo auth_info;
[case(LSA_TRUSTED_DOMAIN_INFO_FULL_INFO)] lsa_TrustDomainInfoFullInfo full_info;
2005-01-13 01:57:40 +03:00
[case(LSA_TRUSTED_DOMAIN_INFO_11)] lsa_TrustDomainInfo11 info11;
2005-01-12 14:16:04 +03:00
[case(LSA_TRUSTED_DOMAIN_INFO_INFO_ALL)] lsa_TrustDomainInfoInfoAll info_all;
2004-11-22 14:59:59 +03:00
} lsa_TrustedDomainInfo;
2003-11-09 11:30:29 +03:00
/* Function: 0x1a */
2004-11-23 03:31:00 +03:00
NTSTATUS lsa_QueryTrustedDomainInfo(
2005-10-16 19:47:28 +04:00
[in] policy_handle *trustdom_handle,
[in] lsa_TrustDomInfoEnum level,
[out,switch_is(level),unique] lsa_TrustedDomainInfo *info
2004-11-22 14:59:59 +03:00
);
2003-11-09 11:30:29 +03:00
/* Function: 0x1b */
2004-08-13 05:31:11 +04:00
NTSTATUS lsa_SetInformationTrustedDomain();
2004-04-03 21:21:26 +04:00
2003-11-09 11:30:29 +03:00
/* Function: 0x1c */
2007-02-16 01:59:10 +03:00
[public] NTSTATUS lsa_OpenSecret(
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
2005-01-11 17:04:58 +03:00
[in] lsa_String name,
[in] uint32 access_mask,
2005-10-16 19:47:28 +04:00
[out] policy_handle *sec_handle
2004-04-03 21:21:26 +04:00
);
2003-11-09 11:30:29 +03:00
/* Function: 0x1d */
2004-04-07 11:20:53 +04:00
2007-02-16 01:59:10 +03:00
[public] NTSTATUS lsa_SetSecret(
2005-10-16 19:47:28 +04:00
[in] policy_handle *sec_handle,
[in,unique] lsa_DATA_BUF *new_val,
[in,unique] lsa_DATA_BUF *old_val
2004-04-07 11:20:53 +04:00
);
typedef struct {
lsa_DATA_BUF *buf;
} lsa_DATA_BUF_PTR;
2003-11-09 11:30:29 +03:00
/* Function: 0x1e */
2007-02-16 01:59:10 +03:00
[public] NTSTATUS lsa_QuerySecret (
2005-10-16 19:47:28 +04:00
[in] policy_handle *sec_handle,
[in,out,unique] lsa_DATA_BUF_PTR *new_val,
[in,out,unique] NTTIME_hyper *new_mtime,
[in,out,unique] lsa_DATA_BUF_PTR *old_val,
[in,out,unique] NTTIME_hyper *old_mtime
2004-04-07 11:20:53 +04:00
);
2003-11-10 15:42:45 +03:00
2003-11-09 11:30:29 +03:00
/* Function: 0x1f */
2004-12-14 08:32:51 +03:00
NTSTATUS lsa_LookupPrivValue(
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
[in] lsa_String *name,
[out] lsa_LUID *luid
2004-12-14 08:32:51 +03:00
);
2003-11-10 15:42:45 +03:00
2003-11-09 11:30:29 +03:00
/* Function: 0x20 */
2003-11-10 15:42:45 +03:00
NTSTATUS lsa_LookupPrivName (
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
[in] lsa_LUID *luid,
2005-12-31 07:31:02 +03:00
[out,unique] lsa_StringLarge *name
2003-11-10 15:42:45 +03:00
);
2004-08-31 12:43:28 +04:00
/*******************/
2003-11-09 11:30:29 +03:00
/* Function: 0x21 */
2004-08-31 12:43:28 +04:00
NTSTATUS lsa_LookupPrivDisplayName (
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
[in] lsa_String *name,
2005-12-31 07:31:02 +03:00
[out,unique] lsa_StringLarge *disp_name,
2004-09-03 09:16:25 +04:00
/* see http://www.microsoft.com/globaldev/nlsweb/ for
language definitions */
2005-10-16 19:47:28 +04:00
[in,out] uint16 *language_id,
2004-09-03 09:16:25 +04:00
[in] uint16 unknown
2004-08-31 12:43:28 +04:00
);
2003-11-09 11:30:29 +03:00
/* Function: 0x22 */
2004-08-13 05:31:11 +04:00
NTSTATUS lsa_DeleteObject();
2004-08-31 12:43:28 +04:00
/*******************/
/* Function: 0x23 */
NTSTATUS lsa_EnumAccountsWithUserRight (
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
[in,unique] lsa_String *name,
[out] lsa_SidArray *sids
2004-08-31 12:43:28 +04:00
);
2003-11-10 15:12:22 +03:00
2003-11-09 11:30:29 +03:00
/* Function: 0x24 */
2003-11-10 15:12:22 +03:00
typedef struct {
2005-10-16 22:54:31 +04:00
[string,charset(UTF16)] uint16 *name;
2003-11-10 15:12:22 +03:00
} lsa_RightAttribute;
typedef struct {
uint32 count;
2005-12-31 07:31:02 +03:00
[size_is(count)] lsa_StringLarge *names;
2003-11-10 15:12:22 +03:00
} lsa_RightSet;
NTSTATUS lsa_EnumAccountRights (
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
[in] dom_sid2 *sid,
[out] lsa_RightSet *rights
2003-11-10 15:12:22 +03:00
);
2004-08-31 12:22:51 +04:00
/**********************/
2003-11-09 11:30:29 +03:00
/* Function: 0x25 */
2004-08-31 12:22:51 +04:00
NTSTATUS lsa_AddAccountRights (
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
[in] dom_sid2 *sid,
[in] lsa_RightSet *rights
2004-08-31 12:22:51 +04:00
);
/**********************/
/* Function: 0x26 */
NTSTATUS lsa_RemoveAccountRights (
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
[in] dom_sid2 *sid,
2004-08-31 12:22:51 +04:00
[in] uint32 unknown,
2005-10-16 19:47:28 +04:00
[in] lsa_RightSet *rights
2004-08-31 12:22:51 +04:00
);
2003-11-09 11:30:29 +03:00
/* Function: 0x27 */
2004-11-23 03:31:00 +03:00
NTSTATUS lsa_QueryTrustedDomainInfoBySid(
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
[in] dom_sid2 *dom_sid,
2005-03-05 21:34:18 +03:00
[in] lsa_TrustDomInfoEnum level,
2005-10-16 19:47:28 +04:00
[out,switch_is(level),unique] lsa_TrustedDomainInfo *info
2004-11-23 03:31:00 +03:00
);
2003-11-09 11:30:29 +03:00
/* Function: 0x28 */
2006-08-31 12:22:13 +04:00
NTSTATUS lsa_SetTrustedDomainInfo();
2003-11-09 11:30:29 +03:00
/* Function: 0x29 */
2006-08-31 12:22:13 +04:00
NTSTATUS lsa_DeleteTrustedDomain(
[in] policy_handle *handle,
[in] dom_sid2 *dom_sid
);
2003-11-09 11:30:29 +03:00
/* Function: 0x2a */
2004-08-13 05:31:11 +04:00
NTSTATUS lsa_StorePrivateData();
2003-11-09 11:30:29 +03:00
/* Function: 0x2b */
2004-08-13 05:31:11 +04:00
NTSTATUS lsa_RetrievePrivateData();
2003-11-09 11:30:29 +03:00
/**********************/
/* Function: 0x2c */
2007-02-16 01:07:18 +03:00
[public] NTSTATUS lsa_OpenPolicy2 (
2005-10-16 22:54:31 +04:00
[in,unique] [string,charset(UTF16)] uint16 *system_name,
2005-10-16 19:47:28 +04:00
[in] lsa_ObjectAttribute *attr,
2004-05-27 08:13:58 +04:00
[in] uint32 access_mask,
2005-10-16 19:47:28 +04:00
[out] policy_handle *handle
2003-11-09 11:30:29 +03:00
);
2004-12-21 12:41:21 +03:00
/**********************/
/* Function: 0x2d */
typedef struct {
lsa_String *string;
} lsa_StringPointer;
2003-11-09 11:30:29 +03:00
2004-12-21 12:41:21 +03:00
NTSTATUS lsa_GetUserName(
2005-10-16 22:54:31 +04:00
[in,unique] [string,charset(UTF16)] uint16 *system_name,
2005-10-16 19:47:28 +04:00
[in,out,unique] lsa_String *account_name,
[in,out,unique] lsa_StringPointer *authority_name
2004-12-21 12:41:21 +03:00
);
2004-05-27 10:27:21 +04:00
/**********************/
2003-11-09 11:30:29 +03:00
/* Function: 0x2e */
2004-05-27 10:27:21 +04:00
NTSTATUS lsa_QueryInfoPolicy2(
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
2004-05-27 10:27:21 +04:00
[in] uint16 level,
2005-10-16 19:47:28 +04:00
[out,unique,switch_is(level)] lsa_PolicyInformation *info
2004-05-27 10:27:21 +04:00
);
2004-08-13 05:31:11 +04:00
/* Function 0x2f */
NTSTATUS lsa_SetInfoPolicy2();
2004-11-26 09:33:38 +03:00
/**********************/
2004-08-13 05:31:11 +04:00
/* Function 0x30 */
2004-11-23 03:31:00 +03:00
NTSTATUS lsa_QueryTrustedDomainInfoByName(
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
2004-11-23 03:31:00 +03:00
[in] lsa_String trusted_domain,
2005-03-05 21:34:18 +03:00
[in] lsa_TrustDomInfoEnum level,
2005-10-16 19:47:28 +04:00
[out,unique,switch_is(level)] lsa_TrustedDomainInfo *info
2004-11-23 03:31:00 +03:00
);
2004-08-13 05:31:11 +04:00
2006-08-31 12:22:13 +04:00
/**********************/
2004-08-13 05:31:11 +04:00
/* Function 0x31 */
2006-08-31 12:22:13 +04:00
NTSTATUS lsa_SetTrustedDomainInfoByName(
[in] policy_handle *handle,
[in] lsa_String trusted_domain,
[in] lsa_TrustDomInfoEnum level,
[in,unique,switch_is(level)] lsa_TrustedDomainInfo *info
);
2004-08-13 05:31:11 +04:00
/* Function 0x32 */
2006-08-31 12:22:13 +04:00
/* w2k3 treats max_size as max_domains*82 */
const int LSA_ENUM_TRUST_DOMAIN_EX_MULTIPLIER = 82;
typedef struct {
uint32 count;
[size_is(count)] lsa_TrustDomainInfoInfoEx *domains;
} lsa_DomainListEx;
NTSTATUS lsa_EnumTrustedDomainsEx (
[in] policy_handle *handle,
[in,out] uint32 *resume_handle,
[out] lsa_DomainListEx *domains,
[in] uint32 max_size
);
2004-08-13 05:31:11 +04:00
/* Function 0x33 */
NTSTATUS lsa_CreateTrustedDomainEx();
/* Function 0x34 */
2006-08-31 12:22:13 +04:00
NTSTATUS lsa_CloseTrustedDomainEx(
[in,out] policy_handle *handle
);
2004-08-13 05:31:11 +04:00
/* Function 0x35 */
2005-09-01 14:36:48 +04:00
/* w2k3 returns either 0x000bbbd000000000 or 0x000a48e800000000
for unknown6 - gd */
typedef struct {
uint32 enforce_restrictions;
hyper service_tkt_lifetime;
hyper user_tkt_lifetime;
hyper user_tkt_renewaltime;
hyper clock_skew;
hyper unknown6;
} lsa_DomainInfoKerberos;
typedef struct {
uint32 blob_size;
[size_is(blob_size)] uint8 *efs_blob;
} lsa_DomainInfoEfs;
typedef enum {
LSA_DOMAIN_INFO_POLICY_EFS=2,
LSA_DOMAIN_INFO_POLICY_KERBEROS=3
} lsa_DomainInfoEnum;
typedef [switch_type(uint16)] union {
[case(LSA_DOMAIN_INFO_POLICY_EFS)] lsa_DomainInfoEfs efs_info;
[case(LSA_DOMAIN_INFO_POLICY_KERBEROS)] lsa_DomainInfoKerberos kerberos_info;
} lsa_DomainInformationPolicy;
NTSTATUS lsa_QueryDomainInformationPolicy(
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
2005-09-01 14:36:48 +04:00
[in] uint16 level,
2005-10-16 19:47:28 +04:00
[out,unique,switch_is(level)] lsa_DomainInformationPolicy *info
2005-09-01 14:36:48 +04:00
);
2004-08-13 05:31:11 +04:00
/* Function 0x36 */
2005-09-01 14:36:48 +04:00
NTSTATUS lsa_SetDomainInformationPolicy(
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
2005-09-01 14:36:48 +04:00
[in] uint16 level,
2005-10-16 19:47:28 +04:00
[in,unique,switch_is(level)] lsa_DomainInformationPolicy *info
2005-09-01 14:36:48 +04:00
);
2004-08-13 05:31:11 +04:00
2004-11-26 09:33:38 +03:00
/**********************/
2004-08-13 05:31:11 +04:00
/* Function 0x37 */
2004-11-22 11:47:47 +03:00
NTSTATUS lsa_OpenTrustedDomainByName(
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
2004-11-22 14:59:59 +03:00
[in] lsa_String name,
2004-11-22 11:47:47 +03:00
[in] uint32 access_mask,
2005-10-16 19:47:28 +04:00
[out] policy_handle *trustdom_handle
2004-11-22 11:47:47 +03:00
);
2004-08-13 05:31:11 +04:00
/* Function 0x38 */
NTSTATUS lsa_TestCall();
2004-11-26 09:33:38 +03:00
/**********************/
2004-08-13 05:31:11 +04:00
/* Function 0x39 */
2004-11-26 09:33:38 +03:00
typedef struct {
2005-01-06 16:34:18 +03:00
lsa_SidType sid_type;
2004-11-26 09:33:38 +03:00
lsa_String name;
uint32 sid_index;
uint32 unknown;
} lsa_TranslatedName2;
typedef struct {
[range(0,1000)] uint32 count;
2005-05-27 19:49:15 +04:00
[size_is(count)] lsa_TranslatedName2 *names;
2004-11-26 09:33:38 +03:00
} lsa_TransNameArray2;
2007-02-16 02:53:53 +03:00
[public] NTSTATUS lsa_LookupSids2(
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
[in] lsa_SidArray *sids,
[out,unique] lsa_RefDomainList *domains,
[in,out] lsa_TransNameArray2 *names,
2004-11-26 09:33:38 +03:00
[in] uint16 level,
2005-10-16 19:47:28 +04:00
[in,out] uint32 *count,
2004-11-26 09:33:38 +03:00
[in] uint32 unknown1,
[in] uint32 unknown2
);
/**********************/
2004-08-13 05:31:11 +04:00
/* Function 0x3a */
2004-11-26 09:33:38 +03:00
typedef struct {
2005-01-06 16:34:18 +03:00
lsa_SidType sid_type;
2004-11-26 09:33:38 +03:00
uint32 rid;
uint32 sid_index;
uint32 unknown;
} lsa_TranslatedSid2;
typedef struct {
[range(0,1000)] uint32 count;
2005-05-27 19:49:15 +04:00
[size_is(count)] lsa_TranslatedSid2 *sids;
2004-11-26 09:33:38 +03:00
} lsa_TransSidArray2;
2007-02-16 03:35:11 +03:00
[public] NTSTATUS lsa_LookupNames2 (
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
2004-11-26 09:33:38 +03:00
[in,range(0,1000)] uint32 num_names,
2005-03-05 21:34:18 +03:00
[in,size_is(num_names)] lsa_String names[],
2005-10-16 19:47:28 +04:00
[out,unique] lsa_RefDomainList *domains,
[in,out] lsa_TransSidArray2 *sids,
2004-11-26 09:33:38 +03:00
[in] uint16 level,
2005-10-16 19:47:28 +04:00
[in,out] uint32 *count,
2004-11-26 09:33:38 +03:00
[in] uint32 unknown1,
[in] uint32 unknown2
);
2004-08-13 05:31:11 +04:00
/* Function 0x3b */
NTSTATUS lsa_CreateTrustedDomainEx2();
2004-12-31 09:08:43 +03:00
/* Function 0x3c */
NTSTATUS lsa_CREDRWRITE();
/* Function 0x3d */
NTSTATUS lsa_CREDRREAD();
/* Function 0x3e */
NTSTATUS lsa_CREDRENUMERATE();
/* Function 0x3f */
NTSTATUS lsa_CREDRWRITEDOMAINCREDENTIALS();
/* Function 0x40 */
NTSTATUS lsa_CREDRREADDOMAINCREDENTIALS();
/* Function 0x41 */
NTSTATUS lsa_CREDRDELETE();
/* Function 0x42 */
NTSTATUS lsa_CREDRGETTARGETINFO();
/* Function 0x43 */
NTSTATUS lsa_CREDRPROFILELOADED();
2004-12-31 10:26:26 +03:00
/**********************/
2004-12-31 09:08:43 +03:00
/* Function 0x44 */
2004-12-31 10:26:26 +03:00
typedef struct {
2005-01-06 16:34:18 +03:00
lsa_SidType sid_type;
2004-12-31 10:52:54 +03:00
dom_sid2 *sid;
2004-12-31 10:26:26 +03:00
uint32 sid_index;
uint32 unknown;
} lsa_TranslatedSid3;
typedef struct {
[range(0,1000)] uint32 count;
2005-05-27 19:49:15 +04:00
[size_is(count)] lsa_TranslatedSid3 *sids;
2004-12-31 10:26:26 +03:00
} lsa_TransSidArray3;
2007-02-16 03:35:11 +03:00
[public] NTSTATUS lsa_LookupNames3 (
2005-10-16 19:47:28 +04:00
[in] policy_handle *handle,
2004-12-31 10:26:26 +03:00
[in,range(0,1000)] uint32 num_names,
2005-03-05 21:34:18 +03:00
[in,size_is(num_names)] lsa_String names[],
2005-10-16 19:47:28 +04:00
[out,unique] lsa_RefDomainList *domains,
[in,out] lsa_TransSidArray3 *sids,
2004-12-31 10:26:26 +03:00
[in] uint16 level,
2005-10-16 19:47:28 +04:00
[in,out] uint32 *count,
2004-12-31 10:26:26 +03:00
[in] uint32 unknown1,
[in] uint32 unknown2
);
2004-12-31 09:08:43 +03:00
/* Function 0x45 */
NTSTATUS lsa_CREDRGETSESSIONTYPES();
/* Function 0x46 */
NTSTATUS lsa_LSARREGISTERAUDITEVENT();
/* Function 0x47 */
NTSTATUS lsa_LSARGENAUDITEVENT();
/* Function 0x48 */
NTSTATUS lsa_LSARUNREGISTERAUDITEVENT();
/* Function 0x49 */
NTSTATUS lsa_LSARQUERYFORESTTRUSTINFORMATION();
/* Function 0x4a */
NTSTATUS lsa_LSARSETFORESTTRUSTINFORMATION();
/* Function 0x4b */
NTSTATUS lsa_CREDRRENAME();
2004-12-31 10:26:26 +03:00
/*****************/
2004-12-31 09:08:43 +03:00
/* Function 0x4c */
2004-12-31 10:26:26 +03:00
2007-02-16 03:35:11 +03:00
[public] NTSTATUS lsa_LookupSids3(
2005-10-16 19:47:28 +04:00
[in] lsa_SidArray *sids,
[out,unique] lsa_RefDomainList *domains,
[in,out] lsa_TransNameArray2 *names,
2004-12-31 10:26:26 +03:00
[in] uint16 level,
2005-10-16 19:47:28 +04:00
[in,out] uint32 *count,
2004-12-31 10:26:26 +03:00
[in] uint32 unknown1,
[in] uint32 unknown2
);
2004-12-31 09:08:43 +03:00
/* Function 0x4d */
2005-10-25 16:15:29 +04:00
NTSTATUS lsa_LookupNames4(
[in,range(0,1000)] uint32 num_names,
[in,size_is(num_names)] lsa_String names[],
[out,unique] lsa_RefDomainList *domains,
[in,out] lsa_TransSidArray3 *sids,
[in] uint16 level,
[in,out] uint32 *count,
[in] uint32 unknown1,
[in] uint32 unknown2
);
2004-12-31 09:08:43 +03:00
/* Function 0x4e */
NTSTATUS lsa_LSAROPENPOLICYSCE();
/* Function 0x4f */
NTSTATUS lsa_LSARADTREGISTERSECURITYEVENTSOURCE();
/* Function 0x50 */
NTSTATUS lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE();
/* Function 0x51 */
NTSTATUS lsa_LSARADTREPORTSECURITYEVENT();
2003-11-28 08:20:11 +03:00
}