/* * Please do not edit this file. * It was generated using ndrgen. */ #include #include #include extern struct ndr_typeinfo ndt__char; extern struct ndr_typeinfo ndt_s_char; extern struct ndr_typeinfo ndt__uchar; extern struct ndr_typeinfo ndt_s_uchar; extern struct ndr_typeinfo ndt__wchar; extern struct ndr_typeinfo ndt_s_wchar; extern struct ndr_typeinfo ndt__short; extern struct ndr_typeinfo ndt_s_short; extern struct ndr_typeinfo ndt__ushort; extern struct ndr_typeinfo ndt_s_ushort; extern struct ndr_typeinfo ndt__long; extern struct ndr_typeinfo ndt_s_long; extern struct ndr_typeinfo ndt__ulong; extern struct ndr_typeinfo ndt_s_ulong; int ndr__mslsa_sid (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_sid = { 1, /* NDR version */ 3, /* alignment */ NDR_F_CONFORMANT|NDR_F_STRUCT, /* flags */ ndr__mslsa_sid, /* ndr_func */ 8, /* pdu_size_fixed_part */ 4, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 4, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_sid (struct ndr_reference *encl_ref) { struct mslsa_sid *val = (struct mslsa_sid *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_uchar, Revision, 0UL); NDR_MEMBER (_uchar, SubAuthCount, 1UL); /* do all constructed elements w/o pointers */ NDR_MEMBER_ARR_WITH_DIMENSION (_uchar, Authority, 2UL, 6); NDR_MEMBER_ARR_WITH_SIZE_IS (_ulong, SubAuthority, 8UL, val->SubAuthCount); /* do members with pointers in order */ return 1; } int ndr__mslsa_string_desc (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_string_desc = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_string_desc, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_string_desc (struct ndr_reference *encl_ref) { struct mslsa_string_desc *val = (struct mslsa_string_desc *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ushort, length, 0UL); NDR_MEMBER (_ushort, allosize, 2UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (s_wchar, str, 4UL); return 1; } int ndr__mslsa_handle (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_handle = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_handle, /* ndr_func */ 20, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 20, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_handle (struct ndr_reference *encl_ref) { struct mslsa_handle *val = (struct mslsa_handle *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, data1, 0UL); NDR_MEMBER (_ulong, data2, 4UL); /* do all constructed elements w/o pointers */ NDR_MEMBER_ARR_WITH_DIMENSION (_ushort, data3, 8UL, 2); NDR_MEMBER_ARR_WITH_DIMENSION (_uchar, data4, 12UL, 8); /* do members with pointers in order */ return 1; } int ndr__mslsa_luid (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_luid = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_luid, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_luid (struct ndr_reference *encl_ref) { struct mslsa_luid *val = (struct mslsa_luid *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, low_part, 0UL); NDR_MEMBER (_ulong, high_part, 4UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__mslsa_guid (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_guid = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_guid, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_guid (struct ndr_reference *encl_ref) { struct mslsa_guid *val = (struct mslsa_guid *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, data1, 0UL); NDR_MEMBER (_ushort, data2, 4UL); NDR_MEMBER (_ushort, data3, 6UL); /* do all constructed elements w/o pointers */ NDR_MEMBER_ARR_WITH_DIMENSION (_uchar, data4, 8UL, 8); /* do members with pointers in order */ return 1; } int ndr__mslsa_quality_of_service (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_quality_of_service = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_quality_of_service, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_quality_of_service (struct ndr_reference *encl_ref) { struct mslsa_quality_of_service *val = (struct mslsa_quality_of_service *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, length, 0UL); NDR_MEMBER (_ushort, impersonation_level, 4UL); NDR_MEMBER (_uchar, context_tracking_mode, 6UL); NDR_MEMBER (_uchar, effective_only, 7UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__mslsa_object_attributes (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_object_attributes = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_object_attributes, /* ndr_func */ 24, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 24, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_object_attributes (struct ndr_reference *encl_ref) { struct mslsa_object_attributes *val = (struct mslsa_object_attributes *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, length, 0UL); NDR_MEMBER (_ulong, rootDirectory, 4UL); NDR_MEMBER (_ulong, objectName, 8UL); NDR_MEMBER (_ulong, attributes, 12UL); NDR_MEMBER (_ulong, securityDescriptor, 16UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (_mslsa_quality_of_service, qualityOfService, 20UL); return 1; } int ndr__mslsa_OpenPolicy (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_OpenPolicy = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__mslsa_OpenPolicy, /* ndr_func */ 56, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 56, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(6)] */ int ndr__mslsa_OpenPolicy (struct ndr_reference *encl_ref) { struct mslsa_OpenPolicy *val = (struct mslsa_OpenPolicy *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_PTR (_ulong, servername); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_object_attributes, attributes); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, desiredAccess); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_mslsa_handle, domain_handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__mslsa_OpenPolicy2 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_OpenPolicy2 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__mslsa_OpenPolicy2, /* ndr_func */ 56, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 56, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(44)] */ int ndr__mslsa_OpenPolicy2 (struct ndr_reference *encl_ref) { struct mslsa_OpenPolicy2 *val = (struct mslsa_OpenPolicy2 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_PTR (s_wchar, servername); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_object_attributes, attributes); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, desiredAccess); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_mslsa_handle, domain_handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__mslsa_CloseHandle (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_CloseHandle = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__mslsa_CloseHandle, /* ndr_func */ 44, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 44, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(0)] */ int ndr__mslsa_CloseHandle (struct ndr_reference *encl_ref) { struct mslsa_CloseHandle *val = (struct mslsa_CloseHandle *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_mslsa_handle, result_handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__mslsa_PrivDef (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_PrivDef = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_PrivDef, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_PrivDef (struct ndr_reference *encl_ref) { struct mslsa_PrivDef *val = (struct mslsa_PrivDef *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ /* do all constructed elements w/o pointers */ NDR_MEMBER (_mslsa_luid, luid, 8UL); /* do members with pointers in order */ NDR_MEMBER (_mslsa_string_desc, name, 0UL); return 1; } int ndr__mslsa_PrivEnumBuf (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_PrivEnumBuf = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_PrivEnumBuf, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_PrivEnumBuf (struct ndr_reference *encl_ref) { struct mslsa_PrivEnumBuf *val = (struct mslsa_PrivEnumBuf *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, entries_read, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_mslsa_PrivDef, def, 4UL, val->entries_read); return 1; } int ndr__mslsa_EnumPrivileges (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_EnumPrivileges = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__mslsa_EnumPrivileges, /* ndr_func */ 36, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 36, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(2)] */ int ndr__mslsa_EnumPrivileges (struct ndr_reference *encl_ref) { struct mslsa_EnumPrivileges *val = (struct mslsa_EnumPrivileges *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_handle, handle); } NDR_TOPMOST_MEMBER (_ulong, enum_context); if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, max_length); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_REF (_mslsa_PrivEnumBuf, enum_buf); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__mslsa_SecurityDescriptor (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_SecurityDescriptor = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_SecurityDescriptor, /* ndr_func */ 20, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 20, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_SecurityDescriptor (struct ndr_reference *encl_ref) { struct mslsa_SecurityDescriptor *val = (struct mslsa_SecurityDescriptor *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_uchar, revision, 0UL); NDR_MEMBER (_uchar, sbz1, 1UL); NDR_MEMBER (_ushort, control, 2UL); NDR_MEMBER (_ulong, owner, 4UL); NDR_MEMBER (_ulong, group, 8UL); NDR_MEMBER (_ulong, sacl, 12UL); NDR_MEMBER (_ulong, dacl, 16UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__mslsa_SecurityDescInfo (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_SecurityDescInfo = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_SecurityDescInfo, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_SecurityDescInfo (struct ndr_reference *encl_ref) { struct mslsa_SecurityDescInfo *val = (struct mslsa_SecurityDescInfo *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, length, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_uchar, desc, 4UL, val->length); return 1; } int ndr__mslsa_QuerySecurityObject (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_QuerySecurityObject = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__mslsa_QuerySecurityObject, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(3)] */ int ndr__mslsa_QuerySecurityObject (struct ndr_reference *encl_ref) { struct mslsa_QuerySecurityObject *val = (struct mslsa_QuerySecurityObject *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, security_info); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_mslsa_SecurityDescInfo, desc_info); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__mslsa_AccountInfo (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_AccountInfo = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_AccountInfo, /* ndr_func */ 4, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 4, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_AccountInfo (struct ndr_reference *encl_ref) { struct mslsa_AccountInfo *val = (struct mslsa_AccountInfo *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (_mslsa_sid, sid, 0UL); return 1; } int ndr__mslsa_EnumAccountBuf (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_EnumAccountBuf = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_EnumAccountBuf, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_EnumAccountBuf (struct ndr_reference *encl_ref) { struct mslsa_EnumAccountBuf *val = (struct mslsa_EnumAccountBuf *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, entries_read, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_mslsa_AccountInfo, info, 4UL, val->entries_read); return 1; } int ndr__mslsa_EnumerateAccounts (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_EnumerateAccounts = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__mslsa_EnumerateAccounts, /* ndr_func */ 36, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 36, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(11)] */ int ndr__mslsa_EnumerateAccounts (struct ndr_reference *encl_ref) { struct mslsa_EnumerateAccounts *val = (struct mslsa_EnumerateAccounts *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_handle, handle); } NDR_TOPMOST_MEMBER (_ulong, enum_context); if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, max_length); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_REF (_mslsa_EnumAccountBuf, enum_buf); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__mslsa_TrustedDomainInfo (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_TrustedDomainInfo = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_TrustedDomainInfo, /* ndr_func */ 12, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 12, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_TrustedDomainInfo (struct ndr_reference *encl_ref) { struct mslsa_TrustedDomainInfo *val = (struct mslsa_TrustedDomainInfo *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER (_mslsa_string_desc, name, 0UL); NDR_MEMBER_PTR (_mslsa_sid, sid, 8UL); return 1; } int ndr__mslsa_EnumTrustedDomainBuf (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_EnumTrustedDomainBuf = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_EnumTrustedDomainBuf, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_EnumTrustedDomainBuf (struct ndr_reference *encl_ref) { struct mslsa_EnumTrustedDomainBuf *val = (struct mslsa_EnumTrustedDomainBuf *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, entries_read, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_mslsa_TrustedDomainInfo, info, 4UL, val->entries_read); return 1; } int ndr__mslsa_EnumTrustedDomain (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_EnumTrustedDomain = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__mslsa_EnumTrustedDomain, /* ndr_func */ 36, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 36, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(13)] */ int ndr__mslsa_EnumTrustedDomain (struct ndr_reference *encl_ref) { struct mslsa_EnumTrustedDomain *val = (struct mslsa_EnumTrustedDomain *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_handle, handle); } NDR_TOPMOST_MEMBER (_ulong, enum_context); if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, max_length); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_REF (_mslsa_EnumTrustedDomainBuf, enum_buf); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__mslsa_TrustedDomainInfoEx (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_TrustedDomainInfoEx = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_TrustedDomainInfoEx, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_TrustedDomainInfoEx (struct ndr_reference *encl_ref) { struct mslsa_TrustedDomainInfoEx *val = (struct mslsa_TrustedDomainInfoEx *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, trust_direction, 20UL); NDR_MEMBER (_ulong, trust_type, 24UL); NDR_MEMBER (_ulong, trust_attrs, 28UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER (_mslsa_string_desc, dns_name, 0UL); NDR_MEMBER (_mslsa_string_desc, nb_name, 8UL); NDR_MEMBER_PTR (_mslsa_sid, sid, 16UL); return 1; } int ndr__mslsa_EnumTrustedDomainBufEx (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_EnumTrustedDomainBufEx = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_EnumTrustedDomainBufEx, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_EnumTrustedDomainBufEx (struct ndr_reference *encl_ref) { struct mslsa_EnumTrustedDomainBufEx *val = (struct mslsa_EnumTrustedDomainBufEx *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, entries_read, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_mslsa_TrustedDomainInfoEx, info, 4UL, val->entries_read); return 1; } int ndr__mslsa_EnumTrustedDomainEx (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_EnumTrustedDomainEx = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__mslsa_EnumTrustedDomainEx, /* ndr_func */ 36, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 36, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(50)] */ int ndr__mslsa_EnumTrustedDomainEx (struct ndr_reference *encl_ref) { struct mslsa_EnumTrustedDomainEx *val = (struct mslsa_EnumTrustedDomainEx *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_handle, handle); } NDR_TOPMOST_MEMBER (_ulong, enum_context); if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, max_length); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_REF (_mslsa_EnumTrustedDomainBufEx, enum_buf); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__mslsa_domain_entry (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_domain_entry = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_domain_entry, /* ndr_func */ 12, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 12, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_domain_entry (struct ndr_reference *encl_ref) { struct mslsa_domain_entry *val = (struct mslsa_domain_entry *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER (_mslsa_string_desc, domain_name, 0UL); NDR_MEMBER_PTR (_mslsa_sid, domain_sid, 8UL); return 1; } int ndr__mslsa_domain_table (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_domain_table = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_domain_table, /* ndr_func */ 12, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 12, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_domain_table (struct ndr_reference *encl_ref) { struct mslsa_domain_table *val = (struct mslsa_domain_table *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, n_entry, 0UL); NDR_MEMBER (_ulong, max_n_entry, 8UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_mslsa_domain_entry, entries, 4UL, val->n_entry); return 1; } int ndr__mslsa_lup_sid_entry (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_lup_sid_entry = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_lup_sid_entry, /* ndr_func */ 4, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 4, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_lup_sid_entry (struct ndr_reference *encl_ref) { struct mslsa_lup_sid_entry *val = (struct mslsa_lup_sid_entry *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (_mslsa_sid, psid, 0UL); return 1; } int ndr__mslsa_lup_sid_table (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_lup_sid_table = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_lup_sid_table, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_lup_sid_table (struct ndr_reference *encl_ref) { struct mslsa_lup_sid_table *val = (struct mslsa_lup_sid_table *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, n_entry, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_mslsa_lup_sid_entry, entries, 4UL, val->n_entry); return 1; } int ndr__mslsa_name_entry (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_name_entry = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_name_entry, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_name_entry (struct ndr_reference *encl_ref) { struct mslsa_name_entry *val = (struct mslsa_name_entry *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ushort, sid_name_use, 0UL); NDR_MEMBER (_ushort, unknown_flags, 2UL); NDR_MEMBER (_ulong, domain_ix, 12UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER (_mslsa_string_desc, name, 4UL); return 1; } int ndr__mslsa_name_table (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_name_table = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_name_table, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_name_table (struct ndr_reference *encl_ref) { struct mslsa_name_table *val = (struct mslsa_name_table *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, n_entry, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_mslsa_name_entry, entries, 4UL, val->n_entry); return 1; } int ndr__mslsa_LookupSids (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_LookupSids = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__mslsa_LookupSids, /* ndr_func */ 52, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 52, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(15)] */ int ndr__mslsa_LookupSids (struct ndr_reference *encl_ref) { struct mslsa_LookupSids *val = (struct mslsa_LookupSids *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_lup_sid_table, lup_sid_table); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_mslsa_domain_table, domain_table); } NDR_TOPMOST_MEMBER (_mslsa_name_table, name_table); if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ushort, lookup_level); } NDR_TOPMOST_MEMBER (_ulong, mapped_count); if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__mslsa_CreateSecret (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_CreateSecret = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__mslsa_CreateSecret, /* ndr_func */ 56, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 56, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(16)] */ int ndr__mslsa_CreateSecret (struct ndr_reference *encl_ref) { struct mslsa_CreateSecret *val = (struct mslsa_CreateSecret *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_string_desc, name); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, access_mask); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_mslsa_handle, secret_handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__mslsa_lup_name_table (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_lup_name_table = { 1, /* NDR version */ 3, /* alignment */ NDR_F_CONFORMANT|NDR_F_STRUCT, /* flags */ ndr__mslsa_lup_name_table, /* ndr_func */ 4, /* pdu_size_fixed_part */ 8, /* pdu_size_variable_part */ 4, /* c_size_fixed_part */ 8, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_lup_name_table (struct ndr_reference *encl_ref) { struct mslsa_lup_name_table *val = (struct mslsa_lup_name_table *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, n_entry, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_ARR_WITH_SIZE_IS (_mslsa_string_desc, names, 4UL, val->n_entry); return 1; } int ndr__mslsa_rid_entry (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_rid_entry = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_rid_entry, /* ndr_func */ 12, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 12, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_rid_entry (struct ndr_reference *encl_ref) { struct mslsa_rid_entry *val = (struct mslsa_rid_entry *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ushort, sid_name_use, 0UL); NDR_MEMBER (_ushort, pad, 2UL); NDR_MEMBER (_ulong, rid, 4UL); NDR_MEMBER (_ulong, domain_index, 8UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__mslsa_rid_table (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_rid_table = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_rid_table, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_rid_table (struct ndr_reference *encl_ref) { struct mslsa_rid_table *val = (struct mslsa_rid_table *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, n_entry, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_mslsa_rid_entry, rids, 4UL, val->n_entry); return 1; } int ndr__mslsa_LookupNames (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_LookupNames = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__mslsa_LookupNames, /* ndr_func */ 48, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 48, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(14)] */ int ndr__mslsa_LookupNames (struct ndr_reference *encl_ref) { struct mslsa_LookupNames *val = (struct mslsa_LookupNames *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_REF (_mslsa_lup_name_table, name_table); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_mslsa_domain_table, domain_table); } NDR_TOPMOST_MEMBER (_mslsa_rid_table, translated_sids); if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ushort, lookup_level); } NDR_TOPMOST_MEMBER (_ulong, mapped_count); if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__mslsa_AuditEventsInfo (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_AuditEventsInfo = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_AuditEventsInfo, /* ndr_func */ 12, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 12, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_AuditEventsInfo (struct ndr_reference *encl_ref) { struct mslsa_AuditEventsInfo *val = (struct mslsa_AuditEventsInfo *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, enabled, 0UL); NDR_MEMBER (_ulong, count, 8UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_ulong, settings, 4UL, val->count); return 1; } int ndr__mslsa_PrimaryDomainInfo (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_PrimaryDomainInfo = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_PrimaryDomainInfo, /* ndr_func */ 12, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 12, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_PrimaryDomainInfo (struct ndr_reference *encl_ref) { struct mslsa_PrimaryDomainInfo *val = (struct mslsa_PrimaryDomainInfo *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER (_mslsa_string_desc, name, 0UL); NDR_MEMBER_PTR (_mslsa_sid, sid, 8UL); return 1; } int ndr__mslsa_AccountDomainInfo (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_AccountDomainInfo = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_AccountDomainInfo, /* ndr_func */ 12, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 12, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_AccountDomainInfo (struct ndr_reference *encl_ref) { struct mslsa_AccountDomainInfo *val = (struct mslsa_AccountDomainInfo *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER (_mslsa_string_desc, name, 0UL); NDR_MEMBER_PTR (_mslsa_sid, sid, 8UL); return 1; } int ndr__mslsa_ServerRoleInfo (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_ServerRoleInfo = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_ServerRoleInfo, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_ServerRoleInfo (struct ndr_reference *encl_ref) { struct mslsa_ServerRoleInfo *val = (struct mslsa_ServerRoleInfo *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, role, 0UL); NDR_MEMBER (_ulong, pad, 4UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__mslsa_DnsDomainInfo (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_DnsDomainInfo = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_DnsDomainInfo, /* ndr_func */ 44, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 44, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_DnsDomainInfo (struct ndr_reference *encl_ref) { struct mslsa_DnsDomainInfo *val = (struct mslsa_DnsDomainInfo *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ /* do all constructed elements w/o pointers */ NDR_MEMBER (_mslsa_guid, guid, 24UL); /* do members with pointers in order */ NDR_MEMBER (_mslsa_string_desc, nb_domain, 0UL); NDR_MEMBER (_mslsa_string_desc, dns_domain, 8UL); NDR_MEMBER (_mslsa_string_desc, forest, 16UL); NDR_MEMBER_PTR (_mslsa_sid, sid, 40UL); return 1; } int ndr__mslsa_PolicyInfoResUnion (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_PolicyInfoResUnion = { 1, /* NDR version */ 3, /* alignment */ NDR_F_UNION, /* flags */ ndr__mslsa_PolicyInfoResUnion, /* ndr_func */ 44, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 44, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_PolicyInfoResUnion (struct ndr_reference *encl_ref) { union mslsa_PolicyInfoResUnion *val = (union mslsa_PolicyInfoResUnion *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; switch (encl_ref->switch_is) { case 2: NDR_MEMBER (_mslsa_AuditEventsInfo, audit_events, 0UL); break; case 3: NDR_MEMBER (_mslsa_PrimaryDomainInfo, pd_info, 0UL); break; case 5: NDR_MEMBER (_mslsa_AccountDomainInfo, ad_info, 0UL); break; case 6: NDR_MEMBER (_mslsa_ServerRoleInfo, server_role, 0UL); break; case 12: NDR_MEMBER (_mslsa_DnsDomainInfo, dns_info, 0UL); break; default: NDR_MEMBER_PTR (_char, nullptr, 0UL); break; } return 1; } int ndr__mslsa_PolicyInfoRes (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_PolicyInfoRes = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_PolicyInfoRes, /* ndr_func */ 52, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 52, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_PolicyInfoRes (struct ndr_reference *encl_ref) { struct mslsa_PolicyInfoRes *val = (struct mslsa_PolicyInfoRes *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, address, 0UL); NDR_MEMBER (_ushort, switch_value, 4UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_WITH_SWITCH_IS (_mslsa_PolicyInfoResUnion, ru, 8UL, val->switch_value); return 1; } int ndr__mslsa_QueryInfoPolicy (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_QueryInfoPolicy = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__mslsa_QueryInfoPolicy, /* ndr_func */ 80, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 80, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; extern void fixup_mslsa_QueryInfoPolicy(struct mslsa_QueryInfoPolicy *val); /* * [operation(7)] */ int ndr__mslsa_QueryInfoPolicy (struct ndr_reference *encl_ref) { struct mslsa_QueryInfoPolicy *val = (struct mslsa_QueryInfoPolicy *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ushort, info_class); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, address); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ushort, switch_value); } if (NDR_DIR_IS_OUT) { /* * Cannot use the canned offsets to unmarshall multiple * entry discriminated unions. The service must provide * this function to patch the offsets at runtime. */ fixup_mslsa_QueryInfoPolicy(val); NDR_TOPMOST_MEMBER_WITH_SWITCH_IS (_mslsa_PolicyInfoResUnion, ru, val->switch_value); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__mslsa_OpenAccount (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_OpenAccount = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__mslsa_OpenAccount, /* ndr_func */ 52, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 52, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(17)] */ int ndr__mslsa_OpenAccount (struct ndr_reference *encl_ref) { struct mslsa_OpenAccount *val = (struct mslsa_OpenAccount *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_REF (_mslsa_sid, sid); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, access_mask); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_mslsa_handle, account_handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__mslsa_LuidAndAttributes (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_LuidAndAttributes = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_LuidAndAttributes, /* ndr_func */ 12, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 12, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_LuidAndAttributes (struct ndr_reference *encl_ref) { struct mslsa_LuidAndAttributes *val = (struct mslsa_LuidAndAttributes *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, attributes, 8UL); /* do all constructed elements w/o pointers */ NDR_MEMBER (_mslsa_luid, luid, 0UL); /* do members with pointers in order */ return 1; } int ndr__mslsa_PrivilegeSet (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_PrivilegeSet = { 1, /* NDR version */ 3, /* alignment */ NDR_F_CONFORMANT|NDR_F_STRUCT, /* flags */ ndr__mslsa_PrivilegeSet, /* ndr_func */ 8, /* pdu_size_fixed_part */ 12, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 12, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_PrivilegeSet (struct ndr_reference *encl_ref) { struct mslsa_PrivilegeSet *val = (struct mslsa_PrivilegeSet *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, privilege_count, 0UL); NDR_MEMBER (_ulong, control, 4UL); /* do all constructed elements w/o pointers */ NDR_MEMBER_ARR_WITH_SIZE_IS (_mslsa_LuidAndAttributes, privilege, 8UL, val->privilege_count); /* do members with pointers in order */ return 1; } int ndr__mslsa_EnumPrivsAccount (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_EnumPrivsAccount = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__mslsa_EnumPrivsAccount, /* ndr_func */ 28, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 28, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(18)] */ int ndr__mslsa_EnumPrivsAccount (struct ndr_reference *encl_ref) { struct mslsa_EnumPrivsAccount *val = (struct mslsa_EnumPrivsAccount *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_handle, account_handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_mslsa_PrivilegeSet, privileges); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__mslsa_OpenSecret (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_OpenSecret = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__mslsa_OpenSecret, /* ndr_func */ 56, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 56, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(28)] */ int ndr__mslsa_OpenSecret (struct ndr_reference *encl_ref) { struct mslsa_OpenSecret *val = (struct mslsa_OpenSecret *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_string_desc, name); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, access_mask); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_mslsa_handle, secret_handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__mslsa_LookupPrivValue (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_LookupPrivValue = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__mslsa_LookupPrivValue, /* ndr_func */ 40, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 40, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(31)] */ int ndr__mslsa_LookupPrivValue (struct ndr_reference *encl_ref) { struct mslsa_LookupPrivValue *val = (struct mslsa_LookupPrivValue *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_string_desc, name); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_mslsa_luid, luid); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__mslsa_LookupPrivName (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_LookupPrivName = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__mslsa_LookupPrivName, /* ndr_func */ 36, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 36, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(32)] */ int ndr__mslsa_LookupPrivName (struct ndr_reference *encl_ref) { struct mslsa_LookupPrivName *val = (struct mslsa_LookupPrivName *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_luid, luid); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_mslsa_string_desc, name); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__mslsa_LookupPrivDisplayName (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_LookupPrivDisplayName = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__mslsa_LookupPrivDisplayName, /* ndr_func */ 44, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 44, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(33)] */ int ndr__mslsa_LookupPrivDisplayName (struct ndr_reference *encl_ref) { struct mslsa_LookupPrivDisplayName *val = (struct mslsa_LookupPrivDisplayName *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_string_desc, name); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ushort, client_language); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ushort, default_language); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_mslsa_string_desc, display_name); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ushort, language_ret); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__mslsa_DomainName (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_DomainName = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__mslsa_DomainName, /* ndr_func */ 4, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 4, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__mslsa_DomainName (struct ndr_reference *encl_ref) { struct mslsa_DomainName *val = (struct mslsa_DomainName *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (_mslsa_string_desc, name, 0UL); return 1; } int ndr__mslsa_GetConnectedUser (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__mslsa_GetConnectedUser = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__mslsa_GetConnectedUser, /* ndr_func */ 24, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 24, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(45)] */ int ndr__mslsa_GetConnectedUser (struct ndr_reference *encl_ref) { struct mslsa_GetConnectedUser *val = (struct mslsa_GetConnectedUser *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_PTR (s_wchar, hostname); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_PTR (_uchar, owner_in); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_PTR (_uchar, domain_in); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_mslsa_string_desc, owner); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_mslsa_DomainName, domain); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__lsar_name_entry2 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__lsar_name_entry2 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__lsar_name_entry2, /* ndr_func */ 20, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 20, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__lsar_name_entry2 (struct ndr_reference *encl_ref) { struct lsar_name_entry2 *val = (struct lsar_name_entry2 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ushort, sid_name_use, 0UL); NDR_MEMBER (_ushort, padding, 2UL); NDR_MEMBER (_ulong, domain_ix, 12UL); NDR_MEMBER (_ulong, flags, 16UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER (_mslsa_string_desc, name, 4UL); return 1; } int ndr__lsar_name_table2 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__lsar_name_table2 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__lsar_name_table2, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__lsar_name_table2 (struct ndr_reference *encl_ref) { struct lsar_name_table2 *val = (struct lsar_name_table2 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, n_entry, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_lsar_name_entry2, entries, 4UL, val->n_entry); return 1; } int ndr__lsar_lookup_sids2 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__lsar_lookup_sids2 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__lsar_lookup_sids2, /* ndr_func */ 60, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 60, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(57)] */ int ndr__lsar_lookup_sids2 (struct ndr_reference *encl_ref) { struct lsar_lookup_sids2 *val = (struct lsar_lookup_sids2 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_handle, policy_handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_lup_sid_table, lup_sid_table); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_mslsa_domain_table, domain_table); } NDR_TOPMOST_MEMBER (_lsar_name_table2, name_table); if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ushort, lookup_level); } NDR_TOPMOST_MEMBER (_ulong, mapped_count); if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, lookup_options); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, client_revision); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__lsar_lookup_sids3 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__lsar_lookup_sids3 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__lsar_lookup_sids3, /* ndr_func */ 40, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 40, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(76)] */ int ndr__lsar_lookup_sids3 (struct ndr_reference *encl_ref) { struct lsar_lookup_sids3 *val = (struct lsar_lookup_sids3 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_lup_sid_table, lup_sid_table); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_mslsa_domain_table, domain_table); } NDR_TOPMOST_MEMBER (_lsar_name_table2, name_table); if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ushort, lookup_level); } NDR_TOPMOST_MEMBER (_ulong, mapped_count); if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, lookup_options); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, client_revision); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__lsar_rid_entry2 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__lsar_rid_entry2 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__lsar_rid_entry2, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__lsar_rid_entry2 (struct ndr_reference *encl_ref) { struct lsar_rid_entry2 *val = (struct lsar_rid_entry2 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ushort, sid_name_use, 0UL); NDR_MEMBER (_ushort, pad, 2UL); NDR_MEMBER (_ulong, rid, 4UL); NDR_MEMBER (_ulong, domain_index, 8UL); NDR_MEMBER (_ulong, flags, 12UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__lsar_rid_table2 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__lsar_rid_table2 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__lsar_rid_table2, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__lsar_rid_table2 (struct ndr_reference *encl_ref) { struct lsar_rid_table2 *val = (struct lsar_rid_table2 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, n_entry, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_lsar_rid_entry2, rids, 4UL, val->n_entry); return 1; } int ndr__lsar_LookupNames2 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__lsar_LookupNames2 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__lsar_LookupNames2, /* ndr_func */ 56, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 56, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(58)] */ int ndr__lsar_LookupNames2 (struct ndr_reference *encl_ref) { struct lsar_LookupNames2 *val = (struct lsar_LookupNames2 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_handle, policy_handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_REF (_mslsa_lup_name_table, name_table); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_mslsa_domain_table, domain_table); } NDR_TOPMOST_MEMBER (_lsar_rid_table2, translated_sids); if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ushort, lookup_level); } NDR_TOPMOST_MEMBER (_ulong, mapped_count); if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, lookup_options); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, client_revision); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__lsar_translated_sid_ex2 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__lsar_translated_sid_ex2 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__lsar_translated_sid_ex2, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__lsar_translated_sid_ex2 (struct ndr_reference *encl_ref) { struct lsar_translated_sid_ex2 *val = (struct lsar_translated_sid_ex2 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ushort, sid_name_use, 0UL); NDR_MEMBER (_ushort, pad, 2UL); NDR_MEMBER (_ulong, domain_index, 8UL); NDR_MEMBER (_ulong, flags, 12UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (_mslsa_sid, sid, 4UL); return 1; } int ndr__lsar_sid_ex2_table (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__lsar_sid_ex2_table = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__lsar_sid_ex2_table, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__lsar_sid_ex2_table (struct ndr_reference *encl_ref) { struct lsar_sid_ex2_table *val = (struct lsar_sid_ex2_table *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, n_entry, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_lsar_translated_sid_ex2, sids, 4UL, val->n_entry); return 1; } int ndr__lsar_LookupNames3 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__lsar_LookupNames3 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__lsar_LookupNames3, /* ndr_func */ 56, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 56, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(68)] */ int ndr__lsar_LookupNames3 (struct ndr_reference *encl_ref) { struct lsar_LookupNames3 *val = (struct lsar_LookupNames3 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_mslsa_handle, policy_handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_REF (_mslsa_lup_name_table, name_table); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_mslsa_domain_table, domain_table); } NDR_TOPMOST_MEMBER (_lsar_sid_ex2_table, translated_sids); if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ushort, lookup_level); } NDR_TOPMOST_MEMBER (_ulong, mapped_count); if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, lookup_options); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, client_revision); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__lsar_LookupNames4 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__lsar_LookupNames4 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__lsar_LookupNames4, /* ndr_func */ 36, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 36, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(77)] */ int ndr__lsar_LookupNames4 (struct ndr_reference *encl_ref) { struct lsar_LookupNames4 *val = (struct lsar_LookupNames4 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_REF (_mslsa_lup_name_table, name_table); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_mslsa_domain_table, domain_table); } NDR_TOPMOST_MEMBER (_lsar_sid_ex2_table, translated_sids); if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ushort, lookup_level); } NDR_TOPMOST_MEMBER (_ulong, mapped_count); if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, lookup_options); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, client_revision); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__lsarpc_interface (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__lsarpc_interface = { 1, /* NDR version */ 3, /* alignment */ NDR_F_INTERFACE, /* flags */ ndr__lsarpc_interface, /* ndr_func */ 80, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 80, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [interface(0)] */ int ndr__lsarpc_interface (struct ndr_reference *encl_ref) { union lsarpc_interface *val = (union lsarpc_interface *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; switch (encl_ref->switch_is) { case 0: NDR_PARAMS_MEMBER (_mslsa_CloseHandle, CloseHandle); break; case 3: NDR_PARAMS_MEMBER (_mslsa_QuerySecurityObject, QuerySecurityObj); break; case 11: NDR_PARAMS_MEMBER (_mslsa_EnumerateAccounts, EnumAccounts); break; case 50: NDR_PARAMS_MEMBER (_mslsa_EnumTrustedDomainEx, EnumTrustedDomainEx); break; case 13: NDR_PARAMS_MEMBER (_mslsa_EnumTrustedDomain, EnumTrustedDomain); break; case 17: NDR_PARAMS_MEMBER (_mslsa_OpenAccount, OpenAccount); break; case 18: NDR_PARAMS_MEMBER (_mslsa_EnumPrivsAccount, EnumPrivsAccount); break; case 31: NDR_PARAMS_MEMBER (_mslsa_LookupPrivValue, LookupPrivValue); break; case 32: NDR_PARAMS_MEMBER (_mslsa_LookupPrivName, LookupPrivName); break; case 33: NDR_PARAMS_MEMBER (_mslsa_LookupPrivDisplayName, LookupPrivDisplayName); break; case 16: NDR_PARAMS_MEMBER (_mslsa_CreateSecret, CreateSecret); break; case 28: NDR_PARAMS_MEMBER (_mslsa_OpenSecret, OpenSecret); break; case 7: NDR_PARAMS_MEMBER (_mslsa_QueryInfoPolicy, QueryInfoPolicy); break; case 6: NDR_PARAMS_MEMBER (_mslsa_OpenPolicy, OpenPolicy); break; case 44: NDR_PARAMS_MEMBER (_mslsa_OpenPolicy2, OpenPolicy2); break; case 15: NDR_PARAMS_MEMBER (_mslsa_LookupSids, LookupSids); break; case 14: NDR_PARAMS_MEMBER (_mslsa_LookupNames, LookupNames); break; case 45: NDR_PARAMS_MEMBER (_mslsa_GetConnectedUser, GetConnectedUser); break; case 57: NDR_PARAMS_MEMBER (_lsar_lookup_sids2, LookupSids2); break; case 76: NDR_PARAMS_MEMBER (_lsar_lookup_sids3, LookupSids3); break; case 58: NDR_PARAMS_MEMBER (_lsar_LookupNames2, LookupNames2); break; case 68: NDR_PARAMS_MEMBER (_lsar_LookupNames3, LookupNames3); break; case 77: NDR_PARAMS_MEMBER (_lsar_LookupNames4, LookupNames4); break; default: NDR_SET_ERROR(encl_ref, NDR_ERR_SWITCH_VALUE_INVALID); return 0; break; } return 1; }