/* * 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__samr_sid (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_sid = { 1, /* NDR version */ 3, /* alignment */ NDR_F_CONFORMANT|NDR_F_STRUCT, /* flags */ ndr__samr_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__samr_sid (struct ndr_reference *encl_ref) { struct samr_sid *val = (struct samr_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__samr_sec_desc (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_sec_desc = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_sec_desc, /* ndr_func */ 20, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 20, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_sec_desc (struct ndr_reference *encl_ref) { struct samr_sec_desc *val = (struct samr_sec_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 (_uchar, Revision, 0UL); NDR_MEMBER (_uchar, Sbz1, 1UL); NDR_MEMBER (_ushort, Control, 2UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (_samr_sid, owner, 4UL); NDR_MEMBER_PTR (_samr_sid, group, 8UL); NDR_MEMBER_PTR (_samr_sid, sacl, 12UL); NDR_MEMBER_PTR (_samr_sid, dacl, 16UL); return 1; } int ndr__samr_sd (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_sd = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_sd, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_sd (struct ndr_reference *encl_ref) { struct samr_sd *val = (struct samr_sd *) 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, data, 4UL, val->length); return 1; } int ndr__samr_string (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_string = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_string, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_string (struct ndr_reference *encl_ref) { struct samr_string *val = (struct samr_string *) 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__samr_vcb (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_vcb = { 1, /* NDR version */ 3, /* alignment */ NDR_F_CONFORMANT|NDR_F_STRUCT, /* flags */ ndr__samr_vcb, /* ndr_func */ 8, /* pdu_size_fixed_part */ 2, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 2, /* c_size_variable_part */ }; /* * */ int ndr__samr_vcb (struct ndr_reference *encl_ref) { struct samr_vcb *val = (struct samr_vcb *) 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, vc_first_is, 0UL); NDR_MEMBER (_ulong, vc_length_is, 4UL); /* do all constructed elements w/o pointers */ NDR_MEMBER_ARR_WITH_SIZE_IS (_ushort, buffer, 8UL, val->vc_length_is); /* do members with pointers in order */ return 1; } int ndr__samr_vcbuf (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_vcbuf = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_vcbuf, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_vcbuf (struct ndr_reference *encl_ref) { struct samr_vcbuf *val = (struct samr_vcbuf *) 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, wclen, 0UL); NDR_MEMBER (_ushort, wcsize, 2UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (_samr_vcb, vcb, 4UL); return 1; } int ndr__samr_handle (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_handle = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_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__samr_handle (struct ndr_reference *encl_ref) { struct samr_handle *val = (struct samr_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__samr_quad (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_quad = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_quad, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_quad (struct ndr_reference *encl_ref) { struct samr_quad *val = (struct samr_quad *) 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, 0UL); NDR_MEMBER (_ulong, high, 4UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__samr_short_blob (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_short_blob = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_short_blob, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_short_blob (struct ndr_reference *encl_ref) { struct samr_short_blob *val = (struct samr_short_blob *) 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, maxlen, 2UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_ushort, buf, 4UL, val->length / 2UL); return 1; } int ndr__samr_password_info (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_password_info = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_password_info, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_password_info (struct ndr_reference *encl_ref) { struct samr_password_info *val = (struct samr_password_info *) 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, min_length, 0UL); NDR_MEMBER (_ulong, properties, 4UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__samr_logon_hours (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_logon_hours = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_logon_hours, /* ndr_func */ 36, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 36, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_logon_hours (struct ndr_reference *encl_ref) { struct samr_logon_hours *val = (struct samr_logon_hours *) 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, size, 0UL); NDR_MEMBER (_ulong, first, 4UL); NDR_MEMBER (_ulong, length, 8UL); /* do all constructed elements w/o pointers */ NDR_MEMBER_ARR_WITH_DIMENSION (_uchar, bitmap, 12UL, 21); /* do members with pointers in order */ return 1; } int ndr__samr_logon_info (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_logon_info = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_logon_info, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_logon_info (struct ndr_reference *encl_ref) { struct samr_logon_info *val = (struct samr_logon_info *) 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, units, 0UL); NDR_MEMBER (_ulong, hours, 4UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__samr_logon_hours_all (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_logon_hours_all = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_logon_hours_all, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_logon_hours_all (struct ndr_reference *encl_ref) { struct samr_logon_hours_all *val = (struct samr_logon_hours_all *) 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, units_per_week, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_uchar, hours, 4UL, val->units_per_week / 8UL); return 1; } int ndr__samr_encr_passwd (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_encr_passwd = { 1, /* NDR version */ 0, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_encr_passwd, /* ndr_func */ 516, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 516, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_encr_passwd (struct ndr_reference *encl_ref) { struct samr_encr_passwd *val = (struct samr_encr_passwd *) 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_ARR_WITH_DIMENSION (_uchar, data, 0UL, 516); /* do members with pointers in order */ return 1; } int ndr__samr_encr_hash (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_encr_hash = { 1, /* NDR version */ 0, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_encr_hash, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_encr_hash (struct ndr_reference *encl_ref) { struct samr_encr_hash *val = (struct samr_encr_hash *) 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_ARR_WITH_DIMENSION (_uchar, data, 0UL, 16); /* do members with pointers in order */ return 1; } int ndr__samr_Connect (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_Connect = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_Connect, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(0)] */ int ndr__samr_Connect (struct ndr_reference *encl_ref) { struct samr_Connect *val = (struct samr_Connect *) 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 (_ulong, access_mask); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_samr_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_Connect2 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_Connect2 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_Connect2, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(57)] */ int ndr__samr_Connect2 (struct ndr_reference *encl_ref) { struct samr_Connect2 *val = (struct samr_Connect2 *) 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 (_ulong, access_mask); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_samr_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_Connect4 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_Connect4 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_Connect4, /* ndr_func */ 36, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 36, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(62)] */ int ndr__samr_Connect4 (struct ndr_reference *encl_ref) { struct samr_Connect4 *val = (struct samr_Connect4 *) 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 (_ulong, revision); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, access_mask); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_samr_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_revision_info1 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_revision_info1 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_revision_info1, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_revision_info1 (struct ndr_reference *encl_ref) { struct samr_revision_info1 *val = (struct samr_revision_info1 *) 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, revision, 0UL); NDR_MEMBER (_ulong, supported_features, 4UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__samr_revision_info (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_revision_info = { 1, /* NDR version */ 3, /* alignment */ NDR_F_UNION, /* flags */ ndr__samr_revision_info, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_revision_info (struct ndr_reference *encl_ref) { union samr_revision_info *val = (union samr_revision_info *) 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 1: NDR_MEMBER (_samr_revision_info1, info1, 0UL); break; default: NDR_MEMBER_PTR (_char, nullptr, 0UL); break; } return 1; } int ndr__samr_Connect5 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_Connect5 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_Connect5, /* ndr_func */ 48, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 48, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(64)] */ int ndr__samr_Connect5 (struct ndr_reference *encl_ref) { struct samr_Connect5 *val = (struct samr_Connect5 *) 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 (_ulong, access_mask); } NDR_TOPMOST_MEMBER (_ulong, unknown2_00000001); NDR_TOPMOST_MEMBER (_ulong, unknown3_00000001); NDR_TOPMOST_MEMBER (_ulong, unknown4_00000003); NDR_TOPMOST_MEMBER (_ulong, unknown5_00000000); if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_samr_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_CloseHandle (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_CloseHandle = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_CloseHandle, /* ndr_func */ 44, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 44, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(1)] */ int ndr__samr_CloseHandle (struct ndr_reference *encl_ref) { struct samr_CloseHandle *val = (struct samr_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 (_samr_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_samr_handle, result_handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_LookupDomain (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_LookupDomain = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_LookupDomain, /* ndr_func */ 36, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 36, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(5)] */ int ndr__samr_LookupDomain (struct ndr_reference *encl_ref) { struct samr_LookupDomain *val = (struct samr_LookupDomain *) 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 (_samr_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_samr_string, domain_name); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_samr_sid, sid); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_LocalDomainEntry (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_LocalDomainEntry = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_LocalDomainEntry, /* ndr_func */ 12, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 12, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_LocalDomainEntry (struct ndr_reference *encl_ref) { struct samr_LocalDomainEntry *val = (struct samr_LocalDomainEntry *) 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, unknown, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER (_samr_string, name, 4UL); return 1; } int ndr__samr_LocalDomainInfo (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_LocalDomainInfo = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_LocalDomainInfo, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_LocalDomainInfo (struct ndr_reference *encl_ref) { struct samr_LocalDomainInfo *val = (struct samr_LocalDomainInfo *) 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 (_samr_LocalDomainEntry, entry, 4UL, val->entries_read); return 1; } int ndr__samr_EnumLocalDomain (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_EnumLocalDomain = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_EnumLocalDomain, /* ndr_func */ 40, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 40, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(6)] */ int ndr__samr_EnumLocalDomain (struct ndr_reference *encl_ref) { struct samr_EnumLocalDomain *val = (struct samr_EnumLocalDomain *) 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 (_samr_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_PTR (_samr_LocalDomainInfo, info); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, total_entries); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_OpenDomain (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_OpenDomain = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_OpenDomain, /* ndr_func */ 52, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 52, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(7)] */ int ndr__samr_OpenDomain (struct ndr_reference *encl_ref) { struct samr_OpenDomain *val = (struct samr_OpenDomain *) 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 (_samr_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, access_mask); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_REF (_samr_sid, sid); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_samr_handle, domain_handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_QueryDomainInfo2 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryDomainInfo2 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_QueryDomainInfo2, /* ndr_func */ 64, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 64, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_QueryDomainInfo2 (struct ndr_reference *encl_ref) { struct samr_QueryDomainInfo2 *val = (struct samr_QueryDomainInfo2 *) 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, unknown1, 0UL); NDR_MEMBER (_ulong, unknown2, 4UL); NDR_MEMBER (_ulong, sequence_num, 32UL); NDR_MEMBER (_ulong, unknown3, 36UL); NDR_MEMBER (_ulong, unknown4, 40UL); NDR_MEMBER (_ulong, unknown5, 44UL); NDR_MEMBER (_ulong, unknown6, 48UL); NDR_MEMBER (_ulong, num_users, 52UL); NDR_MEMBER (_ulong, num_groups, 56UL); NDR_MEMBER (_ulong, num_aliases, 60UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER (_samr_string, s1, 8UL); NDR_MEMBER (_samr_string, domain, 16UL); NDR_MEMBER (_samr_string, s2, 24UL); return 1; } int ndr__samr_QueryDomainInfo6 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryDomainInfo6 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_QueryDomainInfo6, /* ndr_func */ 20, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 20, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_QueryDomainInfo6 (struct ndr_reference *encl_ref) { struct samr_QueryDomainInfo6 *val = (struct samr_QueryDomainInfo6 *) 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, unknown1, 0UL); NDR_MEMBER (_ulong, unknown2, 4UL); NDR_MEMBER (_ulong, unknown3, 8UL); NDR_MEMBER (_ulong, unknown4, 12UL); NDR_MEMBER (_ulong, unknown5, 16UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__samr_QueryDomainInfo7 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryDomainInfo7 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_QueryDomainInfo7, /* ndr_func */ 4, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 4, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_QueryDomainInfo7 (struct ndr_reference *encl_ref) { struct samr_QueryDomainInfo7 *val = (struct samr_QueryDomainInfo7 *) 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, unknown1, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__samr_QueryDomainInfo_ru (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryDomainInfo_ru = { 1, /* NDR version */ 3, /* alignment */ NDR_F_UNION, /* flags */ ndr__samr_QueryDomainInfo_ru, /* ndr_func */ 64, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 64, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_QueryDomainInfo_ru (struct ndr_reference *encl_ref) { union samr_QueryDomainInfo_ru *val = (union samr_QueryDomainInfo_ru *) 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 (_samr_QueryDomainInfo2, info2, 0UL); break; case 6: NDR_MEMBER (_samr_QueryDomainInfo6, info6, 0UL); break; case 7: NDR_MEMBER (_samr_QueryDomainInfo7, info7, 0UL); break; default: NDR_MEMBER_PTR (_char, nullptr, 0UL); break; } return 1; } int ndr__samr_QueryDomainInfoRes (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryDomainInfoRes = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_QueryDomainInfoRes, /* ndr_func */ 68, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 68, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_QueryDomainInfoRes (struct ndr_reference *encl_ref) { struct samr_QueryDomainInfoRes *val = (struct samr_QueryDomainInfoRes *) 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, switch_value, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_WITH_SWITCH_IS (_samr_QueryDomainInfo_ru, ru, 4UL, val->switch_value); return 1; } int ndr__samr_QueryDomainInfo (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryDomainInfo = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_QueryDomainInfo, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(8)] */ int ndr__samr_QueryDomainInfo (struct ndr_reference *encl_ref) { struct samr_QueryDomainInfo *val = (struct samr_QueryDomainInfo *) 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 (_samr_handle, domain_handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ushort, info_level); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_samr_QueryDomainInfoRes, info); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_QueryInfoDomain2 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryInfoDomain2 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_QueryInfoDomain2, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(46)] */ int ndr__samr_QueryInfoDomain2 (struct ndr_reference *encl_ref) { struct samr_QueryInfoDomain2 *val = (struct samr_QueryInfoDomain2 *) 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 (_samr_handle, domain_handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ushort, info_level); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_samr_QueryDomainInfoRes, info); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_QueryAliasInfoGeneral (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryAliasInfoGeneral = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_QueryAliasInfoGeneral, /* ndr_func */ 24, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 24, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_QueryAliasInfoGeneral (struct ndr_reference *encl_ref) { struct samr_QueryAliasInfoGeneral *val = (struct samr_QueryAliasInfoGeneral *) 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, level, 0UL); NDR_MEMBER (_ulong, member_count, 12UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER (_samr_string, name, 4UL); NDR_MEMBER (_samr_string, desc, 16UL); return 1; } int ndr__samr_QueryAliasInfoName (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryAliasInfoName = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_QueryAliasInfoName, /* ndr_func */ 12, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 12, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_QueryAliasInfoName (struct ndr_reference *encl_ref) { struct samr_QueryAliasInfoName *val = (struct samr_QueryAliasInfoName *) 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, level, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER (_samr_string, name, 4UL); return 1; } int ndr__samr_QueryAliasInfoComment (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryAliasInfoComment = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_QueryAliasInfoComment, /* ndr_func */ 12, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 12, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_QueryAliasInfoComment (struct ndr_reference *encl_ref) { struct samr_QueryAliasInfoComment *val = (struct samr_QueryAliasInfoComment *) 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, level, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER (_samr_string, desc, 4UL); return 1; } int ndr__samr_QueryAliasInfo_ru (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryAliasInfo_ru = { 1, /* NDR version */ 3, /* alignment */ NDR_F_UNION, /* flags */ ndr__samr_QueryAliasInfo_ru, /* ndr_func */ 24, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 24, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_QueryAliasInfo_ru (struct ndr_reference *encl_ref) { union samr_QueryAliasInfo_ru *val = (union samr_QueryAliasInfo_ru *) 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 1: NDR_MEMBER (_samr_QueryAliasInfoGeneral, info1, 0UL); break; case 2: NDR_MEMBER (_samr_QueryAliasInfoName, info2, 0UL); break; case 3: NDR_MEMBER (_samr_QueryAliasInfoComment, info3, 0UL); break; default: NDR_MEMBER_PTR (_char, nullptr, 0UL); break; } return 1; } int ndr__samr_QueryAliasInfoRes (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryAliasInfoRes = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_QueryAliasInfoRes, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_QueryAliasInfoRes (struct ndr_reference *encl_ref) { struct samr_QueryAliasInfoRes *val = (struct samr_QueryAliasInfoRes *) 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 (_samr_QueryAliasInfo_ru, ru, 8UL, val->switch_value); return 1; } int ndr__samr_QueryAliasInfo (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryAliasInfo = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_QueryAliasInfo, /* ndr_func */ 56, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 56, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; extern void fixup_samr_QueryAliasInfo(struct samr_QueryAliasInfo *val); /* * [operation(28)] */ int ndr__samr_QueryAliasInfo (struct ndr_reference *encl_ref) { struct samr_QueryAliasInfo *val = (struct samr_QueryAliasInfo *) 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 (_samr_handle, alias_handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ushort, level); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, address); } 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_samr_QueryAliasInfo(val); NDR_TOPMOST_MEMBER_WITH_SWITCH_IS (_samr_QueryAliasInfo_ru, ru, val->level); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_CreateDomainAlias (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_CreateDomainAlias = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_CreateDomainAlias, /* ndr_func */ 60, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 60, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(14)] */ int ndr__samr_CreateDomainAlias (struct ndr_reference *encl_ref) { struct samr_CreateDomainAlias *val = (struct samr_CreateDomainAlias *) 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 (_samr_handle, domain_handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_samr_string, alias_name); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, access_mask); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_samr_handle, alias_handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, rid); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_SetAliasInfo (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_SetAliasInfo = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_SetAliasInfo, /* ndr_func */ 28, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 28, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(29)] */ int ndr__samr_SetAliasInfo (struct ndr_reference *encl_ref) { struct samr_SetAliasInfo *val = (struct samr_SetAliasInfo *) 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 (_samr_handle, alias_handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ushort, level); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_DeleteDomainAlias (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_DeleteDomainAlias = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_DeleteDomainAlias, /* ndr_func */ 24, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 24, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(30)] */ int ndr__samr_DeleteDomainAlias (struct ndr_reference *encl_ref) { struct samr_DeleteDomainAlias *val = (struct samr_DeleteDomainAlias *) 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 */ NDR_TOPMOST_MEMBER (_samr_handle, alias_handle); if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_OpenAlias (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_OpenAlias = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_OpenAlias, /* ndr_func */ 52, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 52, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(27)] */ int ndr__samr_OpenAlias (struct ndr_reference *encl_ref) { struct samr_OpenAlias *val = (struct samr_OpenAlias *) 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 (_samr_handle, domain_handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, access_mask); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, rid); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_samr_handle, alias_handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__name_rid (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__name_rid = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__name_rid, /* ndr_func */ 12, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 12, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__name_rid (struct ndr_reference *encl_ref) { struct name_rid *val = (struct name_rid *) 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, rid, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER (_samr_string, name, 4UL); return 1; } int ndr__aliases_info (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__aliases_info = { 1, /* NDR version */ 3, /* alignment */ NDR_F_CONFORMANT|NDR_F_STRUCT, /* flags */ ndr__aliases_info, /* ndr_func */ 8, /* pdu_size_fixed_part */ 12, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 12, /* c_size_variable_part */ }; /* * */ int ndr__aliases_info (struct ndr_reference *encl_ref) { struct aliases_info *val = (struct aliases_info *) 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, count, 0UL); NDR_MEMBER (_ulong, address, 4UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_ARR_WITH_SIZE_IS (_name_rid, info, 8UL, val->count); return 1; } int ndr__samr_EnumDomainAliases (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_EnumDomainAliases = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_EnumDomainAliases, /* ndr_func */ 44, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 44, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(15)] */ int ndr__samr_EnumDomainAliases (struct ndr_reference *encl_ref) { struct samr_EnumDomainAliases *val = (struct samr_EnumDomainAliases *) 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 (_samr_handle, domain_handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, resume_handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, mask); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, out_resume); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_aliases_info, aliases); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, entries); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__user_acct_info (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__user_acct_info = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__user_acct_info, /* ndr_func */ 36, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 36, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__user_acct_info (struct ndr_reference *encl_ref) { struct user_acct_info *val = (struct user_acct_info *) 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, index, 0UL); NDR_MEMBER (_ulong, rid, 4UL); NDR_MEMBER (_ulong, ctrl, 8UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER (_samr_string, name, 12UL); NDR_MEMBER (_samr_string, fullname, 20UL); NDR_MEMBER (_samr_string, desc, 28UL); return 1; } int ndr__user_disp_info (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__user_disp_info = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__user_disp_info, /* ndr_func */ 20, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 20, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__user_disp_info (struct ndr_reference *encl_ref) { struct user_disp_info *val = (struct user_disp_info *) 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 */ if (NDR_DIR_IS_OUT) { NDR_MEMBER (_ulong, total_size, 0UL); } if (NDR_DIR_IS_OUT) { NDR_MEMBER (_ulong, returned_size, 4UL); } if (NDR_DIR_IS_OUT) { NDR_MEMBER (_ushort, switch_value, 8UL); } NDR_MEMBER (_ulong, count, 12UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_user_acct_info, acct, 16UL, val->count); return 1; } int ndr__samr_QueryDispInfo (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryDispInfo = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_QueryDispInfo, /* ndr_func */ 60, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 60, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(40)] */ int ndr__samr_QueryDispInfo (struct ndr_reference *encl_ref) { struct samr_QueryDispInfo *val = (struct samr_QueryDispInfo *) 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 (_samr_handle, domain_handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ushort, level); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, start_idx); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, max_entries); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, pref_maxsize); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_user_disp_info, users); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__group_acct_info (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__group_acct_info = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__group_acct_info, /* ndr_func */ 28, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 28, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__group_acct_info (struct ndr_reference *encl_ref) { struct group_acct_info *val = (struct group_acct_info *) 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, index, 0UL); NDR_MEMBER (_ulong, rid, 4UL); NDR_MEMBER (_ulong, ctrl, 8UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER (_samr_string, name, 12UL); NDR_MEMBER (_samr_string, desc, 20UL); return 1; } int ndr__group_disp_info (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__group_disp_info = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__group_disp_info, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__group_disp_info (struct ndr_reference *encl_ref) { struct group_disp_info *val = (struct group_disp_info *) 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, count, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_ARR_WITH_DIMENSION (_group_acct_info, acct, 4UL, 1); return 1; } int ndr__samr_EnumDomainGroups (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_EnumDomainGroups = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_EnumDomainGroups, /* ndr_func */ 60, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 60, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(48)] */ int ndr__samr_EnumDomainGroups (struct ndr_reference *encl_ref) { struct samr_EnumDomainGroups *val = (struct samr_EnumDomainGroups *) 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 (_samr_handle, domain_handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ushort, level); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, start_idx); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, max_entries); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, pref_maxsize); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, total_size); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, returned_size); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ushort, switch_value); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, count); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_group_disp_info, groups); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_OpenUser (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_OpenUser = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_OpenUser, /* ndr_func */ 52, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 52, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(34)] */ int ndr__samr_OpenUser (struct ndr_reference *encl_ref) { struct samr_OpenUser *val = (struct samr_OpenUser *) 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 (_samr_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, access_mask); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, rid); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_samr_handle, user_handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_DeleteUser (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_DeleteUser = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_DeleteUser, /* ndr_func */ 24, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 24, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(35)] */ int ndr__samr_DeleteUser (struct ndr_reference *encl_ref) { struct samr_DeleteUser *val = (struct samr_DeleteUser *) 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 */ NDR_TOPMOST_MEMBER (_samr_handle, user_handle); if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_QueryUserInfo1 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryUserInfo1 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_QueryUserInfo1, /* ndr_func */ 36, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 36, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_QueryUserInfo1 (struct ndr_reference *encl_ref) { struct samr_QueryUserInfo1 *val = (struct samr_QueryUserInfo1 *) 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, group_rid, 16UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER (_samr_string, username, 0UL); NDR_MEMBER (_samr_string, fullname, 8UL); NDR_MEMBER (_samr_string, description, 20UL); NDR_MEMBER (_samr_string, unknown, 28UL); return 1; } int ndr__samr_QueryUserInfo6 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryUserInfo6 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_QueryUserInfo6, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_QueryUserInfo6 (struct ndr_reference *encl_ref) { struct samr_QueryUserInfo6 *val = (struct samr_QueryUserInfo6 *) 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 (_samr_string, username, 0UL); NDR_MEMBER (_samr_string, fullname, 8UL); return 1; } int ndr__samr_QueryUserInfo7 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryUserInfo7 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_QueryUserInfo7, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_QueryUserInfo7 (struct ndr_reference *encl_ref) { struct samr_QueryUserInfo7 *val = (struct samr_QueryUserInfo7 *) 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 (_samr_string, username, 0UL); return 1; } int ndr__samr_QueryUserInfo8 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryUserInfo8 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_QueryUserInfo8, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_QueryUserInfo8 (struct ndr_reference *encl_ref) { struct samr_QueryUserInfo8 *val = (struct samr_QueryUserInfo8 *) 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 (_samr_string, fullname, 0UL); return 1; } int ndr__samr_QueryUserInfo9 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryUserInfo9 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_QueryUserInfo9, /* ndr_func */ 4, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 4, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_QueryUserInfo9 (struct ndr_reference *encl_ref) { struct samr_QueryUserInfo9 *val = (struct samr_QueryUserInfo9 *) 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, group_rid, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__samr_QueryUserInfo16 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryUserInfo16 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_QueryUserInfo16, /* ndr_func */ 4, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 4, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_QueryUserInfo16 (struct ndr_reference *encl_ref) { struct samr_QueryUserInfo16 *val = (struct samr_QueryUserInfo16 *) 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, UserAccountControl, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__samr_QueryUserInfo21 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryUserInfo21 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_QueryUserInfo21, /* ndr_func */ 196, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 196, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_QueryUserInfo21 (struct ndr_reference *encl_ref) { struct samr_QueryUserInfo21 *val = (struct samr_QueryUserInfo21 *) 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, UserId, 160UL); NDR_MEMBER (_ulong, PrimaryGroupId, 164UL); NDR_MEMBER (_ulong, UserAccountControl, 168UL); NDR_MEMBER (_ulong, WhichFields, 172UL); NDR_MEMBER (_ushort, BadPasswordCount, 184UL); NDR_MEMBER (_ushort, LogonCount, 186UL); NDR_MEMBER (_ushort, CountryCode, 188UL); NDR_MEMBER (_ushort, CodePage, 190UL); NDR_MEMBER (_uchar, LmPasswordPresent, 192UL); NDR_MEMBER (_uchar, NtPasswordPresent, 193UL); NDR_MEMBER (_uchar, PasswordExpired, 194UL); NDR_MEMBER (_uchar, PrivateDataSensitive, 195UL); /* do all constructed elements w/o pointers */ NDR_MEMBER (_samr_quad, LastLogon, 0UL); NDR_MEMBER (_samr_quad, LastLogoff, 8UL); NDR_MEMBER (_samr_quad, PasswordLastSet, 16UL); NDR_MEMBER (_samr_quad, AccountExpires, 24UL); NDR_MEMBER (_samr_quad, PasswordCanChange, 32UL); NDR_MEMBER (_samr_quad, PasswordMustChange, 40UL); /* do members with pointers in order */ NDR_MEMBER (_samr_string, UserName, 48UL); NDR_MEMBER (_samr_string, FullName, 56UL); NDR_MEMBER (_samr_string, HomeDirectory, 64UL); NDR_MEMBER (_samr_string, HomeDirectoryDrive, 72UL); NDR_MEMBER (_samr_string, ScriptPath, 80UL); NDR_MEMBER (_samr_string, ProfilePath, 88UL); NDR_MEMBER (_samr_string, AdminComment, 96UL); NDR_MEMBER (_samr_string, WorkStations, 104UL); NDR_MEMBER (_samr_string, UserComment, 112UL); NDR_MEMBER (_samr_string, Parameters, 120UL); NDR_MEMBER (_samr_short_blob, LmOwfPassword, 128UL); NDR_MEMBER (_samr_short_blob, NtOwfPassword, 136UL); NDR_MEMBER (_samr_string, PrivateData, 144UL); NDR_MEMBER (_samr_sd, SecurityDescriptor, 152UL); NDR_MEMBER (_samr_logon_hours_all, LogonHours, 176UL); return 1; } int ndr__QueryUserInfo_result_u (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__QueryUserInfo_result_u = { 1, /* NDR version */ 3, /* alignment */ NDR_F_UNION, /* flags */ ndr__QueryUserInfo_result_u, /* ndr_func */ 196, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 196, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__QueryUserInfo_result_u (struct ndr_reference *encl_ref) { union QueryUserInfo_result_u *val = (union QueryUserInfo_result_u *) 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 1: NDR_MEMBER (_samr_QueryUserInfo1, info1, 0UL); break; case 6: NDR_MEMBER (_samr_QueryUserInfo6, info6, 0UL); break; case 7: NDR_MEMBER (_samr_QueryUserInfo7, info7, 0UL); break; case 8: NDR_MEMBER (_samr_QueryUserInfo8, info8, 0UL); break; case 9: NDR_MEMBER (_samr_QueryUserInfo9, info9, 0UL); break; case 16: NDR_MEMBER (_samr_QueryUserInfo16, info16, 0UL); break; case 21: NDR_MEMBER (_samr_QueryUserInfo21, info21, 0UL); break; default: NDR_MEMBER_PTR (_char, nullptr, 0UL); break; } return 1; } int ndr__QueryUserInfo_result (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__QueryUserInfo_result = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__QueryUserInfo_result, /* ndr_func */ 204, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 204, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__QueryUserInfo_result (struct ndr_reference *encl_ref) { struct QueryUserInfo_result *val = (struct QueryUserInfo_result *) 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 (_QueryUserInfo_result_u, ru, 8UL, val->switch_value); return 1; } int ndr__samr_QueryUserInfo (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryUserInfo = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_QueryUserInfo, /* ndr_func */ 232, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 232, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; extern void fixup_samr_QueryUserInfo(struct samr_QueryUserInfo *val); /* * [operation(36)] */ int ndr__samr_QueryUserInfo (struct ndr_reference *encl_ref) { struct samr_QueryUserInfo *val = (struct samr_QueryUserInfo *) 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 (_samr_handle, user_handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ushort, switch_value); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, address); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ushort, switch_index); } 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_samr_QueryUserInfo(val); NDR_TOPMOST_MEMBER_WITH_SWITCH_IS (_QueryUserInfo_result_u, ru, val->switch_value); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_UserGroups (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_UserGroups = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_UserGroups, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_UserGroups (struct ndr_reference *encl_ref) { struct samr_UserGroups *val = (struct samr_UserGroups *) 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, rid, 0UL); NDR_MEMBER (_ulong, attr, 4UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__samr_UserGroupInfo (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_UserGroupInfo = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_UserGroupInfo, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_UserGroupInfo (struct ndr_reference *encl_ref) { struct samr_UserGroupInfo *val = (struct samr_UserGroupInfo *) 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 (_samr_UserGroups, groups, 4UL, val->n_entry); return 1; } int ndr__samr_QueryUserGroups (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryUserGroups = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_QueryUserGroups, /* ndr_func */ 28, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 28, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(39)] */ int ndr__samr_QueryUserGroups (struct ndr_reference *encl_ref) { struct samr_QueryUserGroups *val = (struct samr_QueryUserGroups *) 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 (_samr_handle, user_handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_samr_UserGroupInfo, info); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_LookupNameTable (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_LookupNameTable = { 1, /* NDR version */ 3, /* alignment */ NDR_F_CONFORMANT|NDR_F_STRUCT, /* flags */ ndr__samr_LookupNameTable, /* ndr_func */ 4, /* pdu_size_fixed_part */ 8, /* pdu_size_variable_part */ 4, /* c_size_fixed_part */ 8, /* c_size_variable_part */ }; /* * */ int ndr__samr_LookupNameTable (struct ndr_reference *encl_ref) { struct samr_LookupNameTable *val = (struct samr_LookupNameTable *) 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 (_samr_string, names, 4UL, val->n_entry); return 1; } int ndr__samr_LookupRidTable (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_LookupRidTable = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_LookupRidTable, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_LookupRidTable (struct ndr_reference *encl_ref) { struct samr_LookupRidTable *val = (struct samr_LookupRidTable *) 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 (_ulong, rid, 4UL, val->n_entry); return 1; } int ndr__samr_RidType (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_RidType = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_RidType, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_RidType (struct ndr_reference *encl_ref) { struct samr_RidType *val = (struct samr_RidType *) 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 (_ulong, rid_type, 4UL, val->n_entry); return 1; } int ndr__samr_LookupNames (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_LookupNames = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_LookupNames, /* ndr_func */ 64, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 64, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(17)] */ int ndr__samr_LookupNames (struct ndr_reference *encl_ref) { struct samr_LookupNames *val = (struct samr_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 (_samr_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, n_entry); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, max_n_entry); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, index); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, total); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_samr_string, name); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_samr_LookupRidTable, rids); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_samr_RidType, rid_types); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_OpenGroup (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_OpenGroup = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_OpenGroup, /* ndr_func */ 52, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 52, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(19)] */ int ndr__samr_OpenGroup (struct ndr_reference *encl_ref) { struct samr_OpenGroup *val = (struct samr_OpenGroup *) 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 (_samr_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, access_mask); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, rid); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_samr_handle, group_handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_QueryGroupInfo1 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryGroupInfo1 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_QueryGroupInfo1, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_QueryGroupInfo1 (struct ndr_reference *encl_ref) { struct samr_QueryGroupInfo1 *val = (struct samr_QueryGroupInfo1 *) 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 (_samr_string, groupname, 0UL); return 1; } int ndr__samr_QueryGroupInfo_result_u (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryGroupInfo_result_u = { 1, /* NDR version */ 3, /* alignment */ NDR_F_UNION, /* flags */ ndr__samr_QueryGroupInfo_result_u, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_QueryGroupInfo_result_u (struct ndr_reference *encl_ref) { union samr_QueryGroupInfo_result_u *val = (union samr_QueryGroupInfo_result_u *) 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 1: NDR_MEMBER (_samr_QueryGroupInfo1, info1, 0UL); break; default: NDR_MEMBER_PTR (_char, nullptr, 0UL); break; } return 1; } int ndr__samr_QueryGroupInfo_result (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryGroupInfo_result = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_QueryGroupInfo_result, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_QueryGroupInfo_result (struct ndr_reference *encl_ref) { struct samr_QueryGroupInfo_result *val = (struct samr_QueryGroupInfo_result *) 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_index, 4UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_WITH_SWITCH_IS (_samr_QueryGroupInfo_result_u, ru, 8UL, val->switch_index); return 1; } int ndr__samr_QueryGroupInfo (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_QueryGroupInfo = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_QueryGroupInfo, /* ndr_func */ 44, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 44, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; extern void fixup_samr_QueryGroupInfo(struct samr_QueryGroupInfo *val); /* * [operation(20)] */ int ndr__samr_QueryGroupInfo (struct ndr_reference *encl_ref) { struct samr_QueryGroupInfo *val = (struct samr_QueryGroupInfo *) 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 (_samr_handle, group_handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, switch_value); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, address); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ushort, switch_index); } 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_samr_QueryGroupInfo(val); NDR_TOPMOST_MEMBER_WITH_SWITCH_IS (_samr_QueryGroupInfo_result_u, ru, val->switch_index); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_StoreGroupInfo (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_StoreGroupInfo = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_StoreGroupInfo, /* ndr_func */ 36, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 36, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(21)] */ int ndr__samr_StoreGroupInfo (struct ndr_reference *encl_ref) { struct samr_StoreGroupInfo *val = (struct samr_StoreGroupInfo *) 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 (_samr_handle, group_handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, switch_value); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_samr_string, group_description); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_AddAliasMember (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_AddAliasMember = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_AddAliasMember, /* ndr_func */ 28, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 28, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(31)] */ int ndr__samr_AddAliasMember (struct ndr_reference *encl_ref) { struct samr_AddAliasMember *val = (struct samr_AddAliasMember *) 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 (_samr_handle, alias_handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_REF (_samr_sid, sid); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_DeleteAliasMember (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_DeleteAliasMember = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_DeleteAliasMember, /* ndr_func */ 28, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 28, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(32)] */ int ndr__samr_DeleteAliasMember (struct ndr_reference *encl_ref) { struct samr_DeleteAliasMember *val = (struct samr_DeleteAliasMember *) 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 (_samr_handle, alias_handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_REF (_samr_sid, sid); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_SidList (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_SidList = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_SidList, /* ndr_func */ 4, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 4, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_SidList (struct ndr_reference *encl_ref) { struct samr_SidList *val = (struct samr_SidList *) 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 (_samr_sid, sid, 0UL); return 1; } int ndr__samr_SidInfo (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_SidInfo = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_SidInfo, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_SidInfo (struct ndr_reference *encl_ref) { struct samr_SidInfo *val = (struct samr_SidInfo *) 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 (_samr_SidList, sidlist, 4UL, val->n_entry); return 1; } int ndr__samr_ListAliasMembers (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_ListAliasMembers = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_ListAliasMembers, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(33)] */ int ndr__samr_ListAliasMembers (struct ndr_reference *encl_ref) { struct samr_ListAliasMembers *val = (struct samr_ListAliasMembers *) 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 (_samr_handle, alias_handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_samr_SidInfo, info); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_GetUserPwInfo (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_GetUserPwInfo = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_GetUserPwInfo, /* ndr_func */ 28, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 28, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(44)] */ int ndr__samr_GetUserPwInfo (struct ndr_reference *encl_ref) { struct samr_GetUserPwInfo *val = (struct samr_GetUserPwInfo *) 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 (_samr_handle, user_handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_REF (_samr_password_info, pwinfo); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_CreateUser (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_CreateUser = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_CreateUser, /* ndr_func */ 68, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 68, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(50)] */ int ndr__samr_CreateUser (struct ndr_reference *encl_ref) { struct samr_CreateUser *val = (struct samr_CreateUser *) 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 (_samr_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_samr_vcbuf, username); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, account_flags); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, desired_access); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_samr_handle, user_handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, maybe_ptr); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, rid); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_ChangePasswordUser2 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_ChangePasswordUser2 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_ChangePasswordUser2, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(55)] */ int ndr__samr_ChangePasswordUser2 (struct ndr_reference *encl_ref) { struct samr_ChangePasswordUser2 *val = (struct samr_ChangePasswordUser2 *) 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 (_samr_string, servername); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_REF (_samr_string, username); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_PTR (_samr_encr_passwd, nt_newpw); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_PTR (_samr_encr_hash, nt_oldpw); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_uchar, lm_present); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_PTR (_samr_encr_passwd, lm_newpw); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_PTR (_samr_encr_hash, lm_oldpw); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_GetDomainPwInfo (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_GetDomainPwInfo = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_GetDomainPwInfo, /* ndr_func */ 12, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 12, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(56)] */ int ndr__samr_GetDomainPwInfo (struct ndr_reference *encl_ref) { struct samr_GetDomainPwInfo *val = (struct samr_GetDomainPwInfo *) 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 (_ulong, unused); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_REF (_samr_password_info, pwinfo); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_SetUserInfo16 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_SetUserInfo16 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_SetUserInfo16, /* ndr_func */ 4, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 4, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_SetUserInfo16 (struct ndr_reference *encl_ref) { struct samr_SetUserInfo16 *val = (struct samr_SetUserInfo16 *) 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, UserAccountControl, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__samr_SetUserInfo21 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_SetUserInfo21 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_SetUserInfo21, /* ndr_func */ 196, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 196, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_SetUserInfo21 (struct ndr_reference *encl_ref) { struct samr_SetUserInfo21 *val = (struct samr_SetUserInfo21 *) 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, UserId, 160UL); NDR_MEMBER (_ulong, PrimaryGroupId, 164UL); NDR_MEMBER (_ulong, UserAccountControl, 168UL); NDR_MEMBER (_ulong, WhichFields, 172UL); NDR_MEMBER (_ushort, BadPasswordCount, 184UL); NDR_MEMBER (_ushort, LogonCount, 186UL); NDR_MEMBER (_ushort, CountryCode, 188UL); NDR_MEMBER (_ushort, CodePage, 190UL); NDR_MEMBER (_uchar, LmPasswordPresent, 192UL); NDR_MEMBER (_uchar, NtPasswordPresent, 193UL); NDR_MEMBER (_uchar, PasswordExpired, 194UL); NDR_MEMBER (_uchar, PrivateDataSensitive, 195UL); /* do all constructed elements w/o pointers */ NDR_MEMBER (_samr_quad, LastLogon, 0UL); NDR_MEMBER (_samr_quad, LastLogoff, 8UL); NDR_MEMBER (_samr_quad, PasswordLastSet, 16UL); NDR_MEMBER (_samr_quad, AccountExpires, 24UL); NDR_MEMBER (_samr_quad, PasswordCanChange, 32UL); NDR_MEMBER (_samr_quad, PasswordMustChange, 40UL); NDR_MEMBER (_samr_logon_info, LogonHours, 176UL); /* do members with pointers in order */ NDR_MEMBER (_samr_vcbuf, UserName, 48UL); NDR_MEMBER (_samr_vcbuf, FullName, 56UL); NDR_MEMBER (_samr_vcbuf, HomeDirectory, 64UL); NDR_MEMBER (_samr_vcbuf, HomeDirectoryDrive, 72UL); NDR_MEMBER (_samr_vcbuf, ScriptPath, 80UL); NDR_MEMBER (_samr_vcbuf, ProfilePath, 88UL); NDR_MEMBER (_samr_vcbuf, AdminComment, 96UL); NDR_MEMBER (_samr_vcbuf, WorkStations, 104UL); NDR_MEMBER (_samr_vcbuf, UserComment, 112UL); NDR_MEMBER (_samr_vcbuf, Parameters, 120UL); NDR_MEMBER (_samr_short_blob, LmOwfPassword, 128UL); NDR_MEMBER (_samr_short_blob, NtOwfPassword, 136UL); NDR_MEMBER (_samr_vcbuf, PrivateData, 144UL); NDR_MEMBER (_samr_sd, SecurityDescriptor, 152UL); return 1; } int ndr__samr_SetUserInfo23 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_SetUserInfo23 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_SetUserInfo23, /* ndr_func */ 712, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 712, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_SetUserInfo23 (struct ndr_reference *encl_ref) { struct samr_SetUserInfo23 *val = (struct samr_SetUserInfo23 *) 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 (_samr_encr_passwd, encr_pw, 196UL); /* do members with pointers in order */ NDR_MEMBER (_samr_SetUserInfo21, info21, 0UL); return 1; } int ndr__samr_SetUserInfo24 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_SetUserInfo24 = { 1, /* NDR version */ 0, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_SetUserInfo24, /* ndr_func */ 517, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 517, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_SetUserInfo24 (struct ndr_reference *encl_ref) { struct samr_SetUserInfo24 *val = (struct samr_SetUserInfo24 *) 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, password_expired, 516UL); /* do all constructed elements w/o pointers */ NDR_MEMBER (_samr_encr_passwd, encr_pw, 0UL); /* do members with pointers in order */ return 1; } int ndr__samr_SetUserInfo_u (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_SetUserInfo_u = { 1, /* NDR version */ 3, /* alignment */ NDR_F_UNION, /* flags */ ndr__samr_SetUserInfo_u, /* ndr_func */ 712, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 712, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_SetUserInfo_u (struct ndr_reference *encl_ref) { union samr_SetUserInfo_u *val = (union samr_SetUserInfo_u *) 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 16: NDR_MEMBER (_samr_SetUserInfo16, info16, 0UL); break; case 21: NDR_MEMBER (_samr_SetUserInfo21, info21, 0UL); break; case 23: NDR_MEMBER (_samr_SetUserInfo23, info23, 0UL); break; case 24: NDR_MEMBER (_samr_SetUserInfo24, info24, 0UL); break; default: NDR_MEMBER (_ulong, nothing, 0UL); break; } return 1; } int ndr__samr_SetUserInfo_s (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_SetUserInfo_s = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__samr_SetUserInfo_s, /* ndr_func */ 716, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 716, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__samr_SetUserInfo_s (struct ndr_reference *encl_ref) { struct samr_SetUserInfo_s *val = (struct samr_SetUserInfo_s *) 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, info_level, 0UL); NDR_MEMBER (_ushort, switch_value, 2UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_WITH_SWITCH_IS (_samr_SetUserInfo_u, ru, 4UL, val->switch_value); return 1; } int ndr__samr_SetUserInfo (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_SetUserInfo = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__samr_SetUserInfo, /* ndr_func */ 740, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 740, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(58)] */ int ndr__samr_SetUserInfo (struct ndr_reference *encl_ref) { struct samr_SetUserInfo *val = (struct samr_SetUserInfo *) 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 (_samr_handle, user_handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_samr_SetUserInfo_s, info); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__samr_interface (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__samr_interface = { 1, /* NDR version */ 3, /* alignment */ NDR_F_INTERFACE, /* flags */ ndr__samr_interface, /* ndr_func */ 740, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 740, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [interface(0)] */ int ndr__samr_interface (struct ndr_reference *encl_ref) { union samr_interface *val = (union samr_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 (_samr_Connect, Connect); break; case 1: NDR_PARAMS_MEMBER (_samr_CloseHandle, CloseHandle); break; case 5: NDR_PARAMS_MEMBER (_samr_LookupDomain, LookupDomain); break; case 6: NDR_PARAMS_MEMBER (_samr_EnumLocalDomain, EnumLocalDomain); break; case 7: NDR_PARAMS_MEMBER (_samr_OpenDomain, OpenDomain); break; case 8: NDR_PARAMS_MEMBER (_samr_QueryDomainInfo, QueryDomainInfo); break; case 46: NDR_PARAMS_MEMBER (_samr_QueryInfoDomain2, QueryInfoDomain2); break; case 17: NDR_PARAMS_MEMBER (_samr_LookupNames, LookupNames); break; case 34: NDR_PARAMS_MEMBER (_samr_OpenUser, OpenUser); break; case 35: NDR_PARAMS_MEMBER (_samr_DeleteUser, DeleteUser); break; case 36: NDR_PARAMS_MEMBER (_samr_QueryUserInfo, QueryUserInfo); break; case 39: NDR_PARAMS_MEMBER (_samr_QueryUserGroups, QueryUserGroups); break; case 19: NDR_PARAMS_MEMBER (_samr_OpenGroup, OpenGroup); break; case 31: NDR_PARAMS_MEMBER (_samr_AddAliasMember, AddAliasMember); break; case 32: NDR_PARAMS_MEMBER (_samr_DeleteAliasMember, DeleteAliasMember); break; case 33: NDR_PARAMS_MEMBER (_samr_ListAliasMembers, ListAliasMembers); break; case 44: NDR_PARAMS_MEMBER (_samr_GetUserPwInfo, GetUserPwInfo); break; case 50: NDR_PARAMS_MEMBER (_samr_CreateUser, CreateUser); break; case 55: NDR_PARAMS_MEMBER (_samr_ChangePasswordUser2, ChangePasswordUser2); break; case 56: NDR_PARAMS_MEMBER (_samr_GetDomainPwInfo, GetDomainPwInfo); break; case 57: NDR_PARAMS_MEMBER (_samr_Connect2, Connect2); break; case 58: NDR_PARAMS_MEMBER (_samr_SetUserInfo, SetUserInfo); break; case 62: NDR_PARAMS_MEMBER (_samr_Connect4, Connect4); break; case 64: NDR_PARAMS_MEMBER (_samr_Connect5, Connect5); break; case 40: NDR_PARAMS_MEMBER (_samr_QueryDispInfo, QueryDispInfo); break; case 27: NDR_PARAMS_MEMBER (_samr_OpenAlias, OpenAlias); break; case 14: NDR_PARAMS_MEMBER (_samr_CreateDomainAlias, CreateDomainAlias); break; case 29: NDR_PARAMS_MEMBER (_samr_SetAliasInfo, SetAliasInfo); break; case 28: NDR_PARAMS_MEMBER (_samr_QueryAliasInfo, QueryAliasInfo); break; case 30: NDR_PARAMS_MEMBER (_samr_DeleteDomainAlias, DeleteDomainAlias); break; case 15: NDR_PARAMS_MEMBER (_samr_EnumDomainAliases, EnumDomainAliases); break; case 48: NDR_PARAMS_MEMBER (_samr_EnumDomainGroups, EnumDomainGroups); break; default: NDR_SET_ERROR(encl_ref, NDR_ERR_SWITCH_VALUE_INVALID); return 0; break; } return 1; }