LCOV - code coverage report
Current view: top level - bin/default/librpc/gen_ndr - ndr_wmi.c (source / functions) Hit Total Coverage
Test: coverage report for v4-17-test 1498b464 Lines: 0 4988 0.0 %
Date: 2024-06-13 04:01:37 Functions: 0 173 0.0 %

          Line data    Source code
       1             : /* parser auto-generated by pidl */
       2             : 
       3             : #include "includes.h"
       4             : #include "bin/default/librpc/gen_ndr/ndr_wmi.h"
       5             : 
       6             : #include "librpc/gen_ndr/ndr_orpc.h"
       7             : #include "librpc/gen_ndr/ndr_dcom.h"
       8             : #include "librpc/gen_ndr/ndr_misc.h"
       9             : #include "librpc/gen_ndr/ndr_orpc.h"
      10           0 : static enum ndr_err_code ndr_push_BSTR(struct ndr_push *ndr, int ndr_flags, const struct BSTR *r)
      11             : {
      12           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
      13           0 :         if (ndr_flags & NDR_SCALARS) {
      14           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->data, CH_UTF16)));
      15           0 :                 NDR_CHECK(ndr_push_align(ndr, 4));
      16           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0x72657355));
      17           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
      18           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->data, CH_UTF16)));
      19           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->data, ndr_charset_length(r->data, CH_UTF16), sizeof(uint16_t), CH_UTF16));
      20           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
      21             :         }
      22           0 :         if (ndr_flags & NDR_BUFFERS) {
      23             :         }
      24           0 :         return NDR_ERR_SUCCESS;
      25             : }
      26             : 
      27           0 : static enum ndr_err_code ndr_pull_BSTR(struct ndr_pull *ndr, int ndr_flags, struct BSTR *r)
      28             : {
      29           0 :         uint32_t size_data_0 = 0;
      30           0 :         uint32_t length_data_0 = 0;
      31           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
      32           0 :         if (ndr_flags & NDR_SCALARS) {
      33           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->data));
      34           0 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
      35           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->flags));
      36           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->data));
      37           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->data, &size_data_0));
      38           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->data, &length_data_0));
      39           0 :                 if (length_data_0 > size_data_0) {
      40           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_data_0, length_data_0);
      41             :                 }
      42           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_data_0, sizeof(uint16_t)));
      43           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->data, length_data_0, sizeof(uint16_t), CH_UTF16));
      44           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
      45             :         }
      46           0 :         if (ndr_flags & NDR_BUFFERS) {
      47             :         }
      48           0 :         return NDR_ERR_SUCCESS;
      49             : }
      50             : 
      51           0 : static enum ndr_err_code ndr_push_Delete(struct ndr_push *ndr, int flags, const struct Delete *r)
      52             : {
      53           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
      54           0 :         if (flags & NDR_IN) {
      55           0 :                 if (r->in.wszName == NULL) {
      56           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
      57             :                 }
      58           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
      59           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszName, CH_UTF16)));
      60           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
      61           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszName, CH_UTF16)));
      62           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.wszName, ndr_charset_length(r->in.wszName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
      63             :         }
      64           0 :         if (flags & NDR_OUT) {
      65           0 :                 if (r->out.ORPCthat == NULL) {
      66           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
      67             :                 }
      68           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
      69           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
      70             :         }
      71           0 :         return NDR_ERR_SUCCESS;
      72             : }
      73             : 
      74           0 : static enum ndr_err_code ndr_pull_Delete(struct ndr_pull *ndr, int flags, struct Delete *r)
      75             : {
      76           0 :         uint32_t size_wszName_1 = 0;
      77           0 :         uint32_t length_wszName_1 = 0;
      78           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
      79           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
      80           0 :         if (flags & NDR_IN) {
      81           0 :                 NDR_ZERO_STRUCT(r->out);
      82             : 
      83           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
      84           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.wszName));
      85           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.wszName));
      86           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.wszName, &size_wszName_1));
      87           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.wszName, &length_wszName_1));
      88           0 :                 if (length_wszName_1 > size_wszName_1) {
      89           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_wszName_1, length_wszName_1);
      90             :                 }
      91           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_wszName_1, sizeof(uint16_t)));
      92           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.wszName, length_wszName_1, sizeof(uint16_t), CH_UTF16));
      93           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
      94           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
      95             :         }
      96           0 :         if (flags & NDR_OUT) {
      97             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
      98             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
      99           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     100           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
     101             :                 }
     102           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
     103           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
     104           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
     105           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
     106           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
     107             :         }
     108           0 :         return NDR_ERR_SUCCESS;
     109             : }
     110             : 
     111           0 : _PUBLIC_ void ndr_print_Delete(struct ndr_print *ndr, const char *name, int flags, const struct Delete *r)
     112             : {
     113           0 :         ndr_print_struct(ndr, name, "Delete");
     114           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     115           0 :         ndr->depth++;
     116           0 :         if (flags & NDR_SET_VALUES) {
     117           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     118             :         }
     119           0 :         if (flags & NDR_IN) {
     120           0 :                 ndr_print_struct(ndr, "in", "Delete");
     121           0 :                 ndr->depth++;
     122           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
     123           0 :                 ndr_print_ptr(ndr, "wszName", r->in.wszName);
     124           0 :                 ndr->depth++;
     125           0 :                 ndr_print_string(ndr, "wszName", r->in.wszName);
     126           0 :                 ndr->depth--;
     127           0 :                 ndr->depth--;
     128             :         }
     129           0 :         if (flags & NDR_OUT) {
     130           0 :                 ndr_print_struct(ndr, "out", "Delete");
     131           0 :                 ndr->depth++;
     132           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
     133           0 :                 ndr->depth++;
     134           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
     135           0 :                 ndr->depth--;
     136           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
     137           0 :                 ndr->depth--;
     138             :         }
     139           0 :         ndr->depth--;
     140             : }
     141             : 
     142             : #ifndef SKIP_NDR_TABLE_IWbemClassObject
     143             : static const struct ndr_interface_public_struct IWbemClassObject_public_structs[] = {
     144             :         { .name = NULL }
     145             : };
     146             : 
     147             : static const struct ndr_interface_call IWbemClassObject_calls[] = {
     148             :         {
     149             :                 "Delete",
     150             :                 sizeof(struct Delete),
     151             :                 (ndr_push_flags_fn_t) ndr_push_Delete,
     152             :                 (ndr_pull_flags_fn_t) ndr_pull_Delete,
     153             :                 (ndr_print_function_t) ndr_print_Delete,
     154             :                 { 0, NULL },
     155             :                 { 0, NULL },
     156             :         },
     157             :         { .name = NULL }
     158             : };
     159             : 
     160             : static const char * const IWbemClassObject_endpoint_strings[] = {
     161             :         "ncacn_np:[\\pipe\\IWbemClassObject]", 
     162             : };
     163             : 
     164             : static const struct ndr_interface_string_array IWbemClassObject_endpoints = {
     165             :         .count  = 1,
     166             :         .names  = IWbemClassObject_endpoint_strings
     167             : };
     168             : 
     169             : static const char * const IWbemClassObject_authservice_strings[] = {
     170             :         "host", 
     171             : };
     172             : 
     173             : static const struct ndr_interface_string_array IWbemClassObject_authservices = {
     174             :         .count  = 1,
     175             :         .names  = IWbemClassObject_authservice_strings
     176             : };
     177             : 
     178             : 
     179             : const struct ndr_interface_table ndr_table_IWbemClassObject = {
     180             :         .name           = "IWbemClassObject",
     181             :         .syntax_id      = {
     182             :                 {0xdc12a681,0x737f,0x11cf,{0x88,0x4d},{0x00,0xaa,0x00,0x4b,0x2e,0x24}},
     183             :                 NDR_IWBEMCLASSOBJECT_VERSION
     184             :         },
     185             :         .helpstring     = NDR_IWBEMCLASSOBJECT_HELPSTRING,
     186             :         .num_calls      = 1,
     187             :         .calls          = IWbemClassObject_calls,
     188             :         .num_public_structs     = 0,
     189             :         .public_structs         = IWbemClassObject_public_structs,
     190             :         .endpoints      = &IWbemClassObject_endpoints,
     191             :         .authservices   = &IWbemClassObject_authservices
     192             : };
     193             : 
     194             : #endif /* SKIP_NDR_TABLE_IWbemClassObject */
     195             : #include "librpc/gen_ndr/ndr_orpc.h"
     196           0 : _PUBLIC_ enum ndr_err_code ndr_push_WBEM_GENERIC_FLAG_TYPE(struct ndr_push *ndr, int ndr_flags, uint32_t r)
     197             : {
     198           0 :         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
     199           0 :         return NDR_ERR_SUCCESS;
     200             : }
     201             : 
     202           0 : _PUBLIC_ enum ndr_err_code ndr_pull_WBEM_GENERIC_FLAG_TYPE(struct ndr_pull *ndr, int ndr_flags, uint32_t *r)
     203             : {
     204             :         uint32_t v;
     205           0 :         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
     206           0 :         *r = v;
     207           0 :         return NDR_ERR_SUCCESS;
     208             : }
     209             : 
     210           0 : _PUBLIC_ void ndr_print_WBEM_GENERIC_FLAG_TYPE(struct ndr_print *ndr, const char *name, uint32_t r)
     211             : {
     212           0 :         ndr_print_uint32(ndr, name, r);
     213           0 :         ndr->depth++;
     214           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_FLAG_RETURN_WBEM_COMPLETE", WBEM_FLAG_RETURN_WBEM_COMPLETE, r);
     215           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_FLAG_BIDIRECTIONAL", WBEM_FLAG_BIDIRECTIONAL, r);
     216           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_FLAG_RETURN_IMMEDIATELY", WBEM_FLAG_RETURN_IMMEDIATELY, r);
     217           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_FLAG_FORWARD_ONLY", WBEM_FLAG_FORWARD_ONLY, r);
     218           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_FLAG_NO_ERROR_OBJECT", WBEM_FLAG_NO_ERROR_OBJECT, r);
     219           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_FLAG_SEND_STATUS", WBEM_FLAG_SEND_STATUS, r);
     220           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_FLAG_ENSURE_LOCATABLE", WBEM_FLAG_ENSURE_LOCATABLE, r);
     221           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_FLAG_DIRECT_READ", WBEM_FLAG_DIRECT_READ, r);
     222           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_FLAG_USE_AMENDED_QUALIFIERS", WBEM_FLAG_USE_AMENDED_QUALIFIERS, r);
     223           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_FLAG_STRONG_VALIDATION", WBEM_FLAG_STRONG_VALIDATION, r);
     224           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_FLAG_RETURN_ERROR_OBJECT", WBEM_FLAG_RETURN_ERROR_OBJECT, r);
     225           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_FLAG_DONT_SEND_STATUS", WBEM_FLAG_DONT_SEND_STATUS, r);
     226           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_FLAG_SEND_ONLY_SELECTED", WBEM_FLAG_SEND_ONLY_SELECTED, r);
     227           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_RETURN_WHEN_COMPLETE", WBEM_RETURN_WHEN_COMPLETE, r);
     228           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_RETURN_IMMEDIATELY", WBEM_RETURN_IMMEDIATELY, r);
     229           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "WBEM_MASK_RESERVED_FLAGS", WBEM_MASK_RESERVED_FLAGS, r);
     230           0 :         ndr->depth--;
     231           0 : }
     232             : 
     233           0 : _PUBLIC_ enum ndr_err_code ndr_push_WBEM_TIMEOUT_TYPE(struct ndr_push *ndr, int ndr_flags, enum WBEM_TIMEOUT_TYPE r)
     234             : {
     235           0 :         NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
     236           0 :         return NDR_ERR_SUCCESS;
     237             : }
     238             : 
     239           0 : _PUBLIC_ enum ndr_err_code ndr_pull_WBEM_TIMEOUT_TYPE(struct ndr_pull *ndr, int ndr_flags, enum WBEM_TIMEOUT_TYPE *r)
     240             : {
     241             :         uint32_t v;
     242           0 :         NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
     243           0 :         *r = v;
     244           0 :         return NDR_ERR_SUCCESS;
     245             : }
     246             : 
     247           0 : _PUBLIC_ void ndr_print_WBEM_TIMEOUT_TYPE(struct ndr_print *ndr, const char *name, enum WBEM_TIMEOUT_TYPE r)
     248             : {
     249           0 :         const char *val = NULL;
     250             : 
     251           0 :         switch (r) {
     252           0 :                 case WBEM_NO_WAIT: val = "WBEM_NO_WAIT"; break;
     253           0 :                 case WBEM_INFINITE: val = "WBEM_INFINITE"; break;
     254             :         }
     255           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
     256           0 : }
     257             : 
     258           0 : _PUBLIC_ enum ndr_err_code ndr_push_CIMTYPE_ENUMERATION(struct ndr_push *ndr, int ndr_flags, enum CIMTYPE_ENUMERATION r)
     259             : {
     260           0 :         NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
     261           0 :         return NDR_ERR_SUCCESS;
     262             : }
     263             : 
     264           0 : _PUBLIC_ enum ndr_err_code ndr_pull_CIMTYPE_ENUMERATION(struct ndr_pull *ndr, int ndr_flags, enum CIMTYPE_ENUMERATION *r)
     265             : {
     266             :         uint32_t v;
     267           0 :         NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
     268           0 :         *r = v;
     269           0 :         return NDR_ERR_SUCCESS;
     270             : }
     271             : 
     272           0 : _PUBLIC_ void ndr_print_CIMTYPE_ENUMERATION(struct ndr_print *ndr, const char *name, enum CIMTYPE_ENUMERATION r)
     273             : {
     274           0 :         const char *val = NULL;
     275             : 
     276           0 :         switch (r) {
     277           0 :                 case CIM_EMPTY: val = "CIM_EMPTY"; break;
     278           0 :                 case CIM_SINT16: val = "CIM_SINT16"; break;
     279           0 :                 case CIM_SINT32: val = "CIM_SINT32"; break;
     280           0 :                 case CIM_REAL32: val = "CIM_REAL32"; break;
     281           0 :                 case CIM_REAL64: val = "CIM_REAL64"; break;
     282           0 :                 case CIM_STRING: val = "CIM_STRING"; break;
     283           0 :                 case CIM_BOOLEAN: val = "CIM_BOOLEAN"; break;
     284           0 :                 case CIM_OBJECT: val = "CIM_OBJECT"; break;
     285           0 :                 case CIM_SINT8: val = "CIM_SINT8"; break;
     286           0 :                 case CIM_UINT8: val = "CIM_UINT8"; break;
     287           0 :                 case CIM_UINT16: val = "CIM_UINT16"; break;
     288           0 :                 case CIM_UINT32: val = "CIM_UINT32"; break;
     289           0 :                 case CIM_SINT64: val = "CIM_SINT64"; break;
     290           0 :                 case CIM_UINT64: val = "CIM_UINT64"; break;
     291           0 :                 case CIM_DATETIME: val = "CIM_DATETIME"; break;
     292           0 :                 case CIM_REFERENCE: val = "CIM_REFERENCE"; break;
     293           0 :                 case CIM_CHAR16: val = "CIM_CHAR16"; break;
     294           0 :                 case CIM_FLAG_ARRAY: val = "CIM_FLAG_ARRAY"; break;
     295           0 :                 case CIM_ILLEGAL: val = "CIM_ILLEGAL"; break;
     296           0 :                 case CIM_TYPEMASK: val = "CIM_TYPEMASK"; break;
     297           0 :                 case CIM_ARR_SINT8: val = "CIM_ARR_SINT8"; break;
     298           0 :                 case CIM_ARR_UINT8: val = "CIM_ARR_UINT8"; break;
     299           0 :                 case CIM_ARR_SINT16: val = "CIM_ARR_SINT16"; break;
     300           0 :                 case CIM_ARR_UINT16: val = "CIM_ARR_UINT16"; break;
     301           0 :                 case CIM_ARR_SINT32: val = "CIM_ARR_SINT32"; break;
     302           0 :                 case CIM_ARR_UINT32: val = "CIM_ARR_UINT32"; break;
     303           0 :                 case CIM_ARR_SINT64: val = "CIM_ARR_SINT64"; break;
     304           0 :                 case CIM_ARR_UINT64: val = "CIM_ARR_UINT64"; break;
     305           0 :                 case CIM_ARR_REAL32: val = "CIM_ARR_REAL32"; break;
     306           0 :                 case CIM_ARR_REAL64: val = "CIM_ARR_REAL64"; break;
     307           0 :                 case CIM_ARR_BOOLEAN: val = "CIM_ARR_BOOLEAN"; break;
     308           0 :                 case CIM_ARR_STRING: val = "CIM_ARR_STRING"; break;
     309           0 :                 case CIM_ARR_DATETIME: val = "CIM_ARR_DATETIME"; break;
     310           0 :                 case CIM_ARR_REFERENCE: val = "CIM_ARR_REFERENCE"; break;
     311           0 :                 case CIM_ARR_CHAR16: val = "CIM_ARR_CHAR16"; break;
     312           0 :                 case CIM_ARR_OBJECT: val = "CIM_ARR_OBJECT"; break;
     313             :         }
     314           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
     315           0 : }
     316             : 
     317           0 : _PUBLIC_ enum ndr_err_code ndr_push_WBEM_FLAVOR_TYPE(struct ndr_push *ndr, int ndr_flags, uint8_t r)
     318             : {
     319           0 :         NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r));
     320           0 :         return NDR_ERR_SUCCESS;
     321             : }
     322             : 
     323           0 : _PUBLIC_ enum ndr_err_code ndr_pull_WBEM_FLAVOR_TYPE(struct ndr_pull *ndr, int ndr_flags, uint8_t *r)
     324             : {
     325             :         uint8_t v;
     326           0 :         NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &v));
     327           0 :         *r = v;
     328           0 :         return NDR_ERR_SUCCESS;
     329             : }
     330             : 
     331           0 : _PUBLIC_ void ndr_print_WBEM_FLAVOR_TYPE(struct ndr_print *ndr, const char *name, uint8_t r)
     332             : {
     333           0 :         ndr_print_uint8(ndr, name, r);
     334           0 :         ndr->depth++;
     335           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint8_t), "WBEM_FLAVOR_FLAG_PROPAGATE_TO_INSTANCE", WBEM_FLAVOR_FLAG_PROPAGATE_TO_INSTANCE, r);
     336           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint8_t), "WBEM_FLAVOR_FLAG_PROPAGATE_TO_DERIVED_CLASS", WBEM_FLAVOR_FLAG_PROPAGATE_TO_DERIVED_CLASS, r);
     337           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint8_t), "WBEM_FLAVOR_NOT_OVERRIDABLE", WBEM_FLAVOR_NOT_OVERRIDABLE, r);
     338           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint8_t), "WBEM_FLAVOR_ORIGIN_PROPAGATED", WBEM_FLAVOR_ORIGIN_PROPAGATED, r);
     339           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint8_t), "WBEM_FLAVOR_ORIGIN_SYSTEM", WBEM_FLAVOR_ORIGIN_SYSTEM, r);
     340           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint8_t), "WBEM_FLAVOR_AMENDED", WBEM_FLAVOR_AMENDED, r);
     341           0 :         ndr->depth--;
     342           0 : }
     343             : 
     344           0 : _PUBLIC_ enum ndr_err_code ndr_push_WCO_FLAGS(struct ndr_push *ndr, int ndr_flags, uint8_t r)
     345             : {
     346           0 :         NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r));
     347           0 :         return NDR_ERR_SUCCESS;
     348             : }
     349             : 
     350           0 : _PUBLIC_ enum ndr_err_code ndr_pull_WCO_FLAGS(struct ndr_pull *ndr, int ndr_flags, uint8_t *r)
     351             : {
     352             :         uint8_t v;
     353           0 :         NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &v));
     354           0 :         *r = v;
     355           0 :         return NDR_ERR_SUCCESS;
     356             : }
     357             : 
     358           0 : _PUBLIC_ void ndr_print_WCO_FLAGS(struct ndr_print *ndr, const char *name, uint8_t r)
     359             : {
     360           0 :         ndr_print_uint8(ndr, name, r);
     361           0 :         ndr->depth++;
     362           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint8_t), "WCF_DECORATIONS", WCF_DECORATIONS, r);
     363           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint8_t), "WCF_INSTANCE", WCF_INSTANCE, r);
     364           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint8_t), "WCF_CLASS", WCF_CLASS, r);
     365           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint8_t), "WCF_CLASS_PART_INTERNAL", WCF_CLASS_PART_INTERNAL, r);
     366           0 :         ndr->depth--;
     367           0 : }
     368             : 
     369           0 : _PUBLIC_ enum ndr_err_code ndr_push_DEFAULT_FLAGS(struct ndr_push *ndr, int ndr_flags, uint8_t r)
     370             : {
     371           0 :         NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r));
     372           0 :         return NDR_ERR_SUCCESS;
     373             : }
     374             : 
     375           0 : _PUBLIC_ enum ndr_err_code ndr_pull_DEFAULT_FLAGS(struct ndr_pull *ndr, int ndr_flags, uint8_t *r)
     376             : {
     377             :         uint8_t v;
     378           0 :         NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &v));
     379           0 :         *r = v;
     380           0 :         return NDR_ERR_SUCCESS;
     381             : }
     382             : 
     383           0 : _PUBLIC_ void ndr_print_DEFAULT_FLAGS(struct ndr_print *ndr, const char *name, uint8_t r)
     384             : {
     385           0 :         ndr_print_uint8(ndr, name, r);
     386           0 :         ndr->depth++;
     387           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint8_t), "DEFAULT_FLAG_EMPTY", DEFAULT_FLAG_EMPTY, r);
     388           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint8_t), "DEFAULT_FLAG_INHERITED", DEFAULT_FLAG_INHERITED, r);
     389           0 :         ndr->depth--;
     390           0 : }
     391             : 
     392           0 : static enum ndr_err_code ndr_push_OpenNamespace(struct ndr_push *ndr, int flags, const struct OpenNamespace *r)
     393             : {
     394           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     395           0 :         if (flags & NDR_IN) {
     396           0 :                 if (r->in.pCtx == NULL) {
     397           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     398             :                 }
     399           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
     400           0 :                 NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strNamespace));
     401           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
     402           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
     403           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.ppWorkingNamespace));
     404           0 :                 if (r->in.ppWorkingNamespace) {
     405           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.ppWorkingNamespace));
     406           0 :                         if (*r->in.ppWorkingNamespace) {
     407           0 :                                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppWorkingNamespace));
     408             :                         }
     409             :                 }
     410           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.ppResult));
     411           0 :                 if (r->in.ppResult) {
     412           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.ppResult));
     413           0 :                         if (*r->in.ppResult) {
     414           0 :                                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppResult));
     415             :                         }
     416             :                 }
     417             :         }
     418           0 :         if (flags & NDR_OUT) {
     419           0 :                 if (r->out.ORPCthat == NULL) {
     420           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     421             :                 }
     422           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
     423           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.ppWorkingNamespace));
     424           0 :                 if (r->out.ppWorkingNamespace) {
     425           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppWorkingNamespace));
     426           0 :                         if (*r->out.ppWorkingNamespace) {
     427           0 :                                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppWorkingNamespace));
     428             :                         }
     429             :                 }
     430           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.ppResult));
     431           0 :                 if (r->out.ppResult) {
     432           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppResult));
     433           0 :                         if (*r->out.ppResult) {
     434           0 :                                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppResult));
     435             :                         }
     436             :                 }
     437           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
     438             :         }
     439           0 :         return NDR_ERR_SUCCESS;
     440             : }
     441             : 
     442           0 : static enum ndr_err_code ndr_pull_OpenNamespace(struct ndr_pull *ndr, int flags, struct OpenNamespace *r)
     443             : {
     444             :         uint32_t _ptr_ppWorkingNamespace;
     445             :         uint32_t _ptr_ppResult;
     446           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
     447           0 :         TALLOC_CTX *_mem_save_pCtx_0 = NULL;
     448           0 :         TALLOC_CTX *_mem_save_ppWorkingNamespace_0 = NULL;
     449           0 :         TALLOC_CTX *_mem_save_ppWorkingNamespace_1 = NULL;
     450           0 :         TALLOC_CTX *_mem_save_ppResult_0 = NULL;
     451           0 :         TALLOC_CTX *_mem_save_ppResult_1 = NULL;
     452           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     453           0 :         if (flags & NDR_IN) {
     454           0 :                 NDR_ZERO_STRUCT(r->out);
     455             : 
     456           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
     457           0 :                 NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strNamespace));
     458           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
     459           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     460           0 :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
     461             :                 }
     462           0 :                 _mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
     463           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
     464           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
     465           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
     466           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppWorkingNamespace));
     467           0 :                 if (_ptr_ppWorkingNamespace) {
     468           0 :                         NDR_PULL_ALLOC(ndr, r->in.ppWorkingNamespace);
     469             :                 } else {
     470           0 :                         r->in.ppWorkingNamespace = NULL;
     471             :                 }
     472           0 :                 if (r->in.ppWorkingNamespace) {
     473           0 :                         _mem_save_ppWorkingNamespace_0 = NDR_PULL_GET_MEM_CTX(ndr);
     474           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.ppWorkingNamespace, 0);
     475           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppWorkingNamespace));
     476           0 :                         if (_ptr_ppWorkingNamespace) {
     477           0 :                                 NDR_PULL_ALLOC(ndr, *r->in.ppWorkingNamespace);
     478             :                         } else {
     479           0 :                                 *r->in.ppWorkingNamespace = NULL;
     480             :                         }
     481           0 :                         if (*r->in.ppWorkingNamespace) {
     482           0 :                                 _mem_save_ppWorkingNamespace_1 = NDR_PULL_GET_MEM_CTX(ndr);
     483           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, *r->in.ppWorkingNamespace, 0);
     484           0 :                                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppWorkingNamespace));
     485           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppWorkingNamespace_1, 0);
     486             :                         }
     487           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppWorkingNamespace_0, 0);
     488             :                 }
     489           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppResult));
     490           0 :                 if (_ptr_ppResult) {
     491           0 :                         NDR_PULL_ALLOC(ndr, r->in.ppResult);
     492             :                 } else {
     493           0 :                         r->in.ppResult = NULL;
     494             :                 }
     495           0 :                 if (r->in.ppResult) {
     496           0 :                         _mem_save_ppResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
     497           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.ppResult, 0);
     498           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppResult));
     499           0 :                         if (_ptr_ppResult) {
     500           0 :                                 NDR_PULL_ALLOC(ndr, *r->in.ppResult);
     501             :                         } else {
     502           0 :                                 *r->in.ppResult = NULL;
     503             :                         }
     504           0 :                         if (*r->in.ppResult) {
     505           0 :                                 _mem_save_ppResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
     506           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, *r->in.ppResult, 0);
     507           0 :                                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppResult));
     508           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppResult_1, 0);
     509             :                         }
     510           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppResult_0, 0);
     511             :                 }
     512           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
     513           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
     514             :         }
     515           0 :         if (flags & NDR_OUT) {
     516             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     517             :                 if (r->in.pCtx == NULL) {
     518             :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
     519             :                         NDR_ZERO_STRUCTP(r->in.pCtx);
     520             :                 }
     521             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     522           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     523           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
     524             :                 }
     525           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
     526           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
     527           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
     528           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
     529           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppWorkingNamespace));
     530           0 :                 if (_ptr_ppWorkingNamespace) {
     531           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppWorkingNamespace);
     532             :                 } else {
     533           0 :                         r->out.ppWorkingNamespace = NULL;
     534             :                 }
     535           0 :                 if (r->out.ppWorkingNamespace) {
     536           0 :                         _mem_save_ppWorkingNamespace_0 = NDR_PULL_GET_MEM_CTX(ndr);
     537           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->out.ppWorkingNamespace, 0);
     538           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppWorkingNamespace));
     539           0 :                         if (_ptr_ppWorkingNamespace) {
     540           0 :                                 NDR_PULL_ALLOC(ndr, *r->out.ppWorkingNamespace);
     541             :                         } else {
     542           0 :                                 *r->out.ppWorkingNamespace = NULL;
     543             :                         }
     544           0 :                         if (*r->out.ppWorkingNamespace) {
     545           0 :                                 _mem_save_ppWorkingNamespace_1 = NDR_PULL_GET_MEM_CTX(ndr);
     546           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppWorkingNamespace, 0);
     547           0 :                                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppWorkingNamespace));
     548           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppWorkingNamespace_1, 0);
     549             :                         }
     550           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppWorkingNamespace_0, 0);
     551             :                 }
     552           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppResult));
     553           0 :                 if (_ptr_ppResult) {
     554           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppResult);
     555             :                 } else {
     556           0 :                         r->out.ppResult = NULL;
     557             :                 }
     558           0 :                 if (r->out.ppResult) {
     559           0 :                         _mem_save_ppResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
     560           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->out.ppResult, 0);
     561           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppResult));
     562           0 :                         if (_ptr_ppResult) {
     563           0 :                                 NDR_PULL_ALLOC(ndr, *r->out.ppResult);
     564             :                         } else {
     565           0 :                                 *r->out.ppResult = NULL;
     566             :                         }
     567           0 :                         if (*r->out.ppResult) {
     568           0 :                                 _mem_save_ppResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
     569           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppResult, 0);
     570           0 :                                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppResult));
     571           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppResult_1, 0);
     572             :                         }
     573           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppResult_0, 0);
     574             :                 }
     575           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
     576             :         }
     577           0 :         return NDR_ERR_SUCCESS;
     578             : }
     579             : 
     580           0 : _PUBLIC_ void ndr_print_OpenNamespace(struct ndr_print *ndr, const char *name, int flags, const struct OpenNamespace *r)
     581             : {
     582           0 :         ndr_print_struct(ndr, name, "OpenNamespace");
     583           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     584           0 :         ndr->depth++;
     585           0 :         if (flags & NDR_SET_VALUES) {
     586           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     587             :         }
     588           0 :         if (flags & NDR_IN) {
     589           0 :                 ndr_print_struct(ndr, "in", "OpenNamespace");
     590           0 :                 ndr->depth++;
     591           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
     592           0 :                 ndr_print_BSTR(ndr, "strNamespace", &r->in.strNamespace);
     593           0 :                 ndr_print_int32(ndr, "lFlags", r->in.lFlags);
     594           0 :                 ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
     595           0 :                 ndr->depth++;
     596           0 :                 ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
     597           0 :                 ndr->depth--;
     598           0 :                 ndr_print_ptr(ndr, "ppWorkingNamespace", r->in.ppWorkingNamespace);
     599           0 :                 ndr->depth++;
     600           0 :                 if (r->in.ppWorkingNamespace) {
     601           0 :                         ndr_print_ptr(ndr, "ppWorkingNamespace", *r->in.ppWorkingNamespace);
     602           0 :                         ndr->depth++;
     603           0 :                         if (*r->in.ppWorkingNamespace) {
     604           0 :                                 ndr_print_MInterfacePointer(ndr, "ppWorkingNamespace", *r->in.ppWorkingNamespace);
     605             :                         }
     606           0 :                         ndr->depth--;
     607             :                 }
     608           0 :                 ndr->depth--;
     609           0 :                 ndr_print_ptr(ndr, "ppResult", r->in.ppResult);
     610           0 :                 ndr->depth++;
     611           0 :                 if (r->in.ppResult) {
     612           0 :                         ndr_print_ptr(ndr, "ppResult", *r->in.ppResult);
     613           0 :                         ndr->depth++;
     614           0 :                         if (*r->in.ppResult) {
     615           0 :                                 ndr_print_MInterfacePointer(ndr, "ppResult", *r->in.ppResult);
     616             :                         }
     617           0 :                         ndr->depth--;
     618             :                 }
     619           0 :                 ndr->depth--;
     620           0 :                 ndr->depth--;
     621             :         }
     622           0 :         if (flags & NDR_OUT) {
     623           0 :                 ndr_print_struct(ndr, "out", "OpenNamespace");
     624           0 :                 ndr->depth++;
     625           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
     626           0 :                 ndr->depth++;
     627           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
     628           0 :                 ndr->depth--;
     629           0 :                 ndr_print_ptr(ndr, "ppWorkingNamespace", r->out.ppWorkingNamespace);
     630           0 :                 ndr->depth++;
     631           0 :                 if (r->out.ppWorkingNamespace) {
     632           0 :                         ndr_print_ptr(ndr, "ppWorkingNamespace", *r->out.ppWorkingNamespace);
     633           0 :                         ndr->depth++;
     634           0 :                         if (*r->out.ppWorkingNamespace) {
     635           0 :                                 ndr_print_MInterfacePointer(ndr, "ppWorkingNamespace", *r->out.ppWorkingNamespace);
     636             :                         }
     637           0 :                         ndr->depth--;
     638             :                 }
     639           0 :                 ndr->depth--;
     640           0 :                 ndr_print_ptr(ndr, "ppResult", r->out.ppResult);
     641           0 :                 ndr->depth++;
     642           0 :                 if (r->out.ppResult) {
     643           0 :                         ndr_print_ptr(ndr, "ppResult", *r->out.ppResult);
     644           0 :                         ndr->depth++;
     645           0 :                         if (*r->out.ppResult) {
     646           0 :                                 ndr_print_MInterfacePointer(ndr, "ppResult", *r->out.ppResult);
     647             :                         }
     648           0 :                         ndr->depth--;
     649             :                 }
     650           0 :                 ndr->depth--;
     651           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
     652           0 :                 ndr->depth--;
     653             :         }
     654           0 :         ndr->depth--;
     655             : }
     656             : 
     657           0 : static enum ndr_err_code ndr_push_CancelAsyncCall(struct ndr_push *ndr, int flags, const struct CancelAsyncCall *r)
     658             : {
     659           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     660           0 :         if (flags & NDR_IN) {
     661           0 :                 if (r->in.pSink == NULL) {
     662           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     663             :                 }
     664           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
     665           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pSink));
     666             :         }
     667           0 :         if (flags & NDR_OUT) {
     668           0 :                 if (r->out.ORPCthat == NULL) {
     669           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     670             :                 }
     671           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
     672           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
     673             :         }
     674           0 :         return NDR_ERR_SUCCESS;
     675             : }
     676             : 
     677           0 : static enum ndr_err_code ndr_pull_CancelAsyncCall(struct ndr_pull *ndr, int flags, struct CancelAsyncCall *r)
     678             : {
     679           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
     680           0 :         TALLOC_CTX *_mem_save_pSink_0 = NULL;
     681           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     682           0 :         if (flags & NDR_IN) {
     683           0 :                 NDR_ZERO_STRUCT(r->out);
     684             : 
     685           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
     686           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     687           0 :                         NDR_PULL_ALLOC(ndr, r->in.pSink);
     688             :                 }
     689           0 :                 _mem_save_pSink_0 = NDR_PULL_GET_MEM_CTX(ndr);
     690           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pSink, LIBNDR_FLAG_REF_ALLOC);
     691           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pSink));
     692           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pSink_0, LIBNDR_FLAG_REF_ALLOC);
     693           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
     694           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
     695             :         }
     696           0 :         if (flags & NDR_OUT) {
     697             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     698             :                 if (r->in.pSink == NULL) {
     699             :                         NDR_PULL_ALLOC(ndr, r->in.pSink);
     700             :                         NDR_ZERO_STRUCTP(r->in.pSink);
     701             :                 }
     702             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     703           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     704           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
     705             :                 }
     706           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
     707           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
     708           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
     709           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
     710           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
     711             :         }
     712           0 :         return NDR_ERR_SUCCESS;
     713             : }
     714             : 
     715           0 : _PUBLIC_ void ndr_print_CancelAsyncCall(struct ndr_print *ndr, const char *name, int flags, const struct CancelAsyncCall *r)
     716             : {
     717           0 :         ndr_print_struct(ndr, name, "CancelAsyncCall");
     718           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     719           0 :         ndr->depth++;
     720           0 :         if (flags & NDR_SET_VALUES) {
     721           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     722             :         }
     723           0 :         if (flags & NDR_IN) {
     724           0 :                 ndr_print_struct(ndr, "in", "CancelAsyncCall");
     725           0 :                 ndr->depth++;
     726           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
     727           0 :                 ndr_print_ptr(ndr, "pSink", r->in.pSink);
     728           0 :                 ndr->depth++;
     729           0 :                 ndr_print_MInterfacePointer(ndr, "pSink", r->in.pSink);
     730           0 :                 ndr->depth--;
     731           0 :                 ndr->depth--;
     732             :         }
     733           0 :         if (flags & NDR_OUT) {
     734           0 :                 ndr_print_struct(ndr, "out", "CancelAsyncCall");
     735           0 :                 ndr->depth++;
     736           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
     737           0 :                 ndr->depth++;
     738           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
     739           0 :                 ndr->depth--;
     740           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
     741           0 :                 ndr->depth--;
     742             :         }
     743           0 :         ndr->depth--;
     744             : }
     745             : 
     746           0 : static enum ndr_err_code ndr_push_QueryObjectSink(struct ndr_push *ndr, int flags, const struct QueryObjectSink *r)
     747             : {
     748           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     749           0 :         if (flags & NDR_IN) {
     750           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
     751           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
     752             :         }
     753           0 :         if (flags & NDR_OUT) {
     754           0 :                 if (r->out.ORPCthat == NULL) {
     755           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     756             :                 }
     757           0 :                 if (r->out.ppResponseHandler == NULL) {
     758           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     759             :                 }
     760           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
     761           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppResponseHandler));
     762           0 :                 if (*r->out.ppResponseHandler) {
     763           0 :                         NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppResponseHandler));
     764             :                 }
     765           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
     766             :         }
     767           0 :         return NDR_ERR_SUCCESS;
     768             : }
     769             : 
     770           0 : static enum ndr_err_code ndr_pull_QueryObjectSink(struct ndr_pull *ndr, int flags, struct QueryObjectSink *r)
     771             : {
     772             :         uint32_t _ptr_ppResponseHandler;
     773           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
     774           0 :         TALLOC_CTX *_mem_save_ppResponseHandler_0 = NULL;
     775           0 :         TALLOC_CTX *_mem_save_ppResponseHandler_1 = NULL;
     776           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     777           0 :         if (flags & NDR_IN) {
     778           0 :                 NDR_ZERO_STRUCT(r->out);
     779             : 
     780           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
     781           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
     782           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
     783           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
     784           0 :                 NDR_PULL_ALLOC(ndr, r->out.ppResponseHandler);
     785           0 :                 NDR_ZERO_STRUCTP(r->out.ppResponseHandler);
     786             :         }
     787           0 :         if (flags & NDR_OUT) {
     788             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     789             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     790           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     791           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
     792             :                 }
     793           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
     794           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
     795           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
     796           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
     797           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     798           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppResponseHandler);
     799             :                 }
     800           0 :                 _mem_save_ppResponseHandler_0 = NDR_PULL_GET_MEM_CTX(ndr);
     801           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ppResponseHandler, LIBNDR_FLAG_REF_ALLOC);
     802           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppResponseHandler));
     803           0 :                 if (_ptr_ppResponseHandler) {
     804           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ppResponseHandler);
     805             :                 } else {
     806           0 :                         *r->out.ppResponseHandler = NULL;
     807             :                 }
     808           0 :                 if (*r->out.ppResponseHandler) {
     809           0 :                         _mem_save_ppResponseHandler_1 = NDR_PULL_GET_MEM_CTX(ndr);
     810           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppResponseHandler, 0);
     811           0 :                         NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppResponseHandler));
     812           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppResponseHandler_1, 0);
     813             :                 }
     814           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppResponseHandler_0, LIBNDR_FLAG_REF_ALLOC);
     815           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
     816             :         }
     817           0 :         return NDR_ERR_SUCCESS;
     818             : }
     819             : 
     820           0 : _PUBLIC_ void ndr_print_QueryObjectSink(struct ndr_print *ndr, const char *name, int flags, const struct QueryObjectSink *r)
     821             : {
     822           0 :         ndr_print_struct(ndr, name, "QueryObjectSink");
     823           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     824           0 :         ndr->depth++;
     825           0 :         if (flags & NDR_SET_VALUES) {
     826           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     827             :         }
     828           0 :         if (flags & NDR_IN) {
     829           0 :                 ndr_print_struct(ndr, "in", "QueryObjectSink");
     830           0 :                 ndr->depth++;
     831           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
     832           0 :                 ndr_print_int32(ndr, "lFlags", r->in.lFlags);
     833           0 :                 ndr->depth--;
     834             :         }
     835           0 :         if (flags & NDR_OUT) {
     836           0 :                 ndr_print_struct(ndr, "out", "QueryObjectSink");
     837           0 :                 ndr->depth++;
     838           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
     839           0 :                 ndr->depth++;
     840           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
     841           0 :                 ndr->depth--;
     842           0 :                 ndr_print_ptr(ndr, "ppResponseHandler", r->out.ppResponseHandler);
     843           0 :                 ndr->depth++;
     844           0 :                 ndr_print_ptr(ndr, "ppResponseHandler", *r->out.ppResponseHandler);
     845           0 :                 ndr->depth++;
     846           0 :                 if (*r->out.ppResponseHandler) {
     847           0 :                         ndr_print_MInterfacePointer(ndr, "ppResponseHandler", *r->out.ppResponseHandler);
     848             :                 }
     849           0 :                 ndr->depth--;
     850           0 :                 ndr->depth--;
     851           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
     852           0 :                 ndr->depth--;
     853             :         }
     854           0 :         ndr->depth--;
     855             : }
     856             : 
     857           0 : static enum ndr_err_code ndr_push_GetObject(struct ndr_push *ndr, int flags, const struct GetObject *r)
     858             : {
     859           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     860           0 :         if (flags & NDR_IN) {
     861           0 :                 if (r->in.pCtx == NULL) {
     862           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     863             :                 }
     864           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
     865           0 :                 NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strObjectPath));
     866           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
     867           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
     868           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.ppObject));
     869           0 :                 if (r->in.ppObject) {
     870           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.ppObject));
     871           0 :                         if (*r->in.ppObject) {
     872           0 :                                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppObject));
     873             :                         }
     874             :                 }
     875           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.ppCallResult));
     876           0 :                 if (r->in.ppCallResult) {
     877           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.ppCallResult));
     878           0 :                         if (*r->in.ppCallResult) {
     879           0 :                                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppCallResult));
     880             :                         }
     881             :                 }
     882             :         }
     883           0 :         if (flags & NDR_OUT) {
     884           0 :                 if (r->out.ORPCthat == NULL) {
     885           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     886             :                 }
     887           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
     888           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.ppObject));
     889           0 :                 if (r->out.ppObject) {
     890           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppObject));
     891           0 :                         if (*r->out.ppObject) {
     892           0 :                                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppObject));
     893             :                         }
     894             :                 }
     895           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.ppCallResult));
     896           0 :                 if (r->out.ppCallResult) {
     897           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppCallResult));
     898           0 :                         if (*r->out.ppCallResult) {
     899           0 :                                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppCallResult));
     900             :                         }
     901             :                 }
     902           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
     903             :         }
     904           0 :         return NDR_ERR_SUCCESS;
     905             : }
     906             : 
     907           0 : static enum ndr_err_code ndr_pull_GetObject(struct ndr_pull *ndr, int flags, struct GetObject *r)
     908             : {
     909             :         uint32_t _ptr_ppObject;
     910             :         uint32_t _ptr_ppCallResult;
     911           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
     912           0 :         TALLOC_CTX *_mem_save_pCtx_0 = NULL;
     913           0 :         TALLOC_CTX *_mem_save_ppObject_0 = NULL;
     914           0 :         TALLOC_CTX *_mem_save_ppObject_1 = NULL;
     915           0 :         TALLOC_CTX *_mem_save_ppCallResult_0 = NULL;
     916           0 :         TALLOC_CTX *_mem_save_ppCallResult_1 = NULL;
     917           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     918           0 :         if (flags & NDR_IN) {
     919           0 :                 NDR_ZERO_STRUCT(r->out);
     920             : 
     921           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
     922           0 :                 NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strObjectPath));
     923           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
     924           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     925           0 :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
     926             :                 }
     927           0 :                 _mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
     928           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
     929           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
     930           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
     931           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppObject));
     932           0 :                 if (_ptr_ppObject) {
     933           0 :                         NDR_PULL_ALLOC(ndr, r->in.ppObject);
     934             :                 } else {
     935           0 :                         r->in.ppObject = NULL;
     936             :                 }
     937           0 :                 if (r->in.ppObject) {
     938           0 :                         _mem_save_ppObject_0 = NDR_PULL_GET_MEM_CTX(ndr);
     939           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.ppObject, 0);
     940           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppObject));
     941           0 :                         if (_ptr_ppObject) {
     942           0 :                                 NDR_PULL_ALLOC(ndr, *r->in.ppObject);
     943             :                         } else {
     944           0 :                                 *r->in.ppObject = NULL;
     945             :                         }
     946           0 :                         if (*r->in.ppObject) {
     947           0 :                                 _mem_save_ppObject_1 = NDR_PULL_GET_MEM_CTX(ndr);
     948           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, *r->in.ppObject, 0);
     949           0 :                                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppObject));
     950           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppObject_1, 0);
     951             :                         }
     952           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppObject_0, 0);
     953             :                 }
     954           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
     955           0 :                 if (_ptr_ppCallResult) {
     956           0 :                         NDR_PULL_ALLOC(ndr, r->in.ppCallResult);
     957             :                 } else {
     958           0 :                         r->in.ppCallResult = NULL;
     959             :                 }
     960           0 :                 if (r->in.ppCallResult) {
     961           0 :                         _mem_save_ppCallResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
     962           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.ppCallResult, 0);
     963           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
     964           0 :                         if (_ptr_ppCallResult) {
     965           0 :                                 NDR_PULL_ALLOC(ndr, *r->in.ppCallResult);
     966             :                         } else {
     967           0 :                                 *r->in.ppCallResult = NULL;
     968             :                         }
     969           0 :                         if (*r->in.ppCallResult) {
     970           0 :                                 _mem_save_ppCallResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
     971           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, *r->in.ppCallResult, 0);
     972           0 :                                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppCallResult));
     973           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_1, 0);
     974             :                         }
     975           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
     976             :                 }
     977           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
     978           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
     979             :         }
     980           0 :         if (flags & NDR_OUT) {
     981             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     982             :                 if (r->in.pCtx == NULL) {
     983             :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
     984             :                         NDR_ZERO_STRUCTP(r->in.pCtx);
     985             :                 }
     986             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     987           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     988           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
     989             :                 }
     990           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
     991           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
     992           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
     993           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
     994           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppObject));
     995           0 :                 if (_ptr_ppObject) {
     996           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppObject);
     997             :                 } else {
     998           0 :                         r->out.ppObject = NULL;
     999             :                 }
    1000           0 :                 if (r->out.ppObject) {
    1001           0 :                         _mem_save_ppObject_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1002           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->out.ppObject, 0);
    1003           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppObject));
    1004           0 :                         if (_ptr_ppObject) {
    1005           0 :                                 NDR_PULL_ALLOC(ndr, *r->out.ppObject);
    1006             :                         } else {
    1007           0 :                                 *r->out.ppObject = NULL;
    1008             :                         }
    1009           0 :                         if (*r->out.ppObject) {
    1010           0 :                                 _mem_save_ppObject_1 = NDR_PULL_GET_MEM_CTX(ndr);
    1011           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppObject, 0);
    1012           0 :                                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppObject));
    1013           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppObject_1, 0);
    1014             :                         }
    1015           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppObject_0, 0);
    1016             :                 }
    1017           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
    1018           0 :                 if (_ptr_ppCallResult) {
    1019           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppCallResult);
    1020             :                 } else {
    1021           0 :                         r->out.ppCallResult = NULL;
    1022             :                 }
    1023           0 :                 if (r->out.ppCallResult) {
    1024           0 :                         _mem_save_ppCallResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1025           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->out.ppCallResult, 0);
    1026           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
    1027           0 :                         if (_ptr_ppCallResult) {
    1028           0 :                                 NDR_PULL_ALLOC(ndr, *r->out.ppCallResult);
    1029             :                         } else {
    1030           0 :                                 *r->out.ppCallResult = NULL;
    1031             :                         }
    1032           0 :                         if (*r->out.ppCallResult) {
    1033           0 :                                 _mem_save_ppCallResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
    1034           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppCallResult, 0);
    1035           0 :                                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppCallResult));
    1036           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_1, 0);
    1037             :                         }
    1038           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
    1039             :                 }
    1040           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    1041             :         }
    1042           0 :         return NDR_ERR_SUCCESS;
    1043             : }
    1044             : 
    1045           0 : _PUBLIC_ void ndr_print_GetObject(struct ndr_print *ndr, const char *name, int flags, const struct GetObject *r)
    1046             : {
    1047           0 :         ndr_print_struct(ndr, name, "GetObject");
    1048           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1049           0 :         ndr->depth++;
    1050           0 :         if (flags & NDR_SET_VALUES) {
    1051           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    1052             :         }
    1053           0 :         if (flags & NDR_IN) {
    1054           0 :                 ndr_print_struct(ndr, "in", "GetObject");
    1055           0 :                 ndr->depth++;
    1056           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    1057           0 :                 ndr_print_BSTR(ndr, "strObjectPath", &r->in.strObjectPath);
    1058           0 :                 ndr_print_int32(ndr, "lFlags", r->in.lFlags);
    1059           0 :                 ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
    1060           0 :                 ndr->depth++;
    1061           0 :                 ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
    1062           0 :                 ndr->depth--;
    1063           0 :                 ndr_print_ptr(ndr, "ppObject", r->in.ppObject);
    1064           0 :                 ndr->depth++;
    1065           0 :                 if (r->in.ppObject) {
    1066           0 :                         ndr_print_ptr(ndr, "ppObject", *r->in.ppObject);
    1067           0 :                         ndr->depth++;
    1068           0 :                         if (*r->in.ppObject) {
    1069           0 :                                 ndr_print_MInterfacePointer(ndr, "ppObject", *r->in.ppObject);
    1070             :                         }
    1071           0 :                         ndr->depth--;
    1072             :                 }
    1073           0 :                 ndr->depth--;
    1074           0 :                 ndr_print_ptr(ndr, "ppCallResult", r->in.ppCallResult);
    1075           0 :                 ndr->depth++;
    1076           0 :                 if (r->in.ppCallResult) {
    1077           0 :                         ndr_print_ptr(ndr, "ppCallResult", *r->in.ppCallResult);
    1078           0 :                         ndr->depth++;
    1079           0 :                         if (*r->in.ppCallResult) {
    1080           0 :                                 ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->in.ppCallResult);
    1081             :                         }
    1082           0 :                         ndr->depth--;
    1083             :                 }
    1084           0 :                 ndr->depth--;
    1085           0 :                 ndr->depth--;
    1086             :         }
    1087           0 :         if (flags & NDR_OUT) {
    1088           0 :                 ndr_print_struct(ndr, "out", "GetObject");
    1089           0 :                 ndr->depth++;
    1090           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    1091           0 :                 ndr->depth++;
    1092           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    1093           0 :                 ndr->depth--;
    1094           0 :                 ndr_print_ptr(ndr, "ppObject", r->out.ppObject);
    1095           0 :                 ndr->depth++;
    1096           0 :                 if (r->out.ppObject) {
    1097           0 :                         ndr_print_ptr(ndr, "ppObject", *r->out.ppObject);
    1098           0 :                         ndr->depth++;
    1099           0 :                         if (*r->out.ppObject) {
    1100           0 :                                 ndr_print_MInterfacePointer(ndr, "ppObject", *r->out.ppObject);
    1101             :                         }
    1102           0 :                         ndr->depth--;
    1103             :                 }
    1104           0 :                 ndr->depth--;
    1105           0 :                 ndr_print_ptr(ndr, "ppCallResult", r->out.ppCallResult);
    1106           0 :                 ndr->depth++;
    1107           0 :                 if (r->out.ppCallResult) {
    1108           0 :                         ndr_print_ptr(ndr, "ppCallResult", *r->out.ppCallResult);
    1109           0 :                         ndr->depth++;
    1110           0 :                         if (*r->out.ppCallResult) {
    1111           0 :                                 ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->out.ppCallResult);
    1112             :                         }
    1113           0 :                         ndr->depth--;
    1114             :                 }
    1115           0 :                 ndr->depth--;
    1116           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    1117           0 :                 ndr->depth--;
    1118             :         }
    1119           0 :         ndr->depth--;
    1120             : }
    1121             : 
    1122           0 : static enum ndr_err_code ndr_push_GetObjectAsync(struct ndr_push *ndr, int flags, const struct GetObjectAsync *r)
    1123             : {
    1124           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1125           0 :         if (flags & NDR_IN) {
    1126           0 :                 if (r->in.pCtx == NULL) {
    1127           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1128             :                 }
    1129           0 :                 if (r->in.pResponseHandler == NULL) {
    1130           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1131             :                 }
    1132           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    1133           0 :                 NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strObjectPath));
    1134           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
    1135           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    1136           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
    1137             :         }
    1138           0 :         if (flags & NDR_OUT) {
    1139           0 :                 if (r->out.ORPCthat == NULL) {
    1140           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1141             :                 }
    1142           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    1143           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    1144             :         }
    1145           0 :         return NDR_ERR_SUCCESS;
    1146             : }
    1147             : 
    1148           0 : static enum ndr_err_code ndr_pull_GetObjectAsync(struct ndr_pull *ndr, int flags, struct GetObjectAsync *r)
    1149             : {
    1150           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    1151           0 :         TALLOC_CTX *_mem_save_pCtx_0 = NULL;
    1152           0 :         TALLOC_CTX *_mem_save_pResponseHandler_0 = NULL;
    1153           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    1154           0 :         if (flags & NDR_IN) {
    1155           0 :                 NDR_ZERO_STRUCT(r->out);
    1156             : 
    1157           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    1158           0 :                 NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strObjectPath));
    1159           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
    1160           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1161           0 :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    1162             :                 }
    1163           0 :                 _mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1164           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
    1165           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    1166           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
    1167           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1168           0 :                         NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
    1169             :                 }
    1170           0 :                 _mem_save_pResponseHandler_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1171           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pResponseHandler, LIBNDR_FLAG_REF_ALLOC);
    1172           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
    1173           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pResponseHandler_0, LIBNDR_FLAG_REF_ALLOC);
    1174           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    1175           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    1176             :         }
    1177           0 :         if (flags & NDR_OUT) {
    1178             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    1179             :                 if (r->in.pCtx == NULL) {
    1180             :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    1181             :                         NDR_ZERO_STRUCTP(r->in.pCtx);
    1182             :                 }
    1183             :                 if (r->in.pResponseHandler == NULL) {
    1184             :                         NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
    1185             :                         NDR_ZERO_STRUCTP(r->in.pResponseHandler);
    1186             :                 }
    1187             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    1188           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1189           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    1190             :                 }
    1191           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1192           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    1193           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    1194           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    1195           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    1196             :         }
    1197           0 :         return NDR_ERR_SUCCESS;
    1198             : }
    1199             : 
    1200           0 : _PUBLIC_ void ndr_print_GetObjectAsync(struct ndr_print *ndr, const char *name, int flags, const struct GetObjectAsync *r)
    1201             : {
    1202           0 :         ndr_print_struct(ndr, name, "GetObjectAsync");
    1203           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1204           0 :         ndr->depth++;
    1205           0 :         if (flags & NDR_SET_VALUES) {
    1206           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    1207             :         }
    1208           0 :         if (flags & NDR_IN) {
    1209           0 :                 ndr_print_struct(ndr, "in", "GetObjectAsync");
    1210           0 :                 ndr->depth++;
    1211           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    1212           0 :                 ndr_print_BSTR(ndr, "strObjectPath", &r->in.strObjectPath);
    1213           0 :                 ndr_print_int32(ndr, "lFlags", r->in.lFlags);
    1214           0 :                 ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
    1215           0 :                 ndr->depth++;
    1216           0 :                 ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
    1217           0 :                 ndr->depth--;
    1218           0 :                 ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
    1219           0 :                 ndr->depth++;
    1220           0 :                 ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
    1221           0 :                 ndr->depth--;
    1222           0 :                 ndr->depth--;
    1223             :         }
    1224           0 :         if (flags & NDR_OUT) {
    1225           0 :                 ndr_print_struct(ndr, "out", "GetObjectAsync");
    1226           0 :                 ndr->depth++;
    1227           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    1228           0 :                 ndr->depth++;
    1229           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    1230           0 :                 ndr->depth--;
    1231           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    1232           0 :                 ndr->depth--;
    1233             :         }
    1234           0 :         ndr->depth--;
    1235             : }
    1236             : 
    1237           0 : static enum ndr_err_code ndr_push_PutClass(struct ndr_push *ndr, int flags, const struct PutClass *r)
    1238             : {
    1239           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1240           0 :         if (flags & NDR_IN) {
    1241           0 :                 if (r->in.pObject == NULL) {
    1242           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1243             :                 }
    1244           0 :                 if (r->in.pCtx == NULL) {
    1245           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1246             :                 }
    1247           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    1248           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pObject));
    1249           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
    1250           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    1251           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.ppCallResult));
    1252           0 :                 if (r->in.ppCallResult) {
    1253           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.ppCallResult));
    1254           0 :                         if (*r->in.ppCallResult) {
    1255           0 :                                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppCallResult));
    1256             :                         }
    1257             :                 }
    1258             :         }
    1259           0 :         if (flags & NDR_OUT) {
    1260           0 :                 if (r->out.ORPCthat == NULL) {
    1261           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1262             :                 }
    1263           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    1264           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.ppCallResult));
    1265           0 :                 if (r->out.ppCallResult) {
    1266           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppCallResult));
    1267           0 :                         if (*r->out.ppCallResult) {
    1268           0 :                                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppCallResult));
    1269             :                         }
    1270             :                 }
    1271           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    1272             :         }
    1273           0 :         return NDR_ERR_SUCCESS;
    1274             : }
    1275             : 
    1276           0 : static enum ndr_err_code ndr_pull_PutClass(struct ndr_pull *ndr, int flags, struct PutClass *r)
    1277             : {
    1278             :         uint32_t _ptr_ppCallResult;
    1279           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    1280           0 :         TALLOC_CTX *_mem_save_pObject_0 = NULL;
    1281           0 :         TALLOC_CTX *_mem_save_pCtx_0 = NULL;
    1282           0 :         TALLOC_CTX *_mem_save_ppCallResult_0 = NULL;
    1283           0 :         TALLOC_CTX *_mem_save_ppCallResult_1 = NULL;
    1284           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    1285           0 :         if (flags & NDR_IN) {
    1286           0 :                 NDR_ZERO_STRUCT(r->out);
    1287             : 
    1288           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    1289           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1290           0 :                         NDR_PULL_ALLOC(ndr, r->in.pObject);
    1291             :                 }
    1292           0 :                 _mem_save_pObject_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1293           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pObject, LIBNDR_FLAG_REF_ALLOC);
    1294           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pObject));
    1295           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pObject_0, LIBNDR_FLAG_REF_ALLOC);
    1296           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
    1297           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1298           0 :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    1299             :                 }
    1300           0 :                 _mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1301           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
    1302           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    1303           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
    1304           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
    1305           0 :                 if (_ptr_ppCallResult) {
    1306           0 :                         NDR_PULL_ALLOC(ndr, r->in.ppCallResult);
    1307             :                 } else {
    1308           0 :                         r->in.ppCallResult = NULL;
    1309             :                 }
    1310           0 :                 if (r->in.ppCallResult) {
    1311           0 :                         _mem_save_ppCallResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1312           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.ppCallResult, 0);
    1313           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
    1314           0 :                         if (_ptr_ppCallResult) {
    1315           0 :                                 NDR_PULL_ALLOC(ndr, *r->in.ppCallResult);
    1316             :                         } else {
    1317           0 :                                 *r->in.ppCallResult = NULL;
    1318             :                         }
    1319           0 :                         if (*r->in.ppCallResult) {
    1320           0 :                                 _mem_save_ppCallResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
    1321           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, *r->in.ppCallResult, 0);
    1322           0 :                                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppCallResult));
    1323           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_1, 0);
    1324             :                         }
    1325           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
    1326             :                 }
    1327           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    1328           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    1329             :         }
    1330           0 :         if (flags & NDR_OUT) {
    1331             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    1332             :                 if (r->in.pObject == NULL) {
    1333             :                         NDR_PULL_ALLOC(ndr, r->in.pObject);
    1334             :                         NDR_ZERO_STRUCTP(r->in.pObject);
    1335             :                 }
    1336             :                 if (r->in.pCtx == NULL) {
    1337             :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    1338             :                         NDR_ZERO_STRUCTP(r->in.pCtx);
    1339             :                 }
    1340             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    1341           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1342           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    1343             :                 }
    1344           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1345           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    1346           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    1347           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    1348           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
    1349           0 :                 if (_ptr_ppCallResult) {
    1350           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppCallResult);
    1351             :                 } else {
    1352           0 :                         r->out.ppCallResult = NULL;
    1353             :                 }
    1354           0 :                 if (r->out.ppCallResult) {
    1355           0 :                         _mem_save_ppCallResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1356           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->out.ppCallResult, 0);
    1357           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
    1358           0 :                         if (_ptr_ppCallResult) {
    1359           0 :                                 NDR_PULL_ALLOC(ndr, *r->out.ppCallResult);
    1360             :                         } else {
    1361           0 :                                 *r->out.ppCallResult = NULL;
    1362             :                         }
    1363           0 :                         if (*r->out.ppCallResult) {
    1364           0 :                                 _mem_save_ppCallResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
    1365           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppCallResult, 0);
    1366           0 :                                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppCallResult));
    1367           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_1, 0);
    1368             :                         }
    1369           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
    1370             :                 }
    1371           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    1372             :         }
    1373           0 :         return NDR_ERR_SUCCESS;
    1374             : }
    1375             : 
    1376           0 : _PUBLIC_ void ndr_print_PutClass(struct ndr_print *ndr, const char *name, int flags, const struct PutClass *r)
    1377             : {
    1378           0 :         ndr_print_struct(ndr, name, "PutClass");
    1379           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1380           0 :         ndr->depth++;
    1381           0 :         if (flags & NDR_SET_VALUES) {
    1382           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    1383             :         }
    1384           0 :         if (flags & NDR_IN) {
    1385           0 :                 ndr_print_struct(ndr, "in", "PutClass");
    1386           0 :                 ndr->depth++;
    1387           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    1388           0 :                 ndr_print_ptr(ndr, "pObject", r->in.pObject);
    1389           0 :                 ndr->depth++;
    1390           0 :                 ndr_print_MInterfacePointer(ndr, "pObject", r->in.pObject);
    1391           0 :                 ndr->depth--;
    1392           0 :                 ndr_print_int32(ndr, "lFlags", r->in.lFlags);
    1393           0 :                 ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
    1394           0 :                 ndr->depth++;
    1395           0 :                 ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
    1396           0 :                 ndr->depth--;
    1397           0 :                 ndr_print_ptr(ndr, "ppCallResult", r->in.ppCallResult);
    1398           0 :                 ndr->depth++;
    1399           0 :                 if (r->in.ppCallResult) {
    1400           0 :                         ndr_print_ptr(ndr, "ppCallResult", *r->in.ppCallResult);
    1401           0 :                         ndr->depth++;
    1402           0 :                         if (*r->in.ppCallResult) {
    1403           0 :                                 ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->in.ppCallResult);
    1404             :                         }
    1405           0 :                         ndr->depth--;
    1406             :                 }
    1407           0 :                 ndr->depth--;
    1408           0 :                 ndr->depth--;
    1409             :         }
    1410           0 :         if (flags & NDR_OUT) {
    1411           0 :                 ndr_print_struct(ndr, "out", "PutClass");
    1412           0 :                 ndr->depth++;
    1413           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    1414           0 :                 ndr->depth++;
    1415           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    1416           0 :                 ndr->depth--;
    1417           0 :                 ndr_print_ptr(ndr, "ppCallResult", r->out.ppCallResult);
    1418           0 :                 ndr->depth++;
    1419           0 :                 if (r->out.ppCallResult) {
    1420           0 :                         ndr_print_ptr(ndr, "ppCallResult", *r->out.ppCallResult);
    1421           0 :                         ndr->depth++;
    1422           0 :                         if (*r->out.ppCallResult) {
    1423           0 :                                 ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->out.ppCallResult);
    1424             :                         }
    1425           0 :                         ndr->depth--;
    1426             :                 }
    1427           0 :                 ndr->depth--;
    1428           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    1429           0 :                 ndr->depth--;
    1430             :         }
    1431           0 :         ndr->depth--;
    1432             : }
    1433             : 
    1434           0 : static enum ndr_err_code ndr_push_PutClassAsync(struct ndr_push *ndr, int flags, const struct PutClassAsync *r)
    1435             : {
    1436           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1437           0 :         if (flags & NDR_IN) {
    1438           0 :                 if (r->in.pObject == NULL) {
    1439           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1440             :                 }
    1441           0 :                 if (r->in.pCtx == NULL) {
    1442           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1443             :                 }
    1444           0 :                 if (r->in.pResponseHandler == NULL) {
    1445           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1446             :                 }
    1447           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    1448           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pObject));
    1449           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
    1450           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    1451           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
    1452             :         }
    1453           0 :         if (flags & NDR_OUT) {
    1454           0 :                 if (r->out.ORPCthat == NULL) {
    1455           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1456             :                 }
    1457           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    1458           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    1459             :         }
    1460           0 :         return NDR_ERR_SUCCESS;
    1461             : }
    1462             : 
    1463           0 : static enum ndr_err_code ndr_pull_PutClassAsync(struct ndr_pull *ndr, int flags, struct PutClassAsync *r)
    1464             : {
    1465           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    1466           0 :         TALLOC_CTX *_mem_save_pObject_0 = NULL;
    1467           0 :         TALLOC_CTX *_mem_save_pCtx_0 = NULL;
    1468           0 :         TALLOC_CTX *_mem_save_pResponseHandler_0 = NULL;
    1469           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    1470           0 :         if (flags & NDR_IN) {
    1471           0 :                 NDR_ZERO_STRUCT(r->out);
    1472             : 
    1473           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    1474           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1475           0 :                         NDR_PULL_ALLOC(ndr, r->in.pObject);
    1476             :                 }
    1477           0 :                 _mem_save_pObject_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1478           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pObject, LIBNDR_FLAG_REF_ALLOC);
    1479           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pObject));
    1480           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pObject_0, LIBNDR_FLAG_REF_ALLOC);
    1481           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
    1482           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1483           0 :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    1484             :                 }
    1485           0 :                 _mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1486           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
    1487           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    1488           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
    1489           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1490           0 :                         NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
    1491             :                 }
    1492           0 :                 _mem_save_pResponseHandler_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1493           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pResponseHandler, LIBNDR_FLAG_REF_ALLOC);
    1494           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
    1495           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pResponseHandler_0, LIBNDR_FLAG_REF_ALLOC);
    1496           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    1497           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    1498             :         }
    1499           0 :         if (flags & NDR_OUT) {
    1500             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    1501             :                 if (r->in.pObject == NULL) {
    1502             :                         NDR_PULL_ALLOC(ndr, r->in.pObject);
    1503             :                         NDR_ZERO_STRUCTP(r->in.pObject);
    1504             :                 }
    1505             :                 if (r->in.pCtx == NULL) {
    1506             :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    1507             :                         NDR_ZERO_STRUCTP(r->in.pCtx);
    1508             :                 }
    1509             :                 if (r->in.pResponseHandler == NULL) {
    1510             :                         NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
    1511             :                         NDR_ZERO_STRUCTP(r->in.pResponseHandler);
    1512             :                 }
    1513             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    1514           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1515           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    1516             :                 }
    1517           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1518           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    1519           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    1520           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    1521           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    1522             :         }
    1523           0 :         return NDR_ERR_SUCCESS;
    1524             : }
    1525             : 
    1526           0 : _PUBLIC_ void ndr_print_PutClassAsync(struct ndr_print *ndr, const char *name, int flags, const struct PutClassAsync *r)
    1527             : {
    1528           0 :         ndr_print_struct(ndr, name, "PutClassAsync");
    1529           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1530           0 :         ndr->depth++;
    1531           0 :         if (flags & NDR_SET_VALUES) {
    1532           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    1533             :         }
    1534           0 :         if (flags & NDR_IN) {
    1535           0 :                 ndr_print_struct(ndr, "in", "PutClassAsync");
    1536           0 :                 ndr->depth++;
    1537           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    1538           0 :                 ndr_print_ptr(ndr, "pObject", r->in.pObject);
    1539           0 :                 ndr->depth++;
    1540           0 :                 ndr_print_MInterfacePointer(ndr, "pObject", r->in.pObject);
    1541           0 :                 ndr->depth--;
    1542           0 :                 ndr_print_int32(ndr, "lFlags", r->in.lFlags);
    1543           0 :                 ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
    1544           0 :                 ndr->depth++;
    1545           0 :                 ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
    1546           0 :                 ndr->depth--;
    1547           0 :                 ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
    1548           0 :                 ndr->depth++;
    1549           0 :                 ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
    1550           0 :                 ndr->depth--;
    1551           0 :                 ndr->depth--;
    1552             :         }
    1553           0 :         if (flags & NDR_OUT) {
    1554           0 :                 ndr_print_struct(ndr, "out", "PutClassAsync");
    1555           0 :                 ndr->depth++;
    1556           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    1557           0 :                 ndr->depth++;
    1558           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    1559           0 :                 ndr->depth--;
    1560           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    1561           0 :                 ndr->depth--;
    1562             :         }
    1563           0 :         ndr->depth--;
    1564             : }
    1565             : 
    1566           0 : static enum ndr_err_code ndr_push_DeleteClass(struct ndr_push *ndr, int flags, const struct DeleteClass *r)
    1567             : {
    1568           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1569           0 :         if (flags & NDR_IN) {
    1570           0 :                 if (r->in.pCtx == NULL) {
    1571           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1572             :                 }
    1573           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    1574           0 :                 NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strClass));
    1575           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
    1576           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    1577           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.ppCallResult));
    1578           0 :                 if (r->in.ppCallResult) {
    1579           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.ppCallResult));
    1580           0 :                         if (*r->in.ppCallResult) {
    1581           0 :                                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppCallResult));
    1582             :                         }
    1583             :                 }
    1584             :         }
    1585           0 :         if (flags & NDR_OUT) {
    1586           0 :                 if (r->out.ORPCthat == NULL) {
    1587           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1588             :                 }
    1589           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    1590           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.ppCallResult));
    1591           0 :                 if (r->out.ppCallResult) {
    1592           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppCallResult));
    1593           0 :                         if (*r->out.ppCallResult) {
    1594           0 :                                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppCallResult));
    1595             :                         }
    1596             :                 }
    1597           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    1598             :         }
    1599           0 :         return NDR_ERR_SUCCESS;
    1600             : }
    1601             : 
    1602           0 : static enum ndr_err_code ndr_pull_DeleteClass(struct ndr_pull *ndr, int flags, struct DeleteClass *r)
    1603             : {
    1604             :         uint32_t _ptr_ppCallResult;
    1605           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    1606           0 :         TALLOC_CTX *_mem_save_pCtx_0 = NULL;
    1607           0 :         TALLOC_CTX *_mem_save_ppCallResult_0 = NULL;
    1608           0 :         TALLOC_CTX *_mem_save_ppCallResult_1 = NULL;
    1609           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    1610           0 :         if (flags & NDR_IN) {
    1611           0 :                 NDR_ZERO_STRUCT(r->out);
    1612             : 
    1613           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    1614           0 :                 NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strClass));
    1615           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
    1616           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1617           0 :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    1618             :                 }
    1619           0 :                 _mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1620           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
    1621           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    1622           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
    1623           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
    1624           0 :                 if (_ptr_ppCallResult) {
    1625           0 :                         NDR_PULL_ALLOC(ndr, r->in.ppCallResult);
    1626             :                 } else {
    1627           0 :                         r->in.ppCallResult = NULL;
    1628             :                 }
    1629           0 :                 if (r->in.ppCallResult) {
    1630           0 :                         _mem_save_ppCallResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1631           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.ppCallResult, 0);
    1632           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
    1633           0 :                         if (_ptr_ppCallResult) {
    1634           0 :                                 NDR_PULL_ALLOC(ndr, *r->in.ppCallResult);
    1635             :                         } else {
    1636           0 :                                 *r->in.ppCallResult = NULL;
    1637             :                         }
    1638           0 :                         if (*r->in.ppCallResult) {
    1639           0 :                                 _mem_save_ppCallResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
    1640           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, *r->in.ppCallResult, 0);
    1641           0 :                                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppCallResult));
    1642           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_1, 0);
    1643             :                         }
    1644           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
    1645             :                 }
    1646           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    1647           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    1648             :         }
    1649           0 :         if (flags & NDR_OUT) {
    1650             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    1651             :                 if (r->in.pCtx == NULL) {
    1652             :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    1653             :                         NDR_ZERO_STRUCTP(r->in.pCtx);
    1654             :                 }
    1655             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    1656           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1657           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    1658             :                 }
    1659           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1660           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    1661           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    1662           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    1663           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
    1664           0 :                 if (_ptr_ppCallResult) {
    1665           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppCallResult);
    1666             :                 } else {
    1667           0 :                         r->out.ppCallResult = NULL;
    1668             :                 }
    1669           0 :                 if (r->out.ppCallResult) {
    1670           0 :                         _mem_save_ppCallResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1671           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->out.ppCallResult, 0);
    1672           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
    1673           0 :                         if (_ptr_ppCallResult) {
    1674           0 :                                 NDR_PULL_ALLOC(ndr, *r->out.ppCallResult);
    1675             :                         } else {
    1676           0 :                                 *r->out.ppCallResult = NULL;
    1677             :                         }
    1678           0 :                         if (*r->out.ppCallResult) {
    1679           0 :                                 _mem_save_ppCallResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
    1680           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppCallResult, 0);
    1681           0 :                                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppCallResult));
    1682           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_1, 0);
    1683             :                         }
    1684           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
    1685             :                 }
    1686           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    1687             :         }
    1688           0 :         return NDR_ERR_SUCCESS;
    1689             : }
    1690             : 
    1691           0 : _PUBLIC_ void ndr_print_DeleteClass(struct ndr_print *ndr, const char *name, int flags, const struct DeleteClass *r)
    1692             : {
    1693           0 :         ndr_print_struct(ndr, name, "DeleteClass");
    1694           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1695           0 :         ndr->depth++;
    1696           0 :         if (flags & NDR_SET_VALUES) {
    1697           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    1698             :         }
    1699           0 :         if (flags & NDR_IN) {
    1700           0 :                 ndr_print_struct(ndr, "in", "DeleteClass");
    1701           0 :                 ndr->depth++;
    1702           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    1703           0 :                 ndr_print_BSTR(ndr, "strClass", &r->in.strClass);
    1704           0 :                 ndr_print_int32(ndr, "lFlags", r->in.lFlags);
    1705           0 :                 ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
    1706           0 :                 ndr->depth++;
    1707           0 :                 ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
    1708           0 :                 ndr->depth--;
    1709           0 :                 ndr_print_ptr(ndr, "ppCallResult", r->in.ppCallResult);
    1710           0 :                 ndr->depth++;
    1711           0 :                 if (r->in.ppCallResult) {
    1712           0 :                         ndr_print_ptr(ndr, "ppCallResult", *r->in.ppCallResult);
    1713           0 :                         ndr->depth++;
    1714           0 :                         if (*r->in.ppCallResult) {
    1715           0 :                                 ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->in.ppCallResult);
    1716             :                         }
    1717           0 :                         ndr->depth--;
    1718             :                 }
    1719           0 :                 ndr->depth--;
    1720           0 :                 ndr->depth--;
    1721             :         }
    1722           0 :         if (flags & NDR_OUT) {
    1723           0 :                 ndr_print_struct(ndr, "out", "DeleteClass");
    1724           0 :                 ndr->depth++;
    1725           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    1726           0 :                 ndr->depth++;
    1727           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    1728           0 :                 ndr->depth--;
    1729           0 :                 ndr_print_ptr(ndr, "ppCallResult", r->out.ppCallResult);
    1730           0 :                 ndr->depth++;
    1731           0 :                 if (r->out.ppCallResult) {
    1732           0 :                         ndr_print_ptr(ndr, "ppCallResult", *r->out.ppCallResult);
    1733           0 :                         ndr->depth++;
    1734           0 :                         if (*r->out.ppCallResult) {
    1735           0 :                                 ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->out.ppCallResult);
    1736             :                         }
    1737           0 :                         ndr->depth--;
    1738             :                 }
    1739           0 :                 ndr->depth--;
    1740           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    1741           0 :                 ndr->depth--;
    1742             :         }
    1743           0 :         ndr->depth--;
    1744             : }
    1745             : 
    1746           0 : static enum ndr_err_code ndr_push_DeleteClassAsync(struct ndr_push *ndr, int flags, const struct DeleteClassAsync *r)
    1747             : {
    1748           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1749           0 :         if (flags & NDR_IN) {
    1750           0 :                 if (r->in.pCtx == NULL) {
    1751           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1752             :                 }
    1753           0 :                 if (r->in.pResponseHandler == NULL) {
    1754           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1755             :                 }
    1756           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    1757           0 :                 NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strClass));
    1758           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
    1759           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    1760           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
    1761             :         }
    1762           0 :         if (flags & NDR_OUT) {
    1763           0 :                 if (r->out.ORPCthat == NULL) {
    1764           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1765             :                 }
    1766           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    1767           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    1768             :         }
    1769           0 :         return NDR_ERR_SUCCESS;
    1770             : }
    1771             : 
    1772           0 : static enum ndr_err_code ndr_pull_DeleteClassAsync(struct ndr_pull *ndr, int flags, struct DeleteClassAsync *r)
    1773             : {
    1774           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    1775           0 :         TALLOC_CTX *_mem_save_pCtx_0 = NULL;
    1776           0 :         TALLOC_CTX *_mem_save_pResponseHandler_0 = NULL;
    1777           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    1778           0 :         if (flags & NDR_IN) {
    1779           0 :                 NDR_ZERO_STRUCT(r->out);
    1780             : 
    1781           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    1782           0 :                 NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strClass));
    1783           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
    1784           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1785           0 :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    1786             :                 }
    1787           0 :                 _mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1788           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
    1789           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    1790           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
    1791           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1792           0 :                         NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
    1793             :                 }
    1794           0 :                 _mem_save_pResponseHandler_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1795           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pResponseHandler, LIBNDR_FLAG_REF_ALLOC);
    1796           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
    1797           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pResponseHandler_0, LIBNDR_FLAG_REF_ALLOC);
    1798           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    1799           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    1800             :         }
    1801           0 :         if (flags & NDR_OUT) {
    1802             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    1803             :                 if (r->in.pCtx == NULL) {
    1804             :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    1805             :                         NDR_ZERO_STRUCTP(r->in.pCtx);
    1806             :                 }
    1807             :                 if (r->in.pResponseHandler == NULL) {
    1808             :                         NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
    1809             :                         NDR_ZERO_STRUCTP(r->in.pResponseHandler);
    1810             :                 }
    1811             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    1812           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1813           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    1814             :                 }
    1815           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1816           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    1817           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    1818           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    1819           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    1820             :         }
    1821           0 :         return NDR_ERR_SUCCESS;
    1822             : }
    1823             : 
    1824           0 : _PUBLIC_ void ndr_print_DeleteClassAsync(struct ndr_print *ndr, const char *name, int flags, const struct DeleteClassAsync *r)
    1825             : {
    1826           0 :         ndr_print_struct(ndr, name, "DeleteClassAsync");
    1827           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1828           0 :         ndr->depth++;
    1829           0 :         if (flags & NDR_SET_VALUES) {
    1830           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    1831             :         }
    1832           0 :         if (flags & NDR_IN) {
    1833           0 :                 ndr_print_struct(ndr, "in", "DeleteClassAsync");
    1834           0 :                 ndr->depth++;
    1835           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    1836           0 :                 ndr_print_BSTR(ndr, "strClass", &r->in.strClass);
    1837           0 :                 ndr_print_int32(ndr, "lFlags", r->in.lFlags);
    1838           0 :                 ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
    1839           0 :                 ndr->depth++;
    1840           0 :                 ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
    1841           0 :                 ndr->depth--;
    1842           0 :                 ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
    1843           0 :                 ndr->depth++;
    1844           0 :                 ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
    1845           0 :                 ndr->depth--;
    1846           0 :                 ndr->depth--;
    1847             :         }
    1848           0 :         if (flags & NDR_OUT) {
    1849           0 :                 ndr_print_struct(ndr, "out", "DeleteClassAsync");
    1850           0 :                 ndr->depth++;
    1851           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    1852           0 :                 ndr->depth++;
    1853           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    1854           0 :                 ndr->depth--;
    1855           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    1856           0 :                 ndr->depth--;
    1857             :         }
    1858           0 :         ndr->depth--;
    1859             : }
    1860             : 
    1861           0 : static enum ndr_err_code ndr_push_CreateClassEnum(struct ndr_push *ndr, int flags, const struct CreateClassEnum *r)
    1862             : {
    1863           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1864           0 :         if (flags & NDR_IN) {
    1865           0 :                 if (r->in.pCtx == NULL) {
    1866           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1867             :                 }
    1868           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    1869           0 :                 NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strSuperclass));
    1870           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
    1871           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    1872             :         }
    1873           0 :         if (flags & NDR_OUT) {
    1874           0 :                 if (r->out.ORPCthat == NULL) {
    1875           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1876             :                 }
    1877           0 :                 if (r->out.ppEnum == NULL) {
    1878           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1879             :                 }
    1880           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    1881           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppEnum));
    1882           0 :                 if (*r->out.ppEnum) {
    1883           0 :                         NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
    1884             :                 }
    1885           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    1886             :         }
    1887           0 :         return NDR_ERR_SUCCESS;
    1888             : }
    1889             : 
    1890           0 : static enum ndr_err_code ndr_pull_CreateClassEnum(struct ndr_pull *ndr, int flags, struct CreateClassEnum *r)
    1891             : {
    1892             :         uint32_t _ptr_ppEnum;
    1893           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    1894           0 :         TALLOC_CTX *_mem_save_pCtx_0 = NULL;
    1895           0 :         TALLOC_CTX *_mem_save_ppEnum_0 = NULL;
    1896           0 :         TALLOC_CTX *_mem_save_ppEnum_1 = NULL;
    1897           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    1898           0 :         if (flags & NDR_IN) {
    1899           0 :                 NDR_ZERO_STRUCT(r->out);
    1900             : 
    1901           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    1902           0 :                 NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strSuperclass));
    1903           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
    1904           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1905           0 :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    1906             :                 }
    1907           0 :                 _mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1908           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
    1909           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    1910           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
    1911           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    1912           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    1913           0 :                 NDR_PULL_ALLOC(ndr, r->out.ppEnum);
    1914           0 :                 NDR_ZERO_STRUCTP(r->out.ppEnum);
    1915             :         }
    1916           0 :         if (flags & NDR_OUT) {
    1917             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    1918             :                 if (r->in.pCtx == NULL) {
    1919             :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    1920             :                         NDR_ZERO_STRUCTP(r->in.pCtx);
    1921             :                 }
    1922             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    1923           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1924           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    1925             :                 }
    1926           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1927           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    1928           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    1929           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    1930           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1931           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppEnum);
    1932             :                 }
    1933           0 :                 _mem_save_ppEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1934           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ppEnum, LIBNDR_FLAG_REF_ALLOC);
    1935           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppEnum));
    1936           0 :                 if (_ptr_ppEnum) {
    1937           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ppEnum);
    1938             :                 } else {
    1939           0 :                         *r->out.ppEnum = NULL;
    1940             :                 }
    1941           0 :                 if (*r->out.ppEnum) {
    1942           0 :                         _mem_save_ppEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
    1943           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppEnum, 0);
    1944           0 :                         NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
    1945           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_1, 0);
    1946             :                 }
    1947           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_0, LIBNDR_FLAG_REF_ALLOC);
    1948           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    1949             :         }
    1950           0 :         return NDR_ERR_SUCCESS;
    1951             : }
    1952             : 
    1953           0 : _PUBLIC_ void ndr_print_CreateClassEnum(struct ndr_print *ndr, const char *name, int flags, const struct CreateClassEnum *r)
    1954             : {
    1955           0 :         ndr_print_struct(ndr, name, "CreateClassEnum");
    1956           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1957           0 :         ndr->depth++;
    1958           0 :         if (flags & NDR_SET_VALUES) {
    1959           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    1960             :         }
    1961           0 :         if (flags & NDR_IN) {
    1962           0 :                 ndr_print_struct(ndr, "in", "CreateClassEnum");
    1963           0 :                 ndr->depth++;
    1964           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    1965           0 :                 ndr_print_BSTR(ndr, "strSuperclass", &r->in.strSuperclass);
    1966           0 :                 ndr_print_int32(ndr, "lFlags", r->in.lFlags);
    1967           0 :                 ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
    1968           0 :                 ndr->depth++;
    1969           0 :                 ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
    1970           0 :                 ndr->depth--;
    1971           0 :                 ndr->depth--;
    1972             :         }
    1973           0 :         if (flags & NDR_OUT) {
    1974           0 :                 ndr_print_struct(ndr, "out", "CreateClassEnum");
    1975           0 :                 ndr->depth++;
    1976           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    1977           0 :                 ndr->depth++;
    1978           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    1979           0 :                 ndr->depth--;
    1980           0 :                 ndr_print_ptr(ndr, "ppEnum", r->out.ppEnum);
    1981           0 :                 ndr->depth++;
    1982           0 :                 ndr_print_ptr(ndr, "ppEnum", *r->out.ppEnum);
    1983           0 :                 ndr->depth++;
    1984           0 :                 if (*r->out.ppEnum) {
    1985           0 :                         ndr_print_MInterfacePointer(ndr, "ppEnum", *r->out.ppEnum);
    1986             :                 }
    1987           0 :                 ndr->depth--;
    1988           0 :                 ndr->depth--;
    1989           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    1990           0 :                 ndr->depth--;
    1991             :         }
    1992           0 :         ndr->depth--;
    1993             : }
    1994             : 
    1995           0 : static enum ndr_err_code ndr_push_CreateClassEnumAsync(struct ndr_push *ndr, int flags, const struct CreateClassEnumAsync *r)
    1996             : {
    1997           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1998           0 :         if (flags & NDR_IN) {
    1999           0 :                 if (r->in.pCtx == NULL) {
    2000           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2001             :                 }
    2002           0 :                 if (r->in.pResponseHandler == NULL) {
    2003           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2004             :                 }
    2005           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    2006           0 :                 NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strSuperclass));
    2007           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
    2008           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    2009           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
    2010             :         }
    2011           0 :         if (flags & NDR_OUT) {
    2012           0 :                 if (r->out.ORPCthat == NULL) {
    2013           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2014             :                 }
    2015           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    2016           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    2017             :         }
    2018           0 :         return NDR_ERR_SUCCESS;
    2019             : }
    2020             : 
    2021           0 : static enum ndr_err_code ndr_pull_CreateClassEnumAsync(struct ndr_pull *ndr, int flags, struct CreateClassEnumAsync *r)
    2022             : {
    2023           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    2024           0 :         TALLOC_CTX *_mem_save_pCtx_0 = NULL;
    2025           0 :         TALLOC_CTX *_mem_save_pResponseHandler_0 = NULL;
    2026           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2027           0 :         if (flags & NDR_IN) {
    2028           0 :                 NDR_ZERO_STRUCT(r->out);
    2029             : 
    2030           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    2031           0 :                 NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strSuperclass));
    2032           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
    2033           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2034           0 :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    2035             :                 }
    2036           0 :                 _mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2037           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
    2038           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    2039           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
    2040           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2041           0 :                         NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
    2042             :                 }
    2043           0 :                 _mem_save_pResponseHandler_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2044           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pResponseHandler, LIBNDR_FLAG_REF_ALLOC);
    2045           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
    2046           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pResponseHandler_0, LIBNDR_FLAG_REF_ALLOC);
    2047           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    2048           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    2049             :         }
    2050           0 :         if (flags & NDR_OUT) {
    2051             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2052             :                 if (r->in.pCtx == NULL) {
    2053             :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    2054             :                         NDR_ZERO_STRUCTP(r->in.pCtx);
    2055             :                 }
    2056             :                 if (r->in.pResponseHandler == NULL) {
    2057             :                         NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
    2058             :                         NDR_ZERO_STRUCTP(r->in.pResponseHandler);
    2059             :                 }
    2060             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2061           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2062           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    2063             :                 }
    2064           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2065           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    2066           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    2067           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    2068           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    2069             :         }
    2070           0 :         return NDR_ERR_SUCCESS;
    2071             : }
    2072             : 
    2073           0 : _PUBLIC_ void ndr_print_CreateClassEnumAsync(struct ndr_print *ndr, const char *name, int flags, const struct CreateClassEnumAsync *r)
    2074             : {
    2075           0 :         ndr_print_struct(ndr, name, "CreateClassEnumAsync");
    2076           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2077           0 :         ndr->depth++;
    2078           0 :         if (flags & NDR_SET_VALUES) {
    2079           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2080             :         }
    2081           0 :         if (flags & NDR_IN) {
    2082           0 :                 ndr_print_struct(ndr, "in", "CreateClassEnumAsync");
    2083           0 :                 ndr->depth++;
    2084           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    2085           0 :                 ndr_print_BSTR(ndr, "strSuperclass", &r->in.strSuperclass);
    2086           0 :                 ndr_print_int32(ndr, "lFlags", r->in.lFlags);
    2087           0 :                 ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
    2088           0 :                 ndr->depth++;
    2089           0 :                 ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
    2090           0 :                 ndr->depth--;
    2091           0 :                 ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
    2092           0 :                 ndr->depth++;
    2093           0 :                 ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
    2094           0 :                 ndr->depth--;
    2095           0 :                 ndr->depth--;
    2096             :         }
    2097           0 :         if (flags & NDR_OUT) {
    2098           0 :                 ndr_print_struct(ndr, "out", "CreateClassEnumAsync");
    2099           0 :                 ndr->depth++;
    2100           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    2101           0 :                 ndr->depth++;
    2102           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    2103           0 :                 ndr->depth--;
    2104           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    2105           0 :                 ndr->depth--;
    2106             :         }
    2107           0 :         ndr->depth--;
    2108             : }
    2109             : 
    2110           0 : static enum ndr_err_code ndr_push_PutInstance(struct ndr_push *ndr, int flags, const struct PutInstance *r)
    2111             : {
    2112           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2113           0 :         if (flags & NDR_IN) {
    2114           0 :                 if (r->in.pInst == NULL) {
    2115           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2116             :                 }
    2117           0 :                 if (r->in.pCtx == NULL) {
    2118           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2119             :                 }
    2120           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    2121           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pInst));
    2122           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
    2123           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    2124           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.ppCallResult));
    2125           0 :                 if (r->in.ppCallResult) {
    2126           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.ppCallResult));
    2127           0 :                         if (*r->in.ppCallResult) {
    2128           0 :                                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppCallResult));
    2129             :                         }
    2130             :                 }
    2131             :         }
    2132           0 :         if (flags & NDR_OUT) {
    2133           0 :                 if (r->out.ORPCthat == NULL) {
    2134           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2135             :                 }
    2136           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    2137           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.ppCallResult));
    2138           0 :                 if (r->out.ppCallResult) {
    2139           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppCallResult));
    2140           0 :                         if (*r->out.ppCallResult) {
    2141           0 :                                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppCallResult));
    2142             :                         }
    2143             :                 }
    2144           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    2145             :         }
    2146           0 :         return NDR_ERR_SUCCESS;
    2147             : }
    2148             : 
    2149           0 : static enum ndr_err_code ndr_pull_PutInstance(struct ndr_pull *ndr, int flags, struct PutInstance *r)
    2150             : {
    2151             :         uint32_t _ptr_ppCallResult;
    2152           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    2153           0 :         TALLOC_CTX *_mem_save_pInst_0 = NULL;
    2154           0 :         TALLOC_CTX *_mem_save_pCtx_0 = NULL;
    2155           0 :         TALLOC_CTX *_mem_save_ppCallResult_0 = NULL;
    2156           0 :         TALLOC_CTX *_mem_save_ppCallResult_1 = NULL;
    2157           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2158           0 :         if (flags & NDR_IN) {
    2159           0 :                 NDR_ZERO_STRUCT(r->out);
    2160             : 
    2161           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    2162           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2163           0 :                         NDR_PULL_ALLOC(ndr, r->in.pInst);
    2164             :                 }
    2165           0 :                 _mem_save_pInst_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2166           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pInst, LIBNDR_FLAG_REF_ALLOC);
    2167           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pInst));
    2168           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pInst_0, LIBNDR_FLAG_REF_ALLOC);
    2169           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
    2170           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2171           0 :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    2172             :                 }
    2173           0 :                 _mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2174           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
    2175           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    2176           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
    2177           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
    2178           0 :                 if (_ptr_ppCallResult) {
    2179           0 :                         NDR_PULL_ALLOC(ndr, r->in.ppCallResult);
    2180             :                 } else {
    2181           0 :                         r->in.ppCallResult = NULL;
    2182             :                 }
    2183           0 :                 if (r->in.ppCallResult) {
    2184           0 :                         _mem_save_ppCallResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2185           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.ppCallResult, 0);
    2186           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
    2187           0 :                         if (_ptr_ppCallResult) {
    2188           0 :                                 NDR_PULL_ALLOC(ndr, *r->in.ppCallResult);
    2189             :                         } else {
    2190           0 :                                 *r->in.ppCallResult = NULL;
    2191             :                         }
    2192           0 :                         if (*r->in.ppCallResult) {
    2193           0 :                                 _mem_save_ppCallResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
    2194           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, *r->in.ppCallResult, 0);
    2195           0 :                                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppCallResult));
    2196           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_1, 0);
    2197             :                         }
    2198           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
    2199             :                 }
    2200           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    2201           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    2202             :         }
    2203           0 :         if (flags & NDR_OUT) {
    2204             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2205             :                 if (r->in.pInst == NULL) {
    2206             :                         NDR_PULL_ALLOC(ndr, r->in.pInst);
    2207             :                         NDR_ZERO_STRUCTP(r->in.pInst);
    2208             :                 }
    2209             :                 if (r->in.pCtx == NULL) {
    2210             :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    2211             :                         NDR_ZERO_STRUCTP(r->in.pCtx);
    2212             :                 }
    2213             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2214           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2215           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    2216             :                 }
    2217           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2218           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    2219           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    2220           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    2221           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
    2222           0 :                 if (_ptr_ppCallResult) {
    2223           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppCallResult);
    2224             :                 } else {
    2225           0 :                         r->out.ppCallResult = NULL;
    2226             :                 }
    2227           0 :                 if (r->out.ppCallResult) {
    2228           0 :                         _mem_save_ppCallResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2229           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->out.ppCallResult, 0);
    2230           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
    2231           0 :                         if (_ptr_ppCallResult) {
    2232           0 :                                 NDR_PULL_ALLOC(ndr, *r->out.ppCallResult);
    2233             :                         } else {
    2234           0 :                                 *r->out.ppCallResult = NULL;
    2235             :                         }
    2236           0 :                         if (*r->out.ppCallResult) {
    2237           0 :                                 _mem_save_ppCallResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
    2238           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppCallResult, 0);
    2239           0 :                                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppCallResult));
    2240           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_1, 0);
    2241             :                         }
    2242           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
    2243             :                 }
    2244           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    2245             :         }
    2246           0 :         return NDR_ERR_SUCCESS;
    2247             : }
    2248             : 
    2249           0 : _PUBLIC_ void ndr_print_PutInstance(struct ndr_print *ndr, const char *name, int flags, const struct PutInstance *r)
    2250             : {
    2251           0 :         ndr_print_struct(ndr, name, "PutInstance");
    2252           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2253           0 :         ndr->depth++;
    2254           0 :         if (flags & NDR_SET_VALUES) {
    2255           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2256             :         }
    2257           0 :         if (flags & NDR_IN) {
    2258           0 :                 ndr_print_struct(ndr, "in", "PutInstance");
    2259           0 :                 ndr->depth++;
    2260           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    2261           0 :                 ndr_print_ptr(ndr, "pInst", r->in.pInst);
    2262           0 :                 ndr->depth++;
    2263           0 :                 ndr_print_MInterfacePointer(ndr, "pInst", r->in.pInst);
    2264           0 :                 ndr->depth--;
    2265           0 :                 ndr_print_int32(ndr, "lFlags", r->in.lFlags);
    2266           0 :                 ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
    2267           0 :                 ndr->depth++;
    2268           0 :                 ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
    2269           0 :                 ndr->depth--;
    2270           0 :                 ndr_print_ptr(ndr, "ppCallResult", r->in.ppCallResult);
    2271           0 :                 ndr->depth++;
    2272           0 :                 if (r->in.ppCallResult) {
    2273           0 :                         ndr_print_ptr(ndr, "ppCallResult", *r->in.ppCallResult);
    2274           0 :                         ndr->depth++;
    2275           0 :                         if (*r->in.ppCallResult) {
    2276           0 :                                 ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->in.ppCallResult);
    2277             :                         }
    2278           0 :                         ndr->depth--;
    2279             :                 }
    2280           0 :                 ndr->depth--;
    2281           0 :                 ndr->depth--;
    2282             :         }
    2283           0 :         if (flags & NDR_OUT) {
    2284           0 :                 ndr_print_struct(ndr, "out", "PutInstance");
    2285           0 :                 ndr->depth++;
    2286           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    2287           0 :                 ndr->depth++;
    2288           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    2289           0 :                 ndr->depth--;
    2290           0 :                 ndr_print_ptr(ndr, "ppCallResult", r->out.ppCallResult);
    2291           0 :                 ndr->depth++;
    2292           0 :                 if (r->out.ppCallResult) {
    2293           0 :                         ndr_print_ptr(ndr, "ppCallResult", *r->out.ppCallResult);
    2294           0 :                         ndr->depth++;
    2295           0 :                         if (*r->out.ppCallResult) {
    2296           0 :                                 ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->out.ppCallResult);
    2297             :                         }
    2298           0 :                         ndr->depth--;
    2299             :                 }
    2300           0 :                 ndr->depth--;
    2301           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    2302           0 :                 ndr->depth--;
    2303             :         }
    2304           0 :         ndr->depth--;
    2305             : }
    2306             : 
    2307           0 : static enum ndr_err_code ndr_push_PutInstanceAsync(struct ndr_push *ndr, int flags, const struct PutInstanceAsync *r)
    2308             : {
    2309           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2310           0 :         if (flags & NDR_IN) {
    2311           0 :                 if (r->in.pInst == NULL) {
    2312           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2313             :                 }
    2314           0 :                 if (r->in.pCtx == NULL) {
    2315           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2316             :                 }
    2317           0 :                 if (r->in.pResponseHandler == NULL) {
    2318           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2319             :                 }
    2320           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    2321           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pInst));
    2322           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
    2323           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    2324           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
    2325             :         }
    2326           0 :         if (flags & NDR_OUT) {
    2327           0 :                 if (r->out.ORPCthat == NULL) {
    2328           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2329             :                 }
    2330           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    2331           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    2332             :         }
    2333           0 :         return NDR_ERR_SUCCESS;
    2334             : }
    2335             : 
    2336           0 : static enum ndr_err_code ndr_pull_PutInstanceAsync(struct ndr_pull *ndr, int flags, struct PutInstanceAsync *r)
    2337             : {
    2338           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    2339           0 :         TALLOC_CTX *_mem_save_pInst_0 = NULL;
    2340           0 :         TALLOC_CTX *_mem_save_pCtx_0 = NULL;
    2341           0 :         TALLOC_CTX *_mem_save_pResponseHandler_0 = NULL;
    2342           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2343           0 :         if (flags & NDR_IN) {
    2344           0 :                 NDR_ZERO_STRUCT(r->out);
    2345             : 
    2346           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    2347           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2348           0 :                         NDR_PULL_ALLOC(ndr, r->in.pInst);
    2349             :                 }
    2350           0 :                 _mem_save_pInst_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2351           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pInst, LIBNDR_FLAG_REF_ALLOC);
    2352           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pInst));
    2353           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pInst_0, LIBNDR_FLAG_REF_ALLOC);
    2354           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
    2355           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2356           0 :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    2357             :                 }
    2358           0 :                 _mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2359           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
    2360           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    2361           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
    2362           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2363           0 :                         NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
    2364             :                 }
    2365           0 :                 _mem_save_pResponseHandler_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2366           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pResponseHandler, LIBNDR_FLAG_REF_ALLOC);
    2367           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
    2368           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pResponseHandler_0, LIBNDR_FLAG_REF_ALLOC);
    2369           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    2370           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    2371             :         }
    2372           0 :         if (flags & NDR_OUT) {
    2373             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2374             :                 if (r->in.pInst == NULL) {
    2375             :                         NDR_PULL_ALLOC(ndr, r->in.pInst);
    2376             :                         NDR_ZERO_STRUCTP(r->in.pInst);
    2377             :                 }
    2378             :                 if (r->in.pCtx == NULL) {
    2379             :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    2380             :                         NDR_ZERO_STRUCTP(r->in.pCtx);
    2381             :                 }
    2382             :                 if (r->in.pResponseHandler == NULL) {
    2383             :                         NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
    2384             :                         NDR_ZERO_STRUCTP(r->in.pResponseHandler);
    2385             :                 }
    2386             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2387           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2388           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    2389             :                 }
    2390           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2391           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    2392           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    2393           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    2394           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    2395             :         }
    2396           0 :         return NDR_ERR_SUCCESS;
    2397             : }
    2398             : 
    2399           0 : _PUBLIC_ void ndr_print_PutInstanceAsync(struct ndr_print *ndr, const char *name, int flags, const struct PutInstanceAsync *r)
    2400             : {
    2401           0 :         ndr_print_struct(ndr, name, "PutInstanceAsync");
    2402           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2403           0 :         ndr->depth++;
    2404           0 :         if (flags & NDR_SET_VALUES) {
    2405           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2406             :         }
    2407           0 :         if (flags & NDR_IN) {
    2408           0 :                 ndr_print_struct(ndr, "in", "PutInstanceAsync");
    2409           0 :                 ndr->depth++;
    2410           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    2411           0 :                 ndr_print_ptr(ndr, "pInst", r->in.pInst);
    2412           0 :                 ndr->depth++;
    2413           0 :                 ndr_print_MInterfacePointer(ndr, "pInst", r->in.pInst);
    2414           0 :                 ndr->depth--;
    2415           0 :                 ndr_print_int32(ndr, "lFlags", r->in.lFlags);
    2416           0 :                 ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
    2417           0 :                 ndr->depth++;
    2418           0 :                 ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
    2419           0 :                 ndr->depth--;
    2420           0 :                 ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
    2421           0 :                 ndr->depth++;
    2422           0 :                 ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
    2423           0 :                 ndr->depth--;
    2424           0 :                 ndr->depth--;
    2425             :         }
    2426           0 :         if (flags & NDR_OUT) {
    2427           0 :                 ndr_print_struct(ndr, "out", "PutInstanceAsync");
    2428           0 :                 ndr->depth++;
    2429           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    2430           0 :                 ndr->depth++;
    2431           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    2432           0 :                 ndr->depth--;
    2433           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    2434           0 :                 ndr->depth--;
    2435             :         }
    2436           0 :         ndr->depth--;
    2437             : }
    2438             : 
    2439           0 : static enum ndr_err_code ndr_push_DeleteInstance(struct ndr_push *ndr, int flags, const struct DeleteInstance *r)
    2440             : {
    2441           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2442           0 :         if (flags & NDR_IN) {
    2443           0 :                 if (r->in.pCtx == NULL) {
    2444           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2445             :                 }
    2446           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    2447           0 :                 NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strObjectPath));
    2448           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
    2449           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    2450           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.ppCallResult));
    2451           0 :                 if (r->in.ppCallResult) {
    2452           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.ppCallResult));
    2453           0 :                         if (*r->in.ppCallResult) {
    2454           0 :                                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppCallResult));
    2455             :                         }
    2456             :                 }
    2457             :         }
    2458           0 :         if (flags & NDR_OUT) {
    2459           0 :                 if (r->out.ORPCthat == NULL) {
    2460           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2461             :                 }
    2462           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    2463           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.ppCallResult));
    2464           0 :                 if (r->out.ppCallResult) {
    2465           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppCallResult));
    2466           0 :                         if (*r->out.ppCallResult) {
    2467           0 :                                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppCallResult));
    2468             :                         }
    2469             :                 }
    2470           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    2471             :         }
    2472           0 :         return NDR_ERR_SUCCESS;
    2473             : }
    2474             : 
    2475           0 : static enum ndr_err_code ndr_pull_DeleteInstance(struct ndr_pull *ndr, int flags, struct DeleteInstance *r)
    2476             : {
    2477             :         uint32_t _ptr_ppCallResult;
    2478           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    2479           0 :         TALLOC_CTX *_mem_save_pCtx_0 = NULL;
    2480           0 :         TALLOC_CTX *_mem_save_ppCallResult_0 = NULL;
    2481           0 :         TALLOC_CTX *_mem_save_ppCallResult_1 = NULL;
    2482           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2483           0 :         if (flags & NDR_IN) {
    2484           0 :                 NDR_ZERO_STRUCT(r->out);
    2485             : 
    2486           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    2487           0 :                 NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strObjectPath));
    2488           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
    2489           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2490           0 :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    2491             :                 }
    2492           0 :                 _mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2493           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
    2494           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    2495           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
    2496           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
    2497           0 :                 if (_ptr_ppCallResult) {
    2498           0 :                         NDR_PULL_ALLOC(ndr, r->in.ppCallResult);
    2499             :                 } else {
    2500           0 :                         r->in.ppCallResult = NULL;
    2501             :                 }
    2502           0 :                 if (r->in.ppCallResult) {
    2503           0 :                         _mem_save_ppCallResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2504           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.ppCallResult, 0);
    2505           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
    2506           0 :                         if (_ptr_ppCallResult) {
    2507           0 :                                 NDR_PULL_ALLOC(ndr, *r->in.ppCallResult);
    2508             :                         } else {
    2509           0 :                                 *r->in.ppCallResult = NULL;
    2510             :                         }
    2511           0 :                         if (*r->in.ppCallResult) {
    2512           0 :                                 _mem_save_ppCallResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
    2513           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, *r->in.ppCallResult, 0);
    2514           0 :                                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppCallResult));
    2515           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_1, 0);
    2516             :                         }
    2517           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
    2518             :                 }
    2519           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    2520           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    2521             :         }
    2522           0 :         if (flags & NDR_OUT) {
    2523             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2524             :                 if (r->in.pCtx == NULL) {
    2525             :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    2526             :                         NDR_ZERO_STRUCTP(r->in.pCtx);
    2527             :                 }
    2528             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2529           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2530           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    2531             :                 }
    2532           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2533           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    2534           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    2535           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    2536           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
    2537           0 :                 if (_ptr_ppCallResult) {
    2538           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppCallResult);
    2539             :                 } else {
    2540           0 :                         r->out.ppCallResult = NULL;
    2541             :                 }
    2542           0 :                 if (r->out.ppCallResult) {
    2543           0 :                         _mem_save_ppCallResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2544           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->out.ppCallResult, 0);
    2545           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
    2546           0 :                         if (_ptr_ppCallResult) {
    2547           0 :                                 NDR_PULL_ALLOC(ndr, *r->out.ppCallResult);
    2548             :                         } else {
    2549           0 :                                 *r->out.ppCallResult = NULL;
    2550             :                         }
    2551           0 :                         if (*r->out.ppCallResult) {
    2552           0 :                                 _mem_save_ppCallResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
    2553           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppCallResult, 0);
    2554           0 :                                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppCallResult));
    2555           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_1, 0);
    2556             :                         }
    2557           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
    2558             :                 }
    2559           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    2560             :         }
    2561           0 :         return NDR_ERR_SUCCESS;
    2562             : }
    2563             : 
    2564           0 : _PUBLIC_ void ndr_print_DeleteInstance(struct ndr_print *ndr, const char *name, int flags, const struct DeleteInstance *r)
    2565             : {
    2566           0 :         ndr_print_struct(ndr, name, "DeleteInstance");
    2567           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2568           0 :         ndr->depth++;
    2569           0 :         if (flags & NDR_SET_VALUES) {
    2570           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2571             :         }
    2572           0 :         if (flags & NDR_IN) {
    2573           0 :                 ndr_print_struct(ndr, "in", "DeleteInstance");
    2574           0 :                 ndr->depth++;
    2575           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    2576           0 :                 ndr_print_BSTR(ndr, "strObjectPath", &r->in.strObjectPath);
    2577           0 :                 ndr_print_int32(ndr, "lFlags", r->in.lFlags);
    2578           0 :                 ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
    2579           0 :                 ndr->depth++;
    2580           0 :                 ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
    2581           0 :                 ndr->depth--;
    2582           0 :                 ndr_print_ptr(ndr, "ppCallResult", r->in.ppCallResult);
    2583           0 :                 ndr->depth++;
    2584           0 :                 if (r->in.ppCallResult) {
    2585           0 :                         ndr_print_ptr(ndr, "ppCallResult", *r->in.ppCallResult);
    2586           0 :                         ndr->depth++;
    2587           0 :                         if (*r->in.ppCallResult) {
    2588           0 :                                 ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->in.ppCallResult);
    2589             :                         }
    2590           0 :                         ndr->depth--;
    2591             :                 }
    2592           0 :                 ndr->depth--;
    2593           0 :                 ndr->depth--;
    2594             :         }
    2595           0 :         if (flags & NDR_OUT) {
    2596           0 :                 ndr_print_struct(ndr, "out", "DeleteInstance");
    2597           0 :                 ndr->depth++;
    2598           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    2599           0 :                 ndr->depth++;
    2600           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    2601           0 :                 ndr->depth--;
    2602           0 :                 ndr_print_ptr(ndr, "ppCallResult", r->out.ppCallResult);
    2603           0 :                 ndr->depth++;
    2604           0 :                 if (r->out.ppCallResult) {
    2605           0 :                         ndr_print_ptr(ndr, "ppCallResult", *r->out.ppCallResult);
    2606           0 :                         ndr->depth++;
    2607           0 :                         if (*r->out.ppCallResult) {
    2608           0 :                                 ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->out.ppCallResult);
    2609             :                         }
    2610           0 :                         ndr->depth--;
    2611             :                 }
    2612           0 :                 ndr->depth--;
    2613           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    2614           0 :                 ndr->depth--;
    2615             :         }
    2616           0 :         ndr->depth--;
    2617             : }
    2618             : 
    2619           0 : static enum ndr_err_code ndr_push_DeleteInstanceAsync(struct ndr_push *ndr, int flags, const struct DeleteInstanceAsync *r)
    2620             : {
    2621           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2622           0 :         if (flags & NDR_IN) {
    2623           0 :                 if (r->in.pCtx == NULL) {
    2624           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2625             :                 }
    2626           0 :                 if (r->in.pResponseHandler == NULL) {
    2627           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2628             :                 }
    2629           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    2630           0 :                 NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strObjectPath));
    2631           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
    2632           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    2633           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
    2634             :         }
    2635           0 :         if (flags & NDR_OUT) {
    2636           0 :                 if (r->out.ORPCthat == NULL) {
    2637           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2638             :                 }
    2639           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    2640           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    2641             :         }
    2642           0 :         return NDR_ERR_SUCCESS;
    2643             : }
    2644             : 
    2645           0 : static enum ndr_err_code ndr_pull_DeleteInstanceAsync(struct ndr_pull *ndr, int flags, struct DeleteInstanceAsync *r)
    2646             : {
    2647           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    2648           0 :         TALLOC_CTX *_mem_save_pCtx_0 = NULL;
    2649           0 :         TALLOC_CTX *_mem_save_pResponseHandler_0 = NULL;
    2650           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2651           0 :         if (flags & NDR_IN) {
    2652           0 :                 NDR_ZERO_STRUCT(r->out);
    2653             : 
    2654           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    2655           0 :                 NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strObjectPath));
    2656           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
    2657           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2658           0 :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    2659             :                 }
    2660           0 :                 _mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2661           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
    2662           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    2663           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
    2664           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2665           0 :                         NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
    2666             :                 }
    2667           0 :                 _mem_save_pResponseHandler_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2668           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pResponseHandler, LIBNDR_FLAG_REF_ALLOC);
    2669           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
    2670           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pResponseHandler_0, LIBNDR_FLAG_REF_ALLOC);
    2671           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    2672           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    2673             :         }
    2674           0 :         if (flags & NDR_OUT) {
    2675             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2676             :                 if (r->in.pCtx == NULL) {
    2677             :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    2678             :                         NDR_ZERO_STRUCTP(r->in.pCtx);
    2679             :                 }
    2680             :                 if (r->in.pResponseHandler == NULL) {
    2681             :                         NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
    2682             :                         NDR_ZERO_STRUCTP(r->in.pResponseHandler);
    2683             :                 }
    2684             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2685           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2686           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    2687             :                 }
    2688           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2689           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    2690           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    2691           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    2692           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    2693             :         }
    2694           0 :         return NDR_ERR_SUCCESS;
    2695             : }
    2696             : 
    2697           0 : _PUBLIC_ void ndr_print_DeleteInstanceAsync(struct ndr_print *ndr, const char *name, int flags, const struct DeleteInstanceAsync *r)
    2698             : {
    2699           0 :         ndr_print_struct(ndr, name, "DeleteInstanceAsync");
    2700           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2701           0 :         ndr->depth++;
    2702           0 :         if (flags & NDR_SET_VALUES) {
    2703           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2704             :         }
    2705           0 :         if (flags & NDR_IN) {
    2706           0 :                 ndr_print_struct(ndr, "in", "DeleteInstanceAsync");
    2707           0 :                 ndr->depth++;
    2708           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    2709           0 :                 ndr_print_BSTR(ndr, "strObjectPath", &r->in.strObjectPath);
    2710           0 :                 ndr_print_int32(ndr, "lFlags", r->in.lFlags);
    2711           0 :                 ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
    2712           0 :                 ndr->depth++;
    2713           0 :                 ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
    2714           0 :                 ndr->depth--;
    2715           0 :                 ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
    2716           0 :                 ndr->depth++;
    2717           0 :                 ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
    2718           0 :                 ndr->depth--;
    2719           0 :                 ndr->depth--;
    2720             :         }
    2721           0 :         if (flags & NDR_OUT) {
    2722           0 :                 ndr_print_struct(ndr, "out", "DeleteInstanceAsync");
    2723           0 :                 ndr->depth++;
    2724           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    2725           0 :                 ndr->depth++;
    2726           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    2727           0 :                 ndr->depth--;
    2728           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    2729           0 :                 ndr->depth--;
    2730             :         }
    2731           0 :         ndr->depth--;
    2732             : }
    2733             : 
    2734           0 : static enum ndr_err_code ndr_push_CreateInstanceEnum(struct ndr_push *ndr, int flags, const struct CreateInstanceEnum *r)
    2735             : {
    2736           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2737           0 :         if (flags & NDR_IN) {
    2738           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    2739           0 :                 NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strFilter));
    2740           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
    2741           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pCtx));
    2742           0 :                 if (r->in.pCtx) {
    2743           0 :                         NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    2744             :                 }
    2745             :         }
    2746           0 :         if (flags & NDR_OUT) {
    2747           0 :                 if (r->out.ORPCthat == NULL) {
    2748           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2749             :                 }
    2750           0 :                 if (r->out.ppEnum == NULL) {
    2751           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2752             :                 }
    2753           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    2754           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppEnum));
    2755           0 :                 if (*r->out.ppEnum) {
    2756           0 :                         NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
    2757             :                 }
    2758           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    2759             :         }
    2760           0 :         return NDR_ERR_SUCCESS;
    2761             : }
    2762             : 
    2763           0 : static enum ndr_err_code ndr_pull_CreateInstanceEnum(struct ndr_pull *ndr, int flags, struct CreateInstanceEnum *r)
    2764             : {
    2765             :         uint32_t _ptr_pCtx;
    2766             :         uint32_t _ptr_ppEnum;
    2767           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    2768           0 :         TALLOC_CTX *_mem_save_pCtx_0 = NULL;
    2769           0 :         TALLOC_CTX *_mem_save_ppEnum_0 = NULL;
    2770           0 :         TALLOC_CTX *_mem_save_ppEnum_1 = NULL;
    2771           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2772           0 :         if (flags & NDR_IN) {
    2773           0 :                 NDR_ZERO_STRUCT(r->out);
    2774             : 
    2775           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    2776           0 :                 NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strFilter));
    2777           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
    2778           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pCtx));
    2779           0 :                 if (_ptr_pCtx) {
    2780           0 :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    2781             :                 } else {
    2782           0 :                         r->in.pCtx = NULL;
    2783             :                 }
    2784           0 :                 if (r->in.pCtx) {
    2785           0 :                         _mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2786           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, 0);
    2787           0 :                         NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    2788           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, 0);
    2789             :                 }
    2790           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    2791           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    2792           0 :                 NDR_PULL_ALLOC(ndr, r->out.ppEnum);
    2793           0 :                 NDR_ZERO_STRUCTP(r->out.ppEnum);
    2794             :         }
    2795           0 :         if (flags & NDR_OUT) {
    2796             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2797             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2798           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2799           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    2800             :                 }
    2801           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2802           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    2803           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    2804           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    2805           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2806           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppEnum);
    2807             :                 }
    2808           0 :                 _mem_save_ppEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2809           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ppEnum, LIBNDR_FLAG_REF_ALLOC);
    2810           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppEnum));
    2811           0 :                 if (_ptr_ppEnum) {
    2812           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ppEnum);
    2813             :                 } else {
    2814           0 :                         *r->out.ppEnum = NULL;
    2815             :                 }
    2816           0 :                 if (*r->out.ppEnum) {
    2817           0 :                         _mem_save_ppEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
    2818           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppEnum, 0);
    2819           0 :                         NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
    2820           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_1, 0);
    2821             :                 }
    2822           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_0, LIBNDR_FLAG_REF_ALLOC);
    2823           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    2824             :         }
    2825           0 :         return NDR_ERR_SUCCESS;
    2826             : }
    2827             : 
    2828           0 : _PUBLIC_ void ndr_print_CreateInstanceEnum(struct ndr_print *ndr, const char *name, int flags, const struct CreateInstanceEnum *r)
    2829             : {
    2830           0 :         ndr_print_struct(ndr, name, "CreateInstanceEnum");
    2831           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2832           0 :         ndr->depth++;
    2833           0 :         if (flags & NDR_SET_VALUES) {
    2834           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2835             :         }
    2836           0 :         if (flags & NDR_IN) {
    2837           0 :                 ndr_print_struct(ndr, "in", "CreateInstanceEnum");
    2838           0 :                 ndr->depth++;
    2839           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    2840           0 :                 ndr_print_BSTR(ndr, "strFilter", &r->in.strFilter);
    2841           0 :                 ndr_print_int32(ndr, "lFlags", r->in.lFlags);
    2842           0 :                 ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
    2843           0 :                 ndr->depth++;
    2844           0 :                 if (r->in.pCtx) {
    2845           0 :                         ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
    2846             :                 }
    2847           0 :                 ndr->depth--;
    2848           0 :                 ndr->depth--;
    2849             :         }
    2850           0 :         if (flags & NDR_OUT) {
    2851           0 :                 ndr_print_struct(ndr, "out", "CreateInstanceEnum");
    2852           0 :                 ndr->depth++;
    2853           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    2854           0 :                 ndr->depth++;
    2855           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    2856           0 :                 ndr->depth--;
    2857           0 :                 ndr_print_ptr(ndr, "ppEnum", r->out.ppEnum);
    2858           0 :                 ndr->depth++;
    2859           0 :                 ndr_print_ptr(ndr, "ppEnum", *r->out.ppEnum);
    2860           0 :                 ndr->depth++;
    2861           0 :                 if (*r->out.ppEnum) {
    2862           0 :                         ndr_print_MInterfacePointer(ndr, "ppEnum", *r->out.ppEnum);
    2863             :                 }
    2864           0 :                 ndr->depth--;
    2865           0 :                 ndr->depth--;
    2866           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    2867           0 :                 ndr->depth--;
    2868             :         }
    2869           0 :         ndr->depth--;
    2870             : }
    2871             : 
    2872           0 : static enum ndr_err_code ndr_push_CreateInstanceEnumAsync(struct ndr_push *ndr, int flags, const struct CreateInstanceEnumAsync *r)
    2873             : {
    2874           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2875           0 :         if (flags & NDR_IN) {
    2876           0 :                 if (r->in.pCtx == NULL) {
    2877           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2878             :                 }
    2879           0 :                 if (r->in.pResponseHandler == NULL) {
    2880           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2881             :                 }
    2882           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    2883           0 :                 NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strSuperClass));
    2884           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
    2885           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    2886           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
    2887             :         }
    2888           0 :         if (flags & NDR_OUT) {
    2889           0 :                 if (r->out.ORPCthat == NULL) {
    2890           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2891             :                 }
    2892           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    2893           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    2894             :         }
    2895           0 :         return NDR_ERR_SUCCESS;
    2896             : }
    2897             : 
    2898           0 : static enum ndr_err_code ndr_pull_CreateInstanceEnumAsync(struct ndr_pull *ndr, int flags, struct CreateInstanceEnumAsync *r)
    2899             : {
    2900           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    2901           0 :         TALLOC_CTX *_mem_save_pCtx_0 = NULL;
    2902           0 :         TALLOC_CTX *_mem_save_pResponseHandler_0 = NULL;
    2903           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2904           0 :         if (flags & NDR_IN) {
    2905           0 :                 NDR_ZERO_STRUCT(r->out);
    2906             : 
    2907           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    2908           0 :                 NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strSuperClass));
    2909           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
    2910           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2911           0 :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    2912             :                 }
    2913           0 :                 _mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2914           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
    2915           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    2916           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
    2917           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2918           0 :                         NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
    2919             :                 }
    2920           0 :                 _mem_save_pResponseHandler_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2921           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pResponseHandler, LIBNDR_FLAG_REF_ALLOC);
    2922           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
    2923           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pResponseHandler_0, LIBNDR_FLAG_REF_ALLOC);
    2924           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    2925           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    2926             :         }
    2927           0 :         if (flags & NDR_OUT) {
    2928             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2929             :                 if (r->in.pCtx == NULL) {
    2930             :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    2931             :                         NDR_ZERO_STRUCTP(r->in.pCtx);
    2932             :                 }
    2933             :                 if (r->in.pResponseHandler == NULL) {
    2934             :                         NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
    2935             :                         NDR_ZERO_STRUCTP(r->in.pResponseHandler);
    2936             :                 }
    2937             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2938           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2939           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    2940             :                 }
    2941           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2942           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    2943           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    2944           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    2945           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    2946             :         }
    2947           0 :         return NDR_ERR_SUCCESS;
    2948             : }
    2949             : 
    2950           0 : _PUBLIC_ void ndr_print_CreateInstanceEnumAsync(struct ndr_print *ndr, const char *name, int flags, const struct CreateInstanceEnumAsync *r)
    2951             : {
    2952           0 :         ndr_print_struct(ndr, name, "CreateInstanceEnumAsync");
    2953           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2954           0 :         ndr->depth++;
    2955           0 :         if (flags & NDR_SET_VALUES) {
    2956           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2957             :         }
    2958           0 :         if (flags & NDR_IN) {
    2959           0 :                 ndr_print_struct(ndr, "in", "CreateInstanceEnumAsync");
    2960           0 :                 ndr->depth++;
    2961           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    2962           0 :                 ndr_print_BSTR(ndr, "strSuperClass", &r->in.strSuperClass);
    2963           0 :                 ndr_print_int32(ndr, "lFlags", r->in.lFlags);
    2964           0 :                 ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
    2965           0 :                 ndr->depth++;
    2966           0 :                 ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
    2967           0 :                 ndr->depth--;
    2968           0 :                 ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
    2969           0 :                 ndr->depth++;
    2970           0 :                 ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
    2971           0 :                 ndr->depth--;
    2972           0 :                 ndr->depth--;
    2973             :         }
    2974           0 :         if (flags & NDR_OUT) {
    2975           0 :                 ndr_print_struct(ndr, "out", "CreateInstanceEnumAsync");
    2976           0 :                 ndr->depth++;
    2977           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    2978           0 :                 ndr->depth++;
    2979           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    2980           0 :                 ndr->depth--;
    2981           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    2982           0 :                 ndr->depth--;
    2983             :         }
    2984           0 :         ndr->depth--;
    2985             : }
    2986             : 
    2987           0 : static enum ndr_err_code ndr_push_ExecQuery(struct ndr_push *ndr, int flags, const struct ExecQuery *r)
    2988             : {
    2989           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2990           0 :         if (flags & NDR_IN) {
    2991           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    2992           0 :                 NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strQueryLanguage));
    2993           0 :                 NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strQuery));
    2994           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
    2995           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pCtx));
    2996           0 :                 if (r->in.pCtx) {
    2997           0 :                         NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    2998             :                 }
    2999             :         }
    3000           0 :         if (flags & NDR_OUT) {
    3001           0 :                 if (r->out.ORPCthat == NULL) {
    3002           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3003             :                 }
    3004           0 :                 if (r->out.ppEnum == NULL) {
    3005           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3006             :                 }
    3007           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    3008           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppEnum));
    3009           0 :                 if (*r->out.ppEnum) {
    3010           0 :                         NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
    3011             :                 }
    3012           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    3013             :         }
    3014           0 :         return NDR_ERR_SUCCESS;
    3015             : }
    3016             : 
    3017           0 : static enum ndr_err_code ndr_pull_ExecQuery(struct ndr_pull *ndr, int flags, struct ExecQuery *r)
    3018             : {
    3019             :         uint32_t _ptr_pCtx;
    3020             :         uint32_t _ptr_ppEnum;
    3021           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    3022           0 :         TALLOC_CTX *_mem_save_pCtx_0 = NULL;
    3023           0 :         TALLOC_CTX *_mem_save_ppEnum_0 = NULL;
    3024           0 :         TALLOC_CTX *_mem_save_ppEnum_1 = NULL;
    3025           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    3026           0 :         if (flags & NDR_IN) {
    3027           0 :                 NDR_ZERO_STRUCT(r->out);
    3028             : 
    3029           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    3030           0 :                 NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strQueryLanguage));
    3031           0 :                 NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strQuery));
    3032           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
    3033           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pCtx));
    3034           0 :                 if (_ptr_pCtx) {
    3035           0 :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    3036             :                 } else {
    3037           0 :                         r->in.pCtx = NULL;
    3038             :                 }
    3039           0 :                 if (r->in.pCtx) {
    3040           0 :                         _mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3041           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, 0);
    3042           0 :                         NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    3043           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, 0);
    3044             :                 }
    3045           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    3046           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    3047           0 :                 NDR_PULL_ALLOC(ndr, r->out.ppEnum);
    3048           0 :                 NDR_ZERO_STRUCTP(r->out.ppEnum);
    3049             :         }
    3050           0 :         if (flags & NDR_OUT) {
    3051             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    3052             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    3053           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3054           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    3055             :                 }
    3056           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3057           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    3058           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    3059           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    3060           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3061           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppEnum);
    3062             :                 }
    3063           0 :                 _mem_save_ppEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3064           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ppEnum, LIBNDR_FLAG_REF_ALLOC);
    3065           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppEnum));
    3066           0 :                 if (_ptr_ppEnum) {
    3067           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ppEnum);
    3068             :                 } else {
    3069           0 :                         *r->out.ppEnum = NULL;
    3070             :                 }
    3071           0 :                 if (*r->out.ppEnum) {
    3072           0 :                         _mem_save_ppEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
    3073           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppEnum, 0);
    3074           0 :                         NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
    3075           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_1, 0);
    3076             :                 }
    3077           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_0, LIBNDR_FLAG_REF_ALLOC);
    3078           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    3079             :         }
    3080           0 :         return NDR_ERR_SUCCESS;
    3081             : }
    3082             : 
    3083           0 : _PUBLIC_ void ndr_print_ExecQuery(struct ndr_print *ndr, const char *name, int flags, const struct ExecQuery *r)
    3084             : {
    3085           0 :         ndr_print_struct(ndr, name, "ExecQuery");
    3086           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    3087           0 :         ndr->depth++;
    3088           0 :         if (flags & NDR_SET_VALUES) {
    3089           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    3090             :         }
    3091           0 :         if (flags & NDR_IN) {
    3092           0 :                 ndr_print_struct(ndr, "in", "ExecQuery");
    3093           0 :                 ndr->depth++;
    3094           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    3095           0 :                 ndr_print_BSTR(ndr, "strQueryLanguage", &r->in.strQueryLanguage);
    3096           0 :                 ndr_print_BSTR(ndr, "strQuery", &r->in.strQuery);
    3097           0 :                 ndr_print_int32(ndr, "lFlags", r->in.lFlags);
    3098           0 :                 ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
    3099           0 :                 ndr->depth++;
    3100           0 :                 if (r->in.pCtx) {
    3101           0 :                         ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
    3102             :                 }
    3103           0 :                 ndr->depth--;
    3104           0 :                 ndr->depth--;
    3105             :         }
    3106           0 :         if (flags & NDR_OUT) {
    3107           0 :                 ndr_print_struct(ndr, "out", "ExecQuery");
    3108           0 :                 ndr->depth++;
    3109           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    3110           0 :                 ndr->depth++;
    3111           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    3112           0 :                 ndr->depth--;
    3113           0 :                 ndr_print_ptr(ndr, "ppEnum", r->out.ppEnum);
    3114           0 :                 ndr->depth++;
    3115           0 :                 ndr_print_ptr(ndr, "ppEnum", *r->out.ppEnum);
    3116           0 :                 ndr->depth++;
    3117           0 :                 if (*r->out.ppEnum) {
    3118           0 :                         ndr_print_MInterfacePointer(ndr, "ppEnum", *r->out.ppEnum);
    3119             :                 }
    3120           0 :                 ndr->depth--;
    3121           0 :                 ndr->depth--;
    3122           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    3123           0 :                 ndr->depth--;
    3124             :         }
    3125           0 :         ndr->depth--;
    3126             : }
    3127             : 
    3128           0 : static enum ndr_err_code ndr_push_ExecQueryAsync(struct ndr_push *ndr, int flags, const struct ExecQueryAsync *r)
    3129             : {
    3130           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    3131           0 :         if (flags & NDR_IN) {
    3132           0 :                 if (r->in.pCtx == NULL) {
    3133           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3134             :                 }
    3135           0 :                 if (r->in.pResponseHandler == NULL) {
    3136           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3137             :                 }
    3138           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    3139           0 :                 NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strQueryLanguage));
    3140           0 :                 NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strQuery));
    3141           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
    3142           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    3143           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
    3144             :         }
    3145           0 :         if (flags & NDR_OUT) {
    3146           0 :                 if (r->out.ORPCthat == NULL) {
    3147           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3148             :                 }
    3149           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    3150           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    3151             :         }
    3152           0 :         return NDR_ERR_SUCCESS;
    3153             : }
    3154             : 
    3155           0 : static enum ndr_err_code ndr_pull_ExecQueryAsync(struct ndr_pull *ndr, int flags, struct ExecQueryAsync *r)
    3156             : {
    3157           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    3158           0 :         TALLOC_CTX *_mem_save_pCtx_0 = NULL;
    3159           0 :         TALLOC_CTX *_mem_save_pResponseHandler_0 = NULL;
    3160           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    3161           0 :         if (flags & NDR_IN) {
    3162           0 :                 NDR_ZERO_STRUCT(r->out);
    3163             : 
    3164           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    3165           0 :                 NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strQueryLanguage));
    3166           0 :                 NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strQuery));
    3167           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
    3168           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3169           0 :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    3170             :                 }
    3171           0 :                 _mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3172           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
    3173           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    3174           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
    3175           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3176           0 :                         NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
    3177             :                 }
    3178           0 :                 _mem_save_pResponseHandler_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3179           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pResponseHandler, LIBNDR_FLAG_REF_ALLOC);
    3180           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
    3181           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pResponseHandler_0, LIBNDR_FLAG_REF_ALLOC);
    3182           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    3183           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    3184             :         }
    3185           0 :         if (flags & NDR_OUT) {
    3186             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    3187             :                 if (r->in.pCtx == NULL) {
    3188             :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    3189             :                         NDR_ZERO_STRUCTP(r->in.pCtx);
    3190             :                 }
    3191             :                 if (r->in.pResponseHandler == NULL) {
    3192             :                         NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
    3193             :                         NDR_ZERO_STRUCTP(r->in.pResponseHandler);
    3194             :                 }
    3195             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    3196           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3197           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    3198             :                 }
    3199           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3200           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    3201           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    3202           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    3203           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    3204             :         }
    3205           0 :         return NDR_ERR_SUCCESS;
    3206             : }
    3207             : 
    3208           0 : _PUBLIC_ void ndr_print_ExecQueryAsync(struct ndr_print *ndr, const char *name, int flags, const struct ExecQueryAsync *r)
    3209             : {
    3210           0 :         ndr_print_struct(ndr, name, "ExecQueryAsync");
    3211           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    3212           0 :         ndr->depth++;
    3213           0 :         if (flags & NDR_SET_VALUES) {
    3214           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    3215             :         }
    3216           0 :         if (flags & NDR_IN) {
    3217           0 :                 ndr_print_struct(ndr, "in", "ExecQueryAsync");
    3218           0 :                 ndr->depth++;
    3219           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    3220           0 :                 ndr_print_BSTR(ndr, "strQueryLanguage", &r->in.strQueryLanguage);
    3221           0 :                 ndr_print_BSTR(ndr, "strQuery", &r->in.strQuery);
    3222           0 :                 ndr_print_int32(ndr, "lFlags", r->in.lFlags);
    3223           0 :                 ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
    3224           0 :                 ndr->depth++;
    3225           0 :                 ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
    3226           0 :                 ndr->depth--;
    3227           0 :                 ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
    3228           0 :                 ndr->depth++;
    3229           0 :                 ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
    3230           0 :                 ndr->depth--;
    3231           0 :                 ndr->depth--;
    3232             :         }
    3233           0 :         if (flags & NDR_OUT) {
    3234           0 :                 ndr_print_struct(ndr, "out", "ExecQueryAsync");
    3235           0 :                 ndr->depth++;
    3236           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    3237           0 :                 ndr->depth++;
    3238           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    3239           0 :                 ndr->depth--;
    3240           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    3241           0 :                 ndr->depth--;
    3242             :         }
    3243           0 :         ndr->depth--;
    3244             : }
    3245             : 
    3246           0 : static enum ndr_err_code ndr_push_ExecNotificationQuery(struct ndr_push *ndr, int flags, const struct ExecNotificationQuery *r)
    3247             : {
    3248           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    3249           0 :         if (flags & NDR_IN) {
    3250           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    3251           0 :                 NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strQueryLanguage));
    3252           0 :                 NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strQuery));
    3253           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
    3254           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pCtx));
    3255           0 :                 if (r->in.pCtx) {
    3256           0 :                         NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    3257             :                 }
    3258             :         }
    3259           0 :         if (flags & NDR_OUT) {
    3260           0 :                 if (r->out.ORPCthat == NULL) {
    3261           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3262             :                 }
    3263           0 :                 if (r->out.ppEnum == NULL) {
    3264           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3265             :                 }
    3266           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    3267           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppEnum));
    3268           0 :                 if (*r->out.ppEnum) {
    3269           0 :                         NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
    3270             :                 }
    3271           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    3272             :         }
    3273           0 :         return NDR_ERR_SUCCESS;
    3274             : }
    3275             : 
    3276           0 : static enum ndr_err_code ndr_pull_ExecNotificationQuery(struct ndr_pull *ndr, int flags, struct ExecNotificationQuery *r)
    3277             : {
    3278             :         uint32_t _ptr_pCtx;
    3279             :         uint32_t _ptr_ppEnum;
    3280           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    3281           0 :         TALLOC_CTX *_mem_save_pCtx_0 = NULL;
    3282           0 :         TALLOC_CTX *_mem_save_ppEnum_0 = NULL;
    3283           0 :         TALLOC_CTX *_mem_save_ppEnum_1 = NULL;
    3284           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    3285           0 :         if (flags & NDR_IN) {
    3286           0 :                 NDR_ZERO_STRUCT(r->out);
    3287             : 
    3288           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    3289           0 :                 NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strQueryLanguage));
    3290           0 :                 NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strQuery));
    3291           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
    3292           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pCtx));
    3293           0 :                 if (_ptr_pCtx) {
    3294           0 :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    3295             :                 } else {
    3296           0 :                         r->in.pCtx = NULL;
    3297             :                 }
    3298           0 :                 if (r->in.pCtx) {
    3299           0 :                         _mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3300           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, 0);
    3301           0 :                         NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    3302           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, 0);
    3303             :                 }
    3304           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    3305           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    3306           0 :                 NDR_PULL_ALLOC(ndr, r->out.ppEnum);
    3307           0 :                 NDR_ZERO_STRUCTP(r->out.ppEnum);
    3308             :         }
    3309           0 :         if (flags & NDR_OUT) {
    3310             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    3311             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    3312           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3313           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    3314             :                 }
    3315           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3316           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    3317           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    3318           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    3319           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3320           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppEnum);
    3321             :                 }
    3322           0 :                 _mem_save_ppEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3323           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ppEnum, LIBNDR_FLAG_REF_ALLOC);
    3324           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppEnum));
    3325           0 :                 if (_ptr_ppEnum) {
    3326           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ppEnum);
    3327             :                 } else {
    3328           0 :                         *r->out.ppEnum = NULL;
    3329             :                 }
    3330           0 :                 if (*r->out.ppEnum) {
    3331           0 :                         _mem_save_ppEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
    3332           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppEnum, 0);
    3333           0 :                         NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
    3334           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_1, 0);
    3335             :                 }
    3336           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_0, LIBNDR_FLAG_REF_ALLOC);
    3337           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    3338             :         }
    3339           0 :         return NDR_ERR_SUCCESS;
    3340             : }
    3341             : 
    3342           0 : _PUBLIC_ void ndr_print_ExecNotificationQuery(struct ndr_print *ndr, const char *name, int flags, const struct ExecNotificationQuery *r)
    3343             : {
    3344           0 :         ndr_print_struct(ndr, name, "ExecNotificationQuery");
    3345           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    3346           0 :         ndr->depth++;
    3347           0 :         if (flags & NDR_SET_VALUES) {
    3348           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    3349             :         }
    3350           0 :         if (flags & NDR_IN) {
    3351           0 :                 ndr_print_struct(ndr, "in", "ExecNotificationQuery");
    3352           0 :                 ndr->depth++;
    3353           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    3354           0 :                 ndr_print_BSTR(ndr, "strQueryLanguage", &r->in.strQueryLanguage);
    3355           0 :                 ndr_print_BSTR(ndr, "strQuery", &r->in.strQuery);
    3356           0 :                 ndr_print_int32(ndr, "lFlags", r->in.lFlags);
    3357           0 :                 ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
    3358           0 :                 ndr->depth++;
    3359           0 :                 if (r->in.pCtx) {
    3360           0 :                         ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
    3361             :                 }
    3362           0 :                 ndr->depth--;
    3363           0 :                 ndr->depth--;
    3364             :         }
    3365           0 :         if (flags & NDR_OUT) {
    3366           0 :                 ndr_print_struct(ndr, "out", "ExecNotificationQuery");
    3367           0 :                 ndr->depth++;
    3368           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    3369           0 :                 ndr->depth++;
    3370           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    3371           0 :                 ndr->depth--;
    3372           0 :                 ndr_print_ptr(ndr, "ppEnum", r->out.ppEnum);
    3373           0 :                 ndr->depth++;
    3374           0 :                 ndr_print_ptr(ndr, "ppEnum", *r->out.ppEnum);
    3375           0 :                 ndr->depth++;
    3376           0 :                 if (*r->out.ppEnum) {
    3377           0 :                         ndr_print_MInterfacePointer(ndr, "ppEnum", *r->out.ppEnum);
    3378             :                 }
    3379           0 :                 ndr->depth--;
    3380           0 :                 ndr->depth--;
    3381           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    3382           0 :                 ndr->depth--;
    3383             :         }
    3384           0 :         ndr->depth--;
    3385             : }
    3386             : 
    3387           0 : static enum ndr_err_code ndr_push_ExecNotificationQueryAsync(struct ndr_push *ndr, int flags, const struct ExecNotificationQueryAsync *r)
    3388             : {
    3389           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    3390           0 :         if (flags & NDR_IN) {
    3391           0 :                 if (r->in.pCtx == NULL) {
    3392           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3393             :                 }
    3394           0 :                 if (r->in.pResponseHandler == NULL) {
    3395           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3396             :                 }
    3397           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    3398           0 :                 NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strQueryLanguage));
    3399           0 :                 NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strQuery));
    3400           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
    3401           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    3402           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
    3403             :         }
    3404           0 :         if (flags & NDR_OUT) {
    3405           0 :                 if (r->out.ORPCthat == NULL) {
    3406           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3407             :                 }
    3408           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    3409           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    3410             :         }
    3411           0 :         return NDR_ERR_SUCCESS;
    3412             : }
    3413             : 
    3414           0 : static enum ndr_err_code ndr_pull_ExecNotificationQueryAsync(struct ndr_pull *ndr, int flags, struct ExecNotificationQueryAsync *r)
    3415             : {
    3416           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    3417           0 :         TALLOC_CTX *_mem_save_pCtx_0 = NULL;
    3418           0 :         TALLOC_CTX *_mem_save_pResponseHandler_0 = NULL;
    3419           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    3420           0 :         if (flags & NDR_IN) {
    3421           0 :                 NDR_ZERO_STRUCT(r->out);
    3422             : 
    3423           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    3424           0 :                 NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strQueryLanguage));
    3425           0 :                 NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strQuery));
    3426           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
    3427           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3428           0 :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    3429             :                 }
    3430           0 :                 _mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3431           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
    3432           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    3433           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
    3434           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3435           0 :                         NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
    3436             :                 }
    3437           0 :                 _mem_save_pResponseHandler_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3438           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pResponseHandler, LIBNDR_FLAG_REF_ALLOC);
    3439           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
    3440           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pResponseHandler_0, LIBNDR_FLAG_REF_ALLOC);
    3441           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    3442           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    3443             :         }
    3444           0 :         if (flags & NDR_OUT) {
    3445             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    3446             :                 if (r->in.pCtx == NULL) {
    3447             :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    3448             :                         NDR_ZERO_STRUCTP(r->in.pCtx);
    3449             :                 }
    3450             :                 if (r->in.pResponseHandler == NULL) {
    3451             :                         NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
    3452             :                         NDR_ZERO_STRUCTP(r->in.pResponseHandler);
    3453             :                 }
    3454             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    3455           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3456           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    3457             :                 }
    3458           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3459           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    3460           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    3461           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    3462           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    3463             :         }
    3464           0 :         return NDR_ERR_SUCCESS;
    3465             : }
    3466             : 
    3467           0 : _PUBLIC_ void ndr_print_ExecNotificationQueryAsync(struct ndr_print *ndr, const char *name, int flags, const struct ExecNotificationQueryAsync *r)
    3468             : {
    3469           0 :         ndr_print_struct(ndr, name, "ExecNotificationQueryAsync");
    3470           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    3471           0 :         ndr->depth++;
    3472           0 :         if (flags & NDR_SET_VALUES) {
    3473           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    3474             :         }
    3475           0 :         if (flags & NDR_IN) {
    3476           0 :                 ndr_print_struct(ndr, "in", "ExecNotificationQueryAsync");
    3477           0 :                 ndr->depth++;
    3478           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    3479           0 :                 ndr_print_BSTR(ndr, "strQueryLanguage", &r->in.strQueryLanguage);
    3480           0 :                 ndr_print_BSTR(ndr, "strQuery", &r->in.strQuery);
    3481           0 :                 ndr_print_int32(ndr, "lFlags", r->in.lFlags);
    3482           0 :                 ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
    3483           0 :                 ndr->depth++;
    3484           0 :                 ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
    3485           0 :                 ndr->depth--;
    3486           0 :                 ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
    3487           0 :                 ndr->depth++;
    3488           0 :                 ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
    3489           0 :                 ndr->depth--;
    3490           0 :                 ndr->depth--;
    3491             :         }
    3492           0 :         if (flags & NDR_OUT) {
    3493           0 :                 ndr_print_struct(ndr, "out", "ExecNotificationQueryAsync");
    3494           0 :                 ndr->depth++;
    3495           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    3496           0 :                 ndr->depth++;
    3497           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    3498           0 :                 ndr->depth--;
    3499           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    3500           0 :                 ndr->depth--;
    3501             :         }
    3502           0 :         ndr->depth--;
    3503             : }
    3504             : 
    3505           0 : static enum ndr_err_code ndr_push_ExecMethod(struct ndr_push *ndr, int flags, const struct ExecMethod *r)
    3506             : {
    3507           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    3508           0 :         if (flags & NDR_IN) {
    3509           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    3510           0 :                 NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strObjectPath));
    3511           0 :                 NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strMethodName));
    3512           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
    3513           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pCtx));
    3514           0 :                 if (r->in.pCtx) {
    3515           0 :                         NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    3516             :                 }
    3517           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pInParams));
    3518           0 :                 if (r->in.pInParams) {
    3519           0 :                         NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pInParams));
    3520             :                 }
    3521           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.ppOutParams));
    3522           0 :                 if (r->in.ppOutParams) {
    3523           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.ppOutParams));
    3524           0 :                         if (*r->in.ppOutParams) {
    3525           0 :                                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppOutParams));
    3526             :                         }
    3527             :                 }
    3528           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.ppCallResult));
    3529           0 :                 if (r->in.ppCallResult) {
    3530           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.ppCallResult));
    3531           0 :                         if (*r->in.ppCallResult) {
    3532           0 :                                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppCallResult));
    3533             :                         }
    3534             :                 }
    3535             :         }
    3536           0 :         if (flags & NDR_OUT) {
    3537           0 :                 if (r->out.ORPCthat == NULL) {
    3538           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3539             :                 }
    3540           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    3541           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.ppOutParams));
    3542           0 :                 if (r->out.ppOutParams) {
    3543           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppOutParams));
    3544           0 :                         if (*r->out.ppOutParams) {
    3545           0 :                                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppOutParams));
    3546             :                         }
    3547             :                 }
    3548           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.ppCallResult));
    3549           0 :                 if (r->out.ppCallResult) {
    3550           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppCallResult));
    3551           0 :                         if (*r->out.ppCallResult) {
    3552           0 :                                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppCallResult));
    3553             :                         }
    3554             :                 }
    3555           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    3556             :         }
    3557           0 :         return NDR_ERR_SUCCESS;
    3558             : }
    3559             : 
    3560           0 : static enum ndr_err_code ndr_pull_ExecMethod(struct ndr_pull *ndr, int flags, struct ExecMethod *r)
    3561             : {
    3562             :         uint32_t _ptr_pCtx;
    3563             :         uint32_t _ptr_pInParams;
    3564             :         uint32_t _ptr_ppOutParams;
    3565             :         uint32_t _ptr_ppCallResult;
    3566           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    3567           0 :         TALLOC_CTX *_mem_save_pCtx_0 = NULL;
    3568           0 :         TALLOC_CTX *_mem_save_pInParams_0 = NULL;
    3569           0 :         TALLOC_CTX *_mem_save_ppOutParams_0 = NULL;
    3570           0 :         TALLOC_CTX *_mem_save_ppOutParams_1 = NULL;
    3571           0 :         TALLOC_CTX *_mem_save_ppCallResult_0 = NULL;
    3572           0 :         TALLOC_CTX *_mem_save_ppCallResult_1 = NULL;
    3573           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    3574           0 :         if (flags & NDR_IN) {
    3575           0 :                 NDR_ZERO_STRUCT(r->out);
    3576             : 
    3577           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    3578           0 :                 NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strObjectPath));
    3579           0 :                 NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strMethodName));
    3580           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
    3581           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pCtx));
    3582           0 :                 if (_ptr_pCtx) {
    3583           0 :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    3584             :                 } else {
    3585           0 :                         r->in.pCtx = NULL;
    3586             :                 }
    3587           0 :                 if (r->in.pCtx) {
    3588           0 :                         _mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3589           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, 0);
    3590           0 :                         NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    3591           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, 0);
    3592             :                 }
    3593           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pInParams));
    3594           0 :                 if (_ptr_pInParams) {
    3595           0 :                         NDR_PULL_ALLOC(ndr, r->in.pInParams);
    3596             :                 } else {
    3597           0 :                         r->in.pInParams = NULL;
    3598             :                 }
    3599           0 :                 if (r->in.pInParams) {
    3600           0 :                         _mem_save_pInParams_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3601           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.pInParams, 0);
    3602           0 :                         NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pInParams));
    3603           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pInParams_0, 0);
    3604             :                 }
    3605           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppOutParams));
    3606           0 :                 if (_ptr_ppOutParams) {
    3607           0 :                         NDR_PULL_ALLOC(ndr, r->in.ppOutParams);
    3608             :                 } else {
    3609           0 :                         r->in.ppOutParams = NULL;
    3610             :                 }
    3611           0 :                 if (r->in.ppOutParams) {
    3612           0 :                         _mem_save_ppOutParams_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3613           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.ppOutParams, 0);
    3614           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppOutParams));
    3615           0 :                         if (_ptr_ppOutParams) {
    3616           0 :                                 NDR_PULL_ALLOC(ndr, *r->in.ppOutParams);
    3617             :                         } else {
    3618           0 :                                 *r->in.ppOutParams = NULL;
    3619             :                         }
    3620           0 :                         if (*r->in.ppOutParams) {
    3621           0 :                                 _mem_save_ppOutParams_1 = NDR_PULL_GET_MEM_CTX(ndr);
    3622           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, *r->in.ppOutParams, 0);
    3623           0 :                                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppOutParams));
    3624           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppOutParams_1, 0);
    3625             :                         }
    3626           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppOutParams_0, 0);
    3627             :                 }
    3628           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
    3629           0 :                 if (_ptr_ppCallResult) {
    3630           0 :                         NDR_PULL_ALLOC(ndr, r->in.ppCallResult);
    3631             :                 } else {
    3632           0 :                         r->in.ppCallResult = NULL;
    3633             :                 }
    3634           0 :                 if (r->in.ppCallResult) {
    3635           0 :                         _mem_save_ppCallResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3636           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.ppCallResult, 0);
    3637           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
    3638           0 :                         if (_ptr_ppCallResult) {
    3639           0 :                                 NDR_PULL_ALLOC(ndr, *r->in.ppCallResult);
    3640             :                         } else {
    3641           0 :                                 *r->in.ppCallResult = NULL;
    3642             :                         }
    3643           0 :                         if (*r->in.ppCallResult) {
    3644           0 :                                 _mem_save_ppCallResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
    3645           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, *r->in.ppCallResult, 0);
    3646           0 :                                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.ppCallResult));
    3647           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_1, 0);
    3648             :                         }
    3649           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
    3650             :                 }
    3651           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    3652           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    3653             :         }
    3654           0 :         if (flags & NDR_OUT) {
    3655             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    3656             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    3657           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3658           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    3659             :                 }
    3660           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3661           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    3662           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    3663           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    3664           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppOutParams));
    3665           0 :                 if (_ptr_ppOutParams) {
    3666           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppOutParams);
    3667             :                 } else {
    3668           0 :                         r->out.ppOutParams = NULL;
    3669             :                 }
    3670           0 :                 if (r->out.ppOutParams) {
    3671           0 :                         _mem_save_ppOutParams_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3672           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->out.ppOutParams, 0);
    3673           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppOutParams));
    3674           0 :                         if (_ptr_ppOutParams) {
    3675           0 :                                 NDR_PULL_ALLOC(ndr, *r->out.ppOutParams);
    3676             :                         } else {
    3677           0 :                                 *r->out.ppOutParams = NULL;
    3678             :                         }
    3679           0 :                         if (*r->out.ppOutParams) {
    3680           0 :                                 _mem_save_ppOutParams_1 = NDR_PULL_GET_MEM_CTX(ndr);
    3681           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppOutParams, 0);
    3682           0 :                                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppOutParams));
    3683           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppOutParams_1, 0);
    3684             :                         }
    3685           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppOutParams_0, 0);
    3686             :                 }
    3687           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
    3688           0 :                 if (_ptr_ppCallResult) {
    3689           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppCallResult);
    3690             :                 } else {
    3691           0 :                         r->out.ppCallResult = NULL;
    3692             :                 }
    3693           0 :                 if (r->out.ppCallResult) {
    3694           0 :                         _mem_save_ppCallResult_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3695           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->out.ppCallResult, 0);
    3696           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppCallResult));
    3697           0 :                         if (_ptr_ppCallResult) {
    3698           0 :                                 NDR_PULL_ALLOC(ndr, *r->out.ppCallResult);
    3699             :                         } else {
    3700           0 :                                 *r->out.ppCallResult = NULL;
    3701             :                         }
    3702           0 :                         if (*r->out.ppCallResult) {
    3703           0 :                                 _mem_save_ppCallResult_1 = NDR_PULL_GET_MEM_CTX(ndr);
    3704           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppCallResult, 0);
    3705           0 :                                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppCallResult));
    3706           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_1, 0);
    3707             :                         }
    3708           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppCallResult_0, 0);
    3709             :                 }
    3710           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    3711             :         }
    3712           0 :         return NDR_ERR_SUCCESS;
    3713             : }
    3714             : 
    3715           0 : _PUBLIC_ void ndr_print_ExecMethod(struct ndr_print *ndr, const char *name, int flags, const struct ExecMethod *r)
    3716             : {
    3717           0 :         ndr_print_struct(ndr, name, "ExecMethod");
    3718           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    3719           0 :         ndr->depth++;
    3720           0 :         if (flags & NDR_SET_VALUES) {
    3721           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    3722             :         }
    3723           0 :         if (flags & NDR_IN) {
    3724           0 :                 ndr_print_struct(ndr, "in", "ExecMethod");
    3725           0 :                 ndr->depth++;
    3726           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    3727           0 :                 ndr_print_BSTR(ndr, "strObjectPath", &r->in.strObjectPath);
    3728           0 :                 ndr_print_BSTR(ndr, "strMethodName", &r->in.strMethodName);
    3729           0 :                 ndr_print_int32(ndr, "lFlags", r->in.lFlags);
    3730           0 :                 ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
    3731           0 :                 ndr->depth++;
    3732           0 :                 if (r->in.pCtx) {
    3733           0 :                         ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
    3734             :                 }
    3735           0 :                 ndr->depth--;
    3736           0 :                 ndr_print_ptr(ndr, "pInParams", r->in.pInParams);
    3737           0 :                 ndr->depth++;
    3738           0 :                 if (r->in.pInParams) {
    3739           0 :                         ndr_print_MInterfacePointer(ndr, "pInParams", r->in.pInParams);
    3740             :                 }
    3741           0 :                 ndr->depth--;
    3742           0 :                 ndr_print_ptr(ndr, "ppOutParams", r->in.ppOutParams);
    3743           0 :                 ndr->depth++;
    3744           0 :                 if (r->in.ppOutParams) {
    3745           0 :                         ndr_print_ptr(ndr, "ppOutParams", *r->in.ppOutParams);
    3746           0 :                         ndr->depth++;
    3747           0 :                         if (*r->in.ppOutParams) {
    3748           0 :                                 ndr_print_MInterfacePointer(ndr, "ppOutParams", *r->in.ppOutParams);
    3749             :                         }
    3750           0 :                         ndr->depth--;
    3751             :                 }
    3752           0 :                 ndr->depth--;
    3753           0 :                 ndr_print_ptr(ndr, "ppCallResult", r->in.ppCallResult);
    3754           0 :                 ndr->depth++;
    3755           0 :                 if (r->in.ppCallResult) {
    3756           0 :                         ndr_print_ptr(ndr, "ppCallResult", *r->in.ppCallResult);
    3757           0 :                         ndr->depth++;
    3758           0 :                         if (*r->in.ppCallResult) {
    3759           0 :                                 ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->in.ppCallResult);
    3760             :                         }
    3761           0 :                         ndr->depth--;
    3762             :                 }
    3763           0 :                 ndr->depth--;
    3764           0 :                 ndr->depth--;
    3765             :         }
    3766           0 :         if (flags & NDR_OUT) {
    3767           0 :                 ndr_print_struct(ndr, "out", "ExecMethod");
    3768           0 :                 ndr->depth++;
    3769           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    3770           0 :                 ndr->depth++;
    3771           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    3772           0 :                 ndr->depth--;
    3773           0 :                 ndr_print_ptr(ndr, "ppOutParams", r->out.ppOutParams);
    3774           0 :                 ndr->depth++;
    3775           0 :                 if (r->out.ppOutParams) {
    3776           0 :                         ndr_print_ptr(ndr, "ppOutParams", *r->out.ppOutParams);
    3777           0 :                         ndr->depth++;
    3778           0 :                         if (*r->out.ppOutParams) {
    3779           0 :                                 ndr_print_MInterfacePointer(ndr, "ppOutParams", *r->out.ppOutParams);
    3780             :                         }
    3781           0 :                         ndr->depth--;
    3782             :                 }
    3783           0 :                 ndr->depth--;
    3784           0 :                 ndr_print_ptr(ndr, "ppCallResult", r->out.ppCallResult);
    3785           0 :                 ndr->depth++;
    3786           0 :                 if (r->out.ppCallResult) {
    3787           0 :                         ndr_print_ptr(ndr, "ppCallResult", *r->out.ppCallResult);
    3788           0 :                         ndr->depth++;
    3789           0 :                         if (*r->out.ppCallResult) {
    3790           0 :                                 ndr_print_MInterfacePointer(ndr, "ppCallResult", *r->out.ppCallResult);
    3791             :                         }
    3792           0 :                         ndr->depth--;
    3793             :                 }
    3794           0 :                 ndr->depth--;
    3795           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    3796           0 :                 ndr->depth--;
    3797             :         }
    3798           0 :         ndr->depth--;
    3799             : }
    3800             : 
    3801           0 : static enum ndr_err_code ndr_push_ExecMethodAsync(struct ndr_push *ndr, int flags, const struct ExecMethodAsync *r)
    3802             : {
    3803           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    3804           0 :         if (flags & NDR_IN) {
    3805           0 :                 if (r->in.pCtx == NULL) {
    3806           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3807             :                 }
    3808           0 :                 if (r->in.pInParams == NULL) {
    3809           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3810             :                 }
    3811           0 :                 if (r->in.pResponseHandler == NULL) {
    3812           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3813             :                 }
    3814           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    3815           0 :                 NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strObjectPath));
    3816           0 :                 NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strMethodName));
    3817           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.lFlags));
    3818           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    3819           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pInParams));
    3820           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
    3821             :         }
    3822           0 :         if (flags & NDR_OUT) {
    3823           0 :                 if (r->out.ORPCthat == NULL) {
    3824           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3825             :                 }
    3826           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    3827           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    3828             :         }
    3829           0 :         return NDR_ERR_SUCCESS;
    3830             : }
    3831             : 
    3832           0 : static enum ndr_err_code ndr_pull_ExecMethodAsync(struct ndr_pull *ndr, int flags, struct ExecMethodAsync *r)
    3833             : {
    3834           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    3835           0 :         TALLOC_CTX *_mem_save_pCtx_0 = NULL;
    3836           0 :         TALLOC_CTX *_mem_save_pInParams_0 = NULL;
    3837           0 :         TALLOC_CTX *_mem_save_pResponseHandler_0 = NULL;
    3838           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    3839           0 :         if (flags & NDR_IN) {
    3840           0 :                 NDR_ZERO_STRUCT(r->out);
    3841             : 
    3842           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    3843           0 :                 NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strObjectPath));
    3844           0 :                 NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strMethodName));
    3845           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.lFlags));
    3846           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3847           0 :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    3848             :                 }
    3849           0 :                 _mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3850           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
    3851           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    3852           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
    3853           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3854           0 :                         NDR_PULL_ALLOC(ndr, r->in.pInParams);
    3855             :                 }
    3856           0 :                 _mem_save_pInParams_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3857           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pInParams, LIBNDR_FLAG_REF_ALLOC);
    3858           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pInParams));
    3859           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pInParams_0, LIBNDR_FLAG_REF_ALLOC);
    3860           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3861           0 :                         NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
    3862             :                 }
    3863           0 :                 _mem_save_pResponseHandler_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3864           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pResponseHandler, LIBNDR_FLAG_REF_ALLOC);
    3865           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pResponseHandler));
    3866           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pResponseHandler_0, LIBNDR_FLAG_REF_ALLOC);
    3867           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    3868           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    3869             :         }
    3870           0 :         if (flags & NDR_OUT) {
    3871             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    3872             :                 if (r->in.pCtx == NULL) {
    3873             :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    3874             :                         NDR_ZERO_STRUCTP(r->in.pCtx);
    3875             :                 }
    3876             :                 if (r->in.pInParams == NULL) {
    3877             :                         NDR_PULL_ALLOC(ndr, r->in.pInParams);
    3878             :                         NDR_ZERO_STRUCTP(r->in.pInParams);
    3879             :                 }
    3880             :                 if (r->in.pResponseHandler == NULL) {
    3881             :                         NDR_PULL_ALLOC(ndr, r->in.pResponseHandler);
    3882             :                         NDR_ZERO_STRUCTP(r->in.pResponseHandler);
    3883             :                 }
    3884             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    3885           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3886           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    3887             :                 }
    3888           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3889           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    3890           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    3891           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    3892           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    3893             :         }
    3894           0 :         return NDR_ERR_SUCCESS;
    3895             : }
    3896             : 
    3897           0 : _PUBLIC_ void ndr_print_ExecMethodAsync(struct ndr_print *ndr, const char *name, int flags, const struct ExecMethodAsync *r)
    3898             : {
    3899           0 :         ndr_print_struct(ndr, name, "ExecMethodAsync");
    3900           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    3901           0 :         ndr->depth++;
    3902           0 :         if (flags & NDR_SET_VALUES) {
    3903           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    3904             :         }
    3905           0 :         if (flags & NDR_IN) {
    3906           0 :                 ndr_print_struct(ndr, "in", "ExecMethodAsync");
    3907           0 :                 ndr->depth++;
    3908           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    3909           0 :                 ndr_print_BSTR(ndr, "strObjectPath", &r->in.strObjectPath);
    3910           0 :                 ndr_print_BSTR(ndr, "strMethodName", &r->in.strMethodName);
    3911           0 :                 ndr_print_uint32(ndr, "lFlags", r->in.lFlags);
    3912           0 :                 ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
    3913           0 :                 ndr->depth++;
    3914           0 :                 ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
    3915           0 :                 ndr->depth--;
    3916           0 :                 ndr_print_ptr(ndr, "pInParams", r->in.pInParams);
    3917           0 :                 ndr->depth++;
    3918           0 :                 ndr_print_MInterfacePointer(ndr, "pInParams", r->in.pInParams);
    3919           0 :                 ndr->depth--;
    3920           0 :                 ndr_print_ptr(ndr, "pResponseHandler", r->in.pResponseHandler);
    3921           0 :                 ndr->depth++;
    3922           0 :                 ndr_print_MInterfacePointer(ndr, "pResponseHandler", r->in.pResponseHandler);
    3923           0 :                 ndr->depth--;
    3924           0 :                 ndr->depth--;
    3925             :         }
    3926           0 :         if (flags & NDR_OUT) {
    3927           0 :                 ndr_print_struct(ndr, "out", "ExecMethodAsync");
    3928           0 :                 ndr->depth++;
    3929           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    3930           0 :                 ndr->depth++;
    3931           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    3932           0 :                 ndr->depth--;
    3933           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    3934           0 :                 ndr->depth--;
    3935             :         }
    3936           0 :         ndr->depth--;
    3937             : }
    3938             : 
    3939             : #ifndef SKIP_NDR_TABLE_IWbemServices
    3940             : static const struct ndr_interface_public_struct IWbemServices_public_structs[] = {
    3941             :         { .name = NULL }
    3942             : };
    3943             : 
    3944             : static const struct ndr_interface_call IWbemServices_calls[] = {
    3945             :         {
    3946             :                 "OpenNamespace",
    3947             :                 sizeof(struct OpenNamespace),
    3948             :                 (ndr_push_flags_fn_t) ndr_push_OpenNamespace,
    3949             :                 (ndr_pull_flags_fn_t) ndr_pull_OpenNamespace,
    3950             :                 (ndr_print_function_t) ndr_print_OpenNamespace,
    3951             :                 { 0, NULL },
    3952             :                 { 0, NULL },
    3953             :         },
    3954             :         {
    3955             :                 "CancelAsyncCall",
    3956             :                 sizeof(struct CancelAsyncCall),
    3957             :                 (ndr_push_flags_fn_t) ndr_push_CancelAsyncCall,
    3958             :                 (ndr_pull_flags_fn_t) ndr_pull_CancelAsyncCall,
    3959             :                 (ndr_print_function_t) ndr_print_CancelAsyncCall,
    3960             :                 { 0, NULL },
    3961             :                 { 0, NULL },
    3962             :         },
    3963             :         {
    3964             :                 "QueryObjectSink",
    3965             :                 sizeof(struct QueryObjectSink),
    3966             :                 (ndr_push_flags_fn_t) ndr_push_QueryObjectSink,
    3967             :                 (ndr_pull_flags_fn_t) ndr_pull_QueryObjectSink,
    3968             :                 (ndr_print_function_t) ndr_print_QueryObjectSink,
    3969             :                 { 0, NULL },
    3970             :                 { 0, NULL },
    3971             :         },
    3972             :         {
    3973             :                 "GetObject",
    3974             :                 sizeof(struct GetObject),
    3975             :                 (ndr_push_flags_fn_t) ndr_push_GetObject,
    3976             :                 (ndr_pull_flags_fn_t) ndr_pull_GetObject,
    3977             :                 (ndr_print_function_t) ndr_print_GetObject,
    3978             :                 { 0, NULL },
    3979             :                 { 0, NULL },
    3980             :         },
    3981             :         {
    3982             :                 "GetObjectAsync",
    3983             :                 sizeof(struct GetObjectAsync),
    3984             :                 (ndr_push_flags_fn_t) ndr_push_GetObjectAsync,
    3985             :                 (ndr_pull_flags_fn_t) ndr_pull_GetObjectAsync,
    3986             :                 (ndr_print_function_t) ndr_print_GetObjectAsync,
    3987             :                 { 0, NULL },
    3988             :                 { 0, NULL },
    3989             :         },
    3990             :         {
    3991             :                 "PutClass",
    3992             :                 sizeof(struct PutClass),
    3993             :                 (ndr_push_flags_fn_t) ndr_push_PutClass,
    3994             :                 (ndr_pull_flags_fn_t) ndr_pull_PutClass,
    3995             :                 (ndr_print_function_t) ndr_print_PutClass,
    3996             :                 { 0, NULL },
    3997             :                 { 0, NULL },
    3998             :         },
    3999             :         {
    4000             :                 "PutClassAsync",
    4001             :                 sizeof(struct PutClassAsync),
    4002             :                 (ndr_push_flags_fn_t) ndr_push_PutClassAsync,
    4003             :                 (ndr_pull_flags_fn_t) ndr_pull_PutClassAsync,
    4004             :                 (ndr_print_function_t) ndr_print_PutClassAsync,
    4005             :                 { 0, NULL },
    4006             :                 { 0, NULL },
    4007             :         },
    4008             :         {
    4009             :                 "DeleteClass",
    4010             :                 sizeof(struct DeleteClass),
    4011             :                 (ndr_push_flags_fn_t) ndr_push_DeleteClass,
    4012             :                 (ndr_pull_flags_fn_t) ndr_pull_DeleteClass,
    4013             :                 (ndr_print_function_t) ndr_print_DeleteClass,
    4014             :                 { 0, NULL },
    4015             :                 { 0, NULL },
    4016             :         },
    4017             :         {
    4018             :                 "DeleteClassAsync",
    4019             :                 sizeof(struct DeleteClassAsync),
    4020             :                 (ndr_push_flags_fn_t) ndr_push_DeleteClassAsync,
    4021             :                 (ndr_pull_flags_fn_t) ndr_pull_DeleteClassAsync,
    4022             :                 (ndr_print_function_t) ndr_print_DeleteClassAsync,
    4023             :                 { 0, NULL },
    4024             :                 { 0, NULL },
    4025             :         },
    4026             :         {
    4027             :                 "CreateClassEnum",
    4028             :                 sizeof(struct CreateClassEnum),
    4029             :                 (ndr_push_flags_fn_t) ndr_push_CreateClassEnum,
    4030             :                 (ndr_pull_flags_fn_t) ndr_pull_CreateClassEnum,
    4031             :                 (ndr_print_function_t) ndr_print_CreateClassEnum,
    4032             :                 { 0, NULL },
    4033             :                 { 0, NULL },
    4034             :         },
    4035             :         {
    4036             :                 "CreateClassEnumAsync",
    4037             :                 sizeof(struct CreateClassEnumAsync),
    4038             :                 (ndr_push_flags_fn_t) ndr_push_CreateClassEnumAsync,
    4039             :                 (ndr_pull_flags_fn_t) ndr_pull_CreateClassEnumAsync,
    4040             :                 (ndr_print_function_t) ndr_print_CreateClassEnumAsync,
    4041             :                 { 0, NULL },
    4042             :                 { 0, NULL },
    4043             :         },
    4044             :         {
    4045             :                 "PutInstance",
    4046             :                 sizeof(struct PutInstance),
    4047             :                 (ndr_push_flags_fn_t) ndr_push_PutInstance,
    4048             :                 (ndr_pull_flags_fn_t) ndr_pull_PutInstance,
    4049             :                 (ndr_print_function_t) ndr_print_PutInstance,
    4050             :                 { 0, NULL },
    4051             :                 { 0, NULL },
    4052             :         },
    4053             :         {
    4054             :                 "PutInstanceAsync",
    4055             :                 sizeof(struct PutInstanceAsync),
    4056             :                 (ndr_push_flags_fn_t) ndr_push_PutInstanceAsync,
    4057             :                 (ndr_pull_flags_fn_t) ndr_pull_PutInstanceAsync,
    4058             :                 (ndr_print_function_t) ndr_print_PutInstanceAsync,
    4059             :                 { 0, NULL },
    4060             :                 { 0, NULL },
    4061             :         },
    4062             :         {
    4063             :                 "DeleteInstance",
    4064             :                 sizeof(struct DeleteInstance),
    4065             :                 (ndr_push_flags_fn_t) ndr_push_DeleteInstance,
    4066             :                 (ndr_pull_flags_fn_t) ndr_pull_DeleteInstance,
    4067             :                 (ndr_print_function_t) ndr_print_DeleteInstance,
    4068             :                 { 0, NULL },
    4069             :                 { 0, NULL },
    4070             :         },
    4071             :         {
    4072             :                 "DeleteInstanceAsync",
    4073             :                 sizeof(struct DeleteInstanceAsync),
    4074             :                 (ndr_push_flags_fn_t) ndr_push_DeleteInstanceAsync,
    4075             :                 (ndr_pull_flags_fn_t) ndr_pull_DeleteInstanceAsync,
    4076             :                 (ndr_print_function_t) ndr_print_DeleteInstanceAsync,
    4077             :                 { 0, NULL },
    4078             :                 { 0, NULL },
    4079             :         },
    4080             :         {
    4081             :                 "CreateInstanceEnum",
    4082             :                 sizeof(struct CreateInstanceEnum),
    4083             :                 (ndr_push_flags_fn_t) ndr_push_CreateInstanceEnum,
    4084             :                 (ndr_pull_flags_fn_t) ndr_pull_CreateInstanceEnum,
    4085             :                 (ndr_print_function_t) ndr_print_CreateInstanceEnum,
    4086             :                 { 0, NULL },
    4087             :                 { 0, NULL },
    4088             :         },
    4089             :         {
    4090             :                 "CreateInstanceEnumAsync",
    4091             :                 sizeof(struct CreateInstanceEnumAsync),
    4092             :                 (ndr_push_flags_fn_t) ndr_push_CreateInstanceEnumAsync,
    4093             :                 (ndr_pull_flags_fn_t) ndr_pull_CreateInstanceEnumAsync,
    4094             :                 (ndr_print_function_t) ndr_print_CreateInstanceEnumAsync,
    4095             :                 { 0, NULL },
    4096             :                 { 0, NULL },
    4097             :         },
    4098             :         {
    4099             :                 "ExecQuery",
    4100             :                 sizeof(struct ExecQuery),
    4101             :                 (ndr_push_flags_fn_t) ndr_push_ExecQuery,
    4102             :                 (ndr_pull_flags_fn_t) ndr_pull_ExecQuery,
    4103             :                 (ndr_print_function_t) ndr_print_ExecQuery,
    4104             :                 { 0, NULL },
    4105             :                 { 0, NULL },
    4106             :         },
    4107             :         {
    4108             :                 "ExecQueryAsync",
    4109             :                 sizeof(struct ExecQueryAsync),
    4110             :                 (ndr_push_flags_fn_t) ndr_push_ExecQueryAsync,
    4111             :                 (ndr_pull_flags_fn_t) ndr_pull_ExecQueryAsync,
    4112             :                 (ndr_print_function_t) ndr_print_ExecQueryAsync,
    4113             :                 { 0, NULL },
    4114             :                 { 0, NULL },
    4115             :         },
    4116             :         {
    4117             :                 "ExecNotificationQuery",
    4118             :                 sizeof(struct ExecNotificationQuery),
    4119             :                 (ndr_push_flags_fn_t) ndr_push_ExecNotificationQuery,
    4120             :                 (ndr_pull_flags_fn_t) ndr_pull_ExecNotificationQuery,
    4121             :                 (ndr_print_function_t) ndr_print_ExecNotificationQuery,
    4122             :                 { 0, NULL },
    4123             :                 { 0, NULL },
    4124             :         },
    4125             :         {
    4126             :                 "ExecNotificationQueryAsync",
    4127             :                 sizeof(struct ExecNotificationQueryAsync),
    4128             :                 (ndr_push_flags_fn_t) ndr_push_ExecNotificationQueryAsync,
    4129             :                 (ndr_pull_flags_fn_t) ndr_pull_ExecNotificationQueryAsync,
    4130             :                 (ndr_print_function_t) ndr_print_ExecNotificationQueryAsync,
    4131             :                 { 0, NULL },
    4132             :                 { 0, NULL },
    4133             :         },
    4134             :         {
    4135             :                 "ExecMethod",
    4136             :                 sizeof(struct ExecMethod),
    4137             :                 (ndr_push_flags_fn_t) ndr_push_ExecMethod,
    4138             :                 (ndr_pull_flags_fn_t) ndr_pull_ExecMethod,
    4139             :                 (ndr_print_function_t) ndr_print_ExecMethod,
    4140             :                 { 0, NULL },
    4141             :                 { 0, NULL },
    4142             :         },
    4143             :         {
    4144             :                 "ExecMethodAsync",
    4145             :                 sizeof(struct ExecMethodAsync),
    4146             :                 (ndr_push_flags_fn_t) ndr_push_ExecMethodAsync,
    4147             :                 (ndr_pull_flags_fn_t) ndr_pull_ExecMethodAsync,
    4148             :                 (ndr_print_function_t) ndr_print_ExecMethodAsync,
    4149             :                 { 0, NULL },
    4150             :                 { 0, NULL },
    4151             :         },
    4152             :         { .name = NULL }
    4153             : };
    4154             : 
    4155             : static const char * const IWbemServices_endpoint_strings[] = {
    4156             :         "ncacn_np:[\\pipe\\IWbemServices]", 
    4157             : };
    4158             : 
    4159             : static const struct ndr_interface_string_array IWbemServices_endpoints = {
    4160             :         .count  = 1,
    4161             :         .names  = IWbemServices_endpoint_strings
    4162             : };
    4163             : 
    4164             : static const char * const IWbemServices_authservice_strings[] = {
    4165             :         "host", 
    4166             : };
    4167             : 
    4168             : static const struct ndr_interface_string_array IWbemServices_authservices = {
    4169             :         .count  = 1,
    4170             :         .names  = IWbemServices_authservice_strings
    4171             : };
    4172             : 
    4173             : 
    4174             : const struct ndr_interface_table ndr_table_IWbemServices = {
    4175             :         .name           = "IWbemServices",
    4176             :         .syntax_id      = {
    4177             :                 {0x9556dc99,0x828c,0x11cf,{0xa3,0x7e},{0x00,0xaa,0x00,0x32,0x40,0xc7}},
    4178             :                 NDR_IWBEMSERVICES_VERSION
    4179             :         },
    4180             :         .helpstring     = NDR_IWBEMSERVICES_HELPSTRING,
    4181             :         .num_calls      = 23,
    4182             :         .calls          = IWbemServices_calls,
    4183             :         .num_public_structs     = 0,
    4184             :         .public_structs         = IWbemServices_public_structs,
    4185             :         .endpoints      = &IWbemServices_endpoints,
    4186             :         .authservices   = &IWbemServices_authservices
    4187             : };
    4188             : 
    4189             : #endif /* SKIP_NDR_TABLE_IWbemServices */
    4190             : #include "librpc/gen_ndr/ndr_orpc.h"
    4191           0 : static enum ndr_err_code ndr_push_Reset(struct ndr_push *ndr, int flags, const struct Reset *r)
    4192             : {
    4193           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    4194           0 :         if (flags & NDR_IN) {
    4195           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    4196             :         }
    4197           0 :         if (flags & NDR_OUT) {
    4198           0 :                 if (r->out.ORPCthat == NULL) {
    4199           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4200             :                 }
    4201           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    4202           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    4203             :         }
    4204           0 :         return NDR_ERR_SUCCESS;
    4205             : }
    4206             : 
    4207           0 : static enum ndr_err_code ndr_pull_Reset(struct ndr_pull *ndr, int flags, struct Reset *r)
    4208             : {
    4209           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    4210           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    4211           0 :         if (flags & NDR_IN) {
    4212           0 :                 NDR_ZERO_STRUCT(r->out);
    4213             : 
    4214           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    4215           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    4216           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    4217             :         }
    4218           0 :         if (flags & NDR_OUT) {
    4219             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    4220             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    4221           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4222           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    4223             :                 }
    4224           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4225           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    4226           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    4227           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    4228           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    4229             :         }
    4230           0 :         return NDR_ERR_SUCCESS;
    4231             : }
    4232             : 
    4233           0 : _PUBLIC_ void ndr_print_Reset(struct ndr_print *ndr, const char *name, int flags, const struct Reset *r)
    4234             : {
    4235           0 :         ndr_print_struct(ndr, name, "Reset");
    4236           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    4237           0 :         ndr->depth++;
    4238           0 :         if (flags & NDR_SET_VALUES) {
    4239           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    4240             :         }
    4241           0 :         if (flags & NDR_IN) {
    4242           0 :                 ndr_print_struct(ndr, "in", "Reset");
    4243           0 :                 ndr->depth++;
    4244           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    4245           0 :                 ndr->depth--;
    4246             :         }
    4247           0 :         if (flags & NDR_OUT) {
    4248           0 :                 ndr_print_struct(ndr, "out", "Reset");
    4249           0 :                 ndr->depth++;
    4250           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    4251           0 :                 ndr->depth++;
    4252           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    4253           0 :                 ndr->depth--;
    4254           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    4255           0 :                 ndr->depth--;
    4256             :         }
    4257           0 :         ndr->depth--;
    4258             : }
    4259             : 
    4260           0 : static enum ndr_err_code ndr_push_IEnumWbemClassObject_Next(struct ndr_push *ndr, int flags, const struct IEnumWbemClassObject_Next *r)
    4261             : {
    4262             :         uint32_t cntr_apObjects_1;
    4263           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    4264           0 :         if (flags & NDR_IN) {
    4265           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    4266           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lTimeout));
    4267           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.uCount));
    4268             :         }
    4269           0 :         if (flags & NDR_OUT) {
    4270           0 :                 if (r->out.ORPCthat == NULL) {
    4271           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4272             :                 }
    4273           0 :                 if (r->out.apObjects == NULL) {
    4274           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4275             :                 }
    4276           0 :                 if (r->out.puReturned == NULL) {
    4277           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4278             :                 }
    4279           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    4280           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.uCount));
    4281           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    4282           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.puReturned));
    4283           0 :                 for (cntr_apObjects_1 = 0; cntr_apObjects_1 < (*r->out.puReturned); cntr_apObjects_1++) {
    4284           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.apObjects[cntr_apObjects_1]));
    4285             :                 }
    4286           0 :                 for (cntr_apObjects_1 = 0; cntr_apObjects_1 < (*r->out.puReturned); cntr_apObjects_1++) {
    4287           0 :                         if (r->out.apObjects[cntr_apObjects_1]) {
    4288           0 :                                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.apObjects[cntr_apObjects_1]));
    4289             :                         }
    4290             :                 }
    4291           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.puReturned));
    4292           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    4293             :         }
    4294           0 :         return NDR_ERR_SUCCESS;
    4295             : }
    4296             : 
    4297           0 : static enum ndr_err_code ndr_pull_IEnumWbemClassObject_Next(struct ndr_pull *ndr, int flags, struct IEnumWbemClassObject_Next *r)
    4298             : {
    4299             :         uint32_t _ptr_apObjects;
    4300           0 :         uint32_t size_apObjects_1 = 0;
    4301           0 :         uint32_t length_apObjects_1 = 0;
    4302             :         uint32_t cntr_apObjects_1;
    4303           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    4304           0 :         TALLOC_CTX *_mem_save_apObjects_1 = NULL;
    4305           0 :         TALLOC_CTX *_mem_save_apObjects_2 = NULL;
    4306           0 :         TALLOC_CTX *_mem_save_puReturned_0 = NULL;
    4307           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    4308           0 :         if (flags & NDR_IN) {
    4309           0 :                 NDR_ZERO_STRUCT(r->out);
    4310             : 
    4311           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    4312           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lTimeout));
    4313           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.uCount));
    4314           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    4315           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    4316           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.apObjects, r->in.uCount);
    4317           0 :                 memset(r->out.apObjects, 0, (r->in.uCount) * sizeof(*r->out.apObjects));
    4318           0 :                 NDR_PULL_ALLOC(ndr, r->out.puReturned);
    4319           0 :                 NDR_ZERO_STRUCTP(r->out.puReturned);
    4320             :         }
    4321           0 :         if (flags & NDR_OUT) {
    4322             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    4323             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    4324           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4325           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    4326             :                 }
    4327           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4328           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    4329           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    4330           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    4331           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.apObjects));
    4332           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->out.apObjects));
    4333           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.apObjects, &size_apObjects_1));
    4334           0 :                 NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.apObjects, &length_apObjects_1));
    4335           0 :                 if (length_apObjects_1 > size_apObjects_1) {
    4336           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_apObjects_1, length_apObjects_1);
    4337             :                 }
    4338           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4339           0 :                         NDR_PULL_ALLOC_N(ndr, r->out.apObjects, size_apObjects_1);
    4340             :                 }
    4341           0 :                 _mem_save_apObjects_1 = NDR_PULL_GET_MEM_CTX(ndr);
    4342           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.apObjects, 0);
    4343           0 :                 for (cntr_apObjects_1 = 0; cntr_apObjects_1 < (length_apObjects_1); cntr_apObjects_1++) {
    4344           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_apObjects));
    4345           0 :                         if (_ptr_apObjects) {
    4346           0 :                                 NDR_PULL_ALLOC(ndr, r->out.apObjects[cntr_apObjects_1]);
    4347             :                         } else {
    4348           0 :                                 r->out.apObjects[cntr_apObjects_1] = NULL;
    4349             :                         }
    4350             :                 }
    4351           0 :                 for (cntr_apObjects_1 = 0; cntr_apObjects_1 < (length_apObjects_1); cntr_apObjects_1++) {
    4352           0 :                         if (r->out.apObjects[cntr_apObjects_1]) {
    4353           0 :                                 _mem_save_apObjects_2 = NDR_PULL_GET_MEM_CTX(ndr);
    4354           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->out.apObjects[cntr_apObjects_1], 0);
    4355           0 :                                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.apObjects[cntr_apObjects_1]));
    4356           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_apObjects_2, 0);
    4357             :                         }
    4358             :                 }
    4359           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_apObjects_1, 0);
    4360           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4361           0 :                         NDR_PULL_ALLOC(ndr, r->out.puReturned);
    4362             :                 }
    4363           0 :                 _mem_save_puReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4364           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.puReturned, LIBNDR_FLAG_REF_ALLOC);
    4365           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.puReturned));
    4366           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_puReturned_0, LIBNDR_FLAG_REF_ALLOC);
    4367           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    4368           0 :                 if (r->out.apObjects) {
    4369           0 :                         NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->out.apObjects, r->in.uCount));
    4370             :                 }
    4371           0 :                 if (r->out.apObjects) {
    4372           0 :                         NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.apObjects, *r->out.puReturned));
    4373             :                 }
    4374           0 :                 for (cntr_apObjects_1 = 0; cntr_apObjects_1 < (length_apObjects_1); cntr_apObjects_1++) {
    4375             :                 }
    4376             :         }
    4377           0 :         return NDR_ERR_SUCCESS;
    4378             : }
    4379             : 
    4380           0 : _PUBLIC_ void ndr_print_IEnumWbemClassObject_Next(struct ndr_print *ndr, const char *name, int flags, const struct IEnumWbemClassObject_Next *r)
    4381             : {
    4382             :         uint32_t cntr_apObjects_1;
    4383           0 :         ndr_print_struct(ndr, name, "IEnumWbemClassObject_Next");
    4384           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    4385           0 :         ndr->depth++;
    4386           0 :         if (flags & NDR_SET_VALUES) {
    4387           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    4388             :         }
    4389           0 :         if (flags & NDR_IN) {
    4390           0 :                 ndr_print_struct(ndr, "in", "IEnumWbemClassObject_Next");
    4391           0 :                 ndr->depth++;
    4392           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    4393           0 :                 ndr_print_int32(ndr, "lTimeout", r->in.lTimeout);
    4394           0 :                 ndr_print_uint32(ndr, "uCount", r->in.uCount);
    4395           0 :                 ndr->depth--;
    4396             :         }
    4397           0 :         if (flags & NDR_OUT) {
    4398           0 :                 ndr_print_struct(ndr, "out", "IEnumWbemClassObject_Next");
    4399           0 :                 ndr->depth++;
    4400           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    4401           0 :                 ndr->depth++;
    4402           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    4403           0 :                 ndr->depth--;
    4404           0 :                 ndr_print_ptr(ndr, "apObjects", r->out.apObjects);
    4405           0 :                 ndr->depth++;
    4406           0 :                 ndr->print(ndr, "%s: ARRAY(%d)", "apObjects", (int)*r->out.puReturned);
    4407           0 :                 ndr->depth++;
    4408           0 :                 for (cntr_apObjects_1 = 0; cntr_apObjects_1 < (*r->out.puReturned); cntr_apObjects_1++) {
    4409           0 :                         ndr_print_ptr(ndr, "apObjects", r->out.apObjects[cntr_apObjects_1]);
    4410           0 :                         ndr->depth++;
    4411           0 :                         if (r->out.apObjects[cntr_apObjects_1]) {
    4412           0 :                                 ndr_print_MInterfacePointer(ndr, "apObjects", r->out.apObjects[cntr_apObjects_1]);
    4413             :                         }
    4414           0 :                         ndr->depth--;
    4415             :                 }
    4416           0 :                 ndr->depth--;
    4417           0 :                 ndr->depth--;
    4418           0 :                 ndr_print_ptr(ndr, "puReturned", r->out.puReturned);
    4419           0 :                 ndr->depth++;
    4420           0 :                 ndr_print_uint32(ndr, "puReturned", *r->out.puReturned);
    4421           0 :                 ndr->depth--;
    4422           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    4423           0 :                 ndr->depth--;
    4424             :         }
    4425           0 :         ndr->depth--;
    4426             : }
    4427             : 
    4428           0 : static enum ndr_err_code ndr_push_NextAsync(struct ndr_push *ndr, int flags, const struct NextAsync *r)
    4429             : {
    4430           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    4431           0 :         if (flags & NDR_IN) {
    4432           0 :                 if (r->in.pSink == NULL) {
    4433           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4434             :                 }
    4435           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    4436           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.uCount));
    4437           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pSink));
    4438             :         }
    4439           0 :         if (flags & NDR_OUT) {
    4440           0 :                 if (r->out.ORPCthat == NULL) {
    4441           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4442             :                 }
    4443           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    4444           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    4445             :         }
    4446           0 :         return NDR_ERR_SUCCESS;
    4447             : }
    4448             : 
    4449           0 : static enum ndr_err_code ndr_pull_NextAsync(struct ndr_pull *ndr, int flags, struct NextAsync *r)
    4450             : {
    4451           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    4452           0 :         TALLOC_CTX *_mem_save_pSink_0 = NULL;
    4453           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    4454           0 :         if (flags & NDR_IN) {
    4455           0 :                 NDR_ZERO_STRUCT(r->out);
    4456             : 
    4457           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    4458           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.uCount));
    4459           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4460           0 :                         NDR_PULL_ALLOC(ndr, r->in.pSink);
    4461             :                 }
    4462           0 :                 _mem_save_pSink_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4463           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pSink, LIBNDR_FLAG_REF_ALLOC);
    4464           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pSink));
    4465           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pSink_0, LIBNDR_FLAG_REF_ALLOC);
    4466           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    4467           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    4468             :         }
    4469           0 :         if (flags & NDR_OUT) {
    4470             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    4471             :                 if (r->in.pSink == NULL) {
    4472             :                         NDR_PULL_ALLOC(ndr, r->in.pSink);
    4473             :                         NDR_ZERO_STRUCTP(r->in.pSink);
    4474             :                 }
    4475             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    4476           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4477           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    4478             :                 }
    4479           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4480           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    4481           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    4482           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    4483           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    4484             :         }
    4485           0 :         return NDR_ERR_SUCCESS;
    4486             : }
    4487             : 
    4488           0 : _PUBLIC_ void ndr_print_NextAsync(struct ndr_print *ndr, const char *name, int flags, const struct NextAsync *r)
    4489             : {
    4490           0 :         ndr_print_struct(ndr, name, "NextAsync");
    4491           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    4492           0 :         ndr->depth++;
    4493           0 :         if (flags & NDR_SET_VALUES) {
    4494           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    4495             :         }
    4496           0 :         if (flags & NDR_IN) {
    4497           0 :                 ndr_print_struct(ndr, "in", "NextAsync");
    4498           0 :                 ndr->depth++;
    4499           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    4500           0 :                 ndr_print_uint32(ndr, "uCount", r->in.uCount);
    4501           0 :                 ndr_print_ptr(ndr, "pSink", r->in.pSink);
    4502           0 :                 ndr->depth++;
    4503           0 :                 ndr_print_MInterfacePointer(ndr, "pSink", r->in.pSink);
    4504           0 :                 ndr->depth--;
    4505           0 :                 ndr->depth--;
    4506             :         }
    4507           0 :         if (flags & NDR_OUT) {
    4508           0 :                 ndr_print_struct(ndr, "out", "NextAsync");
    4509           0 :                 ndr->depth++;
    4510           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    4511           0 :                 ndr->depth++;
    4512           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    4513           0 :                 ndr->depth--;
    4514           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    4515           0 :                 ndr->depth--;
    4516             :         }
    4517           0 :         ndr->depth--;
    4518             : }
    4519             : 
    4520           0 : static enum ndr_err_code ndr_push_IEnumWbemClassObject_Clone(struct ndr_push *ndr, int flags, const struct IEnumWbemClassObject_Clone *r)
    4521             : {
    4522           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    4523           0 :         if (flags & NDR_IN) {
    4524           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    4525             :         }
    4526           0 :         if (flags & NDR_OUT) {
    4527           0 :                 if (r->out.ORPCthat == NULL) {
    4528           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4529             :                 }
    4530           0 :                 if (r->out.ppEnum == NULL) {
    4531           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4532             :                 }
    4533           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    4534           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppEnum));
    4535           0 :                 if (*r->out.ppEnum) {
    4536           0 :                         NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
    4537             :                 }
    4538           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    4539             :         }
    4540           0 :         return NDR_ERR_SUCCESS;
    4541             : }
    4542             : 
    4543           0 : static enum ndr_err_code ndr_pull_IEnumWbemClassObject_Clone(struct ndr_pull *ndr, int flags, struct IEnumWbemClassObject_Clone *r)
    4544             : {
    4545             :         uint32_t _ptr_ppEnum;
    4546           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    4547           0 :         TALLOC_CTX *_mem_save_ppEnum_0 = NULL;
    4548           0 :         TALLOC_CTX *_mem_save_ppEnum_1 = NULL;
    4549           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    4550           0 :         if (flags & NDR_IN) {
    4551           0 :                 NDR_ZERO_STRUCT(r->out);
    4552             : 
    4553           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    4554           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    4555           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    4556           0 :                 NDR_PULL_ALLOC(ndr, r->out.ppEnum);
    4557           0 :                 NDR_ZERO_STRUCTP(r->out.ppEnum);
    4558             :         }
    4559           0 :         if (flags & NDR_OUT) {
    4560             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    4561             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    4562           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4563           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    4564             :                 }
    4565           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4566           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    4567           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    4568           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    4569           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4570           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppEnum);
    4571             :                 }
    4572           0 :                 _mem_save_ppEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4573           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ppEnum, LIBNDR_FLAG_REF_ALLOC);
    4574           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppEnum));
    4575           0 :                 if (_ptr_ppEnum) {
    4576           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ppEnum);
    4577             :                 } else {
    4578           0 :                         *r->out.ppEnum = NULL;
    4579             :                 }
    4580           0 :                 if (*r->out.ppEnum) {
    4581           0 :                         _mem_save_ppEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
    4582           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppEnum, 0);
    4583           0 :                         NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
    4584           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_1, 0);
    4585             :                 }
    4586           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_0, LIBNDR_FLAG_REF_ALLOC);
    4587           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    4588             :         }
    4589           0 :         return NDR_ERR_SUCCESS;
    4590             : }
    4591             : 
    4592           0 : _PUBLIC_ void ndr_print_IEnumWbemClassObject_Clone(struct ndr_print *ndr, const char *name, int flags, const struct IEnumWbemClassObject_Clone *r)
    4593             : {
    4594           0 :         ndr_print_struct(ndr, name, "IEnumWbemClassObject_Clone");
    4595           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    4596           0 :         ndr->depth++;
    4597           0 :         if (flags & NDR_SET_VALUES) {
    4598           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    4599             :         }
    4600           0 :         if (flags & NDR_IN) {
    4601           0 :                 ndr_print_struct(ndr, "in", "IEnumWbemClassObject_Clone");
    4602           0 :                 ndr->depth++;
    4603           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    4604           0 :                 ndr->depth--;
    4605             :         }
    4606           0 :         if (flags & NDR_OUT) {
    4607           0 :                 ndr_print_struct(ndr, "out", "IEnumWbemClassObject_Clone");
    4608           0 :                 ndr->depth++;
    4609           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    4610           0 :                 ndr->depth++;
    4611           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    4612           0 :                 ndr->depth--;
    4613           0 :                 ndr_print_ptr(ndr, "ppEnum", r->out.ppEnum);
    4614           0 :                 ndr->depth++;
    4615           0 :                 ndr_print_ptr(ndr, "ppEnum", *r->out.ppEnum);
    4616           0 :                 ndr->depth++;
    4617           0 :                 if (*r->out.ppEnum) {
    4618           0 :                         ndr_print_MInterfacePointer(ndr, "ppEnum", *r->out.ppEnum);
    4619             :                 }
    4620           0 :                 ndr->depth--;
    4621           0 :                 ndr->depth--;
    4622           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    4623           0 :                 ndr->depth--;
    4624             :         }
    4625           0 :         ndr->depth--;
    4626             : }
    4627             : 
    4628           0 : static enum ndr_err_code ndr_push_Skip(struct ndr_push *ndr, int flags, const struct Skip *r)
    4629             : {
    4630           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    4631           0 :         if (flags & NDR_IN) {
    4632           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    4633           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lTimeout));
    4634           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nCount));
    4635             :         }
    4636           0 :         if (flags & NDR_OUT) {
    4637           0 :                 if (r->out.ORPCthat == NULL) {
    4638           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4639             :                 }
    4640           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    4641           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    4642             :         }
    4643           0 :         return NDR_ERR_SUCCESS;
    4644             : }
    4645             : 
    4646           0 : static enum ndr_err_code ndr_pull_Skip(struct ndr_pull *ndr, int flags, struct Skip *r)
    4647             : {
    4648           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    4649           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    4650           0 :         if (flags & NDR_IN) {
    4651           0 :                 NDR_ZERO_STRUCT(r->out);
    4652             : 
    4653           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    4654           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lTimeout));
    4655           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nCount));
    4656           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    4657           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    4658             :         }
    4659           0 :         if (flags & NDR_OUT) {
    4660             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    4661             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    4662           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4663           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    4664             :                 }
    4665           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4666           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    4667           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    4668           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    4669           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    4670             :         }
    4671           0 :         return NDR_ERR_SUCCESS;
    4672             : }
    4673             : 
    4674           0 : _PUBLIC_ void ndr_print_Skip(struct ndr_print *ndr, const char *name, int flags, const struct Skip *r)
    4675             : {
    4676           0 :         ndr_print_struct(ndr, name, "Skip");
    4677           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    4678           0 :         ndr->depth++;
    4679           0 :         if (flags & NDR_SET_VALUES) {
    4680           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    4681             :         }
    4682           0 :         if (flags & NDR_IN) {
    4683           0 :                 ndr_print_struct(ndr, "in", "Skip");
    4684           0 :                 ndr->depth++;
    4685           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    4686           0 :                 ndr_print_int32(ndr, "lTimeout", r->in.lTimeout);
    4687           0 :                 ndr_print_uint32(ndr, "nCount", r->in.nCount);
    4688           0 :                 ndr->depth--;
    4689             :         }
    4690           0 :         if (flags & NDR_OUT) {
    4691           0 :                 ndr_print_struct(ndr, "out", "Skip");
    4692           0 :                 ndr->depth++;
    4693           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    4694           0 :                 ndr->depth++;
    4695           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    4696           0 :                 ndr->depth--;
    4697           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    4698           0 :                 ndr->depth--;
    4699             :         }
    4700           0 :         ndr->depth--;
    4701             : }
    4702             : 
    4703             : #ifndef SKIP_NDR_TABLE_IEnumWbemClassObject
    4704             : static const struct ndr_interface_public_struct IEnumWbemClassObject_public_structs[] = {
    4705             :         { .name = NULL }
    4706             : };
    4707             : 
    4708             : static const struct ndr_interface_call IEnumWbemClassObject_calls[] = {
    4709             :         {
    4710             :                 "Reset",
    4711             :                 sizeof(struct Reset),
    4712             :                 (ndr_push_flags_fn_t) ndr_push_Reset,
    4713             :                 (ndr_pull_flags_fn_t) ndr_pull_Reset,
    4714             :                 (ndr_print_function_t) ndr_print_Reset,
    4715             :                 { 0, NULL },
    4716             :                 { 0, NULL },
    4717             :         },
    4718             :         {
    4719             :                 "IEnumWbemClassObject_Next",
    4720             :                 sizeof(struct IEnumWbemClassObject_Next),
    4721             :                 (ndr_push_flags_fn_t) ndr_push_IEnumWbemClassObject_Next,
    4722             :                 (ndr_pull_flags_fn_t) ndr_pull_IEnumWbemClassObject_Next,
    4723             :                 (ndr_print_function_t) ndr_print_IEnumWbemClassObject_Next,
    4724             :                 { 0, NULL },
    4725             :                 { 0, NULL },
    4726             :         },
    4727             :         {
    4728             :                 "NextAsync",
    4729             :                 sizeof(struct NextAsync),
    4730             :                 (ndr_push_flags_fn_t) ndr_push_NextAsync,
    4731             :                 (ndr_pull_flags_fn_t) ndr_pull_NextAsync,
    4732             :                 (ndr_print_function_t) ndr_print_NextAsync,
    4733             :                 { 0, NULL },
    4734             :                 { 0, NULL },
    4735             :         },
    4736             :         {
    4737             :                 "IEnumWbemClassObject_Clone",
    4738             :                 sizeof(struct IEnumWbemClassObject_Clone),
    4739             :                 (ndr_push_flags_fn_t) ndr_push_IEnumWbemClassObject_Clone,
    4740             :                 (ndr_pull_flags_fn_t) ndr_pull_IEnumWbemClassObject_Clone,
    4741             :                 (ndr_print_function_t) ndr_print_IEnumWbemClassObject_Clone,
    4742             :                 { 0, NULL },
    4743             :                 { 0, NULL },
    4744             :         },
    4745             :         {
    4746             :                 "Skip",
    4747             :                 sizeof(struct Skip),
    4748             :                 (ndr_push_flags_fn_t) ndr_push_Skip,
    4749             :                 (ndr_pull_flags_fn_t) ndr_pull_Skip,
    4750             :                 (ndr_print_function_t) ndr_print_Skip,
    4751             :                 { 0, NULL },
    4752             :                 { 0, NULL },
    4753             :         },
    4754             :         { .name = NULL }
    4755             : };
    4756             : 
    4757             : static const char * const IEnumWbemClassObject_endpoint_strings[] = {
    4758             :         "ncacn_np:[\\pipe\\IEnumWbemClassObject]", 
    4759             : };
    4760             : 
    4761             : static const struct ndr_interface_string_array IEnumWbemClassObject_endpoints = {
    4762             :         .count  = 1,
    4763             :         .names  = IEnumWbemClassObject_endpoint_strings
    4764             : };
    4765             : 
    4766             : static const char * const IEnumWbemClassObject_authservice_strings[] = {
    4767             :         "host", 
    4768             : };
    4769             : 
    4770             : static const struct ndr_interface_string_array IEnumWbemClassObject_authservices = {
    4771             :         .count  = 1,
    4772             :         .names  = IEnumWbemClassObject_authservice_strings
    4773             : };
    4774             : 
    4775             : 
    4776             : const struct ndr_interface_table ndr_table_IEnumWbemClassObject = {
    4777             :         .name           = "IEnumWbemClassObject",
    4778             :         .syntax_id      = {
    4779             :                 {0x027947e1,0xd731,0x11ce,{0xa3,0x57},{0x00,0x00,0x00,0x00,0x00,0x01}},
    4780             :                 NDR_IENUMWBEMCLASSOBJECT_VERSION
    4781             :         },
    4782             :         .helpstring     = NDR_IENUMWBEMCLASSOBJECT_HELPSTRING,
    4783             :         .num_calls      = 5,
    4784             :         .calls          = IEnumWbemClassObject_calls,
    4785             :         .num_public_structs     = 0,
    4786             :         .public_structs         = IEnumWbemClassObject_public_structs,
    4787             :         .endpoints      = &IEnumWbemClassObject_endpoints,
    4788             :         .authservices   = &IEnumWbemClassObject_authservices
    4789             : };
    4790             : 
    4791             : #endif /* SKIP_NDR_TABLE_IEnumWbemClassObject */
    4792             : #include "librpc/gen_ndr/ndr_orpc.h"
    4793           0 : static enum ndr_err_code ndr_push_Clone(struct ndr_push *ndr, int flags, const struct Clone *r)
    4794             : {
    4795           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    4796           0 :         if (flags & NDR_IN) {
    4797           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    4798             :         }
    4799           0 :         if (flags & NDR_OUT) {
    4800           0 :                 if (r->out.ORPCthat == NULL) {
    4801           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4802             :                 }
    4803           0 :                 if (r->out.ppNewCopy == NULL) {
    4804           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4805             :                 }
    4806           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    4807           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppNewCopy));
    4808           0 :                 if (*r->out.ppNewCopy) {
    4809           0 :                         NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppNewCopy));
    4810             :                 }
    4811           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    4812             :         }
    4813           0 :         return NDR_ERR_SUCCESS;
    4814             : }
    4815             : 
    4816           0 : static enum ndr_err_code ndr_pull_Clone(struct ndr_pull *ndr, int flags, struct Clone *r)
    4817             : {
    4818             :         uint32_t _ptr_ppNewCopy;
    4819           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    4820           0 :         TALLOC_CTX *_mem_save_ppNewCopy_0 = NULL;
    4821           0 :         TALLOC_CTX *_mem_save_ppNewCopy_1 = NULL;
    4822           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    4823           0 :         if (flags & NDR_IN) {
    4824           0 :                 NDR_ZERO_STRUCT(r->out);
    4825             : 
    4826           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    4827           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    4828           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    4829           0 :                 NDR_PULL_ALLOC(ndr, r->out.ppNewCopy);
    4830           0 :                 NDR_ZERO_STRUCTP(r->out.ppNewCopy);
    4831             :         }
    4832           0 :         if (flags & NDR_OUT) {
    4833             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    4834             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    4835           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4836           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    4837             :                 }
    4838           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4839           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    4840           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    4841           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    4842           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4843           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppNewCopy);
    4844             :                 }
    4845           0 :                 _mem_save_ppNewCopy_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4846           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ppNewCopy, LIBNDR_FLAG_REF_ALLOC);
    4847           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppNewCopy));
    4848           0 :                 if (_ptr_ppNewCopy) {
    4849           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ppNewCopy);
    4850             :                 } else {
    4851           0 :                         *r->out.ppNewCopy = NULL;
    4852             :                 }
    4853           0 :                 if (*r->out.ppNewCopy) {
    4854           0 :                         _mem_save_ppNewCopy_1 = NDR_PULL_GET_MEM_CTX(ndr);
    4855           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppNewCopy, 0);
    4856           0 :                         NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppNewCopy));
    4857           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppNewCopy_1, 0);
    4858             :                 }
    4859           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppNewCopy_0, LIBNDR_FLAG_REF_ALLOC);
    4860           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    4861             :         }
    4862           0 :         return NDR_ERR_SUCCESS;
    4863             : }
    4864             : 
    4865           0 : _PUBLIC_ void ndr_print_Clone(struct ndr_print *ndr, const char *name, int flags, const struct Clone *r)
    4866             : {
    4867           0 :         ndr_print_struct(ndr, name, "Clone");
    4868           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    4869           0 :         ndr->depth++;
    4870           0 :         if (flags & NDR_SET_VALUES) {
    4871           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    4872             :         }
    4873           0 :         if (flags & NDR_IN) {
    4874           0 :                 ndr_print_struct(ndr, "in", "Clone");
    4875           0 :                 ndr->depth++;
    4876           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    4877           0 :                 ndr->depth--;
    4878             :         }
    4879           0 :         if (flags & NDR_OUT) {
    4880           0 :                 ndr_print_struct(ndr, "out", "Clone");
    4881           0 :                 ndr->depth++;
    4882           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    4883           0 :                 ndr->depth++;
    4884           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    4885           0 :                 ndr->depth--;
    4886           0 :                 ndr_print_ptr(ndr, "ppNewCopy", r->out.ppNewCopy);
    4887           0 :                 ndr->depth++;
    4888           0 :                 ndr_print_ptr(ndr, "ppNewCopy", *r->out.ppNewCopy);
    4889           0 :                 ndr->depth++;
    4890           0 :                 if (*r->out.ppNewCopy) {
    4891           0 :                         ndr_print_MInterfacePointer(ndr, "ppNewCopy", *r->out.ppNewCopy);
    4892             :                 }
    4893           0 :                 ndr->depth--;
    4894           0 :                 ndr->depth--;
    4895           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    4896           0 :                 ndr->depth--;
    4897             :         }
    4898           0 :         ndr->depth--;
    4899             : }
    4900             : 
    4901           0 : static enum ndr_err_code ndr_push_GetNames(struct ndr_push *ndr, int flags, const struct GetNames *r)
    4902             : {
    4903           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    4904           0 :         if (flags & NDR_IN) {
    4905           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    4906             :         }
    4907           0 :         if (flags & NDR_OUT) {
    4908           0 :                 if (r->out.ORPCthat == NULL) {
    4909           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4910             :                 }
    4911           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    4912           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    4913             :         }
    4914           0 :         return NDR_ERR_SUCCESS;
    4915             : }
    4916             : 
    4917           0 : static enum ndr_err_code ndr_pull_GetNames(struct ndr_pull *ndr, int flags, struct GetNames *r)
    4918             : {
    4919           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    4920           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    4921           0 :         if (flags & NDR_IN) {
    4922           0 :                 NDR_ZERO_STRUCT(r->out);
    4923             : 
    4924           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    4925           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    4926           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    4927             :         }
    4928           0 :         if (flags & NDR_OUT) {
    4929             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    4930             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    4931           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4932           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    4933             :                 }
    4934           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4935           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    4936           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    4937           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    4938           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    4939             :         }
    4940           0 :         return NDR_ERR_SUCCESS;
    4941             : }
    4942             : 
    4943           0 : _PUBLIC_ void ndr_print_GetNames(struct ndr_print *ndr, const char *name, int flags, const struct GetNames *r)
    4944             : {
    4945           0 :         ndr_print_struct(ndr, name, "GetNames");
    4946           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    4947           0 :         ndr->depth++;
    4948           0 :         if (flags & NDR_SET_VALUES) {
    4949           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    4950             :         }
    4951           0 :         if (flags & NDR_IN) {
    4952           0 :                 ndr_print_struct(ndr, "in", "GetNames");
    4953           0 :                 ndr->depth++;
    4954           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    4955           0 :                 ndr->depth--;
    4956             :         }
    4957           0 :         if (flags & NDR_OUT) {
    4958           0 :                 ndr_print_struct(ndr, "out", "GetNames");
    4959           0 :                 ndr->depth++;
    4960           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    4961           0 :                 ndr->depth++;
    4962           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    4963           0 :                 ndr->depth--;
    4964           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    4965           0 :                 ndr->depth--;
    4966             :         }
    4967           0 :         ndr->depth--;
    4968             : }
    4969             : 
    4970           0 : static enum ndr_err_code ndr_push_BeginEnumeration(struct ndr_push *ndr, int flags, const struct BeginEnumeration *r)
    4971             : {
    4972           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    4973           0 :         if (flags & NDR_IN) {
    4974           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    4975           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
    4976             :         }
    4977           0 :         if (flags & NDR_OUT) {
    4978           0 :                 if (r->out.ORPCthat == NULL) {
    4979           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4980             :                 }
    4981           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    4982           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    4983             :         }
    4984           0 :         return NDR_ERR_SUCCESS;
    4985             : }
    4986             : 
    4987           0 : static enum ndr_err_code ndr_pull_BeginEnumeration(struct ndr_pull *ndr, int flags, struct BeginEnumeration *r)
    4988             : {
    4989           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    4990           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    4991           0 :         if (flags & NDR_IN) {
    4992           0 :                 NDR_ZERO_STRUCT(r->out);
    4993             : 
    4994           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    4995           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
    4996           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    4997           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    4998             :         }
    4999           0 :         if (flags & NDR_OUT) {
    5000             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    5001             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    5002           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5003           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    5004             :                 }
    5005           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5006           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    5007           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    5008           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    5009           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    5010             :         }
    5011           0 :         return NDR_ERR_SUCCESS;
    5012             : }
    5013             : 
    5014           0 : _PUBLIC_ void ndr_print_BeginEnumeration(struct ndr_print *ndr, const char *name, int flags, const struct BeginEnumeration *r)
    5015             : {
    5016           0 :         ndr_print_struct(ndr, name, "BeginEnumeration");
    5017           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    5018           0 :         ndr->depth++;
    5019           0 :         if (flags & NDR_SET_VALUES) {
    5020           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    5021             :         }
    5022           0 :         if (flags & NDR_IN) {
    5023           0 :                 ndr_print_struct(ndr, "in", "BeginEnumeration");
    5024           0 :                 ndr->depth++;
    5025           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    5026           0 :                 ndr_print_int32(ndr, "lFlags", r->in.lFlags);
    5027           0 :                 ndr->depth--;
    5028             :         }
    5029           0 :         if (flags & NDR_OUT) {
    5030           0 :                 ndr_print_struct(ndr, "out", "BeginEnumeration");
    5031           0 :                 ndr->depth++;
    5032           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    5033           0 :                 ndr->depth++;
    5034           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    5035           0 :                 ndr->depth--;
    5036           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    5037           0 :                 ndr->depth--;
    5038             :         }
    5039           0 :         ndr->depth--;
    5040             : }
    5041             : 
    5042           0 : static enum ndr_err_code ndr_push_Next(struct ndr_push *ndr, int flags, const struct Next *r)
    5043             : {
    5044           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    5045           0 :         if (flags & NDR_IN) {
    5046           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    5047             :         }
    5048           0 :         if (flags & NDR_OUT) {
    5049           0 :                 if (r->out.ORPCthat == NULL) {
    5050           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5051             :                 }
    5052           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    5053           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    5054             :         }
    5055           0 :         return NDR_ERR_SUCCESS;
    5056             : }
    5057             : 
    5058           0 : static enum ndr_err_code ndr_pull_Next(struct ndr_pull *ndr, int flags, struct Next *r)
    5059             : {
    5060           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    5061           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    5062           0 :         if (flags & NDR_IN) {
    5063           0 :                 NDR_ZERO_STRUCT(r->out);
    5064             : 
    5065           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    5066           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    5067           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    5068             :         }
    5069           0 :         if (flags & NDR_OUT) {
    5070             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    5071             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    5072           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5073           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    5074             :                 }
    5075           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5076           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    5077           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    5078           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    5079           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    5080             :         }
    5081           0 :         return NDR_ERR_SUCCESS;
    5082             : }
    5083             : 
    5084           0 : _PUBLIC_ void ndr_print_Next(struct ndr_print *ndr, const char *name, int flags, const struct Next *r)
    5085             : {
    5086           0 :         ndr_print_struct(ndr, name, "Next");
    5087           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    5088           0 :         ndr->depth++;
    5089           0 :         if (flags & NDR_SET_VALUES) {
    5090           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    5091             :         }
    5092           0 :         if (flags & NDR_IN) {
    5093           0 :                 ndr_print_struct(ndr, "in", "Next");
    5094           0 :                 ndr->depth++;
    5095           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    5096           0 :                 ndr->depth--;
    5097             :         }
    5098           0 :         if (flags & NDR_OUT) {
    5099           0 :                 ndr_print_struct(ndr, "out", "Next");
    5100           0 :                 ndr->depth++;
    5101           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    5102           0 :                 ndr->depth++;
    5103           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    5104           0 :                 ndr->depth--;
    5105           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    5106           0 :                 ndr->depth--;
    5107             :         }
    5108           0 :         ndr->depth--;
    5109             : }
    5110             : 
    5111           0 : static enum ndr_err_code ndr_push_EndEnumeration(struct ndr_push *ndr, int flags, const struct EndEnumeration *r)
    5112             : {
    5113           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    5114           0 :         if (flags & NDR_IN) {
    5115           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    5116             :         }
    5117           0 :         if (flags & NDR_OUT) {
    5118           0 :                 if (r->out.ORPCthat == NULL) {
    5119           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5120             :                 }
    5121           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    5122           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    5123             :         }
    5124           0 :         return NDR_ERR_SUCCESS;
    5125             : }
    5126             : 
    5127           0 : static enum ndr_err_code ndr_pull_EndEnumeration(struct ndr_pull *ndr, int flags, struct EndEnumeration *r)
    5128             : {
    5129           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    5130           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    5131           0 :         if (flags & NDR_IN) {
    5132           0 :                 NDR_ZERO_STRUCT(r->out);
    5133             : 
    5134           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    5135           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    5136           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    5137             :         }
    5138           0 :         if (flags & NDR_OUT) {
    5139             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    5140             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    5141           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5142           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    5143             :                 }
    5144           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5145           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    5146           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    5147           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    5148           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    5149             :         }
    5150           0 :         return NDR_ERR_SUCCESS;
    5151             : }
    5152             : 
    5153           0 : _PUBLIC_ void ndr_print_EndEnumeration(struct ndr_print *ndr, const char *name, int flags, const struct EndEnumeration *r)
    5154             : {
    5155           0 :         ndr_print_struct(ndr, name, "EndEnumeration");
    5156           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    5157           0 :         ndr->depth++;
    5158           0 :         if (flags & NDR_SET_VALUES) {
    5159           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    5160             :         }
    5161           0 :         if (flags & NDR_IN) {
    5162           0 :                 ndr_print_struct(ndr, "in", "EndEnumeration");
    5163           0 :                 ndr->depth++;
    5164           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    5165           0 :                 ndr->depth--;
    5166             :         }
    5167           0 :         if (flags & NDR_OUT) {
    5168           0 :                 ndr_print_struct(ndr, "out", "EndEnumeration");
    5169           0 :                 ndr->depth++;
    5170           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    5171           0 :                 ndr->depth++;
    5172           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    5173           0 :                 ndr->depth--;
    5174           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    5175           0 :                 ndr->depth--;
    5176             :         }
    5177           0 :         ndr->depth--;
    5178             : }
    5179             : 
    5180           0 : static enum ndr_err_code ndr_push_SetValue(struct ndr_push *ndr, int flags, const struct SetValue *r)
    5181             : {
    5182           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    5183           0 :         if (flags & NDR_IN) {
    5184           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    5185             :         }
    5186           0 :         if (flags & NDR_OUT) {
    5187           0 :                 if (r->out.ORPCthat == NULL) {
    5188           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5189             :                 }
    5190           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    5191           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    5192             :         }
    5193           0 :         return NDR_ERR_SUCCESS;
    5194             : }
    5195             : 
    5196           0 : static enum ndr_err_code ndr_pull_SetValue(struct ndr_pull *ndr, int flags, struct SetValue *r)
    5197             : {
    5198           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    5199           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    5200           0 :         if (flags & NDR_IN) {
    5201           0 :                 NDR_ZERO_STRUCT(r->out);
    5202             : 
    5203           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    5204           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    5205           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    5206             :         }
    5207           0 :         if (flags & NDR_OUT) {
    5208             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    5209             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    5210           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5211           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    5212             :                 }
    5213           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5214           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    5215           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    5216           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    5217           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    5218             :         }
    5219           0 :         return NDR_ERR_SUCCESS;
    5220             : }
    5221             : 
    5222           0 : _PUBLIC_ void ndr_print_SetValue(struct ndr_print *ndr, const char *name, int flags, const struct SetValue *r)
    5223             : {
    5224           0 :         ndr_print_struct(ndr, name, "SetValue");
    5225           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    5226           0 :         ndr->depth++;
    5227           0 :         if (flags & NDR_SET_VALUES) {
    5228           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    5229             :         }
    5230           0 :         if (flags & NDR_IN) {
    5231           0 :                 ndr_print_struct(ndr, "in", "SetValue");
    5232           0 :                 ndr->depth++;
    5233           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    5234           0 :                 ndr->depth--;
    5235             :         }
    5236           0 :         if (flags & NDR_OUT) {
    5237           0 :                 ndr_print_struct(ndr, "out", "SetValue");
    5238           0 :                 ndr->depth++;
    5239           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    5240           0 :                 ndr->depth++;
    5241           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    5242           0 :                 ndr->depth--;
    5243           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    5244           0 :                 ndr->depth--;
    5245             :         }
    5246           0 :         ndr->depth--;
    5247             : }
    5248             : 
    5249           0 : static enum ndr_err_code ndr_push_GetValue(struct ndr_push *ndr, int flags, const struct GetValue *r)
    5250             : {
    5251           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    5252           0 :         if (flags & NDR_IN) {
    5253           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    5254             :         }
    5255           0 :         if (flags & NDR_OUT) {
    5256           0 :                 if (r->out.ORPCthat == NULL) {
    5257           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5258             :                 }
    5259           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    5260           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    5261             :         }
    5262           0 :         return NDR_ERR_SUCCESS;
    5263             : }
    5264             : 
    5265           0 : static enum ndr_err_code ndr_pull_GetValue(struct ndr_pull *ndr, int flags, struct GetValue *r)
    5266             : {
    5267           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    5268           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    5269           0 :         if (flags & NDR_IN) {
    5270           0 :                 NDR_ZERO_STRUCT(r->out);
    5271             : 
    5272           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    5273           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    5274           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    5275             :         }
    5276           0 :         if (flags & NDR_OUT) {
    5277             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    5278             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    5279           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5280           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    5281             :                 }
    5282           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5283           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    5284           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    5285           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    5286           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    5287             :         }
    5288           0 :         return NDR_ERR_SUCCESS;
    5289             : }
    5290             : 
    5291           0 : _PUBLIC_ void ndr_print_GetValue(struct ndr_print *ndr, const char *name, int flags, const struct GetValue *r)
    5292             : {
    5293           0 :         ndr_print_struct(ndr, name, "GetValue");
    5294           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    5295           0 :         ndr->depth++;
    5296           0 :         if (flags & NDR_SET_VALUES) {
    5297           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    5298             :         }
    5299           0 :         if (flags & NDR_IN) {
    5300           0 :                 ndr_print_struct(ndr, "in", "GetValue");
    5301           0 :                 ndr->depth++;
    5302           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    5303           0 :                 ndr->depth--;
    5304             :         }
    5305           0 :         if (flags & NDR_OUT) {
    5306           0 :                 ndr_print_struct(ndr, "out", "GetValue");
    5307           0 :                 ndr->depth++;
    5308           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    5309           0 :                 ndr->depth++;
    5310           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    5311           0 :                 ndr->depth--;
    5312           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    5313           0 :                 ndr->depth--;
    5314             :         }
    5315           0 :         ndr->depth--;
    5316             : }
    5317             : 
    5318           0 : static enum ndr_err_code ndr_push_DeleteValue(struct ndr_push *ndr, int flags, const struct DeleteValue *r)
    5319             : {
    5320           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    5321           0 :         if (flags & NDR_IN) {
    5322           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    5323             :         }
    5324           0 :         if (flags & NDR_OUT) {
    5325           0 :                 if (r->out.ORPCthat == NULL) {
    5326           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5327             :                 }
    5328           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    5329           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    5330             :         }
    5331           0 :         return NDR_ERR_SUCCESS;
    5332             : }
    5333             : 
    5334           0 : static enum ndr_err_code ndr_pull_DeleteValue(struct ndr_pull *ndr, int flags, struct DeleteValue *r)
    5335             : {
    5336           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    5337           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    5338           0 :         if (flags & NDR_IN) {
    5339           0 :                 NDR_ZERO_STRUCT(r->out);
    5340             : 
    5341           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    5342           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    5343           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    5344             :         }
    5345           0 :         if (flags & NDR_OUT) {
    5346             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    5347             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    5348           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5349           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    5350             :                 }
    5351           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5352           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    5353           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    5354           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    5355           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    5356             :         }
    5357           0 :         return NDR_ERR_SUCCESS;
    5358             : }
    5359             : 
    5360           0 : _PUBLIC_ void ndr_print_DeleteValue(struct ndr_print *ndr, const char *name, int flags, const struct DeleteValue *r)
    5361             : {
    5362           0 :         ndr_print_struct(ndr, name, "DeleteValue");
    5363           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    5364           0 :         ndr->depth++;
    5365           0 :         if (flags & NDR_SET_VALUES) {
    5366           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    5367             :         }
    5368           0 :         if (flags & NDR_IN) {
    5369           0 :                 ndr_print_struct(ndr, "in", "DeleteValue");
    5370           0 :                 ndr->depth++;
    5371           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    5372           0 :                 ndr->depth--;
    5373             :         }
    5374           0 :         if (flags & NDR_OUT) {
    5375           0 :                 ndr_print_struct(ndr, "out", "DeleteValue");
    5376           0 :                 ndr->depth++;
    5377           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    5378           0 :                 ndr->depth++;
    5379           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    5380           0 :                 ndr->depth--;
    5381           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    5382           0 :                 ndr->depth--;
    5383             :         }
    5384           0 :         ndr->depth--;
    5385             : }
    5386             : 
    5387           0 : static enum ndr_err_code ndr_push_DeleteAll(struct ndr_push *ndr, int flags, const struct DeleteAll *r)
    5388             : {
    5389           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    5390           0 :         if (flags & NDR_IN) {
    5391           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    5392             :         }
    5393           0 :         if (flags & NDR_OUT) {
    5394           0 :                 if (r->out.ORPCthat == NULL) {
    5395           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5396             :                 }
    5397           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    5398           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    5399             :         }
    5400           0 :         return NDR_ERR_SUCCESS;
    5401             : }
    5402             : 
    5403           0 : static enum ndr_err_code ndr_pull_DeleteAll(struct ndr_pull *ndr, int flags, struct DeleteAll *r)
    5404             : {
    5405           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    5406           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    5407           0 :         if (flags & NDR_IN) {
    5408           0 :                 NDR_ZERO_STRUCT(r->out);
    5409             : 
    5410           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    5411           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    5412           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    5413             :         }
    5414           0 :         if (flags & NDR_OUT) {
    5415             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    5416             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    5417           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5418           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    5419             :                 }
    5420           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5421           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    5422           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    5423           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    5424           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    5425             :         }
    5426           0 :         return NDR_ERR_SUCCESS;
    5427             : }
    5428             : 
    5429           0 : _PUBLIC_ void ndr_print_DeleteAll(struct ndr_print *ndr, const char *name, int flags, const struct DeleteAll *r)
    5430             : {
    5431           0 :         ndr_print_struct(ndr, name, "DeleteAll");
    5432           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    5433           0 :         ndr->depth++;
    5434           0 :         if (flags & NDR_SET_VALUES) {
    5435           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    5436             :         }
    5437           0 :         if (flags & NDR_IN) {
    5438           0 :                 ndr_print_struct(ndr, "in", "DeleteAll");
    5439           0 :                 ndr->depth++;
    5440           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    5441           0 :                 ndr->depth--;
    5442             :         }
    5443           0 :         if (flags & NDR_OUT) {
    5444           0 :                 ndr_print_struct(ndr, "out", "DeleteAll");
    5445           0 :                 ndr->depth++;
    5446           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    5447           0 :                 ndr->depth++;
    5448           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    5449           0 :                 ndr->depth--;
    5450           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    5451           0 :                 ndr->depth--;
    5452             :         }
    5453           0 :         ndr->depth--;
    5454             : }
    5455             : 
    5456             : #ifndef SKIP_NDR_TABLE_IWbemContext
    5457             : static const struct ndr_interface_public_struct IWbemContext_public_structs[] = {
    5458             :         { .name = NULL }
    5459             : };
    5460             : 
    5461             : static const struct ndr_interface_call IWbemContext_calls[] = {
    5462             :         {
    5463             :                 "Clone",
    5464             :                 sizeof(struct Clone),
    5465             :                 (ndr_push_flags_fn_t) ndr_push_Clone,
    5466             :                 (ndr_pull_flags_fn_t) ndr_pull_Clone,
    5467             :                 (ndr_print_function_t) ndr_print_Clone,
    5468             :                 { 0, NULL },
    5469             :                 { 0, NULL },
    5470             :         },
    5471             :         {
    5472             :                 "GetNames",
    5473             :                 sizeof(struct GetNames),
    5474             :                 (ndr_push_flags_fn_t) ndr_push_GetNames,
    5475             :                 (ndr_pull_flags_fn_t) ndr_pull_GetNames,
    5476             :                 (ndr_print_function_t) ndr_print_GetNames,
    5477             :                 { 0, NULL },
    5478             :                 { 0, NULL },
    5479             :         },
    5480             :         {
    5481             :                 "BeginEnumeration",
    5482             :                 sizeof(struct BeginEnumeration),
    5483             :                 (ndr_push_flags_fn_t) ndr_push_BeginEnumeration,
    5484             :                 (ndr_pull_flags_fn_t) ndr_pull_BeginEnumeration,
    5485             :                 (ndr_print_function_t) ndr_print_BeginEnumeration,
    5486             :                 { 0, NULL },
    5487             :                 { 0, NULL },
    5488             :         },
    5489             :         {
    5490             :                 "Next",
    5491             :                 sizeof(struct Next),
    5492             :                 (ndr_push_flags_fn_t) ndr_push_Next,
    5493             :                 (ndr_pull_flags_fn_t) ndr_pull_Next,
    5494             :                 (ndr_print_function_t) ndr_print_Next,
    5495             :                 { 0, NULL },
    5496             :                 { 0, NULL },
    5497             :         },
    5498             :         {
    5499             :                 "EndEnumeration",
    5500             :                 sizeof(struct EndEnumeration),
    5501             :                 (ndr_push_flags_fn_t) ndr_push_EndEnumeration,
    5502             :                 (ndr_pull_flags_fn_t) ndr_pull_EndEnumeration,
    5503             :                 (ndr_print_function_t) ndr_print_EndEnumeration,
    5504             :                 { 0, NULL },
    5505             :                 { 0, NULL },
    5506             :         },
    5507             :         {
    5508             :                 "SetValue",
    5509             :                 sizeof(struct SetValue),
    5510             :                 (ndr_push_flags_fn_t) ndr_push_SetValue,
    5511             :                 (ndr_pull_flags_fn_t) ndr_pull_SetValue,
    5512             :                 (ndr_print_function_t) ndr_print_SetValue,
    5513             :                 { 0, NULL },
    5514             :                 { 0, NULL },
    5515             :         },
    5516             :         {
    5517             :                 "GetValue",
    5518             :                 sizeof(struct GetValue),
    5519             :                 (ndr_push_flags_fn_t) ndr_push_GetValue,
    5520             :                 (ndr_pull_flags_fn_t) ndr_pull_GetValue,
    5521             :                 (ndr_print_function_t) ndr_print_GetValue,
    5522             :                 { 0, NULL },
    5523             :                 { 0, NULL },
    5524             :         },
    5525             :         {
    5526             :                 "DeleteValue",
    5527             :                 sizeof(struct DeleteValue),
    5528             :                 (ndr_push_flags_fn_t) ndr_push_DeleteValue,
    5529             :                 (ndr_pull_flags_fn_t) ndr_pull_DeleteValue,
    5530             :                 (ndr_print_function_t) ndr_print_DeleteValue,
    5531             :                 { 0, NULL },
    5532             :                 { 0, NULL },
    5533             :         },
    5534             :         {
    5535             :                 "DeleteAll",
    5536             :                 sizeof(struct DeleteAll),
    5537             :                 (ndr_push_flags_fn_t) ndr_push_DeleteAll,
    5538             :                 (ndr_pull_flags_fn_t) ndr_pull_DeleteAll,
    5539             :                 (ndr_print_function_t) ndr_print_DeleteAll,
    5540             :                 { 0, NULL },
    5541             :                 { 0, NULL },
    5542             :         },
    5543             :         { .name = NULL }
    5544             : };
    5545             : 
    5546             : static const char * const IWbemContext_endpoint_strings[] = {
    5547             :         "ncacn_np:[\\pipe\\IWbemContext]", 
    5548             : };
    5549             : 
    5550             : static const struct ndr_interface_string_array IWbemContext_endpoints = {
    5551             :         .count  = 1,
    5552             :         .names  = IWbemContext_endpoint_strings
    5553             : };
    5554             : 
    5555             : static const char * const IWbemContext_authservice_strings[] = {
    5556             :         "host", 
    5557             : };
    5558             : 
    5559             : static const struct ndr_interface_string_array IWbemContext_authservices = {
    5560             :         .count  = 1,
    5561             :         .names  = IWbemContext_authservice_strings
    5562             : };
    5563             : 
    5564             : 
    5565             : const struct ndr_interface_table ndr_table_IWbemContext = {
    5566             :         .name           = "IWbemContext",
    5567             :         .syntax_id      = {
    5568             :                 {0x44aca674,0xe8fc,0x11d0,{0xa0,0x7c},{0x00,0xc0,0x4f,0xb6,0x88,0x20}},
    5569             :                 NDR_IWBEMCONTEXT_VERSION
    5570             :         },
    5571             :         .helpstring     = NDR_IWBEMCONTEXT_HELPSTRING,
    5572             :         .num_calls      = 9,
    5573             :         .calls          = IWbemContext_calls,
    5574             :         .num_public_structs     = 0,
    5575             :         .public_structs         = IWbemContext_public_structs,
    5576             :         .endpoints      = &IWbemContext_endpoints,
    5577             :         .authservices   = &IWbemContext_authservices
    5578             : };
    5579             : 
    5580             : #endif /* SKIP_NDR_TABLE_IWbemContext */
    5581             : #include "librpc/gen_ndr/ndr_orpc.h"
    5582           0 : static enum ndr_err_code ndr_push_EstablishPosition(struct ndr_push *ndr, int flags, const struct EstablishPosition *r)
    5583             : {
    5584           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    5585           0 :         if (flags & NDR_IN) {
    5586           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    5587           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.wszLocaleList));
    5588           0 :                 if (r->in.wszLocaleList) {
    5589           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszLocaleList, CH_UTF16)));
    5590           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    5591           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszLocaleList, CH_UTF16)));
    5592           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.wszLocaleList, ndr_charset_length(r->in.wszLocaleList, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    5593             :                 }
    5594           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNumLocales));
    5595             :         }
    5596           0 :         if (flags & NDR_OUT) {
    5597           0 :                 if (r->out.ORPCthat == NULL) {
    5598           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5599             :                 }
    5600           0 :                 if (r->out.reserved == NULL) {
    5601           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5602             :                 }
    5603           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    5604           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.reserved));
    5605           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    5606             :         }
    5607           0 :         return NDR_ERR_SUCCESS;
    5608             : }
    5609             : 
    5610           0 : static enum ndr_err_code ndr_pull_EstablishPosition(struct ndr_pull *ndr, int flags, struct EstablishPosition *r)
    5611             : {
    5612             :         uint32_t _ptr_wszLocaleList;
    5613           0 :         uint32_t size_wszLocaleList_1 = 0;
    5614           0 :         uint32_t length_wszLocaleList_1 = 0;
    5615           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    5616           0 :         TALLOC_CTX *_mem_save_wszLocaleList_0 = NULL;
    5617           0 :         TALLOC_CTX *_mem_save_reserved_0 = NULL;
    5618           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    5619           0 :         if (flags & NDR_IN) {
    5620           0 :                 NDR_ZERO_STRUCT(r->out);
    5621             : 
    5622           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    5623           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_wszLocaleList));
    5624           0 :                 if (_ptr_wszLocaleList) {
    5625           0 :                         NDR_PULL_ALLOC(ndr, r->in.wszLocaleList);
    5626             :                 } else {
    5627           0 :                         r->in.wszLocaleList = NULL;
    5628             :                 }
    5629           0 :                 if (r->in.wszLocaleList) {
    5630           0 :                         _mem_save_wszLocaleList_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5631           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.wszLocaleList, 0);
    5632           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.wszLocaleList));
    5633           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->in.wszLocaleList));
    5634           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.wszLocaleList, &size_wszLocaleList_1));
    5635           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.wszLocaleList, &length_wszLocaleList_1));
    5636           0 :                         if (length_wszLocaleList_1 > size_wszLocaleList_1) {
    5637           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_wszLocaleList_1, length_wszLocaleList_1);
    5638             :                         }
    5639           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_wszLocaleList_1, sizeof(uint16_t)));
    5640           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.wszLocaleList, length_wszLocaleList_1, sizeof(uint16_t), CH_UTF16));
    5641           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_wszLocaleList_0, 0);
    5642             :                 }
    5643           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNumLocales));
    5644           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    5645           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    5646           0 :                 NDR_PULL_ALLOC(ndr, r->out.reserved);
    5647           0 :                 NDR_ZERO_STRUCTP(r->out.reserved);
    5648             :         }
    5649           0 :         if (flags & NDR_OUT) {
    5650             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    5651             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    5652           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5653           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    5654             :                 }
    5655           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5656           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    5657           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    5658           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    5659           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5660           0 :                         NDR_PULL_ALLOC(ndr, r->out.reserved);
    5661             :                 }
    5662           0 :                 _mem_save_reserved_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5663           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.reserved, LIBNDR_FLAG_REF_ALLOC);
    5664           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.reserved));
    5665           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_reserved_0, LIBNDR_FLAG_REF_ALLOC);
    5666           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    5667             :         }
    5668           0 :         return NDR_ERR_SUCCESS;
    5669             : }
    5670             : 
    5671           0 : _PUBLIC_ void ndr_print_EstablishPosition(struct ndr_print *ndr, const char *name, int flags, const struct EstablishPosition *r)
    5672             : {
    5673           0 :         ndr_print_struct(ndr, name, "EstablishPosition");
    5674           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    5675           0 :         ndr->depth++;
    5676           0 :         if (flags & NDR_SET_VALUES) {
    5677           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    5678             :         }
    5679           0 :         if (flags & NDR_IN) {
    5680           0 :                 ndr_print_struct(ndr, "in", "EstablishPosition");
    5681           0 :                 ndr->depth++;
    5682           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    5683           0 :                 ndr_print_ptr(ndr, "wszLocaleList", r->in.wszLocaleList);
    5684           0 :                 ndr->depth++;
    5685           0 :                 if (r->in.wszLocaleList) {
    5686           0 :                         ndr_print_string(ndr, "wszLocaleList", r->in.wszLocaleList);
    5687             :                 }
    5688           0 :                 ndr->depth--;
    5689           0 :                 ndr_print_uint32(ndr, "dwNumLocales", r->in.dwNumLocales);
    5690           0 :                 ndr->depth--;
    5691             :         }
    5692           0 :         if (flags & NDR_OUT) {
    5693           0 :                 ndr_print_struct(ndr, "out", "EstablishPosition");
    5694           0 :                 ndr->depth++;
    5695           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    5696           0 :                 ndr->depth++;
    5697           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    5698           0 :                 ndr->depth--;
    5699           0 :                 ndr_print_ptr(ndr, "reserved", r->out.reserved);
    5700           0 :                 ndr->depth++;
    5701           0 :                 ndr_print_uint32(ndr, "reserved", *r->out.reserved);
    5702           0 :                 ndr->depth--;
    5703           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    5704           0 :                 ndr->depth--;
    5705             :         }
    5706           0 :         ndr->depth--;
    5707             : }
    5708             : 
    5709           0 : static enum ndr_err_code ndr_push_RequestChallenge(struct ndr_push *ndr, int flags, const struct RequestChallenge *r)
    5710             : {
    5711           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    5712           0 :         if (flags & NDR_IN) {
    5713           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    5714           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.wszNetworkResource));
    5715           0 :                 if (r->in.wszNetworkResource) {
    5716           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszNetworkResource, CH_UTF16)));
    5717           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    5718           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszNetworkResource, CH_UTF16)));
    5719           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.wszNetworkResource, ndr_charset_length(r->in.wszNetworkResource, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    5720             :                 }
    5721           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.wszUser));
    5722           0 :                 if (r->in.wszUser) {
    5723           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszUser, CH_UTF16)));
    5724           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    5725           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszUser, CH_UTF16)));
    5726           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.wszUser, ndr_charset_length(r->in.wszUser, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    5727             :                 }
    5728             :         }
    5729           0 :         if (flags & NDR_OUT) {
    5730           0 :                 if (r->out.ORPCthat == NULL) {
    5731           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5732             :                 }
    5733           0 :                 if (r->out.Nonce == NULL) {
    5734           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5735             :                 }
    5736           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    5737           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 16));
    5738           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    5739           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 16));
    5740           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.Nonce, 16));
    5741           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    5742             :         }
    5743           0 :         return NDR_ERR_SUCCESS;
    5744             : }
    5745             : 
    5746           0 : static enum ndr_err_code ndr_pull_RequestChallenge(struct ndr_pull *ndr, int flags, struct RequestChallenge *r)
    5747             : {
    5748             :         uint32_t _ptr_wszNetworkResource;
    5749           0 :         uint32_t size_wszNetworkResource_1 = 0;
    5750           0 :         uint32_t length_wszNetworkResource_1 = 0;
    5751             :         uint32_t _ptr_wszUser;
    5752           0 :         uint32_t size_wszUser_1 = 0;
    5753           0 :         uint32_t length_wszUser_1 = 0;
    5754           0 :         uint32_t size_Nonce_1 = 0;
    5755           0 :         uint32_t length_Nonce_1 = 0;
    5756           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    5757           0 :         TALLOC_CTX *_mem_save_wszNetworkResource_0 = NULL;
    5758           0 :         TALLOC_CTX *_mem_save_wszUser_0 = NULL;
    5759           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    5760           0 :         if (flags & NDR_IN) {
    5761           0 :                 NDR_ZERO_STRUCT(r->out);
    5762             : 
    5763           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    5764           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_wszNetworkResource));
    5765           0 :                 if (_ptr_wszNetworkResource) {
    5766           0 :                         NDR_PULL_ALLOC(ndr, r->in.wszNetworkResource);
    5767             :                 } else {
    5768           0 :                         r->in.wszNetworkResource = NULL;
    5769             :                 }
    5770           0 :                 if (r->in.wszNetworkResource) {
    5771           0 :                         _mem_save_wszNetworkResource_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5772           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.wszNetworkResource, 0);
    5773           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.wszNetworkResource));
    5774           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->in.wszNetworkResource));
    5775           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.wszNetworkResource, &size_wszNetworkResource_1));
    5776           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.wszNetworkResource, &length_wszNetworkResource_1));
    5777           0 :                         if (length_wszNetworkResource_1 > size_wszNetworkResource_1) {
    5778           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_wszNetworkResource_1, length_wszNetworkResource_1);
    5779             :                         }
    5780           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_wszNetworkResource_1, sizeof(uint16_t)));
    5781           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.wszNetworkResource, length_wszNetworkResource_1, sizeof(uint16_t), CH_UTF16));
    5782           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_wszNetworkResource_0, 0);
    5783             :                 }
    5784           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_wszUser));
    5785           0 :                 if (_ptr_wszUser) {
    5786           0 :                         NDR_PULL_ALLOC(ndr, r->in.wszUser);
    5787             :                 } else {
    5788           0 :                         r->in.wszUser = NULL;
    5789             :                 }
    5790           0 :                 if (r->in.wszUser) {
    5791           0 :                         _mem_save_wszUser_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5792           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.wszUser, 0);
    5793           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.wszUser));
    5794           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->in.wszUser));
    5795           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.wszUser, &size_wszUser_1));
    5796           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.wszUser, &length_wszUser_1));
    5797           0 :                         if (length_wszUser_1 > size_wszUser_1) {
    5798           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_wszUser_1, length_wszUser_1);
    5799             :                         }
    5800           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_wszUser_1, sizeof(uint16_t)));
    5801           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.wszUser, length_wszUser_1, sizeof(uint16_t), CH_UTF16));
    5802           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_wszUser_0, 0);
    5803             :                 }
    5804           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    5805           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    5806           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.Nonce, 16);
    5807           0 :                 memset(r->out.Nonce, 0, (16) * sizeof(*r->out.Nonce));
    5808             :         }
    5809           0 :         if (flags & NDR_OUT) {
    5810             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    5811             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    5812           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5813           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    5814             :                 }
    5815           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5816           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    5817           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    5818           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    5819           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.Nonce));
    5820           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->out.Nonce));
    5821           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.Nonce, &size_Nonce_1));
    5822           0 :                 NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.Nonce, &length_Nonce_1));
    5823           0 :                 if (length_Nonce_1 > size_Nonce_1) {
    5824           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_Nonce_1, length_Nonce_1);
    5825             :                 }
    5826           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5827           0 :                         NDR_PULL_ALLOC_N(ndr, r->out.Nonce, size_Nonce_1);
    5828             :                 }
    5829           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.Nonce, length_Nonce_1));
    5830           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    5831           0 :                 if (r->out.Nonce) {
    5832           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.Nonce, 16));
    5833             :                 }
    5834           0 :                 if (r->out.Nonce) {
    5835           0 :                         NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.Nonce, 16));
    5836             :                 }
    5837             :         }
    5838           0 :         return NDR_ERR_SUCCESS;
    5839             : }
    5840             : 
    5841           0 : _PUBLIC_ void ndr_print_RequestChallenge(struct ndr_print *ndr, const char *name, int flags, const struct RequestChallenge *r)
    5842             : {
    5843           0 :         ndr_print_struct(ndr, name, "RequestChallenge");
    5844           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    5845           0 :         ndr->depth++;
    5846           0 :         if (flags & NDR_SET_VALUES) {
    5847           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    5848             :         }
    5849           0 :         if (flags & NDR_IN) {
    5850           0 :                 ndr_print_struct(ndr, "in", "RequestChallenge");
    5851           0 :                 ndr->depth++;
    5852           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    5853           0 :                 ndr_print_ptr(ndr, "wszNetworkResource", r->in.wszNetworkResource);
    5854           0 :                 ndr->depth++;
    5855           0 :                 if (r->in.wszNetworkResource) {
    5856           0 :                         ndr_print_string(ndr, "wszNetworkResource", r->in.wszNetworkResource);
    5857             :                 }
    5858           0 :                 ndr->depth--;
    5859           0 :                 ndr_print_ptr(ndr, "wszUser", r->in.wszUser);
    5860           0 :                 ndr->depth++;
    5861           0 :                 if (r->in.wszUser) {
    5862           0 :                         ndr_print_string(ndr, "wszUser", r->in.wszUser);
    5863             :                 }
    5864           0 :                 ndr->depth--;
    5865           0 :                 ndr->depth--;
    5866             :         }
    5867           0 :         if (flags & NDR_OUT) {
    5868           0 :                 ndr_print_struct(ndr, "out", "RequestChallenge");
    5869           0 :                 ndr->depth++;
    5870           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    5871           0 :                 ndr->depth++;
    5872           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    5873           0 :                 ndr->depth--;
    5874           0 :                 ndr_print_ptr(ndr, "Nonce", r->out.Nonce);
    5875           0 :                 ndr->depth++;
    5876           0 :                 ndr_print_array_uint8(ndr, "Nonce", r->out.Nonce, 16);
    5877           0 :                 ndr->depth--;
    5878           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    5879           0 :                 ndr->depth--;
    5880             :         }
    5881           0 :         ndr->depth--;
    5882             : }
    5883             : 
    5884           0 : static enum ndr_err_code ndr_push_WBEMLogin(struct ndr_push *ndr, int flags, const struct WBEMLogin *r)
    5885             : {
    5886           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    5887           0 :         if (flags & NDR_IN) {
    5888           0 :                 if (r->in.pCtx == NULL) {
    5889           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5890             :                 }
    5891           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    5892           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.wszPreferredLocale));
    5893           0 :                 if (r->in.wszPreferredLocale) {
    5894           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszPreferredLocale, CH_UTF16)));
    5895           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    5896           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszPreferredLocale, CH_UTF16)));
    5897           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.wszPreferredLocale, ndr_charset_length(r->in.wszPreferredLocale, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    5898             :                 }
    5899           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.AccessToken));
    5900           0 :                 if (r->in.AccessToken) {
    5901           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 16));
    5902           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    5903           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 16));
    5904           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.AccessToken, 16));
    5905             :                 }
    5906           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
    5907           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    5908             :         }
    5909           0 :         if (flags & NDR_OUT) {
    5910           0 :                 if (r->out.ORPCthat == NULL) {
    5911           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5912             :                 }
    5913           0 :                 if (r->out.ppNamespace == NULL) {
    5914           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5915             :                 }
    5916           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    5917           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppNamespace));
    5918           0 :                 if (*r->out.ppNamespace) {
    5919           0 :                         NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppNamespace));
    5920             :                 }
    5921           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    5922             :         }
    5923           0 :         return NDR_ERR_SUCCESS;
    5924             : }
    5925             : 
    5926           0 : static enum ndr_err_code ndr_pull_WBEMLogin(struct ndr_pull *ndr, int flags, struct WBEMLogin *r)
    5927             : {
    5928             :         uint32_t _ptr_wszPreferredLocale;
    5929           0 :         uint32_t size_wszPreferredLocale_1 = 0;
    5930           0 :         uint32_t length_wszPreferredLocale_1 = 0;
    5931             :         uint32_t _ptr_AccessToken;
    5932           0 :         uint32_t size_AccessToken_1 = 0;
    5933           0 :         uint32_t length_AccessToken_1 = 0;
    5934             :         uint32_t _ptr_ppNamespace;
    5935           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    5936           0 :         TALLOC_CTX *_mem_save_wszPreferredLocale_0 = NULL;
    5937           0 :         TALLOC_CTX *_mem_save_AccessToken_0 = NULL;
    5938           0 :         TALLOC_CTX *_mem_save_pCtx_0 = NULL;
    5939           0 :         TALLOC_CTX *_mem_save_ppNamespace_0 = NULL;
    5940           0 :         TALLOC_CTX *_mem_save_ppNamespace_1 = NULL;
    5941           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    5942           0 :         if (flags & NDR_IN) {
    5943           0 :                 NDR_ZERO_STRUCT(r->out);
    5944             : 
    5945           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    5946           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_wszPreferredLocale));
    5947           0 :                 if (_ptr_wszPreferredLocale) {
    5948           0 :                         NDR_PULL_ALLOC(ndr, r->in.wszPreferredLocale);
    5949             :                 } else {
    5950           0 :                         r->in.wszPreferredLocale = NULL;
    5951             :                 }
    5952           0 :                 if (r->in.wszPreferredLocale) {
    5953           0 :                         _mem_save_wszPreferredLocale_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5954           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.wszPreferredLocale, 0);
    5955           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.wszPreferredLocale));
    5956           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->in.wszPreferredLocale));
    5957           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.wszPreferredLocale, &size_wszPreferredLocale_1));
    5958           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.wszPreferredLocale, &length_wszPreferredLocale_1));
    5959           0 :                         if (length_wszPreferredLocale_1 > size_wszPreferredLocale_1) {
    5960           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_wszPreferredLocale_1, length_wszPreferredLocale_1);
    5961             :                         }
    5962           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_wszPreferredLocale_1, sizeof(uint16_t)));
    5963           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.wszPreferredLocale, length_wszPreferredLocale_1, sizeof(uint16_t), CH_UTF16));
    5964           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_wszPreferredLocale_0, 0);
    5965             :                 }
    5966           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_AccessToken));
    5967           0 :                 if (_ptr_AccessToken) {
    5968           0 :                         NDR_PULL_ALLOC(ndr, r->in.AccessToken);
    5969             :                 } else {
    5970           0 :                         r->in.AccessToken = NULL;
    5971             :                 }
    5972           0 :                 if (r->in.AccessToken) {
    5973           0 :                         _mem_save_AccessToken_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5974           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.AccessToken, 0);
    5975           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.AccessToken));
    5976           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->in.AccessToken));
    5977           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.AccessToken, &size_AccessToken_1));
    5978           0 :                         NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->in.AccessToken, &length_AccessToken_1));
    5979           0 :                         if (length_AccessToken_1 > size_AccessToken_1) {
    5980           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_AccessToken_1, length_AccessToken_1);
    5981             :                         }
    5982           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.AccessToken, size_AccessToken_1);
    5983           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.AccessToken, length_AccessToken_1));
    5984           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_AccessToken_0, 0);
    5985             :                 }
    5986           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
    5987           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5988           0 :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    5989             :                 }
    5990           0 :                 _mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5991           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, LIBNDR_FLAG_REF_ALLOC);
    5992           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    5993           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, LIBNDR_FLAG_REF_ALLOC);
    5994           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    5995           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    5996           0 :                 NDR_PULL_ALLOC(ndr, r->out.ppNamespace);
    5997           0 :                 NDR_ZERO_STRUCTP(r->out.ppNamespace);
    5998           0 :                 if (r->in.AccessToken) {
    5999           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.AccessToken, 16));
    6000             :                 }
    6001           0 :                 if (r->in.AccessToken) {
    6002           0 :                         NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->in.AccessToken, 16));
    6003             :                 }
    6004             :         }
    6005           0 :         if (flags & NDR_OUT) {
    6006             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    6007             :                 if (r->in.pCtx == NULL) {
    6008             :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    6009             :                         NDR_ZERO_STRUCTP(r->in.pCtx);
    6010             :                 }
    6011             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    6012           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6013           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    6014             :                 }
    6015           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6016           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    6017           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    6018           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    6019           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6020           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppNamespace);
    6021             :                 }
    6022           0 :                 _mem_save_ppNamespace_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6023           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ppNamespace, LIBNDR_FLAG_REF_ALLOC);
    6024           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppNamespace));
    6025           0 :                 if (_ptr_ppNamespace) {
    6026           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ppNamespace);
    6027             :                 } else {
    6028           0 :                         *r->out.ppNamespace = NULL;
    6029             :                 }
    6030           0 :                 if (*r->out.ppNamespace) {
    6031           0 :                         _mem_save_ppNamespace_1 = NDR_PULL_GET_MEM_CTX(ndr);
    6032           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppNamespace, 0);
    6033           0 :                         NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppNamespace));
    6034           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppNamespace_1, 0);
    6035             :                 }
    6036           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppNamespace_0, LIBNDR_FLAG_REF_ALLOC);
    6037           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    6038             :         }
    6039           0 :         return NDR_ERR_SUCCESS;
    6040             : }
    6041             : 
    6042           0 : _PUBLIC_ void ndr_print_WBEMLogin(struct ndr_print *ndr, const char *name, int flags, const struct WBEMLogin *r)
    6043             : {
    6044           0 :         ndr_print_struct(ndr, name, "WBEMLogin");
    6045           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    6046           0 :         ndr->depth++;
    6047           0 :         if (flags & NDR_SET_VALUES) {
    6048           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    6049             :         }
    6050           0 :         if (flags & NDR_IN) {
    6051           0 :                 ndr_print_struct(ndr, "in", "WBEMLogin");
    6052           0 :                 ndr->depth++;
    6053           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    6054           0 :                 ndr_print_ptr(ndr, "wszPreferredLocale", r->in.wszPreferredLocale);
    6055           0 :                 ndr->depth++;
    6056           0 :                 if (r->in.wszPreferredLocale) {
    6057           0 :                         ndr_print_string(ndr, "wszPreferredLocale", r->in.wszPreferredLocale);
    6058             :                 }
    6059           0 :                 ndr->depth--;
    6060           0 :                 ndr_print_ptr(ndr, "AccessToken", r->in.AccessToken);
    6061           0 :                 ndr->depth++;
    6062           0 :                 if (r->in.AccessToken) {
    6063           0 :                         ndr_print_array_uint8(ndr, "AccessToken", r->in.AccessToken, 16);
    6064             :                 }
    6065           0 :                 ndr->depth--;
    6066           0 :                 ndr_print_int32(ndr, "lFlags", r->in.lFlags);
    6067           0 :                 ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
    6068           0 :                 ndr->depth++;
    6069           0 :                 ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
    6070           0 :                 ndr->depth--;
    6071           0 :                 ndr->depth--;
    6072             :         }
    6073           0 :         if (flags & NDR_OUT) {
    6074           0 :                 ndr_print_struct(ndr, "out", "WBEMLogin");
    6075           0 :                 ndr->depth++;
    6076           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    6077           0 :                 ndr->depth++;
    6078           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    6079           0 :                 ndr->depth--;
    6080           0 :                 ndr_print_ptr(ndr, "ppNamespace", r->out.ppNamespace);
    6081           0 :                 ndr->depth++;
    6082           0 :                 ndr_print_ptr(ndr, "ppNamespace", *r->out.ppNamespace);
    6083           0 :                 ndr->depth++;
    6084           0 :                 if (*r->out.ppNamespace) {
    6085           0 :                         ndr_print_MInterfacePointer(ndr, "ppNamespace", *r->out.ppNamespace);
    6086             :                 }
    6087           0 :                 ndr->depth--;
    6088           0 :                 ndr->depth--;
    6089           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    6090           0 :                 ndr->depth--;
    6091             :         }
    6092           0 :         ndr->depth--;
    6093             : }
    6094             : 
    6095           0 : static enum ndr_err_code ndr_push_NTLMLogin(struct ndr_push *ndr, int flags, const struct NTLMLogin *r)
    6096             : {
    6097           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    6098           0 :         if (flags & NDR_IN) {
    6099           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    6100           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.wszNetworkResource));
    6101           0 :                 if (r->in.wszNetworkResource) {
    6102           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszNetworkResource, CH_UTF16)));
    6103           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    6104           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszNetworkResource, CH_UTF16)));
    6105           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.wszNetworkResource, ndr_charset_length(r->in.wszNetworkResource, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    6106             :                 }
    6107           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.wszPreferredLocale));
    6108           0 :                 if (r->in.wszPreferredLocale) {
    6109           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszPreferredLocale, CH_UTF16)));
    6110           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    6111           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.wszPreferredLocale, CH_UTF16)));
    6112           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.wszPreferredLocale, ndr_charset_length(r->in.wszPreferredLocale, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    6113             :                 }
    6114           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
    6115           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pCtx));
    6116           0 :                 if (r->in.pCtx) {
    6117           0 :                         NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    6118             :                 }
    6119             :         }
    6120           0 :         if (flags & NDR_OUT) {
    6121           0 :                 if (r->out.ORPCthat == NULL) {
    6122           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6123             :                 }
    6124           0 :                 if (r->out.ppNamespace == NULL) {
    6125           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6126             :                 }
    6127           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    6128           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppNamespace));
    6129           0 :                 if (*r->out.ppNamespace) {
    6130           0 :                         NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppNamespace));
    6131             :                 }
    6132           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    6133             :         }
    6134           0 :         return NDR_ERR_SUCCESS;
    6135             : }
    6136             : 
    6137           0 : static enum ndr_err_code ndr_pull_NTLMLogin(struct ndr_pull *ndr, int flags, struct NTLMLogin *r)
    6138             : {
    6139             :         uint32_t _ptr_wszNetworkResource;
    6140           0 :         uint32_t size_wszNetworkResource_1 = 0;
    6141           0 :         uint32_t length_wszNetworkResource_1 = 0;
    6142             :         uint32_t _ptr_wszPreferredLocale;
    6143           0 :         uint32_t size_wszPreferredLocale_1 = 0;
    6144           0 :         uint32_t length_wszPreferredLocale_1 = 0;
    6145             :         uint32_t _ptr_pCtx;
    6146             :         uint32_t _ptr_ppNamespace;
    6147           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    6148           0 :         TALLOC_CTX *_mem_save_wszNetworkResource_0 = NULL;
    6149           0 :         TALLOC_CTX *_mem_save_wszPreferredLocale_0 = NULL;
    6150           0 :         TALLOC_CTX *_mem_save_pCtx_0 = NULL;
    6151           0 :         TALLOC_CTX *_mem_save_ppNamespace_0 = NULL;
    6152           0 :         TALLOC_CTX *_mem_save_ppNamespace_1 = NULL;
    6153           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    6154           0 :         if (flags & NDR_IN) {
    6155           0 :                 NDR_ZERO_STRUCT(r->out);
    6156             : 
    6157           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    6158           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_wszNetworkResource));
    6159           0 :                 if (_ptr_wszNetworkResource) {
    6160           0 :                         NDR_PULL_ALLOC(ndr, r->in.wszNetworkResource);
    6161             :                 } else {
    6162           0 :                         r->in.wszNetworkResource = NULL;
    6163             :                 }
    6164           0 :                 if (r->in.wszNetworkResource) {
    6165           0 :                         _mem_save_wszNetworkResource_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6166           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.wszNetworkResource, 0);
    6167           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.wszNetworkResource));
    6168           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->in.wszNetworkResource));
    6169           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.wszNetworkResource, &size_wszNetworkResource_1));
    6170           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.wszNetworkResource, &length_wszNetworkResource_1));
    6171           0 :                         if (length_wszNetworkResource_1 > size_wszNetworkResource_1) {
    6172           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_wszNetworkResource_1, length_wszNetworkResource_1);
    6173             :                         }
    6174           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_wszNetworkResource_1, sizeof(uint16_t)));
    6175           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.wszNetworkResource, length_wszNetworkResource_1, sizeof(uint16_t), CH_UTF16));
    6176           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_wszNetworkResource_0, 0);
    6177             :                 }
    6178           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_wszPreferredLocale));
    6179           0 :                 if (_ptr_wszPreferredLocale) {
    6180           0 :                         NDR_PULL_ALLOC(ndr, r->in.wszPreferredLocale);
    6181             :                 } else {
    6182           0 :                         r->in.wszPreferredLocale = NULL;
    6183             :                 }
    6184           0 :                 if (r->in.wszPreferredLocale) {
    6185           0 :                         _mem_save_wszPreferredLocale_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6186           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.wszPreferredLocale, 0);
    6187           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.wszPreferredLocale));
    6188           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->in.wszPreferredLocale));
    6189           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.wszPreferredLocale, &size_wszPreferredLocale_1));
    6190           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.wszPreferredLocale, &length_wszPreferredLocale_1));
    6191           0 :                         if (length_wszPreferredLocale_1 > size_wszPreferredLocale_1) {
    6192           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should exceed array length %u", size_wszPreferredLocale_1, length_wszPreferredLocale_1);
    6193             :                         }
    6194           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_wszPreferredLocale_1, sizeof(uint16_t)));
    6195           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.wszPreferredLocale, length_wszPreferredLocale_1, sizeof(uint16_t), CH_UTF16));
    6196           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_wszPreferredLocale_0, 0);
    6197             :                 }
    6198           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
    6199           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pCtx));
    6200           0 :                 if (_ptr_pCtx) {
    6201           0 :                         NDR_PULL_ALLOC(ndr, r->in.pCtx);
    6202             :                 } else {
    6203           0 :                         r->in.pCtx = NULL;
    6204             :                 }
    6205           0 :                 if (r->in.pCtx) {
    6206           0 :                         _mem_save_pCtx_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6207           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.pCtx, 0);
    6208           0 :                         NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pCtx));
    6209           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pCtx_0, 0);
    6210             :                 }
    6211           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    6212           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    6213           0 :                 NDR_PULL_ALLOC(ndr, r->out.ppNamespace);
    6214           0 :                 NDR_ZERO_STRUCTP(r->out.ppNamespace);
    6215             :         }
    6216           0 :         if (flags & NDR_OUT) {
    6217             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    6218             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    6219           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6220           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    6221             :                 }
    6222           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6223           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    6224           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    6225           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    6226           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6227           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppNamespace);
    6228             :                 }
    6229           0 :                 _mem_save_ppNamespace_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6230           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ppNamespace, LIBNDR_FLAG_REF_ALLOC);
    6231           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppNamespace));
    6232           0 :                 if (_ptr_ppNamespace) {
    6233           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ppNamespace);
    6234             :                 } else {
    6235           0 :                         *r->out.ppNamespace = NULL;
    6236             :                 }
    6237           0 :                 if (*r->out.ppNamespace) {
    6238           0 :                         _mem_save_ppNamespace_1 = NDR_PULL_GET_MEM_CTX(ndr);
    6239           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppNamespace, 0);
    6240           0 :                         NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppNamespace));
    6241           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppNamespace_1, 0);
    6242             :                 }
    6243           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppNamespace_0, LIBNDR_FLAG_REF_ALLOC);
    6244           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    6245             :         }
    6246           0 :         return NDR_ERR_SUCCESS;
    6247             : }
    6248             : 
    6249           0 : _PUBLIC_ void ndr_print_NTLMLogin(struct ndr_print *ndr, const char *name, int flags, const struct NTLMLogin *r)
    6250             : {
    6251           0 :         ndr_print_struct(ndr, name, "NTLMLogin");
    6252           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    6253           0 :         ndr->depth++;
    6254           0 :         if (flags & NDR_SET_VALUES) {
    6255           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    6256             :         }
    6257           0 :         if (flags & NDR_IN) {
    6258           0 :                 ndr_print_struct(ndr, "in", "NTLMLogin");
    6259           0 :                 ndr->depth++;
    6260           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    6261           0 :                 ndr_print_ptr(ndr, "wszNetworkResource", r->in.wszNetworkResource);
    6262           0 :                 ndr->depth++;
    6263           0 :                 if (r->in.wszNetworkResource) {
    6264           0 :                         ndr_print_string(ndr, "wszNetworkResource", r->in.wszNetworkResource);
    6265             :                 }
    6266           0 :                 ndr->depth--;
    6267           0 :                 ndr_print_ptr(ndr, "wszPreferredLocale", r->in.wszPreferredLocale);
    6268           0 :                 ndr->depth++;
    6269           0 :                 if (r->in.wszPreferredLocale) {
    6270           0 :                         ndr_print_string(ndr, "wszPreferredLocale", r->in.wszPreferredLocale);
    6271             :                 }
    6272           0 :                 ndr->depth--;
    6273           0 :                 ndr_print_int32(ndr, "lFlags", r->in.lFlags);
    6274           0 :                 ndr_print_ptr(ndr, "pCtx", r->in.pCtx);
    6275           0 :                 ndr->depth++;
    6276           0 :                 if (r->in.pCtx) {
    6277           0 :                         ndr_print_MInterfacePointer(ndr, "pCtx", r->in.pCtx);
    6278             :                 }
    6279           0 :                 ndr->depth--;
    6280           0 :                 ndr->depth--;
    6281             :         }
    6282           0 :         if (flags & NDR_OUT) {
    6283           0 :                 ndr_print_struct(ndr, "out", "NTLMLogin");
    6284           0 :                 ndr->depth++;
    6285           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    6286           0 :                 ndr->depth++;
    6287           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    6288           0 :                 ndr->depth--;
    6289           0 :                 ndr_print_ptr(ndr, "ppNamespace", r->out.ppNamespace);
    6290           0 :                 ndr->depth++;
    6291           0 :                 ndr_print_ptr(ndr, "ppNamespace", *r->out.ppNamespace);
    6292           0 :                 ndr->depth++;
    6293           0 :                 if (*r->out.ppNamespace) {
    6294           0 :                         ndr_print_MInterfacePointer(ndr, "ppNamespace", *r->out.ppNamespace);
    6295             :                 }
    6296           0 :                 ndr->depth--;
    6297           0 :                 ndr->depth--;
    6298           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    6299           0 :                 ndr->depth--;
    6300             :         }
    6301           0 :         ndr->depth--;
    6302             : }
    6303             : 
    6304             : #ifndef SKIP_NDR_TABLE_IWbemLevel1Login
    6305             : static const struct ndr_interface_public_struct IWbemLevel1Login_public_structs[] = {
    6306             :         { .name = NULL }
    6307             : };
    6308             : 
    6309             : static const struct ndr_interface_call IWbemLevel1Login_calls[] = {
    6310             :         {
    6311             :                 "EstablishPosition",
    6312             :                 sizeof(struct EstablishPosition),
    6313             :                 (ndr_push_flags_fn_t) ndr_push_EstablishPosition,
    6314             :                 (ndr_pull_flags_fn_t) ndr_pull_EstablishPosition,
    6315             :                 (ndr_print_function_t) ndr_print_EstablishPosition,
    6316             :                 { 0, NULL },
    6317             :                 { 0, NULL },
    6318             :         },
    6319             :         {
    6320             :                 "RequestChallenge",
    6321             :                 sizeof(struct RequestChallenge),
    6322             :                 (ndr_push_flags_fn_t) ndr_push_RequestChallenge,
    6323             :                 (ndr_pull_flags_fn_t) ndr_pull_RequestChallenge,
    6324             :                 (ndr_print_function_t) ndr_print_RequestChallenge,
    6325             :                 { 0, NULL },
    6326             :                 { 0, NULL },
    6327             :         },
    6328             :         {
    6329             :                 "WBEMLogin",
    6330             :                 sizeof(struct WBEMLogin),
    6331             :                 (ndr_push_flags_fn_t) ndr_push_WBEMLogin,
    6332             :                 (ndr_pull_flags_fn_t) ndr_pull_WBEMLogin,
    6333             :                 (ndr_print_function_t) ndr_print_WBEMLogin,
    6334             :                 { 0, NULL },
    6335             :                 { 0, NULL },
    6336             :         },
    6337             :         {
    6338             :                 "NTLMLogin",
    6339             :                 sizeof(struct NTLMLogin),
    6340             :                 (ndr_push_flags_fn_t) ndr_push_NTLMLogin,
    6341             :                 (ndr_pull_flags_fn_t) ndr_pull_NTLMLogin,
    6342             :                 (ndr_print_function_t) ndr_print_NTLMLogin,
    6343             :                 { 0, NULL },
    6344             :                 { 0, NULL },
    6345             :         },
    6346             :         { .name = NULL }
    6347             : };
    6348             : 
    6349             : static const char * const IWbemLevel1Login_endpoint_strings[] = {
    6350             :         "ncacn_np:[\\pipe\\IWbemLevel1Login]", 
    6351             : };
    6352             : 
    6353             : static const struct ndr_interface_string_array IWbemLevel1Login_endpoints = {
    6354             :         .count  = 1,
    6355             :         .names  = IWbemLevel1Login_endpoint_strings
    6356             : };
    6357             : 
    6358             : static const char * const IWbemLevel1Login_authservice_strings[] = {
    6359             :         "host", 
    6360             : };
    6361             : 
    6362             : static const struct ndr_interface_string_array IWbemLevel1Login_authservices = {
    6363             :         .count  = 1,
    6364             :         .names  = IWbemLevel1Login_authservice_strings
    6365             : };
    6366             : 
    6367             : 
    6368             : const struct ndr_interface_table ndr_table_IWbemLevel1Login = {
    6369             :         .name           = "IWbemLevel1Login",
    6370             :         .syntax_id      = {
    6371             :                 {0xf309ad18,0xd86a,0x11d0,{0xa0,0x75},{0x00,0xc0,0x4f,0xb6,0x88,0x20}},
    6372             :                 NDR_IWBEMLEVEL1LOGIN_VERSION
    6373             :         },
    6374             :         .helpstring     = NDR_IWBEMLEVEL1LOGIN_HELPSTRING,
    6375             :         .num_calls      = 4,
    6376             :         .calls          = IWbemLevel1Login_calls,
    6377             :         .num_public_structs     = 0,
    6378             :         .public_structs         = IWbemLevel1Login_public_structs,
    6379             :         .endpoints      = &IWbemLevel1Login_endpoints,
    6380             :         .authservices   = &IWbemLevel1Login_authservices
    6381             : };
    6382             : 
    6383             : #endif /* SKIP_NDR_TABLE_IWbemLevel1Login */
    6384             : #include "librpc/gen_ndr/ndr_orpc.h"
    6385           0 : static enum ndr_err_code ndr_push_IWbemWCOSmartEnum_Next(struct ndr_push *ndr, int flags, const struct IWbemWCOSmartEnum_Next *r)
    6386             : {
    6387           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    6388           0 :         if (flags & NDR_IN) {
    6389           0 :                 if (r->in.gEWCO == NULL) {
    6390           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6391             :                 }
    6392           0 :                 if (r->in.gWCO == NULL) {
    6393           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6394             :                 }
    6395           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    6396           0 :                 NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, r->in.gEWCO));
    6397           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.lTimeOut));
    6398           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.uCount));
    6399           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.unknown));
    6400           0 :                 NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, r->in.gWCO));
    6401             :         }
    6402           0 :         if (flags & NDR_OUT) {
    6403           0 :                 if (r->out.ORPCthat == NULL) {
    6404           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6405             :                 }
    6406           0 :                 if (r->out.puReturned == NULL) {
    6407           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6408             :                 }
    6409           0 :                 if (r->out.pSize == NULL) {
    6410           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6411             :                 }
    6412           0 :                 if (r->out.pData == NULL) {
    6413           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6414             :                 }
    6415           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    6416           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.puReturned));
    6417           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.pSize));
    6418           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.pData));
    6419           0 :                 if (*r->out.pData) {
    6420           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.pSize));
    6421           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, *r->out.pData, *r->out.pSize));
    6422             :                 }
    6423           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    6424             :         }
    6425           0 :         return NDR_ERR_SUCCESS;
    6426             : }
    6427             : 
    6428           0 : static enum ndr_err_code ndr_pull_IWbemWCOSmartEnum_Next(struct ndr_pull *ndr, int flags, struct IWbemWCOSmartEnum_Next *r)
    6429             : {
    6430             :         uint32_t _ptr_pData;
    6431           0 :         uint32_t size_pData_2 = 0;
    6432           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    6433           0 :         TALLOC_CTX *_mem_save_gEWCO_0 = NULL;
    6434           0 :         TALLOC_CTX *_mem_save_gWCO_0 = NULL;
    6435           0 :         TALLOC_CTX *_mem_save_puReturned_0 = NULL;
    6436           0 :         TALLOC_CTX *_mem_save_pSize_0 = NULL;
    6437           0 :         TALLOC_CTX *_mem_save_pData_0 = NULL;
    6438           0 :         TALLOC_CTX *_mem_save_pData_1 = NULL;
    6439           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    6440           0 :         if (flags & NDR_IN) {
    6441           0 :                 NDR_ZERO_STRUCT(r->out);
    6442             : 
    6443           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    6444           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6445           0 :                         NDR_PULL_ALLOC(ndr, r->in.gEWCO);
    6446             :                 }
    6447           0 :                 _mem_save_gEWCO_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6448           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.gEWCO, LIBNDR_FLAG_REF_ALLOC);
    6449           0 :                 NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, r->in.gEWCO));
    6450           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_gEWCO_0, LIBNDR_FLAG_REF_ALLOC);
    6451           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.lTimeOut));
    6452           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.uCount));
    6453           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.unknown));
    6454           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6455           0 :                         NDR_PULL_ALLOC(ndr, r->in.gWCO);
    6456             :                 }
    6457           0 :                 _mem_save_gWCO_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6458           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.gWCO, LIBNDR_FLAG_REF_ALLOC);
    6459           0 :                 NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, r->in.gWCO));
    6460           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_gWCO_0, LIBNDR_FLAG_REF_ALLOC);
    6461           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    6462           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    6463           0 :                 NDR_PULL_ALLOC(ndr, r->out.puReturned);
    6464           0 :                 NDR_ZERO_STRUCTP(r->out.puReturned);
    6465           0 :                 NDR_PULL_ALLOC(ndr, r->out.pSize);
    6466           0 :                 NDR_ZERO_STRUCTP(r->out.pSize);
    6467           0 :                 NDR_PULL_ALLOC(ndr, r->out.pData);
    6468           0 :                 NDR_ZERO_STRUCTP(r->out.pData);
    6469             :         }
    6470           0 :         if (flags & NDR_OUT) {
    6471             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    6472             :                 if (r->in.gEWCO == NULL) {
    6473             :                         NDR_PULL_ALLOC(ndr, r->in.gEWCO);
    6474             :                         NDR_ZERO_STRUCTP(r->in.gEWCO);
    6475             :                 }
    6476             :                 if (r->in.gWCO == NULL) {
    6477             :                         NDR_PULL_ALLOC(ndr, r->in.gWCO);
    6478             :                         NDR_ZERO_STRUCTP(r->in.gWCO);
    6479             :                 }
    6480             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    6481           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6482           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    6483             :                 }
    6484           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6485           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    6486           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    6487           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    6488           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6489           0 :                         NDR_PULL_ALLOC(ndr, r->out.puReturned);
    6490             :                 }
    6491           0 :                 _mem_save_puReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6492           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.puReturned, LIBNDR_FLAG_REF_ALLOC);
    6493           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.puReturned));
    6494           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_puReturned_0, LIBNDR_FLAG_REF_ALLOC);
    6495           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6496           0 :                         NDR_PULL_ALLOC(ndr, r->out.pSize);
    6497             :                 }
    6498           0 :                 _mem_save_pSize_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6499           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.pSize, LIBNDR_FLAG_REF_ALLOC);
    6500           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.pSize));
    6501           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pSize_0, LIBNDR_FLAG_REF_ALLOC);
    6502           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6503           0 :                         NDR_PULL_ALLOC(ndr, r->out.pData);
    6504             :                 }
    6505           0 :                 _mem_save_pData_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6506           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.pData, LIBNDR_FLAG_REF_ALLOC);
    6507           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pData));
    6508           0 :                 if (_ptr_pData) {
    6509           0 :                         NDR_PULL_ALLOC(ndr, *r->out.pData);
    6510             :                 } else {
    6511           0 :                         *r->out.pData = NULL;
    6512             :                 }
    6513           0 :                 if (*r->out.pData) {
    6514           0 :                         _mem_save_pData_1 = NDR_PULL_GET_MEM_CTX(ndr);
    6515           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.pData, 0);
    6516           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.pData));
    6517           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)r->out.pData, &size_pData_2));
    6518           0 :                         NDR_PULL_ALLOC_N(ndr, *r->out.pData, size_pData_2);
    6519           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, *r->out.pData, size_pData_2));
    6520           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pData_1, 0);
    6521             :                 }
    6522           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pData_0, LIBNDR_FLAG_REF_ALLOC);
    6523           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    6524           0 :                 if (*r->out.pData) {
    6525           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)r->out.pData, *r->out.pSize));
    6526             :                 }
    6527             :         }
    6528           0 :         return NDR_ERR_SUCCESS;
    6529             : }
    6530             : 
    6531           0 : _PUBLIC_ void ndr_print_IWbemWCOSmartEnum_Next(struct ndr_print *ndr, const char *name, int flags, const struct IWbemWCOSmartEnum_Next *r)
    6532             : {
    6533           0 :         ndr_print_struct(ndr, name, "IWbemWCOSmartEnum_Next");
    6534           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    6535           0 :         ndr->depth++;
    6536           0 :         if (flags & NDR_SET_VALUES) {
    6537           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    6538             :         }
    6539           0 :         if (flags & NDR_IN) {
    6540           0 :                 ndr_print_struct(ndr, "in", "IWbemWCOSmartEnum_Next");
    6541           0 :                 ndr->depth++;
    6542           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    6543           0 :                 ndr_print_ptr(ndr, "gEWCO", r->in.gEWCO);
    6544           0 :                 ndr->depth++;
    6545           0 :                 ndr_print_GUID(ndr, "gEWCO", r->in.gEWCO);
    6546           0 :                 ndr->depth--;
    6547           0 :                 ndr_print_uint32(ndr, "lTimeOut", r->in.lTimeOut);
    6548           0 :                 ndr_print_uint32(ndr, "uCount", r->in.uCount);
    6549           0 :                 ndr_print_uint32(ndr, "unknown", r->in.unknown);
    6550           0 :                 ndr_print_ptr(ndr, "gWCO", r->in.gWCO);
    6551           0 :                 ndr->depth++;
    6552           0 :                 ndr_print_GUID(ndr, "gWCO", r->in.gWCO);
    6553           0 :                 ndr->depth--;
    6554           0 :                 ndr->depth--;
    6555             :         }
    6556           0 :         if (flags & NDR_OUT) {
    6557           0 :                 ndr_print_struct(ndr, "out", "IWbemWCOSmartEnum_Next");
    6558           0 :                 ndr->depth++;
    6559           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    6560           0 :                 ndr->depth++;
    6561           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    6562           0 :                 ndr->depth--;
    6563           0 :                 ndr_print_ptr(ndr, "puReturned", r->out.puReturned);
    6564           0 :                 ndr->depth++;
    6565           0 :                 ndr_print_uint32(ndr, "puReturned", *r->out.puReturned);
    6566           0 :                 ndr->depth--;
    6567           0 :                 ndr_print_ptr(ndr, "pSize", r->out.pSize);
    6568           0 :                 ndr->depth++;
    6569           0 :                 ndr_print_uint32(ndr, "pSize", *r->out.pSize);
    6570           0 :                 ndr->depth--;
    6571           0 :                 ndr_print_ptr(ndr, "pData", r->out.pData);
    6572           0 :                 ndr->depth++;
    6573           0 :                 ndr_print_ptr(ndr, "pData", *r->out.pData);
    6574           0 :                 ndr->depth++;
    6575           0 :                 if (*r->out.pData) {
    6576           0 :                         ndr_print_array_uint8(ndr, "pData", *r->out.pData, *r->out.pSize);
    6577             :                 }
    6578           0 :                 ndr->depth--;
    6579           0 :                 ndr->depth--;
    6580           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    6581           0 :                 ndr->depth--;
    6582             :         }
    6583           0 :         ndr->depth--;
    6584             : }
    6585             : 
    6586             : #ifndef SKIP_NDR_TABLE_IWbemWCOSmartEnum
    6587             : static const struct ndr_interface_public_struct IWbemWCOSmartEnum_public_structs[] = {
    6588             :         { .name = NULL }
    6589             : };
    6590             : 
    6591             : static const struct ndr_interface_call IWbemWCOSmartEnum_calls[] = {
    6592             :         {
    6593             :                 "IWbemWCOSmartEnum_Next",
    6594             :                 sizeof(struct IWbemWCOSmartEnum_Next),
    6595             :                 (ndr_push_flags_fn_t) ndr_push_IWbemWCOSmartEnum_Next,
    6596             :                 (ndr_pull_flags_fn_t) ndr_pull_IWbemWCOSmartEnum_Next,
    6597             :                 (ndr_print_function_t) ndr_print_IWbemWCOSmartEnum_Next,
    6598             :                 { 0, NULL },
    6599             :                 { 0, NULL },
    6600             :         },
    6601             :         { .name = NULL }
    6602             : };
    6603             : 
    6604             : static const char * const IWbemWCOSmartEnum_endpoint_strings[] = {
    6605             :         "ncacn_np:[\\pipe\\IWbemWCOSmartEnum]", 
    6606             : };
    6607             : 
    6608             : static const struct ndr_interface_string_array IWbemWCOSmartEnum_endpoints = {
    6609             :         .count  = 1,
    6610             :         .names  = IWbemWCOSmartEnum_endpoint_strings
    6611             : };
    6612             : 
    6613             : static const char * const IWbemWCOSmartEnum_authservice_strings[] = {
    6614             :         "host", 
    6615             : };
    6616             : 
    6617             : static const struct ndr_interface_string_array IWbemWCOSmartEnum_authservices = {
    6618             :         .count  = 1,
    6619             :         .names  = IWbemWCOSmartEnum_authservice_strings
    6620             : };
    6621             : 
    6622             : 
    6623             : const struct ndr_interface_table ndr_table_IWbemWCOSmartEnum = {
    6624             :         .name           = "IWbemWCOSmartEnum",
    6625             :         .syntax_id      = {
    6626             :                 {0x423ec01e,0x2e35,0x11d2,{0xb6,0x04},{0x00,0x10,0x4b,0x70,0x3e,0xfd}},
    6627             :                 NDR_IWBEMWCOSMARTENUM_VERSION
    6628             :         },
    6629             :         .helpstring     = NDR_IWBEMWCOSMARTENUM_HELPSTRING,
    6630             :         .num_calls      = 1,
    6631             :         .calls          = IWbemWCOSmartEnum_calls,
    6632             :         .num_public_structs     = 0,
    6633             :         .public_structs         = IWbemWCOSmartEnum_public_structs,
    6634             :         .endpoints      = &IWbemWCOSmartEnum_endpoints,
    6635             :         .authservices   = &IWbemWCOSmartEnum_authservices
    6636             : };
    6637             : 
    6638             : #endif /* SKIP_NDR_TABLE_IWbemWCOSmartEnum */
    6639             : #include "librpc/gen_ndr/ndr_orpc.h"
    6640           0 : static enum ndr_err_code ndr_push_Fetch(struct ndr_push *ndr, int flags, const struct Fetch *r)
    6641             : {
    6642           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    6643           0 :         if (flags & NDR_IN) {
    6644           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    6645             :         }
    6646           0 :         if (flags & NDR_OUT) {
    6647           0 :                 if (r->out.ORPCthat == NULL) {
    6648           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6649             :                 }
    6650           0 :                 if (r->out.ppEnum == NULL) {
    6651           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6652             :                 }
    6653           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    6654           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppEnum));
    6655           0 :                 if (*r->out.ppEnum) {
    6656           0 :                         NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
    6657             :                 }
    6658           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    6659             :         }
    6660           0 :         return NDR_ERR_SUCCESS;
    6661             : }
    6662             : 
    6663           0 : static enum ndr_err_code ndr_pull_Fetch(struct ndr_pull *ndr, int flags, struct Fetch *r)
    6664             : {
    6665             :         uint32_t _ptr_ppEnum;
    6666           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    6667           0 :         TALLOC_CTX *_mem_save_ppEnum_0 = NULL;
    6668           0 :         TALLOC_CTX *_mem_save_ppEnum_1 = NULL;
    6669           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    6670           0 :         if (flags & NDR_IN) {
    6671           0 :                 NDR_ZERO_STRUCT(r->out);
    6672             : 
    6673           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    6674           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    6675           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    6676           0 :                 NDR_PULL_ALLOC(ndr, r->out.ppEnum);
    6677           0 :                 NDR_ZERO_STRUCTP(r->out.ppEnum);
    6678             :         }
    6679           0 :         if (flags & NDR_OUT) {
    6680             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    6681             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    6682           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6683           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    6684             :                 }
    6685           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6686           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    6687           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    6688           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    6689           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6690           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppEnum);
    6691             :                 }
    6692           0 :                 _mem_save_ppEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6693           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ppEnum, LIBNDR_FLAG_REF_ALLOC);
    6694           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppEnum));
    6695           0 :                 if (_ptr_ppEnum) {
    6696           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ppEnum);
    6697             :                 } else {
    6698           0 :                         *r->out.ppEnum = NULL;
    6699             :                 }
    6700           0 :                 if (*r->out.ppEnum) {
    6701           0 :                         _mem_save_ppEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
    6702           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppEnum, 0);
    6703           0 :                         NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
    6704           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_1, 0);
    6705             :                 }
    6706           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_0, LIBNDR_FLAG_REF_ALLOC);
    6707           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    6708             :         }
    6709           0 :         return NDR_ERR_SUCCESS;
    6710             : }
    6711             : 
    6712           0 : _PUBLIC_ void ndr_print_Fetch(struct ndr_print *ndr, const char *name, int flags, const struct Fetch *r)
    6713             : {
    6714           0 :         ndr_print_struct(ndr, name, "Fetch");
    6715           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    6716           0 :         ndr->depth++;
    6717           0 :         if (flags & NDR_SET_VALUES) {
    6718           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    6719             :         }
    6720           0 :         if (flags & NDR_IN) {
    6721           0 :                 ndr_print_struct(ndr, "in", "Fetch");
    6722           0 :                 ndr->depth++;
    6723           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    6724           0 :                 ndr->depth--;
    6725             :         }
    6726           0 :         if (flags & NDR_OUT) {
    6727           0 :                 ndr_print_struct(ndr, "out", "Fetch");
    6728           0 :                 ndr->depth++;
    6729           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    6730           0 :                 ndr->depth++;
    6731           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    6732           0 :                 ndr->depth--;
    6733           0 :                 ndr_print_ptr(ndr, "ppEnum", r->out.ppEnum);
    6734           0 :                 ndr->depth++;
    6735           0 :                 ndr_print_ptr(ndr, "ppEnum", *r->out.ppEnum);
    6736           0 :                 ndr->depth++;
    6737           0 :                 if (*r->out.ppEnum) {
    6738           0 :                         ndr_print_MInterfacePointer(ndr, "ppEnum", *r->out.ppEnum);
    6739             :                 }
    6740           0 :                 ndr->depth--;
    6741           0 :                 ndr->depth--;
    6742           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    6743           0 :                 ndr->depth--;
    6744             :         }
    6745           0 :         ndr->depth--;
    6746             : }
    6747             : 
    6748           0 : static enum ndr_err_code ndr_push_Test(struct ndr_push *ndr, int flags, const struct Test *r)
    6749             : {
    6750           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    6751           0 :         if (flags & NDR_IN) {
    6752           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    6753             :         }
    6754           0 :         if (flags & NDR_OUT) {
    6755           0 :                 if (r->out.ORPCthat == NULL) {
    6756           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6757             :                 }
    6758           0 :                 if (r->out.ppEnum == NULL) {
    6759           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6760             :                 }
    6761           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    6762           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppEnum));
    6763           0 :                 if (*r->out.ppEnum) {
    6764           0 :                         NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
    6765             :                 }
    6766           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    6767             :         }
    6768           0 :         return NDR_ERR_SUCCESS;
    6769             : }
    6770             : 
    6771           0 : static enum ndr_err_code ndr_pull_Test(struct ndr_pull *ndr, int flags, struct Test *r)
    6772             : {
    6773             :         uint32_t _ptr_ppEnum;
    6774           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    6775           0 :         TALLOC_CTX *_mem_save_ppEnum_0 = NULL;
    6776           0 :         TALLOC_CTX *_mem_save_ppEnum_1 = NULL;
    6777           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    6778           0 :         if (flags & NDR_IN) {
    6779           0 :                 NDR_ZERO_STRUCT(r->out);
    6780             : 
    6781           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    6782           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    6783           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    6784           0 :                 NDR_PULL_ALLOC(ndr, r->out.ppEnum);
    6785           0 :                 NDR_ZERO_STRUCTP(r->out.ppEnum);
    6786             :         }
    6787           0 :         if (flags & NDR_OUT) {
    6788             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    6789             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    6790           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6791           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    6792             :                 }
    6793           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6794           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    6795           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    6796           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    6797           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6798           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppEnum);
    6799             :                 }
    6800           0 :                 _mem_save_ppEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6801           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ppEnum, LIBNDR_FLAG_REF_ALLOC);
    6802           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppEnum));
    6803           0 :                 if (_ptr_ppEnum) {
    6804           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ppEnum);
    6805             :                 } else {
    6806           0 :                         *r->out.ppEnum = NULL;
    6807             :                 }
    6808           0 :                 if (*r->out.ppEnum) {
    6809           0 :                         _mem_save_ppEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
    6810           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppEnum, 0);
    6811           0 :                         NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppEnum));
    6812           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_1, 0);
    6813             :                 }
    6814           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppEnum_0, LIBNDR_FLAG_REF_ALLOC);
    6815           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    6816             :         }
    6817           0 :         return NDR_ERR_SUCCESS;
    6818             : }
    6819             : 
    6820           0 : _PUBLIC_ void ndr_print_Test(struct ndr_print *ndr, const char *name, int flags, const struct Test *r)
    6821             : {
    6822           0 :         ndr_print_struct(ndr, name, "Test");
    6823           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    6824           0 :         ndr->depth++;
    6825           0 :         if (flags & NDR_SET_VALUES) {
    6826           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    6827             :         }
    6828           0 :         if (flags & NDR_IN) {
    6829           0 :                 ndr_print_struct(ndr, "in", "Test");
    6830           0 :                 ndr->depth++;
    6831           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    6832           0 :                 ndr->depth--;
    6833             :         }
    6834           0 :         if (flags & NDR_OUT) {
    6835           0 :                 ndr_print_struct(ndr, "out", "Test");
    6836           0 :                 ndr->depth++;
    6837           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    6838           0 :                 ndr->depth++;
    6839           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    6840           0 :                 ndr->depth--;
    6841           0 :                 ndr_print_ptr(ndr, "ppEnum", r->out.ppEnum);
    6842           0 :                 ndr->depth++;
    6843           0 :                 ndr_print_ptr(ndr, "ppEnum", *r->out.ppEnum);
    6844           0 :                 ndr->depth++;
    6845           0 :                 if (*r->out.ppEnum) {
    6846           0 :                         ndr_print_MInterfacePointer(ndr, "ppEnum", *r->out.ppEnum);
    6847             :                 }
    6848           0 :                 ndr->depth--;
    6849           0 :                 ndr->depth--;
    6850           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    6851           0 :                 ndr->depth--;
    6852             :         }
    6853           0 :         ndr->depth--;
    6854             : }
    6855             : 
    6856             : #ifndef SKIP_NDR_TABLE_IWbemFetchSmartEnum
    6857             : static const struct ndr_interface_public_struct IWbemFetchSmartEnum_public_structs[] = {
    6858             :         { .name = NULL }
    6859             : };
    6860             : 
    6861             : static const struct ndr_interface_call IWbemFetchSmartEnum_calls[] = {
    6862             :         {
    6863             :                 "Fetch",
    6864             :                 sizeof(struct Fetch),
    6865             :                 (ndr_push_flags_fn_t) ndr_push_Fetch,
    6866             :                 (ndr_pull_flags_fn_t) ndr_pull_Fetch,
    6867             :                 (ndr_print_function_t) ndr_print_Fetch,
    6868             :                 { 0, NULL },
    6869             :                 { 0, NULL },
    6870             :         },
    6871             :         {
    6872             :                 "Test",
    6873             :                 sizeof(struct Test),
    6874             :                 (ndr_push_flags_fn_t) ndr_push_Test,
    6875             :                 (ndr_pull_flags_fn_t) ndr_pull_Test,
    6876             :                 (ndr_print_function_t) ndr_print_Test,
    6877             :                 { 0, NULL },
    6878             :                 { 0, NULL },
    6879             :         },
    6880             :         { .name = NULL }
    6881             : };
    6882             : 
    6883             : static const char * const IWbemFetchSmartEnum_endpoint_strings[] = {
    6884             :         "ncacn_np:[\\pipe\\IWbemFetchSmartEnum]", 
    6885             : };
    6886             : 
    6887             : static const struct ndr_interface_string_array IWbemFetchSmartEnum_endpoints = {
    6888             :         .count  = 1,
    6889             :         .names  = IWbemFetchSmartEnum_endpoint_strings
    6890             : };
    6891             : 
    6892             : static const char * const IWbemFetchSmartEnum_authservice_strings[] = {
    6893             :         "host", 
    6894             : };
    6895             : 
    6896             : static const struct ndr_interface_string_array IWbemFetchSmartEnum_authservices = {
    6897             :         .count  = 1,
    6898             :         .names  = IWbemFetchSmartEnum_authservice_strings
    6899             : };
    6900             : 
    6901             : 
    6902             : const struct ndr_interface_table ndr_table_IWbemFetchSmartEnum = {
    6903             :         .name           = "IWbemFetchSmartEnum",
    6904             :         .syntax_id      = {
    6905             :                 {0x1c1c45ee,0x4395,0x11d2,{0xb6,0x0b},{0x00,0x10,0x4b,0x70,0x3e,0xfd}},
    6906             :                 NDR_IWBEMFETCHSMARTENUM_VERSION
    6907             :         },
    6908             :         .helpstring     = NDR_IWBEMFETCHSMARTENUM_HELPSTRING,
    6909             :         .num_calls      = 2,
    6910             :         .calls          = IWbemFetchSmartEnum_calls,
    6911             :         .num_public_structs     = 0,
    6912             :         .public_structs         = IWbemFetchSmartEnum_public_structs,
    6913             :         .endpoints      = &IWbemFetchSmartEnum_endpoints,
    6914             :         .authservices   = &IWbemFetchSmartEnum_authservices
    6915             : };
    6916             : 
    6917             : #endif /* SKIP_NDR_TABLE_IWbemFetchSmartEnum */
    6918             : #include "librpc/gen_ndr/ndr_orpc.h"
    6919           0 : static enum ndr_err_code ndr_push_GetResultObject(struct ndr_push *ndr, int flags, const struct GetResultObject *r)
    6920             : {
    6921           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    6922           0 :         if (flags & NDR_IN) {
    6923           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    6924           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lTimeout));
    6925             :         }
    6926           0 :         if (flags & NDR_OUT) {
    6927           0 :                 if (r->out.ORPCthat == NULL) {
    6928           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6929             :                 }
    6930           0 :                 if (r->out.ppResultObject == NULL) {
    6931           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6932             :                 }
    6933           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    6934           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppResultObject));
    6935           0 :                 if (*r->out.ppResultObject) {
    6936           0 :                         NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppResultObject));
    6937             :                 }
    6938           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    6939             :         }
    6940           0 :         return NDR_ERR_SUCCESS;
    6941             : }
    6942             : 
    6943           0 : static enum ndr_err_code ndr_pull_GetResultObject(struct ndr_pull *ndr, int flags, struct GetResultObject *r)
    6944             : {
    6945             :         uint32_t _ptr_ppResultObject;
    6946           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    6947           0 :         TALLOC_CTX *_mem_save_ppResultObject_0 = NULL;
    6948           0 :         TALLOC_CTX *_mem_save_ppResultObject_1 = NULL;
    6949           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    6950           0 :         if (flags & NDR_IN) {
    6951           0 :                 NDR_ZERO_STRUCT(r->out);
    6952             : 
    6953           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    6954           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lTimeout));
    6955           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    6956           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    6957           0 :                 NDR_PULL_ALLOC(ndr, r->out.ppResultObject);
    6958           0 :                 NDR_ZERO_STRUCTP(r->out.ppResultObject);
    6959             :         }
    6960           0 :         if (flags & NDR_OUT) {
    6961             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    6962             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    6963           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6964           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    6965             :                 }
    6966           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6967           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    6968           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    6969           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    6970           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6971           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppResultObject);
    6972             :                 }
    6973           0 :                 _mem_save_ppResultObject_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6974           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ppResultObject, LIBNDR_FLAG_REF_ALLOC);
    6975           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppResultObject));
    6976           0 :                 if (_ptr_ppResultObject) {
    6977           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ppResultObject);
    6978             :                 } else {
    6979           0 :                         *r->out.ppResultObject = NULL;
    6980             :                 }
    6981           0 :                 if (*r->out.ppResultObject) {
    6982           0 :                         _mem_save_ppResultObject_1 = NDR_PULL_GET_MEM_CTX(ndr);
    6983           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppResultObject, 0);
    6984           0 :                         NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppResultObject));
    6985           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppResultObject_1, 0);
    6986             :                 }
    6987           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppResultObject_0, LIBNDR_FLAG_REF_ALLOC);
    6988           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    6989             :         }
    6990           0 :         return NDR_ERR_SUCCESS;
    6991             : }
    6992             : 
    6993           0 : _PUBLIC_ void ndr_print_GetResultObject(struct ndr_print *ndr, const char *name, int flags, const struct GetResultObject *r)
    6994             : {
    6995           0 :         ndr_print_struct(ndr, name, "GetResultObject");
    6996           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    6997           0 :         ndr->depth++;
    6998           0 :         if (flags & NDR_SET_VALUES) {
    6999           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7000             :         }
    7001           0 :         if (flags & NDR_IN) {
    7002           0 :                 ndr_print_struct(ndr, "in", "GetResultObject");
    7003           0 :                 ndr->depth++;
    7004           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    7005           0 :                 ndr_print_int32(ndr, "lTimeout", r->in.lTimeout);
    7006           0 :                 ndr->depth--;
    7007             :         }
    7008           0 :         if (flags & NDR_OUT) {
    7009           0 :                 ndr_print_struct(ndr, "out", "GetResultObject");
    7010           0 :                 ndr->depth++;
    7011           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    7012           0 :                 ndr->depth++;
    7013           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    7014           0 :                 ndr->depth--;
    7015           0 :                 ndr_print_ptr(ndr, "ppResultObject", r->out.ppResultObject);
    7016           0 :                 ndr->depth++;
    7017           0 :                 ndr_print_ptr(ndr, "ppResultObject", *r->out.ppResultObject);
    7018           0 :                 ndr->depth++;
    7019           0 :                 if (*r->out.ppResultObject) {
    7020           0 :                         ndr_print_MInterfacePointer(ndr, "ppResultObject", *r->out.ppResultObject);
    7021             :                 }
    7022           0 :                 ndr->depth--;
    7023           0 :                 ndr->depth--;
    7024           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    7025           0 :                 ndr->depth--;
    7026             :         }
    7027           0 :         ndr->depth--;
    7028             : }
    7029             : 
    7030           0 : static enum ndr_err_code ndr_push_GetResultString(struct ndr_push *ndr, int flags, const struct GetResultString *r)
    7031             : {
    7032           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7033           0 :         if (flags & NDR_IN) {
    7034           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    7035           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lTimeout));
    7036             :         }
    7037           0 :         if (flags & NDR_OUT) {
    7038           0 :                 if (r->out.ORPCthat == NULL) {
    7039           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7040             :                 }
    7041           0 :                 if (r->out.pstrResultString == NULL) {
    7042           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7043             :                 }
    7044           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    7045           0 :                 NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, r->out.pstrResultString));
    7046           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    7047             :         }
    7048           0 :         return NDR_ERR_SUCCESS;
    7049             : }
    7050             : 
    7051           0 : static enum ndr_err_code ndr_pull_GetResultString(struct ndr_pull *ndr, int flags, struct GetResultString *r)
    7052             : {
    7053           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    7054           0 :         TALLOC_CTX *_mem_save_pstrResultString_0 = NULL;
    7055           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7056           0 :         if (flags & NDR_IN) {
    7057           0 :                 NDR_ZERO_STRUCT(r->out);
    7058             : 
    7059           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    7060           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lTimeout));
    7061           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    7062           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    7063           0 :                 NDR_PULL_ALLOC(ndr, r->out.pstrResultString);
    7064           0 :                 NDR_ZERO_STRUCTP(r->out.pstrResultString);
    7065             :         }
    7066           0 :         if (flags & NDR_OUT) {
    7067             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7068             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7069           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7070           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    7071             :                 }
    7072           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7073           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    7074           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    7075           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    7076           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7077           0 :                         NDR_PULL_ALLOC(ndr, r->out.pstrResultString);
    7078             :                 }
    7079           0 :                 _mem_save_pstrResultString_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7080           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.pstrResultString, LIBNDR_FLAG_REF_ALLOC);
    7081           0 :                 NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, r->out.pstrResultString));
    7082           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pstrResultString_0, LIBNDR_FLAG_REF_ALLOC);
    7083           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    7084             :         }
    7085           0 :         return NDR_ERR_SUCCESS;
    7086             : }
    7087             : 
    7088           0 : _PUBLIC_ void ndr_print_GetResultString(struct ndr_print *ndr, const char *name, int flags, const struct GetResultString *r)
    7089             : {
    7090           0 :         ndr_print_struct(ndr, name, "GetResultString");
    7091           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7092           0 :         ndr->depth++;
    7093           0 :         if (flags & NDR_SET_VALUES) {
    7094           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7095             :         }
    7096           0 :         if (flags & NDR_IN) {
    7097           0 :                 ndr_print_struct(ndr, "in", "GetResultString");
    7098           0 :                 ndr->depth++;
    7099           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    7100           0 :                 ndr_print_int32(ndr, "lTimeout", r->in.lTimeout);
    7101           0 :                 ndr->depth--;
    7102             :         }
    7103           0 :         if (flags & NDR_OUT) {
    7104           0 :                 ndr_print_struct(ndr, "out", "GetResultString");
    7105           0 :                 ndr->depth++;
    7106           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    7107           0 :                 ndr->depth++;
    7108           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    7109           0 :                 ndr->depth--;
    7110           0 :                 ndr_print_ptr(ndr, "pstrResultString", r->out.pstrResultString);
    7111           0 :                 ndr->depth++;
    7112           0 :                 ndr_print_BSTR(ndr, "pstrResultString", r->out.pstrResultString);
    7113           0 :                 ndr->depth--;
    7114           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    7115           0 :                 ndr->depth--;
    7116             :         }
    7117           0 :         ndr->depth--;
    7118             : }
    7119             : 
    7120           0 : static enum ndr_err_code ndr_push_GetResultServices(struct ndr_push *ndr, int flags, const struct GetResultServices *r)
    7121             : {
    7122           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7123           0 :         if (flags & NDR_IN) {
    7124           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    7125           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lTimeout));
    7126             :         }
    7127           0 :         if (flags & NDR_OUT) {
    7128           0 :                 if (r->out.ORPCthat == NULL) {
    7129           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7130             :                 }
    7131           0 :                 if (r->out.ppServices == NULL) {
    7132           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7133             :                 }
    7134           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    7135           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppServices));
    7136           0 :                 if (*r->out.ppServices) {
    7137           0 :                         NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppServices));
    7138             :                 }
    7139           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    7140             :         }
    7141           0 :         return NDR_ERR_SUCCESS;
    7142             : }
    7143             : 
    7144           0 : static enum ndr_err_code ndr_pull_GetResultServices(struct ndr_pull *ndr, int flags, struct GetResultServices *r)
    7145             : {
    7146             :         uint32_t _ptr_ppServices;
    7147           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    7148           0 :         TALLOC_CTX *_mem_save_ppServices_0 = NULL;
    7149           0 :         TALLOC_CTX *_mem_save_ppServices_1 = NULL;
    7150           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7151           0 :         if (flags & NDR_IN) {
    7152           0 :                 NDR_ZERO_STRUCT(r->out);
    7153             : 
    7154           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    7155           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lTimeout));
    7156           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    7157           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    7158           0 :                 NDR_PULL_ALLOC(ndr, r->out.ppServices);
    7159           0 :                 NDR_ZERO_STRUCTP(r->out.ppServices);
    7160             :         }
    7161           0 :         if (flags & NDR_OUT) {
    7162             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7163             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7164           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7165           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    7166             :                 }
    7167           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7168           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    7169           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    7170           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    7171           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7172           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppServices);
    7173             :                 }
    7174           0 :                 _mem_save_ppServices_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7175           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ppServices, LIBNDR_FLAG_REF_ALLOC);
    7176           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppServices));
    7177           0 :                 if (_ptr_ppServices) {
    7178           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ppServices);
    7179             :                 } else {
    7180           0 :                         *r->out.ppServices = NULL;
    7181             :                 }
    7182           0 :                 if (*r->out.ppServices) {
    7183           0 :                         _mem_save_ppServices_1 = NDR_PULL_GET_MEM_CTX(ndr);
    7184           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppServices, 0);
    7185           0 :                         NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppServices));
    7186           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppServices_1, 0);
    7187             :                 }
    7188           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppServices_0, LIBNDR_FLAG_REF_ALLOC);
    7189           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    7190             :         }
    7191           0 :         return NDR_ERR_SUCCESS;
    7192             : }
    7193             : 
    7194           0 : _PUBLIC_ void ndr_print_GetResultServices(struct ndr_print *ndr, const char *name, int flags, const struct GetResultServices *r)
    7195             : {
    7196           0 :         ndr_print_struct(ndr, name, "GetResultServices");
    7197           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7198           0 :         ndr->depth++;
    7199           0 :         if (flags & NDR_SET_VALUES) {
    7200           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7201             :         }
    7202           0 :         if (flags & NDR_IN) {
    7203           0 :                 ndr_print_struct(ndr, "in", "GetResultServices");
    7204           0 :                 ndr->depth++;
    7205           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    7206           0 :                 ndr_print_int32(ndr, "lTimeout", r->in.lTimeout);
    7207           0 :                 ndr->depth--;
    7208             :         }
    7209           0 :         if (flags & NDR_OUT) {
    7210           0 :                 ndr_print_struct(ndr, "out", "GetResultServices");
    7211           0 :                 ndr->depth++;
    7212           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    7213           0 :                 ndr->depth++;
    7214           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    7215           0 :                 ndr->depth--;
    7216           0 :                 ndr_print_ptr(ndr, "ppServices", r->out.ppServices);
    7217           0 :                 ndr->depth++;
    7218           0 :                 ndr_print_ptr(ndr, "ppServices", *r->out.ppServices);
    7219           0 :                 ndr->depth++;
    7220           0 :                 if (*r->out.ppServices) {
    7221           0 :                         ndr_print_MInterfacePointer(ndr, "ppServices", *r->out.ppServices);
    7222             :                 }
    7223           0 :                 ndr->depth--;
    7224           0 :                 ndr->depth--;
    7225           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    7226           0 :                 ndr->depth--;
    7227             :         }
    7228           0 :         ndr->depth--;
    7229             : }
    7230             : 
    7231           0 : static enum ndr_err_code ndr_push_GetCallStatus(struct ndr_push *ndr, int flags, const struct GetCallStatus *r)
    7232             : {
    7233           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7234           0 :         if (flags & NDR_IN) {
    7235           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    7236           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lTimeout));
    7237             :         }
    7238           0 :         if (flags & NDR_OUT) {
    7239           0 :                 if (r->out.ORPCthat == NULL) {
    7240           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7241             :                 }
    7242           0 :                 if (r->out.plStatus == NULL) {
    7243           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7244             :                 }
    7245           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    7246           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, *r->out.plStatus));
    7247           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    7248             :         }
    7249           0 :         return NDR_ERR_SUCCESS;
    7250             : }
    7251             : 
    7252           0 : static enum ndr_err_code ndr_pull_GetCallStatus(struct ndr_pull *ndr, int flags, struct GetCallStatus *r)
    7253             : {
    7254           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    7255           0 :         TALLOC_CTX *_mem_save_plStatus_0 = NULL;
    7256           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7257           0 :         if (flags & NDR_IN) {
    7258           0 :                 NDR_ZERO_STRUCT(r->out);
    7259             : 
    7260           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    7261           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lTimeout));
    7262           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    7263           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    7264           0 :                 NDR_PULL_ALLOC(ndr, r->out.plStatus);
    7265           0 :                 NDR_ZERO_STRUCTP(r->out.plStatus);
    7266             :         }
    7267           0 :         if (flags & NDR_OUT) {
    7268             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7269             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7270           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7271           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    7272             :                 }
    7273           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7274           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    7275           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    7276           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    7277           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7278           0 :                         NDR_PULL_ALLOC(ndr, r->out.plStatus);
    7279             :                 }
    7280           0 :                 _mem_save_plStatus_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7281           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.plStatus, LIBNDR_FLAG_REF_ALLOC);
    7282           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, r->out.plStatus));
    7283           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_plStatus_0, LIBNDR_FLAG_REF_ALLOC);
    7284           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    7285             :         }
    7286           0 :         return NDR_ERR_SUCCESS;
    7287             : }
    7288             : 
    7289           0 : _PUBLIC_ void ndr_print_GetCallStatus(struct ndr_print *ndr, const char *name, int flags, const struct GetCallStatus *r)
    7290             : {
    7291           0 :         ndr_print_struct(ndr, name, "GetCallStatus");
    7292           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7293           0 :         ndr->depth++;
    7294           0 :         if (flags & NDR_SET_VALUES) {
    7295           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7296             :         }
    7297           0 :         if (flags & NDR_IN) {
    7298           0 :                 ndr_print_struct(ndr, "in", "GetCallStatus");
    7299           0 :                 ndr->depth++;
    7300           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    7301           0 :                 ndr_print_int32(ndr, "lTimeout", r->in.lTimeout);
    7302           0 :                 ndr->depth--;
    7303             :         }
    7304           0 :         if (flags & NDR_OUT) {
    7305           0 :                 ndr_print_struct(ndr, "out", "GetCallStatus");
    7306           0 :                 ndr->depth++;
    7307           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    7308           0 :                 ndr->depth++;
    7309           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    7310           0 :                 ndr->depth--;
    7311           0 :                 ndr_print_ptr(ndr, "plStatus", r->out.plStatus);
    7312           0 :                 ndr->depth++;
    7313           0 :                 ndr_print_int32(ndr, "plStatus", *r->out.plStatus);
    7314           0 :                 ndr->depth--;
    7315           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    7316           0 :                 ndr->depth--;
    7317             :         }
    7318           0 :         ndr->depth--;
    7319             : }
    7320             : 
    7321             : #ifndef SKIP_NDR_TABLE_IWbemCallResult
    7322             : static const struct ndr_interface_public_struct IWbemCallResult_public_structs[] = {
    7323             :         { .name = NULL }
    7324             : };
    7325             : 
    7326             : static const struct ndr_interface_call IWbemCallResult_calls[] = {
    7327             :         {
    7328             :                 "GetResultObject",
    7329             :                 sizeof(struct GetResultObject),
    7330             :                 (ndr_push_flags_fn_t) ndr_push_GetResultObject,
    7331             :                 (ndr_pull_flags_fn_t) ndr_pull_GetResultObject,
    7332             :                 (ndr_print_function_t) ndr_print_GetResultObject,
    7333             :                 { 0, NULL },
    7334             :                 { 0, NULL },
    7335             :         },
    7336             :         {
    7337             :                 "GetResultString",
    7338             :                 sizeof(struct GetResultString),
    7339             :                 (ndr_push_flags_fn_t) ndr_push_GetResultString,
    7340             :                 (ndr_pull_flags_fn_t) ndr_pull_GetResultString,
    7341             :                 (ndr_print_function_t) ndr_print_GetResultString,
    7342             :                 { 0, NULL },
    7343             :                 { 0, NULL },
    7344             :         },
    7345             :         {
    7346             :                 "GetResultServices",
    7347             :                 sizeof(struct GetResultServices),
    7348             :                 (ndr_push_flags_fn_t) ndr_push_GetResultServices,
    7349             :                 (ndr_pull_flags_fn_t) ndr_pull_GetResultServices,
    7350             :                 (ndr_print_function_t) ndr_print_GetResultServices,
    7351             :                 { 0, NULL },
    7352             :                 { 0, NULL },
    7353             :         },
    7354             :         {
    7355             :                 "GetCallStatus",
    7356             :                 sizeof(struct GetCallStatus),
    7357             :                 (ndr_push_flags_fn_t) ndr_push_GetCallStatus,
    7358             :                 (ndr_pull_flags_fn_t) ndr_pull_GetCallStatus,
    7359             :                 (ndr_print_function_t) ndr_print_GetCallStatus,
    7360             :                 { 0, NULL },
    7361             :                 { 0, NULL },
    7362             :         },
    7363             :         { .name = NULL }
    7364             : };
    7365             : 
    7366             : static const char * const IWbemCallResult_endpoint_strings[] = {
    7367             :         "ncacn_np:[\\pipe\\IWbemCallResult]", 
    7368             : };
    7369             : 
    7370             : static const struct ndr_interface_string_array IWbemCallResult_endpoints = {
    7371             :         .count  = 1,
    7372             :         .names  = IWbemCallResult_endpoint_strings
    7373             : };
    7374             : 
    7375             : static const char * const IWbemCallResult_authservice_strings[] = {
    7376             :         "host", 
    7377             : };
    7378             : 
    7379             : static const struct ndr_interface_string_array IWbemCallResult_authservices = {
    7380             :         .count  = 1,
    7381             :         .names  = IWbemCallResult_authservice_strings
    7382             : };
    7383             : 
    7384             : 
    7385             : const struct ndr_interface_table ndr_table_IWbemCallResult = {
    7386             :         .name           = "IWbemCallResult",
    7387             :         .syntax_id      = {
    7388             :                 {0x44aca675,0xe8fc,0x11d0,{0xa0,0x7c},{0x00,0xc0,0x4f,0xb6,0x88,0x20}},
    7389             :                 NDR_IWBEMCALLRESULT_VERSION
    7390             :         },
    7391             :         .helpstring     = NDR_IWBEMCALLRESULT_HELPSTRING,
    7392             :         .num_calls      = 4,
    7393             :         .calls          = IWbemCallResult_calls,
    7394             :         .num_public_structs     = 0,
    7395             :         .public_structs         = IWbemCallResult_public_structs,
    7396             :         .endpoints      = &IWbemCallResult_endpoints,
    7397             :         .authservices   = &IWbemCallResult_authservices
    7398             : };
    7399             : 
    7400             : #endif /* SKIP_NDR_TABLE_IWbemCallResult */
    7401             : #include "librpc/gen_ndr/ndr_orpc.h"
    7402           0 : static enum ndr_err_code ndr_push_SetStatus(struct ndr_push *ndr, int flags, const struct SetStatus *r)
    7403             : {
    7404           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7405           0 :         if (flags & NDR_IN) {
    7406           0 :                 if (r->in.pObjParam == NULL) {
    7407           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7408             :                 }
    7409           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    7410           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lFlags));
    7411           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->in.hResult));
    7412           0 :                 NDR_CHECK(ndr_push_BSTR(ndr, NDR_SCALARS, &r->in.strParam));
    7413           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pObjParam));
    7414             :         }
    7415           0 :         if (flags & NDR_OUT) {
    7416           0 :                 if (r->out.ORPCthat == NULL) {
    7417           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7418             :                 }
    7419           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    7420           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    7421             :         }
    7422           0 :         return NDR_ERR_SUCCESS;
    7423             : }
    7424             : 
    7425           0 : static enum ndr_err_code ndr_pull_SetStatus(struct ndr_pull *ndr, int flags, struct SetStatus *r)
    7426             : {
    7427           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    7428           0 :         TALLOC_CTX *_mem_save_pObjParam_0 = NULL;
    7429           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7430           0 :         if (flags & NDR_IN) {
    7431           0 :                 NDR_ZERO_STRUCT(r->out);
    7432             : 
    7433           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    7434           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lFlags));
    7435           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->in.hResult));
    7436           0 :                 NDR_CHECK(ndr_pull_BSTR(ndr, NDR_SCALARS, &r->in.strParam));
    7437           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7438           0 :                         NDR_PULL_ALLOC(ndr, r->in.pObjParam);
    7439             :                 }
    7440           0 :                 _mem_save_pObjParam_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7441           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pObjParam, LIBNDR_FLAG_REF_ALLOC);
    7442           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pObjParam));
    7443           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pObjParam_0, LIBNDR_FLAG_REF_ALLOC);
    7444           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    7445           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    7446             :         }
    7447           0 :         if (flags & NDR_OUT) {
    7448             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7449             :                 if (r->in.pObjParam == NULL) {
    7450             :                         NDR_PULL_ALLOC(ndr, r->in.pObjParam);
    7451             :                         NDR_ZERO_STRUCTP(r->in.pObjParam);
    7452             :                 }
    7453             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7454           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7455           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    7456             :                 }
    7457           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7458           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    7459           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    7460           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    7461           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    7462             :         }
    7463           0 :         return NDR_ERR_SUCCESS;
    7464             : }
    7465             : 
    7466           0 : _PUBLIC_ void ndr_print_SetStatus(struct ndr_print *ndr, const char *name, int flags, const struct SetStatus *r)
    7467             : {
    7468           0 :         ndr_print_struct(ndr, name, "SetStatus");
    7469           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7470           0 :         ndr->depth++;
    7471           0 :         if (flags & NDR_SET_VALUES) {
    7472           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7473             :         }
    7474           0 :         if (flags & NDR_IN) {
    7475           0 :                 ndr_print_struct(ndr, "in", "SetStatus");
    7476           0 :                 ndr->depth++;
    7477           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    7478           0 :                 ndr_print_int32(ndr, "lFlags", r->in.lFlags);
    7479           0 :                 ndr_print_WERROR(ndr, "hResult", r->in.hResult);
    7480           0 :                 ndr_print_BSTR(ndr, "strParam", &r->in.strParam);
    7481           0 :                 ndr_print_ptr(ndr, "pObjParam", r->in.pObjParam);
    7482           0 :                 ndr->depth++;
    7483           0 :                 ndr_print_MInterfacePointer(ndr, "pObjParam", r->in.pObjParam);
    7484           0 :                 ndr->depth--;
    7485           0 :                 ndr->depth--;
    7486             :         }
    7487           0 :         if (flags & NDR_OUT) {
    7488           0 :                 ndr_print_struct(ndr, "out", "SetStatus");
    7489           0 :                 ndr->depth++;
    7490           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    7491           0 :                 ndr->depth++;
    7492           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    7493           0 :                 ndr->depth--;
    7494           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    7495           0 :                 ndr->depth--;
    7496             :         }
    7497           0 :         ndr->depth--;
    7498             : }
    7499             : 
    7500           0 : static enum ndr_err_code ndr_push_Indicate(struct ndr_push *ndr, int flags, const struct Indicate *r)
    7501             : {
    7502             :         uint32_t cntr_apObjArray_1;
    7503           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7504           0 :         if (flags & NDR_IN) {
    7505           0 :                 if (r->in.apObjArray == NULL) {
    7506           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7507             :                 }
    7508           0 :                 NDR_CHECK(ndr_push_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    7509           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->in.lObjectCount));
    7510           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.lObjectCount));
    7511           0 :                 for (cntr_apObjArray_1 = 0; cntr_apObjArray_1 < (r->in.lObjectCount); cntr_apObjArray_1++) {
    7512           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.apObjArray[cntr_apObjArray_1]));
    7513             :                 }
    7514           0 :                 for (cntr_apObjArray_1 = 0; cntr_apObjArray_1 < (r->in.lObjectCount); cntr_apObjArray_1++) {
    7515           0 :                         if (r->in.apObjArray[cntr_apObjArray_1]) {
    7516           0 :                                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.apObjArray[cntr_apObjArray_1]));
    7517             :                         }
    7518             :                 }
    7519             :         }
    7520           0 :         if (flags & NDR_OUT) {
    7521           0 :                 if (r->out.ORPCthat == NULL) {
    7522           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7523             :                 }
    7524           0 :                 NDR_CHECK(ndr_push_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    7525           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    7526             :         }
    7527           0 :         return NDR_ERR_SUCCESS;
    7528             : }
    7529             : 
    7530           0 : static enum ndr_err_code ndr_pull_Indicate(struct ndr_pull *ndr, int flags, struct Indicate *r)
    7531             : {
    7532             :         uint32_t _ptr_apObjArray;
    7533           0 :         uint32_t size_apObjArray_1 = 0;
    7534             :         uint32_t cntr_apObjArray_1;
    7535           0 :         TALLOC_CTX *_mem_save_ORPCthat_0 = NULL;
    7536           0 :         TALLOC_CTX *_mem_save_apObjArray_1 = NULL;
    7537           0 :         TALLOC_CTX *_mem_save_apObjArray_2 = NULL;
    7538           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7539           0 :         if (flags & NDR_IN) {
    7540           0 :                 NDR_ZERO_STRUCT(r->out);
    7541             : 
    7542           0 :                 NDR_CHECK(ndr_pull_ORPCTHIS(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.ORPCthis));
    7543           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->in.lObjectCount));
    7544           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.apObjArray));
    7545           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.apObjArray, &size_apObjArray_1));
    7546           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7547           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.apObjArray, size_apObjArray_1);
    7548             :                 }
    7549           0 :                 _mem_save_apObjArray_1 = NDR_PULL_GET_MEM_CTX(ndr);
    7550           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.apObjArray, 0);
    7551           0 :                 for (cntr_apObjArray_1 = 0; cntr_apObjArray_1 < (size_apObjArray_1); cntr_apObjArray_1++) {
    7552           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_apObjArray));
    7553           0 :                         if (_ptr_apObjArray) {
    7554           0 :                                 NDR_PULL_ALLOC(ndr, r->in.apObjArray[cntr_apObjArray_1]);
    7555             :                         } else {
    7556           0 :                                 r->in.apObjArray[cntr_apObjArray_1] = NULL;
    7557             :                         }
    7558             :                 }
    7559           0 :                 for (cntr_apObjArray_1 = 0; cntr_apObjArray_1 < (size_apObjArray_1); cntr_apObjArray_1++) {
    7560           0 :                         if (r->in.apObjArray[cntr_apObjArray_1]) {
    7561           0 :                                 _mem_save_apObjArray_2 = NDR_PULL_GET_MEM_CTX(ndr);
    7562           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->in.apObjArray[cntr_apObjArray_1], 0);
    7563           0 :                                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.apObjArray[cntr_apObjArray_1]));
    7564           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_apObjArray_2, 0);
    7565             :                         }
    7566             :                 }
    7567           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_apObjArray_1, 0);
    7568           0 :                 NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    7569           0 :                 NDR_ZERO_STRUCTP(r->out.ORPCthat);
    7570           0 :                 if (r->in.apObjArray) {
    7571           0 :                         NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->in.apObjArray, r->in.lObjectCount));
    7572             :                 }
    7573           0 :                 for (cntr_apObjArray_1 = 0; cntr_apObjArray_1 < (size_apObjArray_1); cntr_apObjArray_1++) {
    7574             :                 }
    7575             :         }
    7576           0 :         if (flags & NDR_OUT) {
    7577             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7578             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7579           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7580           0 :                         NDR_PULL_ALLOC(ndr, r->out.ORPCthat);
    7581             :                 }
    7582           0 :                 _mem_save_ORPCthat_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7583           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ORPCthat, LIBNDR_FLAG_REF_ALLOC);
    7584           0 :                 NDR_CHECK(ndr_pull_ORPCTHAT(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ORPCthat));
    7585           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ORPCthat_0, LIBNDR_FLAG_REF_ALLOC);
    7586           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    7587             :         }
    7588           0 :         return NDR_ERR_SUCCESS;
    7589             : }
    7590             : 
    7591           0 : _PUBLIC_ void ndr_print_Indicate(struct ndr_print *ndr, const char *name, int flags, const struct Indicate *r)
    7592             : {
    7593             :         uint32_t cntr_apObjArray_1;
    7594           0 :         ndr_print_struct(ndr, name, "Indicate");
    7595           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7596           0 :         ndr->depth++;
    7597           0 :         if (flags & NDR_SET_VALUES) {
    7598           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7599             :         }
    7600           0 :         if (flags & NDR_IN) {
    7601           0 :                 ndr_print_struct(ndr, "in", "Indicate");
    7602           0 :                 ndr->depth++;
    7603           0 :                 ndr_print_ORPCTHIS(ndr, "ORPCthis", &r->in.ORPCthis);
    7604           0 :                 ndr_print_int32(ndr, "lObjectCount", r->in.lObjectCount);
    7605           0 :                 ndr_print_ptr(ndr, "apObjArray", r->in.apObjArray);
    7606           0 :                 ndr->depth++;
    7607           0 :                 ndr->print(ndr, "%s: ARRAY(%d)", "apObjArray", (int)r->in.lObjectCount);
    7608           0 :                 ndr->depth++;
    7609           0 :                 for (cntr_apObjArray_1 = 0; cntr_apObjArray_1 < (r->in.lObjectCount); cntr_apObjArray_1++) {
    7610           0 :                         ndr_print_ptr(ndr, "apObjArray", r->in.apObjArray[cntr_apObjArray_1]);
    7611           0 :                         ndr->depth++;
    7612           0 :                         if (r->in.apObjArray[cntr_apObjArray_1]) {
    7613           0 :                                 ndr_print_MInterfacePointer(ndr, "apObjArray", r->in.apObjArray[cntr_apObjArray_1]);
    7614             :                         }
    7615           0 :                         ndr->depth--;
    7616             :                 }
    7617           0 :                 ndr->depth--;
    7618           0 :                 ndr->depth--;
    7619           0 :                 ndr->depth--;
    7620             :         }
    7621           0 :         if (flags & NDR_OUT) {
    7622           0 :                 ndr_print_struct(ndr, "out", "Indicate");
    7623           0 :                 ndr->depth++;
    7624           0 :                 ndr_print_ptr(ndr, "ORPCthat", r->out.ORPCthat);
    7625           0 :                 ndr->depth++;
    7626           0 :                 ndr_print_ORPCTHAT(ndr, "ORPCthat", r->out.ORPCthat);
    7627           0 :                 ndr->depth--;
    7628           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    7629           0 :                 ndr->depth--;
    7630             :         }
    7631           0 :         ndr->depth--;
    7632             : }
    7633             : 
    7634             : #ifndef SKIP_NDR_TABLE_IWbemObjectSink
    7635             : static const struct ndr_interface_public_struct IWbemObjectSink_public_structs[] = {
    7636             :         { .name = NULL }
    7637             : };
    7638             : 
    7639             : static const struct ndr_interface_call IWbemObjectSink_calls[] = {
    7640             :         {
    7641             :                 "SetStatus",
    7642             :                 sizeof(struct SetStatus),
    7643             :                 (ndr_push_flags_fn_t) ndr_push_SetStatus,
    7644             :                 (ndr_pull_flags_fn_t) ndr_pull_SetStatus,
    7645             :                 (ndr_print_function_t) ndr_print_SetStatus,
    7646             :                 { 0, NULL },
    7647             :                 { 0, NULL },
    7648             :         },
    7649             :         {
    7650             :                 "Indicate",
    7651             :                 sizeof(struct Indicate),
    7652             :                 (ndr_push_flags_fn_t) ndr_push_Indicate,
    7653             :                 (ndr_pull_flags_fn_t) ndr_pull_Indicate,
    7654             :                 (ndr_print_function_t) ndr_print_Indicate,
    7655             :                 { 0, NULL },
    7656             :                 { 0, NULL },
    7657             :         },
    7658             :         { .name = NULL }
    7659             : };
    7660             : 
    7661             : static const char * const IWbemObjectSink_endpoint_strings[] = {
    7662             :         "ncacn_np:[\\pipe\\IWbemObjectSink]", 
    7663             : };
    7664             : 
    7665             : static const struct ndr_interface_string_array IWbemObjectSink_endpoints = {
    7666             :         .count  = 1,
    7667             :         .names  = IWbemObjectSink_endpoint_strings
    7668             : };
    7669             : 
    7670             : static const char * const IWbemObjectSink_authservice_strings[] = {
    7671             :         "host", 
    7672             : };
    7673             : 
    7674             : static const struct ndr_interface_string_array IWbemObjectSink_authservices = {
    7675             :         .count  = 1,
    7676             :         .names  = IWbemObjectSink_authservice_strings
    7677             : };
    7678             : 
    7679             : 
    7680             : const struct ndr_interface_table ndr_table_IWbemObjectSink = {
    7681             :         .name           = "IWbemObjectSink",
    7682             :         .syntax_id      = {
    7683             :                 {0x7c857801,0x7381,0x11cf,{0x88,0x4d},{0x00,0xaa,0x00,0x4b,0x2e,0x24}},
    7684             :                 NDR_IWBEMOBJECTSINK_VERSION
    7685             :         },
    7686             :         .helpstring     = NDR_IWBEMOBJECTSINK_HELPSTRING,
    7687             :         .num_calls      = 2,
    7688             :         .calls          = IWbemObjectSink_calls,
    7689             :         .num_public_structs     = 0,
    7690             :         .public_structs         = IWbemObjectSink_public_structs,
    7691             :         .endpoints      = &IWbemObjectSink_endpoints,
    7692             :         .authservices   = &IWbemObjectSink_authservices
    7693             : };
    7694             : 
    7695             : #endif /* SKIP_NDR_TABLE_IWbemObjectSink */

Generated by: LCOV version 1.13