/* * 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__winreg_handle (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_handle = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__winreg_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__winreg_handle (struct ndr_reference *encl_ref) { struct winreg_handle *val = (struct winreg_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__winreg_string_desc (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_string_desc = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__winreg_string_desc, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__winreg_string_desc (struct ndr_reference *encl_ref) { struct winreg_string_desc *val = (struct winreg_string_desc *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ushort, length, 0UL); NDR_MEMBER (_ushort, allosize, 2UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (s_wchar, str, 4UL); return 1; } int ndr__winreg_value (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_value = { 1, /* NDR version */ 3, /* alignment */ NDR_F_CONFORMANT|NDR_F_STRUCT, /* flags */ ndr__winreg_value, /* ndr_func */ 8, /* pdu_size_fixed_part */ 1, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 1, /* c_size_variable_part */ }; /* * */ int ndr__winreg_value (struct ndr_reference *encl_ref) { struct winreg_value *val = (struct winreg_value *) 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 (_uchar, value, 8UL, val->vc_length_is); /* do members with pointers in order */ return 1; } int ndr__winreg_vcs (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_vcs = { 1, /* NDR version */ 3, /* alignment */ NDR_F_CONFORMANT|NDR_F_STRUCT, /* flags */ ndr__winreg_vcs, /* ndr_func */ 8, /* pdu_size_fixed_part */ 2, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 2, /* c_size_variable_part */ }; /* * */ int ndr__winreg_vcs (struct ndr_reference *encl_ref) { struct winreg_vcs *val = (struct winreg_vcs *) 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, value, 8UL, val->vc_length_is); /* do members with pointers in order */ return 1; } int ndr__winreg_vcbuf (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_vcbuf = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__winreg_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__winreg_vcbuf (struct ndr_reference *encl_ref) { struct winreg_vcbuf *val = (struct winreg_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 (_winreg_vcs, buf, 4UL); return 1; } int ndr__file_time (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__file_time = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__file_time, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__file_time (struct ndr_reference *encl_ref) { struct file_time *val = (struct file_time *) 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__winreg_secdesc (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_secdesc = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__winreg_secdesc, /* ndr_func */ 12, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 12, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__winreg_secdesc (struct ndr_reference *encl_ref) { struct winreg_secdesc *val = (struct winreg_secdesc *) 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, sd_len, 4UL); NDR_MEMBER (_ulong, sd_size, 8UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (_winreg_value, sd_buf, 0UL); return 1; } int ndr__winreg_OpenHKCR (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_OpenHKCR = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__winreg_OpenHKCR, /* 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__winreg_OpenHKCR (struct ndr_reference *encl_ref) { struct winreg_OpenHKCR *val = (struct winreg_OpenHKCR *) 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, server); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, access_mask); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_winreg_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__winreg_OpenHKCU (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_OpenHKCU = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__winreg_OpenHKCU, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(1)] */ int ndr__winreg_OpenHKCU (struct ndr_reference *encl_ref) { struct winreg_OpenHKCU *val = (struct winreg_OpenHKCU *) 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, server); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, access_mask); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_winreg_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__winreg_OpenHKLM (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_OpenHKLM = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__winreg_OpenHKLM, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(2)] */ int ndr__winreg_OpenHKLM (struct ndr_reference *encl_ref) { struct winreg_OpenHKLM *val = (struct winreg_OpenHKLM *) 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, server); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, access_mask); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_winreg_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__winreg_OpenHKPD (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_OpenHKPD = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__winreg_OpenHKPD, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(3)] */ int ndr__winreg_OpenHKPD (struct ndr_reference *encl_ref) { struct winreg_OpenHKPD *val = (struct winreg_OpenHKPD *) 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, server); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, access_mask); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_winreg_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__winreg_OpenHKUsers (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_OpenHKUsers = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__winreg_OpenHKUsers, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(4)] */ int ndr__winreg_OpenHKUsers (struct ndr_reference *encl_ref) { struct winreg_OpenHKUsers *val = (struct winreg_OpenHKUsers *) 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, server); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, access_mask); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_winreg_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__winreg_Close (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_Close = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__winreg_Close, /* ndr_func */ 44, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 44, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(5)] */ int ndr__winreg_Close (struct ndr_reference *encl_ref) { struct winreg_Close *val = (struct winreg_Close *) 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 (_winreg_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_winreg_handle, result_handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__winreg_CreateKey (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_CreateKey = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__winreg_CreateKey, /* ndr_func */ 76, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 76, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(6)] */ int ndr__winreg_CreateKey (struct ndr_reference *encl_ref) { struct winreg_CreateKey *val = (struct winreg_CreateKey *) 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 (_winreg_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_winreg_string_desc, subkey); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_winreg_string_desc, keyclass); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, options); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, access_mask); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_PTR (_ulong, sd); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_winreg_handle, result_handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_ulong, action); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__winreg_DeleteKey (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_DeleteKey = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__winreg_DeleteKey, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(7)] */ int ndr__winreg_DeleteKey (struct ndr_reference *encl_ref) { struct winreg_DeleteKey *val = (struct winreg_DeleteKey *) 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 (_winreg_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_winreg_string_desc, subkey); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__winreg_DeleteValue (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_DeleteValue = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__winreg_DeleteValue, /* 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__winreg_DeleteValue (struct ndr_reference *encl_ref) { struct winreg_DeleteValue *val = (struct winreg_DeleteValue *) 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 (_winreg_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_winreg_string_desc, name); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__winreg_EnumKey (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_EnumKey = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__winreg_EnumKey, /* ndr_func */ 56, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 56, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(9)] */ int ndr__winreg_EnumKey (struct ndr_reference *encl_ref) { struct winreg_EnumKey *val = (struct winreg_EnumKey *) 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 (_winreg_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, index); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_winreg_string_desc, name_in); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_PTR (_winreg_string_desc, class_in); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_winreg_string_desc, name_out); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_winreg_string_desc, class_out); } NDR_TOPMOST_MEMBER_PTR (_file_time, change_time); if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__winreg_EnumValue (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_EnumValue = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__winreg_EnumValue, /* ndr_func */ 52, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 52, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(10)] */ int ndr__winreg_EnumValue (struct ndr_reference *encl_ref) { struct winreg_EnumValue *val = (struct winreg_EnumValue *) 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 (_winreg_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, index); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_winreg_vcbuf, name); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_ulong, type); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_winreg_value, value); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_ulong, value_size); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_ulong, value_size_total); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__winreg_FlushKey (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_FlushKey = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__winreg_FlushKey, /* ndr_func */ 24, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 24, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(11)] */ int ndr__winreg_FlushKey (struct ndr_reference *encl_ref) { struct winreg_FlushKey *val = (struct winreg_FlushKey *) 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 (_winreg_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__winreg_GetKeySec (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_GetKeySec = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__winreg_GetKeySec, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(12)] */ int ndr__winreg_GetKeySec (struct ndr_reference *encl_ref) { struct winreg_GetKeySec *val = (struct winreg_GetKeySec *) 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 (_winreg_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, sec_info); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_REF (_winreg_secdesc, sd); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__winreg_NotifyChange (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_NotifyChange = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__winreg_NotifyChange, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(14)] */ int ndr__winreg_NotifyChange (struct ndr_reference *encl_ref) { struct winreg_NotifyChange *val = (struct winreg_NotifyChange *) 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 (_winreg_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, watch_subtree); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, notify_filter); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__winreg_OpenKey (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_OpenKey = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__winreg_OpenKey, /* ndr_func */ 60, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 60, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(15)] */ int ndr__winreg_OpenKey (struct ndr_reference *encl_ref) { struct winreg_OpenKey *val = (struct winreg_OpenKey *) 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 (_winreg_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_winreg_string_desc, name); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, options); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, access_mask); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_winreg_handle, result_handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__winreg_QueryKey (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_QueryKey = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__winreg_QueryKey, /* ndr_func */ 68, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 68, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(16)] */ int ndr__winreg_QueryKey (struct ndr_reference *encl_ref) { struct winreg_QueryKey *val = (struct winreg_QueryKey *) 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 (_winreg_handle, handle); } NDR_TOPMOST_MEMBER (_winreg_string_desc, name); if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, num_subkeys); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, max_subkey_len); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, max_class_len); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, num_values); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, max_value_namelen); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, max_value_len); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, secdesc_size); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_file_time, last_write_time); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__winreg_QueryValue (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_QueryValue = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__winreg_QueryValue, /* ndr_func */ 48, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 48, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(17)] */ int ndr__winreg_QueryValue (struct ndr_reference *encl_ref) { struct winreg_QueryValue *val = (struct winreg_QueryValue *) 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 (_winreg_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_winreg_string_desc, value_name); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_ulong, type); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_winreg_value, value); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_ulong, value_size); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER_PTR (_ulong, value_size_total); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__winreg_SetKeySec (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_SetKeySec = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__winreg_SetKeySec, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(21)] */ int ndr__winreg_SetKeySec (struct ndr_reference *encl_ref) { struct winreg_SetKeySec *val = (struct winreg_SetKeySec *) 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 (_winreg_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, access_mask); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, sd); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__winreg_CreateValue (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_CreateValue = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__winreg_CreateValue, /* ndr_func */ 44, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 44, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(22)] */ int ndr__winreg_CreateValue (struct ndr_reference *encl_ref) { struct winreg_CreateValue *val = (struct winreg_CreateValue *) 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 (_winreg_handle, handle); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_winreg_string_desc, name); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_winreg_string_desc, class); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, options); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__winreg_Shutdown (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_Shutdown = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__winreg_Shutdown, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(24)] */ int ndr__winreg_Shutdown (struct ndr_reference *encl_ref) { struct winreg_Shutdown *val = (struct winreg_Shutdown *) 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, ignored); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__winreg_AbortShutdown (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_AbortShutdown = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__winreg_AbortShutdown, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(25)] */ int ndr__winreg_AbortShutdown (struct ndr_reference *encl_ref) { struct winreg_AbortShutdown *val = (struct winreg_AbortShutdown *) 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, ignored); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__winreg_GetVersion (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_GetVersion = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__winreg_GetVersion, /* ndr_func */ 28, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 28, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(26)] */ int ndr__winreg_GetVersion (struct ndr_reference *encl_ref) { struct winreg_GetVersion *val = (struct winreg_GetVersion *) 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 (_winreg_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, version); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__winreg_OpenHKCC (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_OpenHKCC = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__winreg_OpenHKCC, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(27)] */ int ndr__winreg_OpenHKCC (struct ndr_reference *encl_ref) { struct winreg_OpenHKCC *val = (struct winreg_OpenHKCC *) 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, server); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, access_mask); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_winreg_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__winreg_OpenHKDD (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_OpenHKDD = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__winreg_OpenHKDD, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(28)] */ int ndr__winreg_OpenHKDD (struct ndr_reference *encl_ref) { struct winreg_OpenHKDD *val = (struct winreg_OpenHKDD *) 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, server); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, access_mask); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_winreg_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__winreg_OpenHKPT (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_OpenHKPT = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__winreg_OpenHKPT, /* ndr_func */ 32, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 32, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(32)] */ int ndr__winreg_OpenHKPT (struct ndr_reference *encl_ref) { struct winreg_OpenHKPT *val = (struct winreg_OpenHKPT *) 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, server); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, access_mask); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_winreg_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__winreg_OpenHKPN (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_OpenHKPN = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__winreg_OpenHKPN, /* 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__winreg_OpenHKPN (struct ndr_reference *encl_ref) { struct winreg_OpenHKPN *val = (struct winreg_OpenHKPN *) 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, server); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, access_mask); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_winreg_handle, handle); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__winreg_interface (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__winreg_interface = { 1, /* NDR version */ 3, /* alignment */ NDR_F_INTERFACE, /* flags */ ndr__winreg_interface, /* ndr_func */ 76, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 76, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [interface(0)] */ int ndr__winreg_interface (struct ndr_reference *encl_ref) { union winreg_interface *val = (union winreg_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 (_winreg_OpenHKCR, OpenHKCR); break; case 1: NDR_PARAMS_MEMBER (_winreg_OpenHKCU, OpenHKCU); break; case 2: NDR_PARAMS_MEMBER (_winreg_OpenHKLM, OpenHKLM); break; case 3: NDR_PARAMS_MEMBER (_winreg_OpenHKPD, OpenHKPD); break; case 4: NDR_PARAMS_MEMBER (_winreg_OpenHKUsers, OpenHKUsers); break; case 5: NDR_PARAMS_MEMBER (_winreg_Close, Close); break; case 6: NDR_PARAMS_MEMBER (_winreg_CreateKey, CreateKey); break; case 7: NDR_PARAMS_MEMBER (_winreg_DeleteKey, DeleteKey); break; case 8: NDR_PARAMS_MEMBER (_winreg_DeleteValue, DeleteValue); break; case 9: NDR_PARAMS_MEMBER (_winreg_EnumKey, EnumKey); break; case 10: NDR_PARAMS_MEMBER (_winreg_EnumValue, EnumValue); break; case 11: NDR_PARAMS_MEMBER (_winreg_FlushKey, FlushKey); break; case 12: NDR_PARAMS_MEMBER (_winreg_GetKeySec, GetKeySec); break; case 14: NDR_PARAMS_MEMBER (_winreg_NotifyChange, NotifyChange); break; case 15: NDR_PARAMS_MEMBER (_winreg_OpenKey, OpenKey); break; case 16: NDR_PARAMS_MEMBER (_winreg_QueryKey, QueryKey); break; case 17: NDR_PARAMS_MEMBER (_winreg_QueryValue, QueryValue); break; case 21: NDR_PARAMS_MEMBER (_winreg_SetKeySec, SetKeySec); break; case 22: NDR_PARAMS_MEMBER (_winreg_CreateValue, CreateValue); break; case 24: NDR_PARAMS_MEMBER (_winreg_Shutdown, Shutdown); break; case 25: NDR_PARAMS_MEMBER (_winreg_AbortShutdown, AbortShutdown); break; case 26: NDR_PARAMS_MEMBER (_winreg_GetVersion, GetVersion); break; case 27: NDR_PARAMS_MEMBER (_winreg_OpenHKCC, OpenHKCC); break; case 28: NDR_PARAMS_MEMBER (_winreg_OpenHKDD, OpenHKDD); break; case 32: NDR_PARAMS_MEMBER (_winreg_OpenHKPT, OpenHKPT); break; case 33: NDR_PARAMS_MEMBER (_winreg_OpenHKPN, OpenHKPN); break; default: NDR_SET_ERROR(encl_ref, NDR_ERR_SWITCH_VALUE_INVALID); return 0; break; } return 1; }