LCOV - code coverage report
Current view: top level - bin/default/librpc/gen_ndr - ndr_clusapi.c (source / functions) Hit Total Coverage
Test: coverage report for master 2f515e9b Lines: 253 17138 1.5 %
Date: 2024-04-21 15:09:00 Functions: 12 677 1.8 %

          Line data    Source code
       1             : /* parser auto-generated by pidl */
       2             : 
       3             : #include "includes.h"
       4             : #include "bin/default/librpc/gen_ndr/ndr_clusapi.h"
       5             : 
       6             : #include "librpc/gen_ndr/ndr_winreg.h"
       7             : #include "librpc/gen_ndr/ndr_misc.h"
       8           0 : static enum ndr_err_code ndr_push_RPC_SECURITY_DESCRIPTOR(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct RPC_SECURITY_DESCRIPTOR *r)
       9             : {
      10           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
      11           0 :         if (ndr_flags & NDR_SCALARS) {
      12           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
      13           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->lpSecurityDescriptor));
      14           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->cbInSecurityDescriptor));
      15           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->cbOutSecurityDescriptor));
      16           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
      17             :         }
      18           0 :         if (ndr_flags & NDR_BUFFERS) {
      19           0 :                 if (r->lpSecurityDescriptor) {
      20           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->cbInSecurityDescriptor));
      21           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
      22           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->cbOutSecurityDescriptor));
      23           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->lpSecurityDescriptor, r->cbOutSecurityDescriptor));
      24             :                 }
      25             :         }
      26           0 :         return NDR_ERR_SUCCESS;
      27             : }
      28             : 
      29           0 : static enum ndr_err_code ndr_pull_RPC_SECURITY_DESCRIPTOR(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct RPC_SECURITY_DESCRIPTOR *r)
      30             : {
      31           0 :         uint32_t _ptr_lpSecurityDescriptor;
      32           0 :         uint32_t size_lpSecurityDescriptor_1 = 0;
      33           0 :         uint32_t length_lpSecurityDescriptor_1 = 0;
      34           0 :         TALLOC_CTX *_mem_save_lpSecurityDescriptor_0 = NULL;
      35           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
      36           0 :         if (ndr_flags & NDR_SCALARS) {
      37           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
      38           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpSecurityDescriptor));
      39           0 :                 if (_ptr_lpSecurityDescriptor) {
      40           0 :                         NDR_PULL_ALLOC(ndr, r->lpSecurityDescriptor);
      41             :                 } else {
      42           0 :                         r->lpSecurityDescriptor = NULL;
      43             :                 }
      44           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->cbInSecurityDescriptor));
      45           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->cbOutSecurityDescriptor));
      46           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
      47             :         }
      48           0 :         if (ndr_flags & NDR_BUFFERS) {
      49           0 :                 if (r->lpSecurityDescriptor) {
      50           0 :                         _mem_save_lpSecurityDescriptor_0 = NDR_PULL_GET_MEM_CTX(ndr);
      51           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->lpSecurityDescriptor, 0);
      52           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->lpSecurityDescriptor));
      53           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->lpSecurityDescriptor));
      54           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->lpSecurityDescriptor, &size_lpSecurityDescriptor_1));
      55           0 :                         NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->lpSecurityDescriptor, &length_lpSecurityDescriptor_1));
      56           0 :                         if (length_lpSecurityDescriptor_1 > size_lpSecurityDescriptor_1) {
      57           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpSecurityDescriptor_1, length_lpSecurityDescriptor_1);
      58             :                         }
      59           0 :                         NDR_PULL_ALLOC_N(ndr, r->lpSecurityDescriptor, size_lpSecurityDescriptor_1);
      60           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->lpSecurityDescriptor, length_lpSecurityDescriptor_1));
      61           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpSecurityDescriptor_0, 0);
      62             :                 }
      63           0 :                 if (r->lpSecurityDescriptor) {
      64           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->lpSecurityDescriptor, r->cbInSecurityDescriptor));
      65             :                 }
      66           0 :                 if (r->lpSecurityDescriptor) {
      67           0 :                         NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->lpSecurityDescriptor, r->cbOutSecurityDescriptor));
      68             :                 }
      69             :         }
      70           0 :         return NDR_ERR_SUCCESS;
      71             : }
      72             : 
      73           0 : _PUBLIC_ void ndr_print_RPC_SECURITY_DESCRIPTOR(struct ndr_print *ndr, const char *name, const struct RPC_SECURITY_DESCRIPTOR *r)
      74             : {
      75           0 :         ndr_print_struct(ndr, name, "RPC_SECURITY_DESCRIPTOR");
      76           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
      77           0 :         ndr->depth++;
      78           0 :         ndr_print_ptr(ndr, "lpSecurityDescriptor", r->lpSecurityDescriptor);
      79           0 :         ndr->depth++;
      80           0 :         if (r->lpSecurityDescriptor) {
      81           0 :                 ndr_print_array_uint8(ndr, "lpSecurityDescriptor", r->lpSecurityDescriptor, r->cbOutSecurityDescriptor);
      82             :         }
      83           0 :         ndr->depth--;
      84           0 :         ndr_print_uint32(ndr, "cbInSecurityDescriptor", r->cbInSecurityDescriptor);
      85           0 :         ndr_print_uint32(ndr, "cbOutSecurityDescriptor", r->cbOutSecurityDescriptor);
      86           0 :         ndr->depth--;
      87             : }
      88             : 
      89           0 : static enum ndr_err_code ndr_push_RPC_SECURITY_ATTRIBUTES(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct RPC_SECURITY_ATTRIBUTES *r)
      90             : {
      91           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
      92           0 :         if (ndr_flags & NDR_SCALARS) {
      93           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
      94           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->nLength));
      95           0 :                 NDR_CHECK(ndr_push_RPC_SECURITY_DESCRIPTOR(ndr, NDR_SCALARS, &r->RpcSecurityDescriptor));
      96           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->bInheritHandle));
      97           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
      98             :         }
      99           0 :         if (ndr_flags & NDR_BUFFERS) {
     100           0 :                 NDR_CHECK(ndr_push_RPC_SECURITY_DESCRIPTOR(ndr, NDR_BUFFERS, &r->RpcSecurityDescriptor));
     101             :         }
     102           0 :         return NDR_ERR_SUCCESS;
     103             : }
     104             : 
     105           0 : static enum ndr_err_code ndr_pull_RPC_SECURITY_ATTRIBUTES(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct RPC_SECURITY_ATTRIBUTES *r)
     106             : {
     107           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     108           0 :         if (ndr_flags & NDR_SCALARS) {
     109           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
     110           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->nLength));
     111           0 :                 NDR_CHECK(ndr_pull_RPC_SECURITY_DESCRIPTOR(ndr, NDR_SCALARS, &r->RpcSecurityDescriptor));
     112           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->bInheritHandle));
     113           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
     114             :         }
     115           0 :         if (ndr_flags & NDR_BUFFERS) {
     116           0 :                 NDR_CHECK(ndr_pull_RPC_SECURITY_DESCRIPTOR(ndr, NDR_BUFFERS, &r->RpcSecurityDescriptor));
     117             :         }
     118           0 :         return NDR_ERR_SUCCESS;
     119             : }
     120             : 
     121           0 : _PUBLIC_ void ndr_print_RPC_SECURITY_ATTRIBUTES(struct ndr_print *ndr, const char *name, const struct RPC_SECURITY_ATTRIBUTES *r)
     122             : {
     123           0 :         ndr_print_struct(ndr, name, "RPC_SECURITY_ATTRIBUTES");
     124           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     125           0 :         ndr->depth++;
     126           0 :         ndr_print_uint32(ndr, "nLength", r->nLength);
     127           0 :         ndr_print_RPC_SECURITY_DESCRIPTOR(ndr, "RpcSecurityDescriptor", &r->RpcSecurityDescriptor);
     128           0 :         ndr_print_int32(ndr, "bInheritHandle", r->bInheritHandle);
     129           0 :         ndr->depth--;
     130             : }
     131             : 
     132           0 : static enum ndr_err_code ndr_push_CLUSTER_OPERATIONAL_VERSION_INFO(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct CLUSTER_OPERATIONAL_VERSION_INFO *r)
     133             : {
     134           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     135           0 :         if (ndr_flags & NDR_SCALARS) {
     136           0 :                 NDR_CHECK(ndr_push_align(ndr, 4));
     137           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 20));
     138           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwClusterHighestVersion));
     139           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwClusterLowestVersion));
     140           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwFlags));
     141           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwReserved));
     142           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
     143             :         }
     144           0 :         if (ndr_flags & NDR_BUFFERS) {
     145           0 :         }
     146           0 :         return NDR_ERR_SUCCESS;
     147             : }
     148             : 
     149           0 : static enum ndr_err_code ndr_pull_CLUSTER_OPERATIONAL_VERSION_INFO(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct CLUSTER_OPERATIONAL_VERSION_INFO *r)
     150             : {
     151           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     152           0 :         if (ndr_flags & NDR_SCALARS) {
     153           0 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
     154           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwSize));
     155           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwClusterHighestVersion));
     156           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwClusterLowestVersion));
     157           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwFlags));
     158           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwReserved));
     159           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
     160             :         }
     161           0 :         if (ndr_flags & NDR_BUFFERS) {
     162           0 :         }
     163           0 :         return NDR_ERR_SUCCESS;
     164             : }
     165             : 
     166           0 : _PUBLIC_ void ndr_print_CLUSTER_OPERATIONAL_VERSION_INFO(struct ndr_print *ndr, const char *name, const struct CLUSTER_OPERATIONAL_VERSION_INFO *r)
     167             : {
     168           0 :         ndr_print_struct(ndr, name, "CLUSTER_OPERATIONAL_VERSION_INFO");
     169           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     170           0 :         ndr->depth++;
     171           0 :         ndr_print_uint32(ndr, "dwSize", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?20:r->dwSize);
     172           0 :         ndr_print_uint32(ndr, "dwClusterHighestVersion", r->dwClusterHighestVersion);
     173           0 :         ndr_print_uint32(ndr, "dwClusterLowestVersion", r->dwClusterLowestVersion);
     174           0 :         ndr_print_uint32(ndr, "dwFlags", r->dwFlags);
     175           0 :         ndr_print_uint32(ndr, "dwReserved", r->dwReserved);
     176           0 :         ndr->depth--;
     177             : }
     178             : 
     179           0 : static enum ndr_err_code ndr_push_IDL_CLUSTER_SET_PASSWORD_STATUS(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct IDL_CLUSTER_SET_PASSWORD_STATUS *r)
     180             : {
     181           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     182           0 :         if (ndr_flags & NDR_SCALARS) {
     183           0 :                 NDR_CHECK(ndr_push_align(ndr, 4));
     184           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->NodeId));
     185           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->SetAttempted));
     186           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->ReturnStatus));
     187           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
     188             :         }
     189           0 :         if (ndr_flags & NDR_BUFFERS) {
     190           0 :         }
     191           0 :         return NDR_ERR_SUCCESS;
     192             : }
     193             : 
     194           0 : static enum ndr_err_code ndr_pull_IDL_CLUSTER_SET_PASSWORD_STATUS(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct IDL_CLUSTER_SET_PASSWORD_STATUS *r)
     195             : {
     196           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     197           0 :         if (ndr_flags & NDR_SCALARS) {
     198           0 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
     199           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->NodeId));
     200           0 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->SetAttempted));
     201           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->ReturnStatus));
     202           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
     203             :         }
     204           0 :         if (ndr_flags & NDR_BUFFERS) {
     205           0 :         }
     206           0 :         return NDR_ERR_SUCCESS;
     207             : }
     208             : 
     209           0 : _PUBLIC_ void ndr_print_IDL_CLUSTER_SET_PASSWORD_STATUS(struct ndr_print *ndr, const char *name, const struct IDL_CLUSTER_SET_PASSWORD_STATUS *r)
     210             : {
     211           0 :         ndr_print_struct(ndr, name, "IDL_CLUSTER_SET_PASSWORD_STATUS");
     212           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     213           0 :         ndr->depth++;
     214           0 :         ndr_print_uint32(ndr, "NodeId", r->NodeId);
     215           0 :         ndr_print_uint8(ndr, "SetAttempted", r->SetAttempted);
     216           0 :         ndr_print_uint32(ndr, "ReturnStatus", r->ReturnStatus);
     217           0 :         ndr->depth--;
     218             : }
     219             : 
     220           0 : static enum ndr_err_code ndr_push_IDL_CLUSTER_SET_PASSWORD_FLAGS(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum IDL_CLUSTER_SET_PASSWORD_FLAGS r)
     221             : {
     222           0 :         NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
     223           0 :         return NDR_ERR_SUCCESS;
     224             : }
     225             : 
     226           0 : static enum ndr_err_code ndr_pull_IDL_CLUSTER_SET_PASSWORD_FLAGS(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum IDL_CLUSTER_SET_PASSWORD_FLAGS *r)
     227             : {
     228           0 :         uint16_t v;
     229           0 :         NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
     230           0 :         *r = v;
     231           0 :         return NDR_ERR_SUCCESS;
     232             : }
     233             : 
     234           0 : _PUBLIC_ void ndr_print_IDL_CLUSTER_SET_PASSWORD_FLAGS(struct ndr_print *ndr, const char *name, enum IDL_CLUSTER_SET_PASSWORD_FLAGS r)
     235             : {
     236           0 :         const char *val = NULL;
     237             : 
     238           0 :         switch (r) {
     239           0 :                 case IDL_CLUSTER_SET_PASSWORD_IGNORE_DOWN_NODES: val = "IDL_CLUSTER_SET_PASSWORD_IGNORE_DOWN_NODES"; break;
     240             :         }
     241           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
     242           0 : }
     243             : 
     244           0 : static enum ndr_err_code ndr_push_CLUSTER_CREATE_GROUP_INFO_RPC(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct CLUSTER_CREATE_GROUP_INFO_RPC *r)
     245             : {
     246           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     247           0 :         if (ndr_flags & NDR_SCALARS) {
     248           0 :                 NDR_CHECK(ndr_push_align(ndr, 4));
     249           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwVersion));
     250           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwGroupType));
     251           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
     252             :         }
     253           0 :         if (ndr_flags & NDR_BUFFERS) {
     254           0 :         }
     255           0 :         return NDR_ERR_SUCCESS;
     256             : }
     257             : 
     258           0 : static enum ndr_err_code ndr_pull_CLUSTER_CREATE_GROUP_INFO_RPC(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct CLUSTER_CREATE_GROUP_INFO_RPC *r)
     259             : {
     260           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     261           0 :         if (ndr_flags & NDR_SCALARS) {
     262           0 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
     263           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwVersion));
     264           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwGroupType));
     265           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
     266             :         }
     267           0 :         if (ndr_flags & NDR_BUFFERS) {
     268           0 :         }
     269           0 :         return NDR_ERR_SUCCESS;
     270             : }
     271             : 
     272           0 : _PUBLIC_ void ndr_print_CLUSTER_CREATE_GROUP_INFO_RPC(struct ndr_print *ndr, const char *name, const struct CLUSTER_CREATE_GROUP_INFO_RPC *r)
     273             : {
     274           0 :         ndr_print_struct(ndr, name, "CLUSTER_CREATE_GROUP_INFO_RPC");
     275           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     276           0 :         ndr->depth++;
     277           0 :         ndr_print_uint32(ndr, "dwVersion", r->dwVersion);
     278           0 :         ndr_print_uint32(ndr, "dwGroupType", r->dwGroupType);
     279           0 :         ndr->depth--;
     280             : }
     281             : 
     282           0 : static enum ndr_err_code ndr_push_ClusterEnumType(struct ndr_push *ndr, ndr_flags_type ndr_flags, uint32_t r)
     283             : {
     284           0 :         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
     285           0 :         return NDR_ERR_SUCCESS;
     286             : }
     287             : 
     288           0 : static enum ndr_err_code ndr_pull_ClusterEnumType(struct ndr_pull *ndr, ndr_flags_type ndr_flags, uint32_t *r)
     289             : {
     290           0 :         uint32_t v;
     291           0 :         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
     292           0 :         *r = v;
     293           0 :         return NDR_ERR_SUCCESS;
     294             : }
     295             : 
     296           0 : _PUBLIC_ void ndr_print_ClusterEnumType(struct ndr_print *ndr, const char *name, uint32_t r)
     297             : {
     298           0 :         ndr_print_uint32(ndr, name, r);
     299           0 :         ndr->depth++;
     300           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSTER_ENUM_NODE", CLUSTER_ENUM_NODE, r);
     301           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSTER_ENUM_RESTYPE", CLUSTER_ENUM_RESTYPE, r);
     302           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSTER_ENUM_RESOURCE", CLUSTER_ENUM_RESOURCE, r);
     303           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSTER_ENUM_GROUP", CLUSTER_ENUM_GROUP, r);
     304           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSTER_ENUM_NETWORK", CLUSTER_ENUM_NETWORK, r);
     305           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSTER_ENUM_NETINTERFACE", CLUSTER_ENUM_NETINTERFACE, r);
     306           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSTER_ENUM_INTERNAL_NETWORK", CLUSTER_ENUM_INTERNAL_NETWORK, r);
     307           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSTER_ENUM_SHARED_VOLUME_RESOURCE", CLUSTER_ENUM_SHARED_VOLUME_RESOURCE, r);
     308           0 :         ndr->depth--;
     309           0 : }
     310             : 
     311           0 : static enum ndr_err_code ndr_push_ENUM_ENTRY(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct ENUM_ENTRY *r)
     312             : {
     313           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     314           0 :         if (ndr_flags & NDR_SCALARS) {
     315           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
     316           0 :                 NDR_CHECK(ndr_push_ClusterEnumType(ndr, NDR_SCALARS, r->Type));
     317           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->Name));
     318           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
     319             :         }
     320           0 :         if (ndr_flags & NDR_BUFFERS) {
     321           0 :                 if (r->Name) {
     322           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Name, CH_UTF16)));
     323           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
     324           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Name, CH_UTF16)));
     325           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->Name, ndr_charset_length(r->Name, CH_UTF16), sizeof(uint16_t), CH_UTF16));
     326             :                 }
     327             :         }
     328           0 :         return NDR_ERR_SUCCESS;
     329             : }
     330             : 
     331           0 : static enum ndr_err_code ndr_pull_ENUM_ENTRY(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct ENUM_ENTRY *r)
     332             : {
     333           0 :         uint32_t _ptr_Name;
     334           0 :         uint32_t size_Name_1 = 0;
     335           0 :         uint32_t length_Name_1 = 0;
     336           0 :         TALLOC_CTX *_mem_save_Name_0 = NULL;
     337           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     338           0 :         if (ndr_flags & NDR_SCALARS) {
     339           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
     340           0 :                 NDR_CHECK(ndr_pull_ClusterEnumType(ndr, NDR_SCALARS, &r->Type));
     341           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Name));
     342           0 :                 if (_ptr_Name) {
     343           0 :                         NDR_PULL_ALLOC(ndr, r->Name);
     344             :                 } else {
     345           0 :                         r->Name = NULL;
     346             :                 }
     347           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
     348             :         }
     349           0 :         if (ndr_flags & NDR_BUFFERS) {
     350           0 :                 if (r->Name) {
     351           0 :                         _mem_save_Name_0 = NDR_PULL_GET_MEM_CTX(ndr);
     352           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->Name, 0);
     353           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->Name));
     354           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->Name));
     355           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->Name, &size_Name_1));
     356           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->Name, &length_Name_1));
     357           0 :                         if (length_Name_1 > size_Name_1) {
     358           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_Name_1, length_Name_1);
     359             :                         }
     360           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_Name_1, sizeof(uint16_t)));
     361           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->Name, length_Name_1, sizeof(uint16_t), CH_UTF16));
     362           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Name_0, 0);
     363             :                 }
     364             :         }
     365           0 :         return NDR_ERR_SUCCESS;
     366             : }
     367             : 
     368           0 : _PUBLIC_ void ndr_print_ENUM_ENTRY(struct ndr_print *ndr, const char *name, const struct ENUM_ENTRY *r)
     369             : {
     370           0 :         ndr_print_struct(ndr, name, "ENUM_ENTRY");
     371           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     372           0 :         ndr->depth++;
     373           0 :         ndr_print_ClusterEnumType(ndr, "Type", r->Type);
     374           0 :         ndr_print_ptr(ndr, "Name", r->Name);
     375           0 :         ndr->depth++;
     376           0 :         if (r->Name) {
     377           0 :                 ndr_print_string(ndr, "Name", r->Name);
     378             :         }
     379           0 :         ndr->depth--;
     380           0 :         ndr->depth--;
     381             : }
     382             : 
     383           0 : static enum ndr_err_code ndr_push_ENUM_LIST(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct ENUM_LIST *r)
     384             : {
     385           0 :         uint32_t cntr_Entry_0;
     386           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     387           0 :         if (ndr_flags & NDR_SCALARS) {
     388           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->EntryCount));
     389           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
     390           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->EntryCount));
     391           0 :                 for (cntr_Entry_0 = 0; cntr_Entry_0 < (r->EntryCount); cntr_Entry_0++) {
     392           0 :                         NDR_CHECK(ndr_push_ENUM_ENTRY(ndr, NDR_SCALARS, &r->Entry[cntr_Entry_0]));
     393             :                 }
     394           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
     395             :         }
     396           0 :         if (ndr_flags & NDR_BUFFERS) {
     397           0 :                 for (cntr_Entry_0 = 0; cntr_Entry_0 < (r->EntryCount); cntr_Entry_0++) {
     398           0 :                         NDR_CHECK(ndr_push_ENUM_ENTRY(ndr, NDR_BUFFERS, &r->Entry[cntr_Entry_0]));
     399             :                 }
     400             :         }
     401           0 :         return NDR_ERR_SUCCESS;
     402             : }
     403             : 
     404           0 : static enum ndr_err_code ndr_pull_ENUM_LIST(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct ENUM_LIST *r)
     405             : {
     406           0 :         uint32_t size_Entry_0 = 0;
     407           0 :         uint32_t cntr_Entry_0;
     408           0 :         TALLOC_CTX *_mem_save_Entry_0 = NULL;
     409           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     410           0 :         if (ndr_flags & NDR_SCALARS) {
     411           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->Entry));
     412           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
     413           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->EntryCount));
     414           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->Entry, &size_Entry_0));
     415           0 :                 NDR_PULL_ALLOC_N(ndr, r->Entry, size_Entry_0);
     416           0 :                 _mem_save_Entry_0 = NDR_PULL_GET_MEM_CTX(ndr);
     417           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->Entry, 0);
     418           0 :                 for (cntr_Entry_0 = 0; cntr_Entry_0 < (size_Entry_0); cntr_Entry_0++) {
     419           0 :                         NDR_CHECK(ndr_pull_ENUM_ENTRY(ndr, NDR_SCALARS, &r->Entry[cntr_Entry_0]));
     420             :                 }
     421           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Entry_0, 0);
     422           0 :                 if (r->Entry) {
     423           0 :                         NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->Entry, r->EntryCount));
     424             :                 }
     425           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
     426             :         }
     427           0 :         if (ndr_flags & NDR_BUFFERS) {
     428           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->Entry, &size_Entry_0));
     429           0 :                 _mem_save_Entry_0 = NDR_PULL_GET_MEM_CTX(ndr);
     430           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->Entry, 0);
     431           0 :                 for (cntr_Entry_0 = 0; cntr_Entry_0 < (size_Entry_0); cntr_Entry_0++) {
     432           0 :                         NDR_CHECK(ndr_pull_ENUM_ENTRY(ndr, NDR_BUFFERS, &r->Entry[cntr_Entry_0]));
     433             :                 }
     434           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Entry_0, 0);
     435           0 :                 for (cntr_Entry_0 = 0; cntr_Entry_0 < (size_Entry_0); cntr_Entry_0++) {
     436             :                 }
     437             :         }
     438           0 :         return NDR_ERR_SUCCESS;
     439             : }
     440             : 
     441           0 : _PUBLIC_ void ndr_print_ENUM_LIST(struct ndr_print *ndr, const char *name, const struct ENUM_LIST *r)
     442             : {
     443           0 :         uint32_t cntr_Entry_0;
     444           0 :         ndr_print_struct(ndr, name, "ENUM_LIST");
     445           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     446           0 :         ndr->depth++;
     447           0 :         ndr_print_uint32(ndr, "EntryCount", r->EntryCount);
     448           0 :         ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "Entry", (uint32_t)(r->EntryCount));
     449           0 :         ndr->depth++;
     450           0 :         for (cntr_Entry_0 = 0; cntr_Entry_0 < (r->EntryCount); cntr_Entry_0++) {
     451           0 :                 ndr_print_ENUM_ENTRY(ndr, "Entry", &r->Entry[cntr_Entry_0]);
     452             :         }
     453           0 :         ndr->depth--;
     454           0 :         ndr->depth--;
     455             : }
     456             : 
     457           0 : static enum ndr_err_code ndr_push_GROUP_ENUM_ENTRY(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct GROUP_ENUM_ENTRY *r)
     458             : {
     459           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     460           0 :         if (ndr_flags & NDR_SCALARS) {
     461           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
     462           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->Name));
     463           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->Id));
     464           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwState));
     465           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->Owner));
     466           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwFlags));
     467           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->cbProperties));
     468           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->Properties));
     469           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->cbRoProperties));
     470           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->RoProperties));
     471           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
     472             :         }
     473           0 :         if (ndr_flags & NDR_BUFFERS) {
     474           0 :                 if (r->Name) {
     475           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Name, CH_UTF16)));
     476           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
     477           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Name, CH_UTF16)));
     478           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->Name, ndr_charset_length(r->Name, CH_UTF16), sizeof(uint16_t), CH_UTF16));
     479             :                 }
     480           0 :                 if (r->Id) {
     481           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Id, CH_UTF16)));
     482           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
     483           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Id, CH_UTF16)));
     484           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->Id, ndr_charset_length(r->Id, CH_UTF16), sizeof(uint16_t), CH_UTF16));
     485             :                 }
     486           0 :                 if (r->Owner) {
     487           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Owner, CH_UTF16)));
     488           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
     489           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Owner, CH_UTF16)));
     490           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->Owner, ndr_charset_length(r->Owner, CH_UTF16), sizeof(uint16_t), CH_UTF16));
     491             :                 }
     492           0 :                 if (r->Properties) {
     493           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->cbProperties));
     494           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->Properties, r->cbProperties));
     495             :                 }
     496           0 :                 if (r->RoProperties) {
     497           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->cbRoProperties));
     498           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->RoProperties, r->cbRoProperties));
     499             :                 }
     500             :         }
     501           0 :         return NDR_ERR_SUCCESS;
     502             : }
     503             : 
     504           0 : static enum ndr_err_code ndr_pull_GROUP_ENUM_ENTRY(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct GROUP_ENUM_ENTRY *r)
     505             : {
     506           0 :         uint32_t _ptr_Name;
     507           0 :         uint32_t size_Name_1 = 0;
     508           0 :         uint32_t length_Name_1 = 0;
     509           0 :         TALLOC_CTX *_mem_save_Name_0 = NULL;
     510           0 :         uint32_t _ptr_Id;
     511           0 :         uint32_t size_Id_1 = 0;
     512           0 :         uint32_t length_Id_1 = 0;
     513           0 :         TALLOC_CTX *_mem_save_Id_0 = NULL;
     514           0 :         uint32_t _ptr_Owner;
     515           0 :         uint32_t size_Owner_1 = 0;
     516           0 :         uint32_t length_Owner_1 = 0;
     517           0 :         TALLOC_CTX *_mem_save_Owner_0 = NULL;
     518           0 :         uint32_t _ptr_Properties;
     519           0 :         uint32_t size_Properties_1 = 0;
     520           0 :         TALLOC_CTX *_mem_save_Properties_0 = NULL;
     521           0 :         uint32_t _ptr_RoProperties;
     522           0 :         uint32_t size_RoProperties_1 = 0;
     523           0 :         TALLOC_CTX *_mem_save_RoProperties_0 = NULL;
     524           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     525           0 :         if (ndr_flags & NDR_SCALARS) {
     526           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
     527           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Name));
     528           0 :                 if (_ptr_Name) {
     529           0 :                         NDR_PULL_ALLOC(ndr, r->Name);
     530             :                 } else {
     531           0 :                         r->Name = NULL;
     532             :                 }
     533           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Id));
     534           0 :                 if (_ptr_Id) {
     535           0 :                         NDR_PULL_ALLOC(ndr, r->Id);
     536             :                 } else {
     537           0 :                         r->Id = NULL;
     538             :                 }
     539           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwState));
     540           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Owner));
     541           0 :                 if (_ptr_Owner) {
     542           0 :                         NDR_PULL_ALLOC(ndr, r->Owner);
     543             :                 } else {
     544           0 :                         r->Owner = NULL;
     545             :                 }
     546           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwFlags));
     547           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->cbProperties));
     548           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Properties));
     549           0 :                 if (_ptr_Properties) {
     550           0 :                         NDR_PULL_ALLOC(ndr, r->Properties);
     551             :                 } else {
     552           0 :                         r->Properties = NULL;
     553             :                 }
     554           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->cbRoProperties));
     555           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_RoProperties));
     556           0 :                 if (_ptr_RoProperties) {
     557           0 :                         NDR_PULL_ALLOC(ndr, r->RoProperties);
     558             :                 } else {
     559           0 :                         r->RoProperties = NULL;
     560             :                 }
     561           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
     562             :         }
     563           0 :         if (ndr_flags & NDR_BUFFERS) {
     564           0 :                 if (r->Name) {
     565           0 :                         _mem_save_Name_0 = NDR_PULL_GET_MEM_CTX(ndr);
     566           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->Name, 0);
     567           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->Name));
     568           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->Name));
     569           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->Name, &size_Name_1));
     570           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->Name, &length_Name_1));
     571           0 :                         if (length_Name_1 > size_Name_1) {
     572           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_Name_1, length_Name_1);
     573             :                         }
     574           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_Name_1, sizeof(uint16_t)));
     575           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->Name, length_Name_1, sizeof(uint16_t), CH_UTF16));
     576           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Name_0, 0);
     577             :                 }
     578           0 :                 if (r->Id) {
     579           0 :                         _mem_save_Id_0 = NDR_PULL_GET_MEM_CTX(ndr);
     580           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->Id, 0);
     581           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->Id));
     582           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->Id));
     583           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->Id, &size_Id_1));
     584           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->Id, &length_Id_1));
     585           0 :                         if (length_Id_1 > size_Id_1) {
     586           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_Id_1, length_Id_1);
     587             :                         }
     588           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_Id_1, sizeof(uint16_t)));
     589           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->Id, length_Id_1, sizeof(uint16_t), CH_UTF16));
     590           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Id_0, 0);
     591             :                 }
     592           0 :                 if (r->Owner) {
     593           0 :                         _mem_save_Owner_0 = NDR_PULL_GET_MEM_CTX(ndr);
     594           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->Owner, 0);
     595           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->Owner));
     596           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->Owner));
     597           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->Owner, &size_Owner_1));
     598           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->Owner, &length_Owner_1));
     599           0 :                         if (length_Owner_1 > size_Owner_1) {
     600           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_Owner_1, length_Owner_1);
     601             :                         }
     602           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_Owner_1, sizeof(uint16_t)));
     603           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->Owner, length_Owner_1, sizeof(uint16_t), CH_UTF16));
     604           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Owner_0, 0);
     605             :                 }
     606           0 :                 if (r->Properties) {
     607           0 :                         _mem_save_Properties_0 = NDR_PULL_GET_MEM_CTX(ndr);
     608           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->Properties, 0);
     609           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->Properties));
     610           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->Properties, &size_Properties_1));
     611           0 :                         NDR_PULL_ALLOC_N(ndr, r->Properties, size_Properties_1);
     612           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->Properties, size_Properties_1));
     613           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Properties_0, 0);
     614             :                 }
     615           0 :                 if (r->RoProperties) {
     616           0 :                         _mem_save_RoProperties_0 = NDR_PULL_GET_MEM_CTX(ndr);
     617           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->RoProperties, 0);
     618           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->RoProperties));
     619           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->RoProperties, &size_RoProperties_1));
     620           0 :                         NDR_PULL_ALLOC_N(ndr, r->RoProperties, size_RoProperties_1);
     621           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->RoProperties, size_RoProperties_1));
     622           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_RoProperties_0, 0);
     623             :                 }
     624           0 :                 if (r->Properties) {
     625           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->Properties, r->cbProperties));
     626             :                 }
     627           0 :                 if (r->RoProperties) {
     628           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->RoProperties, r->cbRoProperties));
     629             :                 }
     630             :         }
     631           0 :         return NDR_ERR_SUCCESS;
     632             : }
     633             : 
     634           0 : _PUBLIC_ void ndr_print_GROUP_ENUM_ENTRY(struct ndr_print *ndr, const char *name, const struct GROUP_ENUM_ENTRY *r)
     635             : {
     636           0 :         ndr_print_struct(ndr, name, "GROUP_ENUM_ENTRY");
     637           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     638           0 :         ndr->depth++;
     639           0 :         ndr_print_ptr(ndr, "Name", r->Name);
     640           0 :         ndr->depth++;
     641           0 :         if (r->Name) {
     642           0 :                 ndr_print_string(ndr, "Name", r->Name);
     643             :         }
     644           0 :         ndr->depth--;
     645           0 :         ndr_print_ptr(ndr, "Id", r->Id);
     646           0 :         ndr->depth++;
     647           0 :         if (r->Id) {
     648           0 :                 ndr_print_string(ndr, "Id", r->Id);
     649             :         }
     650           0 :         ndr->depth--;
     651           0 :         ndr_print_uint32(ndr, "dwState", r->dwState);
     652           0 :         ndr_print_ptr(ndr, "Owner", r->Owner);
     653           0 :         ndr->depth++;
     654           0 :         if (r->Owner) {
     655           0 :                 ndr_print_string(ndr, "Owner", r->Owner);
     656             :         }
     657           0 :         ndr->depth--;
     658           0 :         ndr_print_uint32(ndr, "dwFlags", r->dwFlags);
     659           0 :         ndr_print_uint32(ndr, "cbProperties", r->cbProperties);
     660           0 :         ndr_print_ptr(ndr, "Properties", r->Properties);
     661           0 :         ndr->depth++;
     662           0 :         if (r->Properties) {
     663           0 :                 ndr_print_array_uint8(ndr, "Properties", r->Properties, r->cbProperties);
     664             :         }
     665           0 :         ndr->depth--;
     666           0 :         ndr_print_uint32(ndr, "cbRoProperties", r->cbRoProperties);
     667           0 :         ndr_print_ptr(ndr, "RoProperties", r->RoProperties);
     668           0 :         ndr->depth++;
     669           0 :         if (r->RoProperties) {
     670           0 :                 ndr_print_array_uint8(ndr, "RoProperties", r->RoProperties, r->cbRoProperties);
     671             :         }
     672           0 :         ndr->depth--;
     673           0 :         ndr->depth--;
     674             : }
     675             : 
     676           0 : static enum ndr_err_code ndr_push_RESOURCE_ENUM_ENTRY(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct RESOURCE_ENUM_ENTRY *r)
     677             : {
     678           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     679           0 :         if (ndr_flags & NDR_SCALARS) {
     680           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
     681           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->Name));
     682           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->Id));
     683           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->OwnerName));
     684           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->OwnerId));
     685           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->cbProperties));
     686           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->Properties));
     687           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->cbRoProperties));
     688           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->RoProperties));
     689           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
     690             :         }
     691           0 :         if (ndr_flags & NDR_BUFFERS) {
     692           0 :                 if (r->Name) {
     693           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Name, CH_UTF16)));
     694           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
     695           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Name, CH_UTF16)));
     696           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->Name, ndr_charset_length(r->Name, CH_UTF16), sizeof(uint16_t), CH_UTF16));
     697             :                 }
     698           0 :                 if (r->Id) {
     699           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Id, CH_UTF16)));
     700           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
     701           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Id, CH_UTF16)));
     702           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->Id, ndr_charset_length(r->Id, CH_UTF16), sizeof(uint16_t), CH_UTF16));
     703             :                 }
     704           0 :                 if (r->OwnerName) {
     705           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->OwnerName, CH_UTF16)));
     706           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
     707           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->OwnerName, CH_UTF16)));
     708           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->OwnerName, ndr_charset_length(r->OwnerName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
     709             :                 }
     710           0 :                 if (r->OwnerId) {
     711           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->OwnerId, CH_UTF16)));
     712           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
     713           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->OwnerId, CH_UTF16)));
     714           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->OwnerId, ndr_charset_length(r->OwnerId, CH_UTF16), sizeof(uint16_t), CH_UTF16));
     715             :                 }
     716           0 :                 if (r->Properties) {
     717           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->cbProperties));
     718           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->Properties, r->cbProperties));
     719             :                 }
     720           0 :                 if (r->RoProperties) {
     721           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->cbRoProperties));
     722           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->RoProperties, r->cbRoProperties));
     723             :                 }
     724             :         }
     725           0 :         return NDR_ERR_SUCCESS;
     726             : }
     727             : 
     728           0 : static enum ndr_err_code ndr_pull_RESOURCE_ENUM_ENTRY(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct RESOURCE_ENUM_ENTRY *r)
     729             : {
     730           0 :         uint32_t _ptr_Name;
     731           0 :         uint32_t size_Name_1 = 0;
     732           0 :         uint32_t length_Name_1 = 0;
     733           0 :         TALLOC_CTX *_mem_save_Name_0 = NULL;
     734           0 :         uint32_t _ptr_Id;
     735           0 :         uint32_t size_Id_1 = 0;
     736           0 :         uint32_t length_Id_1 = 0;
     737           0 :         TALLOC_CTX *_mem_save_Id_0 = NULL;
     738           0 :         uint32_t _ptr_OwnerName;
     739           0 :         uint32_t size_OwnerName_1 = 0;
     740           0 :         uint32_t length_OwnerName_1 = 0;
     741           0 :         TALLOC_CTX *_mem_save_OwnerName_0 = NULL;
     742           0 :         uint32_t _ptr_OwnerId;
     743           0 :         uint32_t size_OwnerId_1 = 0;
     744           0 :         uint32_t length_OwnerId_1 = 0;
     745           0 :         TALLOC_CTX *_mem_save_OwnerId_0 = NULL;
     746           0 :         uint32_t _ptr_Properties;
     747           0 :         uint32_t size_Properties_1 = 0;
     748           0 :         TALLOC_CTX *_mem_save_Properties_0 = NULL;
     749           0 :         uint32_t _ptr_RoProperties;
     750           0 :         uint32_t size_RoProperties_1 = 0;
     751           0 :         TALLOC_CTX *_mem_save_RoProperties_0 = NULL;
     752           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     753           0 :         if (ndr_flags & NDR_SCALARS) {
     754           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
     755           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Name));
     756           0 :                 if (_ptr_Name) {
     757           0 :                         NDR_PULL_ALLOC(ndr, r->Name);
     758             :                 } else {
     759           0 :                         r->Name = NULL;
     760             :                 }
     761           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Id));
     762           0 :                 if (_ptr_Id) {
     763           0 :                         NDR_PULL_ALLOC(ndr, r->Id);
     764             :                 } else {
     765           0 :                         r->Id = NULL;
     766             :                 }
     767           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_OwnerName));
     768           0 :                 if (_ptr_OwnerName) {
     769           0 :                         NDR_PULL_ALLOC(ndr, r->OwnerName);
     770             :                 } else {
     771           0 :                         r->OwnerName = NULL;
     772             :                 }
     773           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_OwnerId));
     774           0 :                 if (_ptr_OwnerId) {
     775           0 :                         NDR_PULL_ALLOC(ndr, r->OwnerId);
     776             :                 } else {
     777           0 :                         r->OwnerId = NULL;
     778             :                 }
     779           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->cbProperties));
     780           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Properties));
     781           0 :                 if (_ptr_Properties) {
     782           0 :                         NDR_PULL_ALLOC(ndr, r->Properties);
     783             :                 } else {
     784           0 :                         r->Properties = NULL;
     785             :                 }
     786           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->cbRoProperties));
     787           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_RoProperties));
     788           0 :                 if (_ptr_RoProperties) {
     789           0 :                         NDR_PULL_ALLOC(ndr, r->RoProperties);
     790             :                 } else {
     791           0 :                         r->RoProperties = NULL;
     792             :                 }
     793           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
     794             :         }
     795           0 :         if (ndr_flags & NDR_BUFFERS) {
     796           0 :                 if (r->Name) {
     797           0 :                         _mem_save_Name_0 = NDR_PULL_GET_MEM_CTX(ndr);
     798           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->Name, 0);
     799           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->Name));
     800           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->Name));
     801           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->Name, &size_Name_1));
     802           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->Name, &length_Name_1));
     803           0 :                         if (length_Name_1 > size_Name_1) {
     804           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_Name_1, length_Name_1);
     805             :                         }
     806           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_Name_1, sizeof(uint16_t)));
     807           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->Name, length_Name_1, sizeof(uint16_t), CH_UTF16));
     808           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Name_0, 0);
     809             :                 }
     810           0 :                 if (r->Id) {
     811           0 :                         _mem_save_Id_0 = NDR_PULL_GET_MEM_CTX(ndr);
     812           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->Id, 0);
     813           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->Id));
     814           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->Id));
     815           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->Id, &size_Id_1));
     816           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->Id, &length_Id_1));
     817           0 :                         if (length_Id_1 > size_Id_1) {
     818           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_Id_1, length_Id_1);
     819             :                         }
     820           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_Id_1, sizeof(uint16_t)));
     821           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->Id, length_Id_1, sizeof(uint16_t), CH_UTF16));
     822           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Id_0, 0);
     823             :                 }
     824           0 :                 if (r->OwnerName) {
     825           0 :                         _mem_save_OwnerName_0 = NDR_PULL_GET_MEM_CTX(ndr);
     826           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->OwnerName, 0);
     827           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->OwnerName));
     828           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->OwnerName));
     829           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->OwnerName, &size_OwnerName_1));
     830           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->OwnerName, &length_OwnerName_1));
     831           0 :                         if (length_OwnerName_1 > size_OwnerName_1) {
     832           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_OwnerName_1, length_OwnerName_1);
     833             :                         }
     834           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_OwnerName_1, sizeof(uint16_t)));
     835           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->OwnerName, length_OwnerName_1, sizeof(uint16_t), CH_UTF16));
     836           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_OwnerName_0, 0);
     837             :                 }
     838           0 :                 if (r->OwnerId) {
     839           0 :                         _mem_save_OwnerId_0 = NDR_PULL_GET_MEM_CTX(ndr);
     840           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->OwnerId, 0);
     841           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->OwnerId));
     842           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->OwnerId));
     843           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->OwnerId, &size_OwnerId_1));
     844           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->OwnerId, &length_OwnerId_1));
     845           0 :                         if (length_OwnerId_1 > size_OwnerId_1) {
     846           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_OwnerId_1, length_OwnerId_1);
     847             :                         }
     848           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_OwnerId_1, sizeof(uint16_t)));
     849           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->OwnerId, length_OwnerId_1, sizeof(uint16_t), CH_UTF16));
     850           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_OwnerId_0, 0);
     851             :                 }
     852           0 :                 if (r->Properties) {
     853           0 :                         _mem_save_Properties_0 = NDR_PULL_GET_MEM_CTX(ndr);
     854           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->Properties, 0);
     855           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->Properties));
     856           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->Properties, &size_Properties_1));
     857           0 :                         NDR_PULL_ALLOC_N(ndr, r->Properties, size_Properties_1);
     858           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->Properties, size_Properties_1));
     859           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Properties_0, 0);
     860             :                 }
     861           0 :                 if (r->RoProperties) {
     862           0 :                         _mem_save_RoProperties_0 = NDR_PULL_GET_MEM_CTX(ndr);
     863           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->RoProperties, 0);
     864           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->RoProperties));
     865           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->RoProperties, &size_RoProperties_1));
     866           0 :                         NDR_PULL_ALLOC_N(ndr, r->RoProperties, size_RoProperties_1);
     867           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->RoProperties, size_RoProperties_1));
     868           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_RoProperties_0, 0);
     869             :                 }
     870           0 :                 if (r->Properties) {
     871           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->Properties, r->cbProperties));
     872             :                 }
     873           0 :                 if (r->RoProperties) {
     874           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->RoProperties, r->cbRoProperties));
     875             :                 }
     876             :         }
     877           0 :         return NDR_ERR_SUCCESS;
     878             : }
     879             : 
     880           0 : _PUBLIC_ void ndr_print_RESOURCE_ENUM_ENTRY(struct ndr_print *ndr, const char *name, const struct RESOURCE_ENUM_ENTRY *r)
     881             : {
     882           0 :         ndr_print_struct(ndr, name, "RESOURCE_ENUM_ENTRY");
     883           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     884           0 :         ndr->depth++;
     885           0 :         ndr_print_ptr(ndr, "Name", r->Name);
     886           0 :         ndr->depth++;
     887           0 :         if (r->Name) {
     888           0 :                 ndr_print_string(ndr, "Name", r->Name);
     889             :         }
     890           0 :         ndr->depth--;
     891           0 :         ndr_print_ptr(ndr, "Id", r->Id);
     892           0 :         ndr->depth++;
     893           0 :         if (r->Id) {
     894           0 :                 ndr_print_string(ndr, "Id", r->Id);
     895             :         }
     896           0 :         ndr->depth--;
     897           0 :         ndr_print_ptr(ndr, "OwnerName", r->OwnerName);
     898           0 :         ndr->depth++;
     899           0 :         if (r->OwnerName) {
     900           0 :                 ndr_print_string(ndr, "OwnerName", r->OwnerName);
     901             :         }
     902           0 :         ndr->depth--;
     903           0 :         ndr_print_ptr(ndr, "OwnerId", r->OwnerId);
     904           0 :         ndr->depth++;
     905           0 :         if (r->OwnerId) {
     906           0 :                 ndr_print_string(ndr, "OwnerId", r->OwnerId);
     907             :         }
     908           0 :         ndr->depth--;
     909           0 :         ndr_print_uint32(ndr, "cbProperties", r->cbProperties);
     910           0 :         ndr_print_ptr(ndr, "Properties", r->Properties);
     911           0 :         ndr->depth++;
     912           0 :         if (r->Properties) {
     913           0 :                 ndr_print_array_uint8(ndr, "Properties", r->Properties, r->cbProperties);
     914             :         }
     915           0 :         ndr->depth--;
     916           0 :         ndr_print_uint32(ndr, "cbRoProperties", r->cbRoProperties);
     917           0 :         ndr_print_ptr(ndr, "RoProperties", r->RoProperties);
     918           0 :         ndr->depth++;
     919           0 :         if (r->RoProperties) {
     920           0 :                 ndr_print_array_uint8(ndr, "RoProperties", r->RoProperties, r->cbRoProperties);
     921             :         }
     922           0 :         ndr->depth--;
     923           0 :         ndr->depth--;
     924             : }
     925             : 
     926           0 : static enum ndr_err_code ndr_push_GROUP_ENUM_LIST(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct GROUP_ENUM_LIST *r)
     927             : {
     928           0 :         uint32_t cntr_Entry_0;
     929           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     930           0 :         if (ndr_flags & NDR_SCALARS) {
     931           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->EntryCount));
     932           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
     933           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->EntryCount));
     934           0 :                 for (cntr_Entry_0 = 0; cntr_Entry_0 < (r->EntryCount); cntr_Entry_0++) {
     935           0 :                         NDR_CHECK(ndr_push_GROUP_ENUM_ENTRY(ndr, NDR_SCALARS, &r->Entry[cntr_Entry_0]));
     936             :                 }
     937           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
     938             :         }
     939           0 :         if (ndr_flags & NDR_BUFFERS) {
     940           0 :                 for (cntr_Entry_0 = 0; cntr_Entry_0 < (r->EntryCount); cntr_Entry_0++) {
     941           0 :                         NDR_CHECK(ndr_push_GROUP_ENUM_ENTRY(ndr, NDR_BUFFERS, &r->Entry[cntr_Entry_0]));
     942             :                 }
     943             :         }
     944           0 :         return NDR_ERR_SUCCESS;
     945             : }
     946             : 
     947           0 : static enum ndr_err_code ndr_pull_GROUP_ENUM_LIST(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct GROUP_ENUM_LIST *r)
     948             : {
     949           0 :         uint32_t size_Entry_0 = 0;
     950           0 :         uint32_t cntr_Entry_0;
     951           0 :         TALLOC_CTX *_mem_save_Entry_0 = NULL;
     952           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     953           0 :         if (ndr_flags & NDR_SCALARS) {
     954           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->Entry));
     955           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
     956           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->EntryCount));
     957           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->Entry, &size_Entry_0));
     958           0 :                 NDR_PULL_ALLOC_N(ndr, r->Entry, size_Entry_0);
     959           0 :                 _mem_save_Entry_0 = NDR_PULL_GET_MEM_CTX(ndr);
     960           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->Entry, 0);
     961           0 :                 for (cntr_Entry_0 = 0; cntr_Entry_0 < (size_Entry_0); cntr_Entry_0++) {
     962           0 :                         NDR_CHECK(ndr_pull_GROUP_ENUM_ENTRY(ndr, NDR_SCALARS, &r->Entry[cntr_Entry_0]));
     963             :                 }
     964           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Entry_0, 0);
     965           0 :                 if (r->Entry) {
     966           0 :                         NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->Entry, r->EntryCount));
     967             :                 }
     968           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
     969             :         }
     970           0 :         if (ndr_flags & NDR_BUFFERS) {
     971           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->Entry, &size_Entry_0));
     972           0 :                 _mem_save_Entry_0 = NDR_PULL_GET_MEM_CTX(ndr);
     973           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->Entry, 0);
     974           0 :                 for (cntr_Entry_0 = 0; cntr_Entry_0 < (size_Entry_0); cntr_Entry_0++) {
     975           0 :                         NDR_CHECK(ndr_pull_GROUP_ENUM_ENTRY(ndr, NDR_BUFFERS, &r->Entry[cntr_Entry_0]));
     976             :                 }
     977           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Entry_0, 0);
     978           0 :                 for (cntr_Entry_0 = 0; cntr_Entry_0 < (size_Entry_0); cntr_Entry_0++) {
     979             :                 }
     980             :         }
     981           0 :         return NDR_ERR_SUCCESS;
     982             : }
     983             : 
     984           0 : _PUBLIC_ void ndr_print_GROUP_ENUM_LIST(struct ndr_print *ndr, const char *name, const struct GROUP_ENUM_LIST *r)
     985             : {
     986           0 :         uint32_t cntr_Entry_0;
     987           0 :         ndr_print_struct(ndr, name, "GROUP_ENUM_LIST");
     988           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     989           0 :         ndr->depth++;
     990           0 :         ndr_print_uint32(ndr, "EntryCount", r->EntryCount);
     991           0 :         ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "Entry", (uint32_t)(r->EntryCount));
     992           0 :         ndr->depth++;
     993           0 :         for (cntr_Entry_0 = 0; cntr_Entry_0 < (r->EntryCount); cntr_Entry_0++) {
     994           0 :                 ndr_print_GROUP_ENUM_ENTRY(ndr, "Entry", &r->Entry[cntr_Entry_0]);
     995             :         }
     996           0 :         ndr->depth--;
     997           0 :         ndr->depth--;
     998             : }
     999             : 
    1000           0 : static enum ndr_err_code ndr_push_RESOURCE_ENUM_LIST(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct RESOURCE_ENUM_LIST *r)
    1001             : {
    1002           0 :         uint32_t cntr_Entry_0;
    1003           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1004           0 :         if (ndr_flags & NDR_SCALARS) {
    1005           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->EntryCount));
    1006           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
    1007           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->EntryCount));
    1008           0 :                 for (cntr_Entry_0 = 0; cntr_Entry_0 < (r->EntryCount); cntr_Entry_0++) {
    1009           0 :                         NDR_CHECK(ndr_push_RESOURCE_ENUM_ENTRY(ndr, NDR_SCALARS, &r->Entry[cntr_Entry_0]));
    1010             :                 }
    1011           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
    1012             :         }
    1013           0 :         if (ndr_flags & NDR_BUFFERS) {
    1014           0 :                 for (cntr_Entry_0 = 0; cntr_Entry_0 < (r->EntryCount); cntr_Entry_0++) {
    1015           0 :                         NDR_CHECK(ndr_push_RESOURCE_ENUM_ENTRY(ndr, NDR_BUFFERS, &r->Entry[cntr_Entry_0]));
    1016             :                 }
    1017             :         }
    1018           0 :         return NDR_ERR_SUCCESS;
    1019             : }
    1020             : 
    1021           0 : static enum ndr_err_code ndr_pull_RESOURCE_ENUM_LIST(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct RESOURCE_ENUM_LIST *r)
    1022             : {
    1023           0 :         uint32_t size_Entry_0 = 0;
    1024           0 :         uint32_t cntr_Entry_0;
    1025           0 :         TALLOC_CTX *_mem_save_Entry_0 = NULL;
    1026           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1027           0 :         if (ndr_flags & NDR_SCALARS) {
    1028           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->Entry));
    1029           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
    1030           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->EntryCount));
    1031           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->Entry, &size_Entry_0));
    1032           0 :                 NDR_PULL_ALLOC_N(ndr, r->Entry, size_Entry_0);
    1033           0 :                 _mem_save_Entry_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1034           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->Entry, 0);
    1035           0 :                 for (cntr_Entry_0 = 0; cntr_Entry_0 < (size_Entry_0); cntr_Entry_0++) {
    1036           0 :                         NDR_CHECK(ndr_pull_RESOURCE_ENUM_ENTRY(ndr, NDR_SCALARS, &r->Entry[cntr_Entry_0]));
    1037             :                 }
    1038           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Entry_0, 0);
    1039           0 :                 if (r->Entry) {
    1040           0 :                         NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->Entry, r->EntryCount));
    1041             :                 }
    1042           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
    1043             :         }
    1044           0 :         if (ndr_flags & NDR_BUFFERS) {
    1045           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->Entry, &size_Entry_0));
    1046           0 :                 _mem_save_Entry_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1047           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->Entry, 0);
    1048           0 :                 for (cntr_Entry_0 = 0; cntr_Entry_0 < (size_Entry_0); cntr_Entry_0++) {
    1049           0 :                         NDR_CHECK(ndr_pull_RESOURCE_ENUM_ENTRY(ndr, NDR_BUFFERS, &r->Entry[cntr_Entry_0]));
    1050             :                 }
    1051           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Entry_0, 0);
    1052           0 :                 for (cntr_Entry_0 = 0; cntr_Entry_0 < (size_Entry_0); cntr_Entry_0++) {
    1053             :                 }
    1054             :         }
    1055           0 :         return NDR_ERR_SUCCESS;
    1056             : }
    1057             : 
    1058           0 : _PUBLIC_ void ndr_print_RESOURCE_ENUM_LIST(struct ndr_print *ndr, const char *name, const struct RESOURCE_ENUM_LIST *r)
    1059             : {
    1060           0 :         uint32_t cntr_Entry_0;
    1061           0 :         ndr_print_struct(ndr, name, "RESOURCE_ENUM_LIST");
    1062           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1063           0 :         ndr->depth++;
    1064           0 :         ndr_print_uint32(ndr, "EntryCount", r->EntryCount);
    1065           0 :         ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "Entry", (uint32_t)(r->EntryCount));
    1066           0 :         ndr->depth++;
    1067           0 :         for (cntr_Entry_0 = 0; cntr_Entry_0 < (r->EntryCount); cntr_Entry_0++) {
    1068           0 :                 ndr_print_RESOURCE_ENUM_ENTRY(ndr, "Entry", &r->Entry[cntr_Entry_0]);
    1069             :         }
    1070           0 :         ndr->depth--;
    1071           0 :         ndr->depth--;
    1072             : }
    1073             : 
    1074           0 : static enum ndr_err_code ndr_push_clusapi_CreateResourceFlags(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum clusapi_CreateResourceFlags r)
    1075             : {
    1076           0 :         NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
    1077           0 :         return NDR_ERR_SUCCESS;
    1078             : }
    1079             : 
    1080           0 : static enum ndr_err_code ndr_pull_clusapi_CreateResourceFlags(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum clusapi_CreateResourceFlags *r)
    1081             : {
    1082           0 :         uint32_t v;
    1083           0 :         NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
    1084           0 :         *r = v;
    1085           0 :         return NDR_ERR_SUCCESS;
    1086             : }
    1087             : 
    1088           0 : _PUBLIC_ void ndr_print_clusapi_CreateResourceFlags(struct ndr_print *ndr, const char *name, enum clusapi_CreateResourceFlags r)
    1089             : {
    1090           0 :         const char *val = NULL;
    1091             : 
    1092           0 :         switch (r) {
    1093           0 :                 case CLUSTER_RESOURCE_DEFAULT_MONITOR: val = "CLUSTER_RESOURCE_DEFAULT_MONITOR"; break;
    1094           0 :                 case CLUSTER_RESOURCE_SEPARATE_MONITOR: val = "CLUSTER_RESOURCE_SEPARATE_MONITOR"; break;
    1095             :         }
    1096           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
    1097           0 : }
    1098             : 
    1099           0 : static enum ndr_err_code ndr_push_clusapi_ClusterResourceState(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum clusapi_ClusterResourceState r)
    1100             : {
    1101           0 :         NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
    1102           0 :         return NDR_ERR_SUCCESS;
    1103             : }
    1104             : 
    1105           0 : static enum ndr_err_code ndr_pull_clusapi_ClusterResourceState(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum clusapi_ClusterResourceState *r)
    1106             : {
    1107           0 :         uint32_t v;
    1108           0 :         NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
    1109           0 :         *r = v;
    1110           0 :         return NDR_ERR_SUCCESS;
    1111             : }
    1112             : 
    1113           0 : _PUBLIC_ void ndr_print_clusapi_ClusterResourceState(struct ndr_print *ndr, const char *name, enum clusapi_ClusterResourceState r)
    1114             : {
    1115           0 :         const char *val = NULL;
    1116             : 
    1117           0 :         switch (r) {
    1118           0 :                 case ClusterResourceInitializing: val = "ClusterResourceInitializing"; break;
    1119           0 :                 case ClusterResourceOnline: val = "ClusterResourceOnline"; break;
    1120           0 :                 case ClusterResourceOffline: val = "ClusterResourceOffline"; break;
    1121           0 :                 case ClusterResourceFailed: val = "ClusterResourceFailed"; break;
    1122           0 :                 case ClusterResourceOnlinePending: val = "ClusterResourceOnlinePending"; break;
    1123           0 :                 case ClusterResourceOfflinePending: val = "ClusterResourceOfflinePending"; break;
    1124           0 :                 case ClusterResourceStateUnknown: val = "ClusterResourceStateUnknown"; break;
    1125             :         }
    1126           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
    1127           0 : }
    1128             : 
    1129           0 : static enum ndr_err_code ndr_push_clusapi_ClusterGroupState(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum clusapi_ClusterGroupState r)
    1130             : {
    1131           0 :         NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
    1132           0 :         return NDR_ERR_SUCCESS;
    1133             : }
    1134             : 
    1135           0 : static enum ndr_err_code ndr_pull_clusapi_ClusterGroupState(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum clusapi_ClusterGroupState *r)
    1136             : {
    1137           0 :         uint32_t v;
    1138           0 :         NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
    1139           0 :         *r = v;
    1140           0 :         return NDR_ERR_SUCCESS;
    1141             : }
    1142             : 
    1143           0 : _PUBLIC_ void ndr_print_clusapi_ClusterGroupState(struct ndr_print *ndr, const char *name, enum clusapi_ClusterGroupState r)
    1144             : {
    1145           0 :         const char *val = NULL;
    1146             : 
    1147           0 :         switch (r) {
    1148           0 :                 case ClusterGroupOnline: val = "ClusterGroupOnline"; break;
    1149           0 :                 case ClusterGroupOffline: val = "ClusterGroupOffline"; break;
    1150           0 :                 case ClusterGroupFailed: val = "ClusterGroupFailed"; break;
    1151           0 :                 case ClusterGroupPartialOnline: val = "ClusterGroupPartialOnline"; break;
    1152           0 :                 case ClusterGroupPending: val = "ClusterGroupPending"; break;
    1153           0 :                 case ClusterGroupStateUnknown: val = "ClusterGroupStateUnknown"; break;
    1154             :         }
    1155           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
    1156           0 : }
    1157             : 
    1158           0 : static enum ndr_err_code ndr_push_ClusterGroupEnumType(struct ndr_push *ndr, ndr_flags_type ndr_flags, uint32_t r)
    1159             : {
    1160           0 :         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
    1161           0 :         return NDR_ERR_SUCCESS;
    1162             : }
    1163             : 
    1164           0 : static enum ndr_err_code ndr_pull_ClusterGroupEnumType(struct ndr_pull *ndr, ndr_flags_type ndr_flags, uint32_t *r)
    1165             : {
    1166           0 :         uint32_t v;
    1167           0 :         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
    1168           0 :         *r = v;
    1169           0 :         return NDR_ERR_SUCCESS;
    1170             : }
    1171             : 
    1172           0 : _PUBLIC_ void ndr_print_ClusterGroupEnumType(struct ndr_print *ndr, const char *name, uint32_t r)
    1173             : {
    1174           0 :         ndr_print_uint32(ndr, name, r);
    1175           0 :         ndr->depth++;
    1176           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSTER_GROUP_ENUM_CONTAINS", CLUSTER_GROUP_ENUM_CONTAINS, r);
    1177           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSTER_GROUP_ENUM_NODES", CLUSTER_GROUP_ENUM_NODES, r);
    1178           0 :         ndr->depth--;
    1179           0 : }
    1180             : 
    1181           0 : static enum ndr_err_code ndr_push_clusapi_ClusterNodeState(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum clusapi_ClusterNodeState r)
    1182             : {
    1183           0 :         NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
    1184           0 :         return NDR_ERR_SUCCESS;
    1185             : }
    1186             : 
    1187           0 : static enum ndr_err_code ndr_pull_clusapi_ClusterNodeState(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum clusapi_ClusterNodeState *r)
    1188             : {
    1189           0 :         uint32_t v;
    1190           0 :         NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
    1191           0 :         *r = v;
    1192           0 :         return NDR_ERR_SUCCESS;
    1193             : }
    1194             : 
    1195           0 : _PUBLIC_ void ndr_print_clusapi_ClusterNodeState(struct ndr_print *ndr, const char *name, enum clusapi_ClusterNodeState r)
    1196             : {
    1197           0 :         const char *val = NULL;
    1198             : 
    1199           0 :         switch (r) {
    1200           0 :                 case ClusterNodeUp: val = "ClusterNodeUp"; break;
    1201           0 :                 case ClusterNodeDown: val = "ClusterNodeDown"; break;
    1202           0 :                 case ClusterNodePaused: val = "ClusterNodePaused"; break;
    1203           0 :                 case ClusterNodeJoining: val = "ClusterNodeJoining"; break;
    1204           0 :                 case ClusterNodeStateUnknown: val = "ClusterNodeStateUnknown"; break;
    1205             :         }
    1206           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
    1207           0 : }
    1208             : 
    1209           0 : static enum ndr_err_code ndr_push_clusapi_ResourceClass(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum clusapi_ResourceClass r)
    1210             : {
    1211           0 :         NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
    1212           0 :         return NDR_ERR_SUCCESS;
    1213             : }
    1214             : 
    1215           0 : static enum ndr_err_code ndr_pull_clusapi_ResourceClass(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum clusapi_ResourceClass *r)
    1216             : {
    1217           0 :         uint32_t v;
    1218           0 :         NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
    1219           0 :         *r = v;
    1220           0 :         return NDR_ERR_SUCCESS;
    1221             : }
    1222             : 
    1223           0 : _PUBLIC_ void ndr_print_clusapi_ResourceClass(struct ndr_print *ndr, const char *name, enum clusapi_ResourceClass r)
    1224             : {
    1225           0 :         const char *val = NULL;
    1226             : 
    1227           0 :         switch (r) {
    1228           0 :                 case CLUS_RESCLASS_UNKNOWN: val = "CLUS_RESCLASS_UNKNOWN"; break;
    1229           0 :                 case CLUS_RESCLASS_STORAGE: val = "CLUS_RESCLASS_STORAGE"; break;
    1230           0 :                 case CLUS_RESCLASS_NETWORK: val = "CLUS_RESCLASS_NETWORK"; break;
    1231             :         }
    1232           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
    1233           0 : }
    1234             : 
    1235           0 : _PUBLIC_ enum ndr_err_code ndr_push_CLUS_RESOURCE_CLASS_INFO(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct CLUS_RESOURCE_CLASS_INFO *r)
    1236             : {
    1237           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1238           0 :         if (ndr_flags & NDR_SCALARS) {
    1239           0 :                 NDR_CHECK(ndr_push_align(ndr, 4));
    1240           0 :                 NDR_CHECK(ndr_push_clusapi_ResourceClass(ndr, NDR_SCALARS, r->Class));
    1241           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->SubClass));
    1242           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
    1243             :         }
    1244           0 :         if (ndr_flags & NDR_BUFFERS) {
    1245           0 :         }
    1246           0 :         return NDR_ERR_SUCCESS;
    1247             : }
    1248             : 
    1249           0 : _PUBLIC_ enum ndr_err_code ndr_pull_CLUS_RESOURCE_CLASS_INFO(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct CLUS_RESOURCE_CLASS_INFO *r)
    1250             : {
    1251           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1252           0 :         if (ndr_flags & NDR_SCALARS) {
    1253           0 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
    1254           0 :                 NDR_CHECK(ndr_pull_clusapi_ResourceClass(ndr, NDR_SCALARS, &r->Class));
    1255           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->SubClass));
    1256           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
    1257             :         }
    1258           0 :         if (ndr_flags & NDR_BUFFERS) {
    1259           0 :         }
    1260           0 :         return NDR_ERR_SUCCESS;
    1261             : }
    1262             : 
    1263           0 : static void ndr_print_flags_CLUS_RESOURCE_CLASS_INFO(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct CLUS_RESOURCE_CLASS_INFO *r)
    1264             : {
    1265           0 :         ndr_print_CLUS_RESOURCE_CLASS_INFO(ndr, name, r);
    1266           0 : }
    1267             : 
    1268           0 : _PUBLIC_ void ndr_print_CLUS_RESOURCE_CLASS_INFO(struct ndr_print *ndr, const char *name, const struct CLUS_RESOURCE_CLASS_INFO *r)
    1269             : {
    1270           0 :         ndr_print_struct(ndr, name, "CLUS_RESOURCE_CLASS_INFO");
    1271           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1272           0 :         ndr->depth++;
    1273           0 :         ndr_print_clusapi_ResourceClass(ndr, "Class", r->Class);
    1274           0 :         ndr_print_uint32(ndr, "SubClass", r->SubClass);
    1275           0 :         ndr->depth--;
    1276             : }
    1277             : 
    1278           0 : static enum ndr_err_code ndr_push_clusapi_ResourceControlCode(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum clusapi_ResourceControlCode r)
    1279             : {
    1280           0 :         NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
    1281           0 :         return NDR_ERR_SUCCESS;
    1282             : }
    1283             : 
    1284           0 : static enum ndr_err_code ndr_pull_clusapi_ResourceControlCode(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum clusapi_ResourceControlCode *r)
    1285             : {
    1286           0 :         uint32_t v;
    1287           0 :         NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
    1288           0 :         *r = v;
    1289           0 :         return NDR_ERR_SUCCESS;
    1290             : }
    1291             : 
    1292           0 : _PUBLIC_ void ndr_print_clusapi_ResourceControlCode(struct ndr_print *ndr, const char *name, enum clusapi_ResourceControlCode r)
    1293             : {
    1294           0 :         const char *val = NULL;
    1295             : 
    1296           0 :         switch (r) {
    1297           0 :                 case CLUSCTL_RESOURCE_UNKNOWN: val = "CLUSCTL_RESOURCE_UNKNOWN"; break;
    1298           0 :                 case CLUSCTL_RESOURCE_GET_CHARACTERISTICS: val = "CLUSCTL_RESOURCE_GET_CHARACTERISTICS"; break;
    1299           0 :                 case CLUSCTL_RESOURCE_GET_FLAGS: val = "CLUSCTL_RESOURCE_GET_FLAGS"; break;
    1300           0 :                 case CLUSCTL_RESOURCE_GET_CLASS_INFO: val = "CLUSCTL_RESOURCE_GET_CLASS_INFO"; break;
    1301           0 :                 case CLUSCTL_RESOURCE_GET_REQUIRED_DEPENDENCIES: val = "CLUSCTL_RESOURCE_GET_REQUIRED_DEPENDENCIES"; break;
    1302           0 :                 case CLUSCTL_RESOURCE_GET_NAME: val = "CLUSCTL_RESOURCE_GET_NAME"; break;
    1303           0 :                 case CLUSCTL_RESOURCE_GET_RESOURCE_TYPE: val = "CLUSCTL_RESOURCE_GET_RESOURCE_TYPE"; break;
    1304           0 :                 case CLUSCTL_RESOURCE_GET_ID: val = "CLUSCTL_RESOURCE_GET_ID"; break;
    1305           0 :                 case CLUSCTL_RESOURCE_ENUM_COMMON_PROPERTIES: val = "CLUSCTL_RESOURCE_ENUM_COMMON_PROPERTIES"; break;
    1306           0 :                 case CLUSCTL_RESOURCE_GET_RO_COMMON_PROPERTIES: val = "CLUSCTL_RESOURCE_GET_RO_COMMON_PROPERTIES"; break;
    1307           0 :                 case CLUSCTL_RESOURCE_GET_COMMON_PROPERTIES: val = "CLUSCTL_RESOURCE_GET_COMMON_PROPERTIES"; break;
    1308           0 :                 case CLUSCTL_RESOURCE_SET_COMMON_PROPERTIES: val = "CLUSCTL_RESOURCE_SET_COMMON_PROPERTIES"; break;
    1309           0 :                 case CLUSCTL_RESOURCE_VALIDATE_COMMON_PROPERTIES: val = "CLUSCTL_RESOURCE_VALIDATE_COMMON_PROPERTIES"; break;
    1310           0 :                 case CLUSCTL_RESOURCE_GET_COMMON_PROPERTY_FMTS: val = "CLUSCTL_RESOURCE_GET_COMMON_PROPERTY_FMTS"; break;
    1311           0 :                 case CLUSCTL_RESOURCE_ENUM_PRIVATE_PROPERTIES: val = "CLUSCTL_RESOURCE_ENUM_PRIVATE_PROPERTIES"; break;
    1312           0 :                 case CLUSCTL_RESOURCE_GET_RO_PRIVATE_PROPERTIES: val = "CLUSCTL_RESOURCE_GET_RO_PRIVATE_PROPERTIES"; break;
    1313           0 :                 case CLUSCTL_RESOURCE_GET_PRIVATE_PROPERTIES: val = "CLUSCTL_RESOURCE_GET_PRIVATE_PROPERTIES"; break;
    1314           0 :                 case CLUSCTL_RESOURCE_SET_PRIVATE_PROPERTIES: val = "CLUSCTL_RESOURCE_SET_PRIVATE_PROPERTIES"; break;
    1315           0 :                 case CLUSCTL_RESOURCE_VALIDATE_PRIVATE_PROPERTIES: val = "CLUSCTL_RESOURCE_VALIDATE_PRIVATE_PROPERTIES"; break;
    1316           0 :                 case CLUSCTL_RESOURCE_GET_PRIVATE_PROPERTY_FMTS: val = "CLUSCTL_RESOURCE_GET_PRIVATE_PROPERTY_FMTS"; break;
    1317           0 :                 case CLUSCTL_RESOURCE_ADD_REGISTRY_CHECKPOINT: val = "CLUSCTL_RESOURCE_ADD_REGISTRY_CHECKPOINT"; break;
    1318           0 :                 case CLUSCTL_RESOURCE_DELETE_REGISTRY_CHECKPOINT: val = "CLUSCTL_RESOURCE_DELETE_REGISTRY_CHECKPOINT"; break;
    1319           0 :                 case CLUSCTL_RESOURCE_GET_REGISTRY_CHECKPOINTS: val = "CLUSCTL_RESOURCE_GET_REGISTRY_CHECKPOINTS"; break;
    1320           0 :                 case CLUSCTL_RESOURCE_ADD_CRYPTO_CHECKPOINT: val = "CLUSCTL_RESOURCE_ADD_CRYPTO_CHECKPOINT"; break;
    1321           0 :                 case CLUSCTL_RESOURCE_DELETE_CRYPTO_CHECKPOINT: val = "CLUSCTL_RESOURCE_DELETE_CRYPTO_CHECKPOINT"; break;
    1322           0 :                 case CLUSCTL_RESOURCE_GET_CRYPTO_CHECKPOINTS: val = "CLUSCTL_RESOURCE_GET_CRYPTO_CHECKPOINTS"; break;
    1323           0 :                 case CLUSCTL_RESOURCE_UPGRADE_DLL: val = "CLUSCTL_RESOURCE_UPGRADE_DLL"; break;
    1324           0 :                 case CLUSCTL_RESOURCE_ADD_REGISTRY_CHECKPOINT_64BIT: val = "CLUSCTL_RESOURCE_ADD_REGISTRY_CHECKPOINT_64BIT"; break;
    1325           0 :                 case CLUSCTL_RESOURCE_ADD_REGISTRY_CHECKPOINT_32BIT: val = "CLUSCTL_RESOURCE_ADD_REGISTRY_CHECKPOINT_32BIT"; break;
    1326           0 :                 case CLUSCTL_RESOURCE_GET_NETWORK_NAME: val = "CLUSCTL_RESOURCE_GET_NETWORK_NAME"; break;
    1327           0 :                 case CLUSCTL_RESOURCE_NETNAME_REGISTER_DNS_RECORDS: val = "CLUSCTL_RESOURCE_NETNAME_REGISTER_DNS_RECORDS"; break;
    1328           0 :                 case CLUSCTL_RESOURCE_GET_DNS_NAME: val = "CLUSCTL_RESOURCE_GET_DNS_NAME"; break;
    1329           0 :                 case CLUSCTL_RESOURCE_NETNAME_SET_PWD_INFO: val = "CLUSCTL_RESOURCE_NETNAME_SET_PWD_INFO"; break;
    1330           0 :                 case CLUSCTL_RESOURCE_NETNAME_DELETE_CO: val = "CLUSCTL_RESOURCE_NETNAME_DELETE_CO"; break;
    1331           0 :                 case CLUSCTL_RESOURCE_NETNAME_VALIDATE_VCO: val = "CLUSCTL_RESOURCE_NETNAME_VALIDATE_VCO"; break;
    1332           0 :                 case CLUSCTL_RESOURCE_NETNAME_RESET_VCO: val = "CLUSCTL_RESOURCE_NETNAME_RESET_VCO"; break;
    1333           0 :                 case CLUSCTL_RESOURCE_NETNAME_CREDS_UPDATED: val = "CLUSCTL_RESOURCE_NETNAME_CREDS_UPDATED"; break;
    1334           0 :                 case CLUSCTL_RESOURCE_STORAGE_GET_DISK_INFO: val = "CLUSCTL_RESOURCE_STORAGE_GET_DISK_INFO"; break;
    1335           0 :                 case CLUSCTL_RESOURCE_STORAGE_IS_PATH_VALID: val = "CLUSCTL_RESOURCE_STORAGE_IS_PATH_VALID"; break;
    1336           0 :                 case CLUSCTL_RESOURCE_IPADDRESS_RENEW_LEASE: val = "CLUSCTL_RESOURCE_IPADDRESS_RENEW_LEASE"; break;
    1337           0 :                 case CLUSCTL_RESOURCE_IPADDRESS_RELEASE_LEASE: val = "CLUSCTL_RESOURCE_IPADDRESS_RELEASE_LEASE"; break;
    1338           0 :                 case CLUSCTL_RESOURCE_QUERY_MAINTENANCE_MODE: val = "CLUSCTL_RESOURCE_QUERY_MAINTENANCE_MODE"; break;
    1339           0 :                 case CLUSCTL_RESOURCE_SET_MAINTENANCE_MODE: val = "CLUSCTL_RESOURCE_SET_MAINTENANCE_MODE"; break;
    1340           0 :                 case CLUSCTL_RESOURCE_STORAGE_SET_DRIVELETTER: val = "CLUSCTL_RESOURCE_STORAGE_SET_DRIVELETTER"; break;
    1341           0 :                 case CLUSCTL_RESOURCE_STORAGE_GET_DISK_INFO_EX: val = "CLUSCTL_RESOURCE_STORAGE_GET_DISK_INFO_EX"; break;
    1342           0 :                 case CLUSCTL_RESOURCE_STORAGE_GET_DIRTY: val = "CLUSCTL_RESOURCE_STORAGE_GET_DIRTY"; break;
    1343           0 :                 case CLUSCTL_RESOURCE_STORAGE_GET_MOUNTPOINTS: val = "CLUSCTL_RESOURCE_STORAGE_GET_MOUNTPOINTS"; break;
    1344           0 :                 case CLUSCTL_RESOURCE_STORAGE_GET_SHARED_VOLUME_INFO: val = "CLUSCTL_RESOURCE_STORAGE_GET_SHARED_VOLUME_INFO"; break;
    1345           0 :                 case CLUSCTL_RESOURCE_VM_START_MIGRATION: val = "CLUSCTL_RESOURCE_VM_START_MIGRATION"; break;
    1346           0 :                 case CLUSCTL_RESOURCE_VM_CANCEL_MIGRATION: val = "CLUSCTL_RESOURCE_VM_CANCEL_MIGRATION"; break;
    1347           0 :                 case CLUSCTL_RESOURCE_SET_CSV_MAINTENANCE_MODE: val = "CLUSCTL_RESOURCE_SET_CSV_MAINTENANCE_MODE"; break;
    1348           0 :                 case CLUSCTL_RESOURCE_ENABLE_SHARED_VOLUME_DIRECTIO: val = "CLUSCTL_RESOURCE_ENABLE_SHARED_VOLUME_DIRECTIO"; break;
    1349           0 :                 case CLUSCTL_RESOURCE_DISABLE_SHARED_VOLUME_DIRECTIO: val = "CLUSCTL_RESOURCE_DISABLE_SHARED_VOLUME_DIRECTIO"; break;
    1350           0 :                 case CLUSCTL_RESOURCE_SET_SHARED_VOLUME_BACKUP_MODE: val = "CLUSCTL_RESOURCE_SET_SHARED_VOLUME_BACKUP_MODE"; break;
    1351           0 :                 case CLUSCTL_RESOURCE_GET_RELATED_RESOURCE_NAMES: val = "CLUSCTL_RESOURCE_GET_RELATED_RESOURCE_NAMES"; break;
    1352           0 :                 case CLUSCTL_RESOURCE_POOL_GET_DRIVE_INFO: val = "CLUSCTL_RESOURCE_POOL_GET_DRIVE_INFO"; break;
    1353           0 :                 case CLUSCTL_RESOURCE_CLOUD_WITNESS_UPDATE_TOKEN: val = "CLUSCTL_RESOURCE_CLOUD_WITNESS_UPDATE_TOKEN"; break;
    1354           0 :                 case CLUSCTL_RESOURCE_NETNAME_CHECK_OU_PERMISSIONS: val = "CLUSCTL_RESOURCE_NETNAME_CHECK_OU_PERMISSIONS"; break;
    1355           0 :                 case CLUSCTL_RESOURCE_NETNAME_CHECK_AD_STATE: val = "CLUSCTL_RESOURCE_NETNAME_CHECK_AD_STATE"; break;
    1356             :         }
    1357           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
    1358           0 : }
    1359             : 
    1360           0 : static enum ndr_err_code ndr_push_clusapi_ResourceTypeControlCode(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum clusapi_ResourceTypeControlCode r)
    1361             : {
    1362           0 :         NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
    1363           0 :         return NDR_ERR_SUCCESS;
    1364             : }
    1365             : 
    1366           0 : static enum ndr_err_code ndr_pull_clusapi_ResourceTypeControlCode(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum clusapi_ResourceTypeControlCode *r)
    1367             : {
    1368           0 :         uint32_t v;
    1369           0 :         NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
    1370           0 :         *r = v;
    1371           0 :         return NDR_ERR_SUCCESS;
    1372             : }
    1373             : 
    1374           0 : _PUBLIC_ void ndr_print_clusapi_ResourceTypeControlCode(struct ndr_print *ndr, const char *name, enum clusapi_ResourceTypeControlCode r)
    1375             : {
    1376           0 :         const char *val = NULL;
    1377             : 
    1378           0 :         switch (r) {
    1379           0 :                 case CLUSCTL_RESOURCE_TYPE_UNKNOWN: val = "CLUSCTL_RESOURCE_TYPE_UNKNOWN"; break;
    1380           0 :                 case CLUSCTL_RESOURCE_TYPE_GET_CHARACTERISTICS: val = "CLUSCTL_RESOURCE_TYPE_GET_CHARACTERISTICS"; break;
    1381           0 :                 case CLUSCTL_RESOURCE_TYPE_GET_FLAGS: val = "CLUSCTL_RESOURCE_TYPE_GET_FLAGS"; break;
    1382           0 :                 case CLUSCTL_RESOURCE_TYPE_GET_CLASS_INFO: val = "CLUSCTL_RESOURCE_TYPE_GET_CLASS_INFO"; break;
    1383           0 :                 case CLUSCTL_RESOURCE_TYPE_GET_REQUIRED_DEPENDENCIES: val = "CLUSCTL_RESOURCE_TYPE_GET_REQUIRED_DEPENDENCIES"; break;
    1384           0 :                 case CLUSCTL_RESOURCE_TYPE_GET_ARB_TIMEOUT: val = "CLUSCTL_RESOURCE_TYPE_GET_ARB_TIMEOUT"; break;
    1385           0 :                 case CLUSCTL_RESOURCE_TYPE_ENUM_COMMON_PROPERTIES: val = "CLUSCTL_RESOURCE_TYPE_ENUM_COMMON_PROPERTIES"; break;
    1386           0 :                 case CLUSCTL_RESOURCE_TYPE_GET_RO_COMMON_PROPERTIES: val = "CLUSCTL_RESOURCE_TYPE_GET_RO_COMMON_PROPERTIES"; break;
    1387           0 :                 case CLUSCTL_RESOURCE_TYPE_GET_COMMON_PROPERTIES: val = "CLUSCTL_RESOURCE_TYPE_GET_COMMON_PROPERTIES"; break;
    1388           0 :                 case CLUSCTL_RESOURCE_TYPE_SET_COMMON_PROPERTIES: val = "CLUSCTL_RESOURCE_TYPE_SET_COMMON_PROPERTIES"; break;
    1389           0 :                 case CLUSCTL_RESOURCE_TYPE_VALIDATE_COMMON_PROPERTIES: val = "CLUSCTL_RESOURCE_TYPE_VALIDATE_COMMON_PROPERTIES"; break;
    1390           0 :                 case CLUSCTL_RESOURCE_TYPE_GET_COMMON_PROPERTY_FMTS: val = "CLUSCTL_RESOURCE_TYPE_GET_COMMON_PROPERTY_FMTS"; break;
    1391           0 :                 case CLUSCTL_RESOURCE_TYPE_GET_COMMON_RESOURCE_PROPERTY_FMTS: val = "CLUSCTL_RESOURCE_TYPE_GET_COMMON_RESOURCE_PROPERTY_FMTS"; break;
    1392           0 :                 case CLUSCTL_RESOURCE_TYPE_ENUM_PRIVATE_PROPERTIES: val = "CLUSCTL_RESOURCE_TYPE_ENUM_PRIVATE_PROPERTIES"; break;
    1393           0 :                 case CLUSCTL_RESOURCE_TYPE_GET_RO_PRIVATE_PROPERTIES: val = "CLUSCTL_RESOURCE_TYPE_GET_RO_PRIVATE_PROPERTIES"; break;
    1394           0 :                 case CLUSCTL_RESOURCE_TYPE_GET_PRIVATE_PROPERTIES: val = "CLUSCTL_RESOURCE_TYPE_GET_PRIVATE_PROPERTIES"; break;
    1395           0 :                 case CLUSCTL_RESOURCE_TYPE_SET_PRIVATE_PROPERTIES: val = "CLUSCTL_RESOURCE_TYPE_SET_PRIVATE_PROPERTIES"; break;
    1396           0 :                 case CLUSCTL_RESOURCE_TYPE_VALIDATE_PRIVATE_PROPERTIES: val = "CLUSCTL_RESOURCE_TYPE_VALIDATE_PRIVATE_PROPERTIES"; break;
    1397           0 :                 case CLUSCTL_RESOURCE_TYPE_GET_PRIVATE_PROPERTY_FMTS: val = "CLUSCTL_RESOURCE_TYPE_GET_PRIVATE_PROPERTY_FMTS"; break;
    1398           0 :                 case CLUSCTL_RESOURCE_TYPE_GET_PRIVATE_RESOURCE_PROPERTY_FMTS: val = "CLUSCTL_RESOURCE_TYPE_GET_PRIVATE_RESOURCE_PROPERTY_FMTS"; break;
    1399           0 :                 case CLUSCTL_RESOURCE_TYPE_STORAGE_GET_AVAILABLE_DISKS: val = "CLUSCTL_RESOURCE_TYPE_STORAGE_GET_AVAILABLE_DISKS"; break;
    1400           0 :                 case CLUSCTL_RESOURCE_TYPE_NETNAME_VALIDATE_NETNAME: val = "CLUSCTL_RESOURCE_TYPE_NETNAME_VALIDATE_NETNAME"; break;
    1401           0 :                 case CLUSCTL_RESOURCE_TYPE_VALIDATE_PATH: val = "CLUSCTL_RESOURCE_TYPE_VALIDATE_PATH"; break;
    1402           0 :                 case CLUSCTL_RESOURCE_TYPE_GEN_APP_VALIDATE_DIRECTORY: val = "CLUSCTL_RESOURCE_TYPE_GEN_APP_VALIDATE_DIRECTORY"; break;
    1403           0 :                 case CLUSCTL_RESOURCE_TYPE_STORAGE_GET_DRIVELETTERS: val = "CLUSCTL_RESOURCE_TYPE_STORAGE_GET_DRIVELETTERS"; break;
    1404           0 :                 case CLUSCTL_RESOURCE_TYPE_STORAGE_GET_AVAILABLE_DISKS_EX: val = "CLUSCTL_RESOURCE_TYPE_STORAGE_GET_AVAILABLE_DISKS_EX"; break;
    1405           0 :                 case CLUSCTL_RESOURCE_TYPE_STORAGE_REMAP_DRIVELETTER: val = "CLUSCTL_RESOURCE_TYPE_STORAGE_REMAP_DRIVELETTER"; break;
    1406           0 :                 case CLUSCTL_RESOURCE_TYPE_STORAGE_GET_DISKID: val = "CLUSCTL_RESOURCE_TYPE_STORAGE_GET_DISKID"; break;
    1407           0 :                 case CLUSCTL_RESOURCE_TYPE_STORAGE_IS_CLUSTERABLE: val = "CLUSCTL_RESOURCE_TYPE_STORAGE_IS_CLUSTERABLE"; break;
    1408           0 :                 case CLUSCTL_RESOURCE_TYPE_STORAGE_RELEASE_OWNERSHIP: val = "CLUSCTL_RESOURCE_TYPE_STORAGE_RELEASE_OWNERSHIP"; break;
    1409           0 :                 case CLUSCTL_RESOURCE_TYPE_STORAGE_IS_CSV_FILE: val = "CLUSCTL_RESOURCE_TYPE_STORAGE_IS_CSV_FILE"; break;
    1410           0 :                 case CLUSCTL_RESOURCE_TYPE_CLOUD_WITNESS_VALIDATE_CREDENTIALS: val = "CLUSCTL_RESOURCE_TYPE_CLOUD_WITNESS_VALIDATE_CREDENTIALS"; break;
    1411           0 :                 case CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_ELIGIBLE_LOGDISKS: val = "CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_ELIGIBLE_LOGDISKS"; break;
    1412           0 :                 case CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_ELIGIBLE_TARGET_DATADISKS: val = "CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_ELIGIBLE_TARGET_DATADISKS"; break;
    1413           0 :                 case CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_ELIGIBLE_SOURCE_DATADISKS: val = "CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_ELIGIBLE_SOURCE_DATADISKS"; break;
    1414           0 :                 case CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_REPLICA_VOLUMES: val = "CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_REPLICA_VOLUMES"; break;
    1415           0 :                 case CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_LOG_VOLUME: val = "CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_LOG_VOLUME"; break;
    1416           0 :                 case CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_REPLICATED_DISKS: val = "CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_REPLICATED_DISKS"; break;
    1417           0 :                 case CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_RESOURCE_GROUP: val = "CLUSCTL_RESOURCE_TYPE_REPLICATION_GET_RESOURCE_GROUP"; break;
    1418             :         }
    1419           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
    1420           0 : }
    1421             : 
    1422           0 : static enum ndr_err_code ndr_push_clusapi_GroupControlCode(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum clusapi_GroupControlCode r)
    1423             : {
    1424           0 :         NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
    1425           0 :         return NDR_ERR_SUCCESS;
    1426             : }
    1427             : 
    1428           0 : static enum ndr_err_code ndr_pull_clusapi_GroupControlCode(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum clusapi_GroupControlCode *r)
    1429             : {
    1430           0 :         uint32_t v;
    1431           0 :         NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
    1432           0 :         *r = v;
    1433           0 :         return NDR_ERR_SUCCESS;
    1434             : }
    1435             : 
    1436           0 : _PUBLIC_ void ndr_print_clusapi_GroupControlCode(struct ndr_print *ndr, const char *name, enum clusapi_GroupControlCode r)
    1437             : {
    1438           0 :         const char *val = NULL;
    1439             : 
    1440           0 :         switch (r) {
    1441           0 :                 case CLUSCTL_GROUP_UNKNOWN: val = "CLUSCTL_GROUP_UNKNOWN"; break;
    1442           0 :                 case CLUSCTL_GROUP_GET_CHARACTERISTICS: val = "CLUSCTL_GROUP_GET_CHARACTERISTICS"; break;
    1443           0 :                 case CLUSCTL_GROUP_GET_FLAGS: val = "CLUSCTL_GROUP_GET_FLAGS"; break;
    1444           0 :                 case CLUSCTL_GROUP_GET_NAME: val = "CLUSCTL_GROUP_GET_NAME"; break;
    1445           0 :                 case CLUSCTL_GROUP_GET_ID: val = "CLUSCTL_GROUP_GET_ID"; break;
    1446           0 :                 case CLUSCTL_GROUP_ENUM_COMMON_PROPERTIES: val = "CLUSCTL_GROUP_ENUM_COMMON_PROPERTIES"; break;
    1447           0 :                 case CLUSCTL_GROUP_GET_RO_COMMON_PROPERTIES: val = "CLUSCTL_GROUP_GET_RO_COMMON_PROPERTIES"; break;
    1448           0 :                 case CLUSCTL_GROUP_GET_COMMON_PROPERTIES: val = "CLUSCTL_GROUP_GET_COMMON_PROPERTIES"; break;
    1449           0 :                 case CLUSCTL_GROUP_SET_COMMON_PROPERTIES: val = "CLUSCTL_GROUP_SET_COMMON_PROPERTIES"; break;
    1450           0 :                 case CLUSCTL_GROUP_VALIDATE_COMMON_PROPERTIES: val = "CLUSCTL_GROUP_VALIDATE_COMMON_PROPERTIES"; break;
    1451           0 :                 case CLUSCTL_GROUP_GET_COMMON_PROPERTY_FMTS: val = "CLUSCTL_GROUP_GET_COMMON_PROPERTY_FMTS"; break;
    1452           0 :                 case CLUSCTL_GROUP_ENUM_PRIVATE_PROPERTIES: val = "CLUSCTL_GROUP_ENUM_PRIVATE_PROPERTIES"; break;
    1453           0 :                 case CLUSCTL_GROUP_GET_RO_PRIVATE_PROPERTIES: val = "CLUSCTL_GROUP_GET_RO_PRIVATE_PROPERTIES"; break;
    1454           0 :                 case CLUSCTL_GROUP_GET_PRIVATE_PROPERTIES: val = "CLUSCTL_GROUP_GET_PRIVATE_PROPERTIES"; break;
    1455           0 :                 case CLUSCTL_GROUP_SET_PRIVATE_PROPERTIES: val = "CLUSCTL_GROUP_SET_PRIVATE_PROPERTIES"; break;
    1456           0 :                 case CLUSCTL_GROUP_VALIDATE_PRIVATE_PROPERTIES: val = "CLUSCTL_GROUP_VALIDATE_PRIVATE_PROPERTIES"; break;
    1457             :         }
    1458           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
    1459           0 : }
    1460             : 
    1461           0 : static enum ndr_err_code ndr_push_clusapi_NodeControlCode(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum clusapi_NodeControlCode r)
    1462             : {
    1463           0 :         NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
    1464           0 :         return NDR_ERR_SUCCESS;
    1465             : }
    1466             : 
    1467           0 : static enum ndr_err_code ndr_pull_clusapi_NodeControlCode(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum clusapi_NodeControlCode *r)
    1468             : {
    1469           0 :         uint32_t v;
    1470           0 :         NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
    1471           0 :         *r = v;
    1472           0 :         return NDR_ERR_SUCCESS;
    1473             : }
    1474             : 
    1475           0 : _PUBLIC_ void ndr_print_clusapi_NodeControlCode(struct ndr_print *ndr, const char *name, enum clusapi_NodeControlCode r)
    1476             : {
    1477           0 :         const char *val = NULL;
    1478             : 
    1479           0 :         switch (r) {
    1480           0 :                 case CLUSCTL_NODE_UNKNOWN: val = "CLUSCTL_NODE_UNKNOWN"; break;
    1481           0 :                 case CLUSCTL_NODE_GET_CHARACTERISTICS: val = "CLUSCTL_NODE_GET_CHARACTERISTICS"; break;
    1482           0 :                 case CLUSCTL_NODE_GET_FLAGS: val = "CLUSCTL_NODE_GET_FLAGS"; break;
    1483           0 :                 case CLUSCTL_NODE_GET_NAME: val = "CLUSCTL_NODE_GET_NAME"; break;
    1484           0 :                 case CLUSCTL_NODE_GET_ID: val = "CLUSCTL_NODE_GET_ID"; break;
    1485           0 :                 case CLUSCTL_NODE_GET_CLUSTER_SERVICE_ACCOUNT_NAME: val = "CLUSCTL_NODE_GET_CLUSTER_SERVICE_ACCOUNT_NAME"; break;
    1486           0 :                 case CLUSCTL_NODE_ENUM_COMMON_PROPERTIES: val = "CLUSCTL_NODE_ENUM_COMMON_PROPERTIES"; break;
    1487           0 :                 case CLUSCTL_NODE_GET_RO_COMMON_PROPERTIES: val = "CLUSCTL_NODE_GET_RO_COMMON_PROPERTIES"; break;
    1488           0 :                 case CLUSCTL_NODE_GET_COMMON_PROPERTIES: val = "CLUSCTL_NODE_GET_COMMON_PROPERTIES"; break;
    1489           0 :                 case CLUSCTL_NODE_SET_COMMON_PROPERTIES: val = "CLUSCTL_NODE_SET_COMMON_PROPERTIES"; break;
    1490           0 :                 case CLUSCTL_NODE_VALIDATE_COMMON_PROPERTIES: val = "CLUSCTL_NODE_VALIDATE_COMMON_PROPERTIES"; break;
    1491           0 :                 case CLUSCTL_NODE_ENUM_PRIVATE_PROPERTIES: val = "CLUSCTL_NODE_ENUM_PRIVATE_PROPERTIES"; break;
    1492           0 :                 case CLUSCTL_NODE_GET_RO_PRIVATE_PROPERTIES: val = "CLUSCTL_NODE_GET_RO_PRIVATE_PROPERTIES"; break;
    1493           0 :                 case CLUSCTL_NODE_GET_PRIVATE_PROPERTIES: val = "CLUSCTL_NODE_GET_PRIVATE_PROPERTIES"; break;
    1494           0 :                 case CLUSCTL_NODE_SET_PRIVATE_PROPERTIES: val = "CLUSCTL_NODE_SET_PRIVATE_PROPERTIES"; break;
    1495           0 :                 case CLUSCTL_NODE_VALIDATE_PRIVATE_PROPERTIES: val = "CLUSCTL_NODE_VALIDATE_PRIVATE_PROPERTIES"; break;
    1496             :         }
    1497           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
    1498           0 : }
    1499             : 
    1500           0 : static enum ndr_err_code ndr_push_clusapi_ClusterNetworkState(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum clusapi_ClusterNetworkState r)
    1501             : {
    1502           0 :         NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
    1503           0 :         return NDR_ERR_SUCCESS;
    1504             : }
    1505             : 
    1506           0 : static enum ndr_err_code ndr_pull_clusapi_ClusterNetworkState(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum clusapi_ClusterNetworkState *r)
    1507             : {
    1508           0 :         uint32_t v;
    1509           0 :         NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
    1510           0 :         *r = v;
    1511           0 :         return NDR_ERR_SUCCESS;
    1512             : }
    1513             : 
    1514           0 : _PUBLIC_ void ndr_print_clusapi_ClusterNetworkState(struct ndr_print *ndr, const char *name, enum clusapi_ClusterNetworkState r)
    1515             : {
    1516           0 :         const char *val = NULL;
    1517             : 
    1518           0 :         switch (r) {
    1519           0 :                 case ClusterNetworkUnavailable: val = "ClusterNetworkUnavailable"; break;
    1520           0 :                 case ClusterNetworkDown: val = "ClusterNetworkDown"; break;
    1521           0 :                 case ClusterNetworkPartitioned: val = "ClusterNetworkPartitioned"; break;
    1522           0 :                 case ClusterNetworkUp: val = "ClusterNetworkUp"; break;
    1523           0 :                 case ClusterNetworkStateUnknown: val = "ClusterNetworkStateUnknown"; break;
    1524             :         }
    1525           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
    1526           0 : }
    1527             : 
    1528           0 : static enum ndr_err_code ndr_push_clusapi_ClusterNetInterfaceState(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum clusapi_ClusterNetInterfaceState r)
    1529             : {
    1530           0 :         NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
    1531           0 :         return NDR_ERR_SUCCESS;
    1532             : }
    1533             : 
    1534           0 : static enum ndr_err_code ndr_pull_clusapi_ClusterNetInterfaceState(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum clusapi_ClusterNetInterfaceState *r)
    1535             : {
    1536           0 :         uint32_t v;
    1537           0 :         NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
    1538           0 :         *r = v;
    1539           0 :         return NDR_ERR_SUCCESS;
    1540             : }
    1541             : 
    1542           0 : _PUBLIC_ void ndr_print_clusapi_ClusterNetInterfaceState(struct ndr_print *ndr, const char *name, enum clusapi_ClusterNetInterfaceState r)
    1543             : {
    1544           0 :         const char *val = NULL;
    1545             : 
    1546           0 :         switch (r) {
    1547           0 :                 case ClusterNetInterfaceFailed: val = "ClusterNetInterfaceFailed"; break;
    1548           0 :                 case ClusterNetInterfaceUnreachable: val = "ClusterNetInterfaceUnreachable"; break;
    1549           0 :                 case ClusterNetInterfaceUnavailable: val = "ClusterNetInterfaceUnavailable"; break;
    1550           0 :                 case ClusterNetInterfaceUp: val = "ClusterNetInterfaceUp"; break;
    1551           0 :                 case ClusterNetInterfaceStateUnknown: val = "ClusterNetInterfaceStateUnknown"; break;
    1552             :         }
    1553           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
    1554           0 : }
    1555             : 
    1556           0 : static enum ndr_err_code ndr_push_ClusterResTypeEnumType(struct ndr_push *ndr, ndr_flags_type ndr_flags, uint32_t r)
    1557             : {
    1558           0 :         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
    1559           0 :         return NDR_ERR_SUCCESS;
    1560             : }
    1561             : 
    1562           0 : static enum ndr_err_code ndr_pull_ClusterResTypeEnumType(struct ndr_pull *ndr, ndr_flags_type ndr_flags, uint32_t *r)
    1563             : {
    1564           0 :         uint32_t v;
    1565           0 :         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
    1566           0 :         *r = v;
    1567           0 :         return NDR_ERR_SUCCESS;
    1568             : }
    1569             : 
    1570           0 : _PUBLIC_ void ndr_print_ClusterResTypeEnumType(struct ndr_print *ndr, const char *name, uint32_t r)
    1571             : {
    1572           0 :         ndr_print_uint32(ndr, name, r);
    1573           0 :         ndr->depth++;
    1574           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSTER_RESOURCE_TYPE_ENUM_NODES", CLUSTER_RESOURCE_TYPE_ENUM_NODES, r);
    1575           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSTER_RESOURCE_TYPE_ENUM_RESOURCES", CLUSTER_RESOURCE_TYPE_ENUM_RESOURCES, r);
    1576           0 :         ndr->depth--;
    1577           0 : }
    1578             : 
    1579           0 : static enum ndr_err_code ndr_push_clusapi_ClusterControlCode(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum clusapi_ClusterControlCode r)
    1580             : {
    1581           0 :         NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
    1582           0 :         return NDR_ERR_SUCCESS;
    1583             : }
    1584             : 
    1585           0 : static enum ndr_err_code ndr_pull_clusapi_ClusterControlCode(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum clusapi_ClusterControlCode *r)
    1586             : {
    1587           0 :         uint32_t v;
    1588           0 :         NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
    1589           0 :         *r = v;
    1590           0 :         return NDR_ERR_SUCCESS;
    1591             : }
    1592             : 
    1593           0 : _PUBLIC_ void ndr_print_clusapi_ClusterControlCode(struct ndr_print *ndr, const char *name, enum clusapi_ClusterControlCode r)
    1594             : {
    1595           0 :         const char *val = NULL;
    1596             : 
    1597           0 :         switch (r) {
    1598           0 :                 case CLUSCTL_CLUSTER_UNKNOWN: val = "CLUSCTL_CLUSTER_UNKNOWN"; break;
    1599           0 :                 case CLUSCTL_CLUSTER_GET_FQDN: val = "CLUSCTL_CLUSTER_GET_FQDN"; break;
    1600           0 :                 case CLUSCTL_CLUSTER_CHECK_VOTER_EVICT: val = "CLUSCTL_CLUSTER_CHECK_VOTER_EVICT"; break;
    1601           0 :                 case CLUSCTL_CLUSTER_CHECK_VOTER_DOWN: val = "CLUSCTL_CLUSTER_CHECK_VOTER_DOWN"; break;
    1602           0 :                 case CLUSCTL_CLUSTER_SHUTDOWN: val = "CLUSCTL_CLUSTER_SHUTDOWN"; break;
    1603           0 :                 case CLUSCTL_CLUSTER_ENUM_COMMON_PROPERTIES: val = "CLUSCTL_CLUSTER_ENUM_COMMON_PROPERTIES"; break;
    1604           0 :                 case CLUSCTL_CLUSTER_GET_RO_COMMON_PROPERTIES: val = "CLUSCTL_CLUSTER_GET_RO_COMMON_PROPERTIES"; break;
    1605           0 :                 case CLUSCTL_CLUSTER_GET_COMMON_PROPERTIES: val = "CLUSCTL_CLUSTER_GET_COMMON_PROPERTIES"; break;
    1606           0 :                 case CLUSCTL_CLUSTER_SET_COMMON_PROPERTIES: val = "CLUSCTL_CLUSTER_SET_COMMON_PROPERTIES"; break;
    1607           0 :                 case CLUSCTL_CLUSTER_VALIDATE_COMMON_PROPERTIES: val = "CLUSCTL_CLUSTER_VALIDATE_COMMON_PROPERTIES"; break;
    1608           0 :                 case CLUSCTL_CLUSTER_GET_COMMON_PROPERTY_FMTS: val = "CLUSCTL_CLUSTER_GET_COMMON_PROPERTY_FMTS"; break;
    1609           0 :                 case CLUSCTL_CLUSTER_ENUM_PRIVATE_PROPERTIES: val = "CLUSCTL_CLUSTER_ENUM_PRIVATE_PROPERTIES"; break;
    1610           0 :                 case CLUSCTL_CLUSTER_GET_RO_PRIVATE_PROPERTIES: val = "CLUSCTL_CLUSTER_GET_RO_PRIVATE_PROPERTIES"; break;
    1611           0 :                 case CLUSCTL_CLUSTER_GET_PRIVATE_PROPERTIES: val = "CLUSCTL_CLUSTER_GET_PRIVATE_PROPERTIES"; break;
    1612           0 :                 case CLUSCTL_CLUSTER_SET_PRIVATE_PROPERTIES: val = "CLUSCTL_CLUSTER_SET_PRIVATE_PROPERTIES"; break;
    1613           0 :                 case CLUSCTL_CLUSTER_VALIDATE_PRIVATE_PROPERTIES: val = "CLUSCTL_CLUSTER_VALIDATE_PRIVATE_PROPERTIES"; break;
    1614           0 :                 case CLUSCTL_CLUSTER_GET_SHARED_VOLUME_ID: val = "CLUSCTL_CLUSTER_GET_SHARED_VOLUME_ID"; break;
    1615           0 :                 case CLUSCTL_CLUSTER_UPGRADE_CLUSTER_VERSION: val = "CLUSCTL_CLUSTER_UPGRADE_CLUSTER_VERSION"; break;
    1616           0 :                 case CLUSCTL_CLUSTER_CLEAR_UPGRADE_IN_PROGRESS: val = "CLUSCTL_CLUSTER_CLEAR_UPGRADE_IN_PROGRESS"; break;
    1617           0 :                 case CLUSCTL_CLUSTER_IS_READY_FOR_UPGRADE: val = "CLUSCTL_CLUSTER_IS_READY_FOR_UPGRADE"; break;
    1618             :         }
    1619           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
    1620           0 : }
    1621             : 
    1622         112 : static enum ndr_err_code ndr_push_CLUSTER_PROPERTY_SYNTAX(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum CLUSTER_PROPERTY_SYNTAX r)
    1623             : {
    1624         112 :         NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
    1625           0 :         return NDR_ERR_SUCCESS;
    1626             : }
    1627             : 
    1628         112 : static enum ndr_err_code ndr_pull_CLUSTER_PROPERTY_SYNTAX(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum CLUSTER_PROPERTY_SYNTAX *r)
    1629             : {
    1630         112 :         uint32_t v;
    1631         112 :         NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
    1632         112 :         *r = v;
    1633         112 :         return NDR_ERR_SUCCESS;
    1634             : }
    1635             : 
    1636         112 : _PUBLIC_ void ndr_print_CLUSTER_PROPERTY_SYNTAX(struct ndr_print *ndr, const char *name, enum CLUSTER_PROPERTY_SYNTAX r)
    1637             : {
    1638         112 :         const char *val = NULL;
    1639             : 
    1640         112 :         switch (r) {
    1641          40 :                 case CLUSPROP_SYNTAX_ENDMARK: val = "CLUSPROP_SYNTAX_ENDMARK"; break;
    1642          36 :                 case CLUSPROP_SYNTAX_NAME: val = "CLUSPROP_SYNTAX_NAME"; break;
    1643           0 :                 case CLUSPROP_SYNTAX_RESCLASS: val = "CLUSPROP_SYNTAX_RESCLASS"; break;
    1644           8 :                 case CLUSPROP_SYNTAX_LIST_VALUE_SZ: val = "CLUSPROP_SYNTAX_LIST_VALUE_SZ"; break;
    1645           0 :                 case CLUSPROP_SYNTAX_LIST_VALUE_EXPAND_SZ: val = "CLUSPROP_SYNTAX_LIST_VALUE_EXPAND_SZ"; break;
    1646          28 :                 case CLUSPROP_SYNTAX_LIST_VALUE_DWORD: val = "CLUSPROP_SYNTAX_LIST_VALUE_DWORD"; break;
    1647           0 :                 case CLUSPROP_SYNTAX_LIST_VALUE_BINARY: val = "CLUSPROP_SYNTAX_LIST_VALUE_BINARY"; break;
    1648           0 :                 case CLUSPROP_SYNTAX_LIST_VALUE_MULTI_SZ: val = "CLUSPROP_SYNTAX_LIST_VALUE_MULTI_SZ"; break;
    1649           0 :                 case CLUSPROP_SYNTAX_LIST_VALUE_LONG: val = "CLUSPROP_SYNTAX_LIST_VALUE_LONG"; break;
    1650           0 :                 case CLUSPROP_SYNTAX_LIST_VALUE_EXPANDED_SZ: val = "CLUSPROP_SYNTAX_LIST_VALUE_EXPANDED_SZ"; break;
    1651           0 :                 case CLUSPROP_SYNTAX_LIST_VALUE_SECURITY_DESCRIPTOR: val = "CLUSPROP_SYNTAX_LIST_VALUE_SECURITY_DESCRIPTOR"; break;
    1652           0 :                 case CLUSPROP_SYNTAX_LIST_VALUE_LARGE_INTEGER: val = "CLUSPROP_SYNTAX_LIST_VALUE_LARGE_INTEGER"; break;
    1653           0 :                 case CLUSPROP_SYNTAX_LIST_VALUE_ULARGE_INTEGER: val = "CLUSPROP_SYNTAX_LIST_VALUE_ULARGE_INTEGER"; break;
    1654           0 :                 case CLUSPROP_SYNTAX_LIST_VALUE_WORD: val = "CLUSPROP_SYNTAX_LIST_VALUE_WORD"; break;
    1655           0 :                 case CLUSPROP_SYNTAX_LIST_VALUE_FILETIME: val = "CLUSPROP_SYNTAX_LIST_VALUE_FILETIME"; break;
    1656           0 :                 case CLUSPROP_SYNTAX_DISK_SIGNATURE: val = "CLUSPROP_SYNTAX_DISK_SIGNATURE"; break;
    1657           0 :                 case CLUSPROP_SYNTAX_SCSI_ADDRESS: val = "CLUSPROP_SYNTAX_SCSI_ADDRESS"; break;
    1658           0 :                 case CLUSPROP_SYNTAX_DISK_NUMBER: val = "CLUSPROP_SYNTAX_DISK_NUMBER"; break;
    1659           0 :                 case CLUSPROP_SYNTAX_PARTITION_INFO: val = "CLUSPROP_SYNTAX_PARTITION_INFO"; break;
    1660           0 :                 case CLUSPROP_SYNTAX_DISK_SERIALNUMBER: val = "CLUSPROP_SYNTAX_DISK_SERIALNUMBER"; break;
    1661           0 :                 case CLUSPROP_SYNTAX_DISK_GUID: val = "CLUSPROP_SYNTAX_DISK_GUID"; break;
    1662           0 :                 case CLUSPROP_SYNTAX_DISK_SIZE: val = "CLUSPROP_SYNTAX_DISK_SIZE"; break;
    1663           0 :                 case CLUSPROP_SYNTAX_PARTITION_INFO_EX: val = "CLUSPROP_SYNTAX_PARTITION_INFO_EX"; break;
    1664             :         }
    1665         112 :         ndr_print_enum(ndr, name, "ENUM", val, r);
    1666         112 : }
    1667             : 
    1668          36 : static enum ndr_err_code ndr_push_clusapi_propertyValues(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct clusapi_propertyValues *r)
    1669             : {
    1670          36 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1671          36 :         if (ndr_flags & NDR_SCALARS) {
    1672          36 :                 NDR_CHECK(ndr_push_align(ndr, 4));
    1673          72 :                 NDR_CHECK(ndr_push_CLUSTER_PROPERTY_SYNTAX(ndr, NDR_SCALARS, r->Syntax));
    1674          36 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->Size));
    1675             :                 {
    1676          36 :                         libndr_flags _flags_save_DATA_BLOB = ndr->flags;
    1677          36 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
    1678             :                         {
    1679          36 :                                 struct ndr_push *_ndr_Buffer;
    1680          36 :                                 NDR_CHECK(ndr_push_subcontext_start(ndr, &_ndr_Buffer, 0, r->Size));
    1681          36 :                                 NDR_CHECK(ndr_push_DATA_BLOB(_ndr_Buffer, NDR_SCALARS, r->Buffer));
    1682          36 :                                 NDR_CHECK(ndr_push_subcontext_end(ndr, _ndr_Buffer, 0, r->Size));
    1683             :                         }
    1684          36 :                         ndr->flags = _flags_save_DATA_BLOB;
    1685             :                 }
    1686             :                 {
    1687          36 :                         libndr_flags _flags_save_DATA_BLOB = ndr->flags;
    1688          36 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_ALIGN4);
    1689          36 :                         NDR_CHECK(ndr_push_DATA_BLOB(ndr, NDR_SCALARS, r->Padding));
    1690          36 :                         ndr->flags = _flags_save_DATA_BLOB;
    1691             :                 }
    1692          36 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
    1693             :         }
    1694          36 :         if (ndr_flags & NDR_BUFFERS) {
    1695          36 :         }
    1696          36 :         return NDR_ERR_SUCCESS;
    1697             : }
    1698             : 
    1699          36 : static enum ndr_err_code ndr_pull_clusapi_propertyValues(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct clusapi_propertyValues *r)
    1700             : {
    1701          36 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1702          36 :         if (ndr_flags & NDR_SCALARS) {
    1703          36 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
    1704          72 :                 NDR_CHECK(ndr_pull_CLUSTER_PROPERTY_SYNTAX(ndr, NDR_SCALARS, &r->Syntax));
    1705          36 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->Size));
    1706             :                 {
    1707          36 :                         libndr_flags _flags_save_DATA_BLOB = ndr->flags;
    1708          36 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
    1709             :                         {
    1710          36 :                                 struct ndr_pull *_ndr_Buffer;
    1711          36 :                                 ssize_t sub_size = r->Size;
    1712          36 :                                 NDR_CHECK(ndr_pull_subcontext_start(ndr, &_ndr_Buffer, 0, sub_size));
    1713          36 :                                 NDR_CHECK(ndr_pull_DATA_BLOB(_ndr_Buffer, NDR_SCALARS, &r->Buffer));
    1714          36 :                                 NDR_CHECK(ndr_pull_subcontext_end(ndr, _ndr_Buffer, 0, sub_size));
    1715             :                         }
    1716          36 :                         ndr->flags = _flags_save_DATA_BLOB;
    1717             :                 }
    1718             :                 {
    1719          36 :                         libndr_flags _flags_save_DATA_BLOB = ndr->flags;
    1720          36 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_ALIGN4);
    1721          36 :                         NDR_CHECK(ndr_pull_DATA_BLOB(ndr, NDR_SCALARS, &r->Padding));
    1722          36 :                         ndr->flags = _flags_save_DATA_BLOB;
    1723             :                 }
    1724          36 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
    1725             :         }
    1726          36 :         if (ndr_flags & NDR_BUFFERS) {
    1727          36 :         }
    1728          36 :         return NDR_ERR_SUCCESS;
    1729             : }
    1730             : 
    1731          36 : _PUBLIC_ void ndr_print_clusapi_propertyValues(struct ndr_print *ndr, const char *name, const struct clusapi_propertyValues *r)
    1732             : {
    1733          36 :         ndr_print_struct(ndr, name, "clusapi_propertyValues");
    1734          36 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1735          36 :         ndr->depth++;
    1736          36 :         ndr_print_CLUSTER_PROPERTY_SYNTAX(ndr, "Syntax", r->Syntax);
    1737          36 :         ndr_print_uint32(ndr, "Size", r->Size);
    1738             :         {
    1739          36 :                 libndr_flags _flags_save_DATA_BLOB = ndr->flags;
    1740          36 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
    1741          36 :                 ndr_print_DATA_BLOB(ndr, "Buffer", r->Buffer);
    1742          36 :                 ndr->flags = _flags_save_DATA_BLOB;
    1743             :         }
    1744             :         {
    1745          36 :                 libndr_flags _flags_save_DATA_BLOB = ndr->flags;
    1746          36 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_ALIGN4);
    1747          36 :                 ndr_print_DATA_BLOB(ndr, "Padding", r->Padding);
    1748          36 :                 ndr->flags = _flags_save_DATA_BLOB;
    1749             :         }
    1750          36 :         ndr->depth--;
    1751             : }
    1752             : 
    1753          36 : static enum ndr_err_code ndr_push_clusapi_propertyValue(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct clusapi_propertyValue *r)
    1754             : {
    1755          36 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1756          36 :         if (ndr_flags & NDR_SCALARS) {
    1757          36 :                 NDR_CHECK(ndr_push_align(ndr, 4));
    1758          72 :                 NDR_CHECK(ndr_push_CLUSTER_PROPERTY_SYNTAX(ndr, NDR_SCALARS, CLUSPROP_SYNTAX_NAME));
    1759          36 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, strlen_m_term(r->buffer) * 2));
    1760             :                 {
    1761          36 :                         libndr_flags _flags_save_string = ndr->flags;
    1762          36 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
    1763          36 :                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->buffer));
    1764          36 :                         ndr->flags = _flags_save_string;
    1765             :                 }
    1766             :                 {
    1767          36 :                         libndr_flags _flags_save_DATA_BLOB = ndr->flags;
    1768          36 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_ALIGN2);
    1769          36 :                         NDR_CHECK(ndr_push_DATA_BLOB(ndr, NDR_SCALARS, r->padding));
    1770          36 :                         ndr->flags = _flags_save_DATA_BLOB;
    1771             :                 }
    1772          36 :                 NDR_CHECK(ndr_push_clusapi_propertyValues(ndr, NDR_SCALARS, &r->PropertyValues));
    1773          72 :                 NDR_CHECK(ndr_push_CLUSTER_PROPERTY_SYNTAX(ndr, NDR_SCALARS, CLUSPROP_SYNTAX_ENDMARK));
    1774          36 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
    1775             :         }
    1776          36 :         if (ndr_flags & NDR_BUFFERS) {
    1777          36 :         }
    1778          36 :         return NDR_ERR_SUCCESS;
    1779             : }
    1780             : 
    1781          36 : static enum ndr_err_code ndr_pull_clusapi_propertyValue(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct clusapi_propertyValue *r)
    1782             : {
    1783          36 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1784          36 :         if (ndr_flags & NDR_SCALARS) {
    1785          36 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
    1786          72 :                 NDR_CHECK(ndr_pull_CLUSTER_PROPERTY_SYNTAX(ndr, NDR_SCALARS, &r->syntax_name));
    1787          36 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->size));
    1788             :                 {
    1789          36 :                         libndr_flags _flags_save_string = ndr->flags;
    1790          36 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
    1791          36 :                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->buffer));
    1792          36 :                         ndr->flags = _flags_save_string;
    1793             :                 }
    1794             :                 {
    1795          36 :                         libndr_flags _flags_save_DATA_BLOB = ndr->flags;
    1796          36 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_ALIGN2);
    1797          36 :                         NDR_CHECK(ndr_pull_DATA_BLOB(ndr, NDR_SCALARS, &r->padding));
    1798          36 :                         ndr->flags = _flags_save_DATA_BLOB;
    1799             :                 }
    1800          36 :                 NDR_CHECK(ndr_pull_clusapi_propertyValues(ndr, NDR_SCALARS, &r->PropertyValues));
    1801          72 :                 NDR_CHECK(ndr_pull_CLUSTER_PROPERTY_SYNTAX(ndr, NDR_SCALARS, &r->end_mark));
    1802          36 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
    1803             :         }
    1804          36 :         if (ndr_flags & NDR_BUFFERS) {
    1805          36 :         }
    1806          36 :         return NDR_ERR_SUCCESS;
    1807             : }
    1808             : 
    1809          36 : _PUBLIC_ void ndr_print_clusapi_propertyValue(struct ndr_print *ndr, const char *name, const struct clusapi_propertyValue *r)
    1810             : {
    1811          36 :         ndr_print_struct(ndr, name, "clusapi_propertyValue");
    1812          36 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1813          36 :         ndr->depth++;
    1814          36 :         ndr_print_CLUSTER_PROPERTY_SYNTAX(ndr, "syntax_name", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?CLUSPROP_SYNTAX_NAME:r->syntax_name);
    1815          36 :         ndr_print_uint32(ndr, "size", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?strlen_m_term(r->buffer) * 2:r->size);
    1816             :         {
    1817          36 :                 libndr_flags _flags_save_string = ndr->flags;
    1818          36 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
    1819          36 :                 ndr_print_string(ndr, "buffer", r->buffer);
    1820          36 :                 ndr->flags = _flags_save_string;
    1821             :         }
    1822             :         {
    1823          36 :                 libndr_flags _flags_save_DATA_BLOB = ndr->flags;
    1824          36 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_ALIGN2);
    1825          36 :                 ndr_print_DATA_BLOB(ndr, "padding", r->padding);
    1826          36 :                 ndr->flags = _flags_save_DATA_BLOB;
    1827             :         }
    1828          36 :         ndr_print_clusapi_propertyValues(ndr, "PropertyValues", &r->PropertyValues);
    1829          36 :         ndr_print_CLUSTER_PROPERTY_SYNTAX(ndr, "end_mark", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?CLUSPROP_SYNTAX_ENDMARK:r->end_mark);
    1830          36 :         ndr->depth--;
    1831             : }
    1832             : 
    1833           4 : _PUBLIC_ enum ndr_err_code ndr_push_clusapi_PROPERTY_LIST(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct clusapi_PROPERTY_LIST *r)
    1834             : {
    1835           4 :         uint32_t cntr_propertyValues_0;
    1836           4 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1837           4 :         if (ndr_flags & NDR_SCALARS) {
    1838           4 :                 NDR_CHECK(ndr_push_align(ndr, 4));
    1839           4 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->propertyCount));
    1840          40 :                 for (cntr_propertyValues_0 = 0; cntr_propertyValues_0 < (r->propertyCount); cntr_propertyValues_0++) {
    1841          36 :                         NDR_CHECK(ndr_push_clusapi_propertyValue(ndr, NDR_SCALARS, &r->propertyValues[cntr_propertyValues_0]));
    1842             :                 }
    1843           8 :                 NDR_CHECK(ndr_push_CLUSTER_PROPERTY_SYNTAX(ndr, NDR_SCALARS, CLUSPROP_SYNTAX_ENDMARK));
    1844           4 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
    1845             :         }
    1846           4 :         if (ndr_flags & NDR_BUFFERS) {
    1847           4 :         }
    1848           4 :         return NDR_ERR_SUCCESS;
    1849             : }
    1850             : 
    1851           4 : _PUBLIC_ enum ndr_err_code ndr_pull_clusapi_PROPERTY_LIST(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct clusapi_PROPERTY_LIST *r)
    1852             : {
    1853           4 :         uint32_t size_propertyValues_0 = 0;
    1854           4 :         uint32_t cntr_propertyValues_0;
    1855           4 :         TALLOC_CTX *_mem_save_propertyValues_0 = NULL;
    1856           4 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1857           4 :         if (ndr_flags & NDR_SCALARS) {
    1858           4 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
    1859           4 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->propertyCount));
    1860           4 :                 size_propertyValues_0 = r->propertyCount;
    1861           4 :                 NDR_PULL_ALLOC_N(ndr, r->propertyValues, size_propertyValues_0);
    1862           4 :                 _mem_save_propertyValues_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1863           4 :                 NDR_PULL_SET_MEM_CTX(ndr, r->propertyValues, 0);
    1864          40 :                 for (cntr_propertyValues_0 = 0; cntr_propertyValues_0 < (size_propertyValues_0); cntr_propertyValues_0++) {
    1865          36 :                         NDR_CHECK(ndr_pull_clusapi_propertyValue(ndr, NDR_SCALARS, &r->propertyValues[cntr_propertyValues_0]));
    1866             :                 }
    1867           4 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_propertyValues_0, 0);
    1868           8 :                 NDR_CHECK(ndr_pull_CLUSTER_PROPERTY_SYNTAX(ndr, NDR_SCALARS, &r->end_mark));
    1869           4 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
    1870             :         }
    1871           4 :         if (ndr_flags & NDR_BUFFERS) {
    1872           4 :         }
    1873           4 :         return NDR_ERR_SUCCESS;
    1874             : }
    1875             : 
    1876           0 : static void ndr_print_flags_clusapi_PROPERTY_LIST(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct clusapi_PROPERTY_LIST *r)
    1877             : {
    1878           0 :         ndr_print_clusapi_PROPERTY_LIST(ndr, name, r);
    1879           0 : }
    1880             : 
    1881           4 : _PUBLIC_ void ndr_print_clusapi_PROPERTY_LIST(struct ndr_print *ndr, const char *name, const struct clusapi_PROPERTY_LIST *r)
    1882             : {
    1883           4 :         uint32_t cntr_propertyValues_0;
    1884           4 :         ndr_print_struct(ndr, name, "clusapi_PROPERTY_LIST");
    1885           4 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1886           4 :         ndr->depth++;
    1887           4 :         ndr_print_uint32(ndr, "propertyCount", r->propertyCount);
    1888           4 :         ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "propertyValues", (uint32_t)(r->propertyCount));
    1889           4 :         ndr->depth++;
    1890          40 :         for (cntr_propertyValues_0 = 0; cntr_propertyValues_0 < (r->propertyCount); cntr_propertyValues_0++) {
    1891          36 :                 ndr_print_clusapi_propertyValue(ndr, "propertyValues", &r->propertyValues[cntr_propertyValues_0]);
    1892             :         }
    1893           4 :         ndr->depth--;
    1894           4 :         ndr_print_CLUSTER_PROPERTY_SYNTAX(ndr, "end_mark", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?CLUSPROP_SYNTAX_ENDMARK:r->end_mark);
    1895           4 :         ndr->depth--;
    1896             : }
    1897             : 
    1898           0 : static enum ndr_err_code ndr_push_clusapi_DesiredAccessMask(struct ndr_push *ndr, ndr_flags_type ndr_flags, uint32_t r)
    1899             : {
    1900           0 :         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
    1901           0 :         return NDR_ERR_SUCCESS;
    1902             : }
    1903             : 
    1904           0 : static enum ndr_err_code ndr_pull_clusapi_DesiredAccessMask(struct ndr_pull *ndr, ndr_flags_type ndr_flags, uint32_t *r)
    1905             : {
    1906           0 :         uint32_t v;
    1907           0 :         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
    1908           0 :         *r = v;
    1909           0 :         return NDR_ERR_SUCCESS;
    1910             : }
    1911             : 
    1912           0 : _PUBLIC_ void ndr_print_clusapi_DesiredAccessMask(struct ndr_print *ndr, const char *name, uint32_t r)
    1913             : {
    1914           0 :         ndr_print_uint32(ndr, name, r);
    1915           0 :         ndr->depth++;
    1916           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSAPI_READ_ACCESS", CLUSAPI_READ_ACCESS, r);
    1917           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSAPI_CHANGE_ACCESS", CLUSAPI_CHANGE_ACCESS, r);
    1918           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSAPI_GENERIC_READ", CLUSAPI_GENERIC_READ, r);
    1919           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSAPI_GENERIC_WRITE", CLUSAPI_GENERIC_WRITE, r);
    1920           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSAPI_GENERIC_EXECUTE", CLUSAPI_GENERIC_EXECUTE, r);
    1921           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSAPI_GENERIC_ALL", CLUSAPI_GENERIC_ALL, r);
    1922           0 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CLUSAPI_MAXIMUM_ALLOWED", CLUSAPI_MAXIMUM_ALLOWED, r);
    1923           0 :         ndr->depth--;
    1924           0 : }
    1925             : 
    1926           0 : static enum ndr_err_code ndr_push_NOTIFY_FILTER_AND_TYPE_RPC(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct NOTIFY_FILTER_AND_TYPE_RPC *r)
    1927             : {
    1928           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1929           0 :         if (ndr_flags & NDR_SCALARS) {
    1930           0 :                 NDR_CHECK(ndr_push_align(ndr, 8));
    1931           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwObjectType));
    1932           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->FilterFlags));
    1933           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
    1934             :         }
    1935           0 :         if (ndr_flags & NDR_BUFFERS) {
    1936           0 :         }
    1937           0 :         return NDR_ERR_SUCCESS;
    1938             : }
    1939             : 
    1940           0 : static enum ndr_err_code ndr_pull_NOTIFY_FILTER_AND_TYPE_RPC(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct NOTIFY_FILTER_AND_TYPE_RPC *r)
    1941             : {
    1942           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1943           0 :         if (ndr_flags & NDR_SCALARS) {
    1944           0 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
    1945           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwObjectType));
    1946           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->FilterFlags));
    1947           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
    1948             :         }
    1949           0 :         if (ndr_flags & NDR_BUFFERS) {
    1950           0 :         }
    1951           0 :         return NDR_ERR_SUCCESS;
    1952             : }
    1953             : 
    1954           0 : _PUBLIC_ void ndr_print_NOTIFY_FILTER_AND_TYPE_RPC(struct ndr_print *ndr, const char *name, const struct NOTIFY_FILTER_AND_TYPE_RPC *r)
    1955             : {
    1956           0 :         ndr_print_struct(ndr, name, "NOTIFY_FILTER_AND_TYPE_RPC");
    1957           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1958           0 :         ndr->depth++;
    1959           0 :         ndr_print_uint32(ndr, "dwObjectType", r->dwObjectType);
    1960           0 :         ndr_print_hyper(ndr, "FilterFlags", r->FilterFlags);
    1961           0 :         ndr->depth--;
    1962             : }
    1963             : 
    1964           0 : static enum ndr_err_code ndr_push_NOTIFICATION_DATA_RPC(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct NOTIFICATION_DATA_RPC *r)
    1965             : {
    1966           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1967           0 :         if (ndr_flags & NDR_SCALARS) {
    1968           0 :                 NDR_CHECK(ndr_push_align(ndr, 8));
    1969           0 :                 NDR_CHECK(ndr_push_NOTIFY_FILTER_AND_TYPE_RPC(ndr, NDR_SCALARS, &r->FilterAndType));
    1970           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->buffer));
    1971           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwBufferSize));
    1972           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->ObjectId));
    1973           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->ParentId));
    1974           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->Name));
    1975           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->Type));
    1976           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
    1977             :         }
    1978           0 :         if (ndr_flags & NDR_BUFFERS) {
    1979           0 :                 if (r->buffer) {
    1980           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->dwBufferSize));
    1981           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->buffer, r->dwBufferSize));
    1982             :                 }
    1983           0 :                 if (r->ObjectId) {
    1984           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->ObjectId, CH_UTF16)));
    1985           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    1986           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->ObjectId, CH_UTF16)));
    1987           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->ObjectId, ndr_charset_length(r->ObjectId, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    1988             :                 }
    1989           0 :                 if (r->ParentId) {
    1990           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->ParentId, CH_UTF16)));
    1991           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    1992           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->ParentId, CH_UTF16)));
    1993           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->ParentId, ndr_charset_length(r->ParentId, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    1994             :                 }
    1995           0 :                 if (r->Name) {
    1996           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Name, CH_UTF16)));
    1997           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    1998           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Name, CH_UTF16)));
    1999           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->Name, ndr_charset_length(r->Name, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    2000             :                 }
    2001           0 :                 if (r->Type) {
    2002           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Type, CH_UTF16)));
    2003           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    2004           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Type, CH_UTF16)));
    2005           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->Type, ndr_charset_length(r->Type, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    2006             :                 }
    2007             :         }
    2008           0 :         return NDR_ERR_SUCCESS;
    2009             : }
    2010             : 
    2011           0 : static enum ndr_err_code ndr_pull_NOTIFICATION_DATA_RPC(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct NOTIFICATION_DATA_RPC *r)
    2012             : {
    2013           0 :         uint32_t _ptr_buffer;
    2014           0 :         uint32_t size_buffer_1 = 0;
    2015           0 :         TALLOC_CTX *_mem_save_buffer_0 = NULL;
    2016           0 :         uint32_t _ptr_ObjectId;
    2017           0 :         uint32_t size_ObjectId_1 = 0;
    2018           0 :         uint32_t length_ObjectId_1 = 0;
    2019           0 :         TALLOC_CTX *_mem_save_ObjectId_0 = NULL;
    2020           0 :         uint32_t _ptr_ParentId;
    2021           0 :         uint32_t size_ParentId_1 = 0;
    2022           0 :         uint32_t length_ParentId_1 = 0;
    2023           0 :         TALLOC_CTX *_mem_save_ParentId_0 = NULL;
    2024           0 :         uint32_t _ptr_Name;
    2025           0 :         uint32_t size_Name_1 = 0;
    2026           0 :         uint32_t length_Name_1 = 0;
    2027           0 :         TALLOC_CTX *_mem_save_Name_0 = NULL;
    2028           0 :         uint32_t _ptr_Type;
    2029           0 :         uint32_t size_Type_1 = 0;
    2030           0 :         uint32_t length_Type_1 = 0;
    2031           0 :         TALLOC_CTX *_mem_save_Type_0 = NULL;
    2032           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    2033           0 :         if (ndr_flags & NDR_SCALARS) {
    2034           0 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
    2035           0 :                 NDR_CHECK(ndr_pull_NOTIFY_FILTER_AND_TYPE_RPC(ndr, NDR_SCALARS, &r->FilterAndType));
    2036           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_buffer));
    2037           0 :                 if (_ptr_buffer) {
    2038           0 :                         NDR_PULL_ALLOC(ndr, r->buffer);
    2039             :                 } else {
    2040           0 :                         r->buffer = NULL;
    2041             :                 }
    2042           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwBufferSize));
    2043           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ObjectId));
    2044           0 :                 if (_ptr_ObjectId) {
    2045           0 :                         NDR_PULL_ALLOC(ndr, r->ObjectId);
    2046             :                 } else {
    2047           0 :                         r->ObjectId = NULL;
    2048             :                 }
    2049           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ParentId));
    2050           0 :                 if (_ptr_ParentId) {
    2051           0 :                         NDR_PULL_ALLOC(ndr, r->ParentId);
    2052             :                 } else {
    2053           0 :                         r->ParentId = NULL;
    2054             :                 }
    2055           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Name));
    2056           0 :                 if (_ptr_Name) {
    2057           0 :                         NDR_PULL_ALLOC(ndr, r->Name);
    2058             :                 } else {
    2059           0 :                         r->Name = NULL;
    2060             :                 }
    2061           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Type));
    2062           0 :                 if (_ptr_Type) {
    2063           0 :                         NDR_PULL_ALLOC(ndr, r->Type);
    2064             :                 } else {
    2065           0 :                         r->Type = NULL;
    2066             :                 }
    2067           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
    2068             :         }
    2069           0 :         if (ndr_flags & NDR_BUFFERS) {
    2070           0 :                 if (r->buffer) {
    2071           0 :                         _mem_save_buffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2072           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->buffer, 0);
    2073           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->buffer));
    2074           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->buffer, &size_buffer_1));
    2075           0 :                         NDR_PULL_ALLOC_N(ndr, r->buffer, size_buffer_1);
    2076           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->buffer, size_buffer_1));
    2077           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_buffer_0, 0);
    2078             :                 }
    2079           0 :                 if (r->ObjectId) {
    2080           0 :                         _mem_save_ObjectId_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2081           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->ObjectId, 0);
    2082           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->ObjectId));
    2083           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->ObjectId));
    2084           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->ObjectId, &size_ObjectId_1));
    2085           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->ObjectId, &length_ObjectId_1));
    2086           0 :                         if (length_ObjectId_1 > size_ObjectId_1) {
    2087           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_ObjectId_1, length_ObjectId_1);
    2088             :                         }
    2089           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_ObjectId_1, sizeof(uint16_t)));
    2090           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->ObjectId, length_ObjectId_1, sizeof(uint16_t), CH_UTF16));
    2091           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ObjectId_0, 0);
    2092             :                 }
    2093           0 :                 if (r->ParentId) {
    2094           0 :                         _mem_save_ParentId_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2095           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->ParentId, 0);
    2096           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->ParentId));
    2097           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->ParentId));
    2098           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->ParentId, &size_ParentId_1));
    2099           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->ParentId, &length_ParentId_1));
    2100           0 :                         if (length_ParentId_1 > size_ParentId_1) {
    2101           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_ParentId_1, length_ParentId_1);
    2102             :                         }
    2103           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_ParentId_1, sizeof(uint16_t)));
    2104           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->ParentId, length_ParentId_1, sizeof(uint16_t), CH_UTF16));
    2105           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ParentId_0, 0);
    2106             :                 }
    2107           0 :                 if (r->Name) {
    2108           0 :                         _mem_save_Name_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2109           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->Name, 0);
    2110           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->Name));
    2111           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->Name));
    2112           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->Name, &size_Name_1));
    2113           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->Name, &length_Name_1));
    2114           0 :                         if (length_Name_1 > size_Name_1) {
    2115           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_Name_1, length_Name_1);
    2116             :                         }
    2117           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_Name_1, sizeof(uint16_t)));
    2118           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->Name, length_Name_1, sizeof(uint16_t), CH_UTF16));
    2119           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Name_0, 0);
    2120             :                 }
    2121           0 :                 if (r->Type) {
    2122           0 :                         _mem_save_Type_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2123           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->Type, 0);
    2124           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->Type));
    2125           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->Type));
    2126           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->Type, &size_Type_1));
    2127           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->Type, &length_Type_1));
    2128           0 :                         if (length_Type_1 > size_Type_1) {
    2129           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_Type_1, length_Type_1);
    2130             :                         }
    2131           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_Type_1, sizeof(uint16_t)));
    2132           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->Type, length_Type_1, sizeof(uint16_t), CH_UTF16));
    2133           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Type_0, 0);
    2134             :                 }
    2135           0 :                 if (r->buffer) {
    2136           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->buffer, r->dwBufferSize));
    2137             :                 }
    2138             :         }
    2139           0 :         return NDR_ERR_SUCCESS;
    2140             : }
    2141             : 
    2142           0 : _PUBLIC_ void ndr_print_NOTIFICATION_DATA_RPC(struct ndr_print *ndr, const char *name, const struct NOTIFICATION_DATA_RPC *r)
    2143             : {
    2144           0 :         ndr_print_struct(ndr, name, "NOTIFICATION_DATA_RPC");
    2145           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2146           0 :         ndr->depth++;
    2147           0 :         ndr_print_NOTIFY_FILTER_AND_TYPE_RPC(ndr, "FilterAndType", &r->FilterAndType);
    2148           0 :         ndr_print_ptr(ndr, "buffer", r->buffer);
    2149           0 :         ndr->depth++;
    2150           0 :         if (r->buffer) {
    2151           0 :                 ndr_print_array_uint8(ndr, "buffer", r->buffer, r->dwBufferSize);
    2152             :         }
    2153           0 :         ndr->depth--;
    2154           0 :         ndr_print_uint32(ndr, "dwBufferSize", r->dwBufferSize);
    2155           0 :         ndr_print_ptr(ndr, "ObjectId", r->ObjectId);
    2156           0 :         ndr->depth++;
    2157           0 :         if (r->ObjectId) {
    2158           0 :                 ndr_print_string(ndr, "ObjectId", r->ObjectId);
    2159             :         }
    2160           0 :         ndr->depth--;
    2161           0 :         ndr_print_ptr(ndr, "ParentId", r->ParentId);
    2162           0 :         ndr->depth++;
    2163           0 :         if (r->ParentId) {
    2164           0 :                 ndr_print_string(ndr, "ParentId", r->ParentId);
    2165             :         }
    2166           0 :         ndr->depth--;
    2167           0 :         ndr_print_ptr(ndr, "Name", r->Name);
    2168           0 :         ndr->depth++;
    2169           0 :         if (r->Name) {
    2170           0 :                 ndr_print_string(ndr, "Name", r->Name);
    2171             :         }
    2172           0 :         ndr->depth--;
    2173           0 :         ndr_print_ptr(ndr, "Type", r->Type);
    2174           0 :         ndr->depth++;
    2175           0 :         if (r->Type) {
    2176           0 :                 ndr_print_string(ndr, "Type", r->Type);
    2177             :         }
    2178           0 :         ndr->depth--;
    2179           0 :         ndr->depth--;
    2180             : }
    2181             : 
    2182           0 : static enum ndr_err_code ndr_push_NOTIFICATION_RPC(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct NOTIFICATION_RPC *r)
    2183             : {
    2184           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    2185           0 :         if (ndr_flags & NDR_SCALARS) {
    2186           0 :                 NDR_CHECK(ndr_push_align(ndr, 8));
    2187           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->dwNotifyKey));
    2188           0 :                 NDR_CHECK(ndr_push_NOTIFICATION_DATA_RPC(ndr, NDR_SCALARS, &r->NotificationData));
    2189           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
    2190             :         }
    2191           0 :         if (ndr_flags & NDR_BUFFERS) {
    2192           0 :                 if (r->dwNotifyKey) {
    2193           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->dwNotifyKey));
    2194             :                 }
    2195           0 :                 NDR_CHECK(ndr_push_NOTIFICATION_DATA_RPC(ndr, NDR_BUFFERS, &r->NotificationData));
    2196             :         }
    2197           0 :         return NDR_ERR_SUCCESS;
    2198             : }
    2199             : 
    2200           0 : static enum ndr_err_code ndr_pull_NOTIFICATION_RPC(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct NOTIFICATION_RPC *r)
    2201             : {
    2202           0 :         uint32_t _ptr_dwNotifyKey;
    2203           0 :         TALLOC_CTX *_mem_save_dwNotifyKey_0 = NULL;
    2204           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    2205           0 :         if (ndr_flags & NDR_SCALARS) {
    2206           0 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
    2207           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_dwNotifyKey));
    2208           0 :                 if (_ptr_dwNotifyKey) {
    2209           0 :                         NDR_PULL_ALLOC(ndr, r->dwNotifyKey);
    2210             :                 } else {
    2211           0 :                         r->dwNotifyKey = NULL;
    2212             :                 }
    2213           0 :                 NDR_CHECK(ndr_pull_NOTIFICATION_DATA_RPC(ndr, NDR_SCALARS, &r->NotificationData));
    2214           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
    2215             :         }
    2216           0 :         if (ndr_flags & NDR_BUFFERS) {
    2217           0 :                 if (r->dwNotifyKey) {
    2218           0 :                         _mem_save_dwNotifyKey_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2219           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->dwNotifyKey, 0);
    2220           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->dwNotifyKey));
    2221           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dwNotifyKey_0, 0);
    2222             :                 }
    2223           0 :                 NDR_CHECK(ndr_pull_NOTIFICATION_DATA_RPC(ndr, NDR_BUFFERS, &r->NotificationData));
    2224             :         }
    2225           0 :         return NDR_ERR_SUCCESS;
    2226             : }
    2227             : 
    2228           0 : _PUBLIC_ void ndr_print_NOTIFICATION_RPC(struct ndr_print *ndr, const char *name, const struct NOTIFICATION_RPC *r)
    2229             : {
    2230           0 :         ndr_print_struct(ndr, name, "NOTIFICATION_RPC");
    2231           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2232           0 :         ndr->depth++;
    2233           0 :         ndr_print_ptr(ndr, "dwNotifyKey", r->dwNotifyKey);
    2234           0 :         ndr->depth++;
    2235           0 :         if (r->dwNotifyKey) {
    2236           0 :                 ndr_print_uint32(ndr, "dwNotifyKey", *r->dwNotifyKey);
    2237             :         }
    2238           0 :         ndr->depth--;
    2239           0 :         ndr_print_NOTIFICATION_DATA_RPC(ndr, "NotificationData", &r->NotificationData);
    2240           0 :         ndr->depth--;
    2241             : }
    2242             : 
    2243           0 : static enum ndr_err_code ndr_push_CLUSTER_DISKID(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct CLUSTER_DISKID *r)
    2244             : {
    2245           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    2246           0 :         if (ndr_flags & NDR_SCALARS) {
    2247           0 :                 NDR_CHECK(ndr_push_align(ndr, 4));
    2248           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->DiskIdType));
    2249           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->DiskIdBlob, 16));
    2250           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
    2251             :         }
    2252           0 :         if (ndr_flags & NDR_BUFFERS) {
    2253           0 :         }
    2254           0 :         return NDR_ERR_SUCCESS;
    2255             : }
    2256             : 
    2257           0 : static enum ndr_err_code ndr_pull_CLUSTER_DISKID(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct CLUSTER_DISKID *r)
    2258             : {
    2259           0 :         uint32_t size_DiskIdBlob_0 = 0;
    2260           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    2261           0 :         if (ndr_flags & NDR_SCALARS) {
    2262           0 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
    2263           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->DiskIdType));
    2264           0 :                 size_DiskIdBlob_0 = 16;
    2265           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->DiskIdBlob, size_DiskIdBlob_0));
    2266           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
    2267             :         }
    2268           0 :         if (ndr_flags & NDR_BUFFERS) {
    2269           0 :         }
    2270           0 :         return NDR_ERR_SUCCESS;
    2271             : }
    2272             : 
    2273           0 : _PUBLIC_ void ndr_print_CLUSTER_DISKID(struct ndr_print *ndr, const char *name, const struct CLUSTER_DISKID *r)
    2274             : {
    2275           0 :         ndr_print_struct(ndr, name, "CLUSTER_DISKID");
    2276           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2277           0 :         ndr->depth++;
    2278           0 :         ndr_print_uint32(ndr, "DiskIdType", r->DiskIdType);
    2279           0 :         ndr_print_array_uint8(ndr, "DiskIdBlob", r->DiskIdBlob, 16);
    2280           0 :         ndr->depth--;
    2281             : }
    2282             : 
    2283           0 : static enum ndr_err_code ndr_push_CLUSTER_MRR_NODE_RESPONSE(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct CLUSTER_MRR_NODE_RESPONSE *r)
    2284             : {
    2285           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    2286           0 :         if (ndr_flags & NDR_SCALARS) {
    2287           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
    2288           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->pszNodeName));
    2289           0 :                 NDR_CHECK(ndr_push_HRESULT(ndr, NDR_SCALARS, r->ResultCode));
    2290           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->ResultSize));
    2291           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->pResultData));
    2292           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
    2293             :         }
    2294           0 :         if (ndr_flags & NDR_BUFFERS) {
    2295           0 :                 if (r->pszNodeName) {
    2296           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->pszNodeName, CH_UTF16)));
    2297           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    2298           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->pszNodeName, CH_UTF16)));
    2299           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->pszNodeName, ndr_charset_length(r->pszNodeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    2300             :                 }
    2301           0 :                 if (r->pResultData) {
    2302           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->ResultSize));
    2303           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->pResultData, r->ResultSize));
    2304             :                 }
    2305             :         }
    2306           0 :         return NDR_ERR_SUCCESS;
    2307             : }
    2308             : 
    2309           0 : static enum ndr_err_code ndr_pull_CLUSTER_MRR_NODE_RESPONSE(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct CLUSTER_MRR_NODE_RESPONSE *r)
    2310             : {
    2311           0 :         uint32_t _ptr_pszNodeName;
    2312           0 :         uint32_t size_pszNodeName_1 = 0;
    2313           0 :         uint32_t length_pszNodeName_1 = 0;
    2314           0 :         TALLOC_CTX *_mem_save_pszNodeName_0 = NULL;
    2315           0 :         uint32_t _ptr_pResultData;
    2316           0 :         uint32_t size_pResultData_1 = 0;
    2317           0 :         TALLOC_CTX *_mem_save_pResultData_0 = NULL;
    2318           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    2319           0 :         if (ndr_flags & NDR_SCALARS) {
    2320           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
    2321           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pszNodeName));
    2322           0 :                 if (_ptr_pszNodeName) {
    2323           0 :                         NDR_PULL_ALLOC(ndr, r->pszNodeName);
    2324             :                 } else {
    2325           0 :                         r->pszNodeName = NULL;
    2326             :                 }
    2327           0 :                 NDR_CHECK(ndr_pull_HRESULT(ndr, NDR_SCALARS, &r->ResultCode));
    2328           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->ResultSize));
    2329           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pResultData));
    2330           0 :                 if (_ptr_pResultData) {
    2331           0 :                         NDR_PULL_ALLOC(ndr, r->pResultData);
    2332             :                 } else {
    2333           0 :                         r->pResultData = NULL;
    2334             :                 }
    2335           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
    2336             :         }
    2337           0 :         if (ndr_flags & NDR_BUFFERS) {
    2338           0 :                 if (r->pszNodeName) {
    2339           0 :                         _mem_save_pszNodeName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2340           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->pszNodeName, 0);
    2341           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->pszNodeName));
    2342           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->pszNodeName));
    2343           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->pszNodeName, &size_pszNodeName_1));
    2344           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->pszNodeName, &length_pszNodeName_1));
    2345           0 :                         if (length_pszNodeName_1 > size_pszNodeName_1) {
    2346           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_pszNodeName_1, length_pszNodeName_1);
    2347             :                         }
    2348           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_pszNodeName_1, sizeof(uint16_t)));
    2349           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->pszNodeName, length_pszNodeName_1, sizeof(uint16_t), CH_UTF16));
    2350           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pszNodeName_0, 0);
    2351             :                 }
    2352           0 :                 if (r->pResultData) {
    2353           0 :                         _mem_save_pResultData_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2354           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->pResultData, 0);
    2355           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->pResultData));
    2356           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->pResultData, &size_pResultData_1));
    2357           0 :                         NDR_PULL_ALLOC_N(ndr, r->pResultData, size_pResultData_1);
    2358           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->pResultData, size_pResultData_1));
    2359           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pResultData_0, 0);
    2360             :                 }
    2361           0 :                 if (r->pResultData) {
    2362           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->pResultData, r->ResultSize));
    2363             :                 }
    2364             :         }
    2365           0 :         return NDR_ERR_SUCCESS;
    2366             : }
    2367             : 
    2368           0 : _PUBLIC_ void ndr_print_CLUSTER_MRR_NODE_RESPONSE(struct ndr_print *ndr, const char *name, const struct CLUSTER_MRR_NODE_RESPONSE *r)
    2369             : {
    2370           0 :         ndr_print_struct(ndr, name, "CLUSTER_MRR_NODE_RESPONSE");
    2371           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2372           0 :         ndr->depth++;
    2373           0 :         ndr_print_ptr(ndr, "pszNodeName", r->pszNodeName);
    2374           0 :         ndr->depth++;
    2375           0 :         if (r->pszNodeName) {
    2376           0 :                 ndr_print_string(ndr, "pszNodeName", r->pszNodeName);
    2377             :         }
    2378           0 :         ndr->depth--;
    2379           0 :         ndr_print_HRESULT(ndr, "ResultCode", r->ResultCode);
    2380           0 :         ndr_print_uint32(ndr, "ResultSize", r->ResultSize);
    2381           0 :         ndr_print_ptr(ndr, "pResultData", r->pResultData);
    2382           0 :         ndr->depth++;
    2383           0 :         if (r->pResultData) {
    2384           0 :                 ndr_print_array_uint8(ndr, "pResultData", r->pResultData, r->ResultSize);
    2385             :         }
    2386           0 :         ndr->depth--;
    2387           0 :         ndr->depth--;
    2388             : }
    2389             : 
    2390           0 : static enum ndr_err_code ndr_push_CLUSTER_MRR_RESPONSE(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct CLUSTER_MRR_RESPONSE *r)
    2391             : {
    2392           0 :         uint32_t cntr_pNodes_1;
    2393           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    2394           0 :         if (ndr_flags & NDR_SCALARS) {
    2395           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
    2396           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->NodeCount));
    2397           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->pNodes));
    2398           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
    2399             :         }
    2400           0 :         if (ndr_flags & NDR_BUFFERS) {
    2401           0 :                 if (r->pNodes) {
    2402           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->NodeCount));
    2403           0 :                         for (cntr_pNodes_1 = 0; cntr_pNodes_1 < (r->NodeCount); cntr_pNodes_1++) {
    2404           0 :                                 NDR_CHECK(ndr_push_CLUSTER_MRR_NODE_RESPONSE(ndr, NDR_SCALARS, &r->pNodes[cntr_pNodes_1]));
    2405             :                         }
    2406           0 :                         for (cntr_pNodes_1 = 0; cntr_pNodes_1 < (r->NodeCount); cntr_pNodes_1++) {
    2407           0 :                                 NDR_CHECK(ndr_push_CLUSTER_MRR_NODE_RESPONSE(ndr, NDR_BUFFERS, &r->pNodes[cntr_pNodes_1]));
    2408             :                         }
    2409             :                 }
    2410             :         }
    2411           0 :         return NDR_ERR_SUCCESS;
    2412             : }
    2413             : 
    2414           0 : static enum ndr_err_code ndr_pull_CLUSTER_MRR_RESPONSE(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct CLUSTER_MRR_RESPONSE *r)
    2415             : {
    2416           0 :         uint32_t _ptr_pNodes;
    2417           0 :         uint32_t size_pNodes_1 = 0;
    2418           0 :         uint32_t cntr_pNodes_1;
    2419           0 :         TALLOC_CTX *_mem_save_pNodes_0 = NULL;
    2420           0 :         TALLOC_CTX *_mem_save_pNodes_1 = NULL;
    2421           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    2422           0 :         if (ndr_flags & NDR_SCALARS) {
    2423           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
    2424           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->NodeCount));
    2425           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pNodes));
    2426           0 :                 if (_ptr_pNodes) {
    2427           0 :                         NDR_PULL_ALLOC(ndr, r->pNodes);
    2428             :                 } else {
    2429           0 :                         r->pNodes = NULL;
    2430             :                 }
    2431           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
    2432             :         }
    2433           0 :         if (ndr_flags & NDR_BUFFERS) {
    2434           0 :                 if (r->pNodes) {
    2435           0 :                         _mem_save_pNodes_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2436           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->pNodes, 0);
    2437           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->pNodes));
    2438           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->pNodes, &size_pNodes_1));
    2439           0 :                         NDR_PULL_ALLOC_N(ndr, r->pNodes, size_pNodes_1);
    2440           0 :                         _mem_save_pNodes_1 = NDR_PULL_GET_MEM_CTX(ndr);
    2441           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->pNodes, 0);
    2442           0 :                         for (cntr_pNodes_1 = 0; cntr_pNodes_1 < (size_pNodes_1); cntr_pNodes_1++) {
    2443           0 :                                 NDR_CHECK(ndr_pull_CLUSTER_MRR_NODE_RESPONSE(ndr, NDR_SCALARS, &r->pNodes[cntr_pNodes_1]));
    2444             :                         }
    2445           0 :                         for (cntr_pNodes_1 = 0; cntr_pNodes_1 < (size_pNodes_1); cntr_pNodes_1++) {
    2446           0 :                                 NDR_CHECK(ndr_pull_CLUSTER_MRR_NODE_RESPONSE(ndr, NDR_BUFFERS, &r->pNodes[cntr_pNodes_1]));
    2447             :                         }
    2448           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pNodes_1, 0);
    2449           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pNodes_0, 0);
    2450             :                 }
    2451           0 :                 if (r->pNodes) {
    2452           0 :                         NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->pNodes, r->NodeCount));
    2453             :                 }
    2454           0 :                 for (cntr_pNodes_1 = 0; cntr_pNodes_1 < (size_pNodes_1); cntr_pNodes_1++) {
    2455           0 :                 }
    2456             :         }
    2457           0 :         return NDR_ERR_SUCCESS;
    2458             : }
    2459             : 
    2460           0 : _PUBLIC_ void ndr_print_CLUSTER_MRR_RESPONSE(struct ndr_print *ndr, const char *name, const struct CLUSTER_MRR_RESPONSE *r)
    2461             : {
    2462           0 :         uint32_t cntr_pNodes_1;
    2463           0 :         ndr_print_struct(ndr, name, "CLUSTER_MRR_RESPONSE");
    2464           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2465           0 :         ndr->depth++;
    2466           0 :         ndr_print_uint32(ndr, "NodeCount", r->NodeCount);
    2467           0 :         ndr_print_ptr(ndr, "pNodes", r->pNodes);
    2468           0 :         ndr->depth++;
    2469           0 :         if (r->pNodes) {
    2470           0 :                 ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "pNodes", (uint32_t)(r->NodeCount));
    2471           0 :                 ndr->depth++;
    2472           0 :                 for (cntr_pNodes_1 = 0; cntr_pNodes_1 < (r->NodeCount); cntr_pNodes_1++) {
    2473           0 :                         ndr_print_CLUSTER_MRR_NODE_RESPONSE(ndr, "pNodes", &r->pNodes[cntr_pNodes_1]);
    2474             :                 }
    2475           0 :                 ndr->depth--;
    2476             :         }
    2477           0 :         ndr->depth--;
    2478           0 :         ndr->depth--;
    2479             : }
    2480             : 
    2481           0 : static enum ndr_err_code ndr_push_NOTIFICATION_DATA_ASYNC_RPC(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct NOTIFICATION_DATA_ASYNC_RPC *r)
    2482             : {
    2483           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    2484           0 :         if (ndr_flags & NDR_SCALARS) {
    2485           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
    2486           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwNotifyKey));
    2487           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dwFilter));
    2488           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->Name));
    2489           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
    2490             :         }
    2491           0 :         if (ndr_flags & NDR_BUFFERS) {
    2492           0 :                 if (r->Name) {
    2493           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Name, CH_UTF16)));
    2494           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    2495           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->Name, CH_UTF16)));
    2496           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->Name, ndr_charset_length(r->Name, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    2497             :                 }
    2498             :         }
    2499           0 :         return NDR_ERR_SUCCESS;
    2500             : }
    2501             : 
    2502           0 : static enum ndr_err_code ndr_pull_NOTIFICATION_DATA_ASYNC_RPC(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct NOTIFICATION_DATA_ASYNC_RPC *r)
    2503             : {
    2504           0 :         uint32_t _ptr_Name;
    2505           0 :         uint32_t size_Name_1 = 0;
    2506           0 :         uint32_t length_Name_1 = 0;
    2507           0 :         TALLOC_CTX *_mem_save_Name_0 = NULL;
    2508           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    2509           0 :         if (ndr_flags & NDR_SCALARS) {
    2510           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
    2511           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwNotifyKey));
    2512           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dwFilter));
    2513           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Name));
    2514           0 :                 if (_ptr_Name) {
    2515           0 :                         NDR_PULL_ALLOC(ndr, r->Name);
    2516             :                 } else {
    2517           0 :                         r->Name = NULL;
    2518             :                 }
    2519           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
    2520             :         }
    2521           0 :         if (ndr_flags & NDR_BUFFERS) {
    2522           0 :                 if (r->Name) {
    2523           0 :                         _mem_save_Name_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2524           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->Name, 0);
    2525           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->Name));
    2526           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->Name));
    2527           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->Name, &size_Name_1));
    2528           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->Name, &length_Name_1));
    2529           0 :                         if (length_Name_1 > size_Name_1) {
    2530           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_Name_1, length_Name_1);
    2531             :                         }
    2532           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_Name_1, sizeof(uint16_t)));
    2533           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->Name, length_Name_1, sizeof(uint16_t), CH_UTF16));
    2534           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Name_0, 0);
    2535             :                 }
    2536             :         }
    2537           0 :         return NDR_ERR_SUCCESS;
    2538             : }
    2539             : 
    2540           0 : _PUBLIC_ void ndr_print_NOTIFICATION_DATA_ASYNC_RPC(struct ndr_print *ndr, const char *name, const struct NOTIFICATION_DATA_ASYNC_RPC *r)
    2541             : {
    2542           0 :         ndr_print_struct(ndr, name, "NOTIFICATION_DATA_ASYNC_RPC");
    2543           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2544           0 :         ndr->depth++;
    2545           0 :         ndr_print_uint32(ndr, "dwNotifyKey", r->dwNotifyKey);
    2546           0 :         ndr_print_uint32(ndr, "dwFilter", r->dwFilter);
    2547           0 :         ndr_print_ptr(ndr, "Name", r->Name);
    2548           0 :         ndr->depth++;
    2549           0 :         if (r->Name) {
    2550           0 :                 ndr_print_string(ndr, "Name", r->Name);
    2551             :         }
    2552           0 :         ndr->depth--;
    2553           0 :         ndr->depth--;
    2554             : }
    2555             : 
    2556           0 : static enum ndr_err_code ndr_push_clusapi_GroupSetControlCode(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum clusapi_GroupSetControlCode r)
    2557             : {
    2558           0 :         NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
    2559           0 :         return NDR_ERR_SUCCESS;
    2560             : }
    2561             : 
    2562           0 : static enum ndr_err_code ndr_pull_clusapi_GroupSetControlCode(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum clusapi_GroupSetControlCode *r)
    2563             : {
    2564           0 :         uint32_t v;
    2565           0 :         NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
    2566           0 :         *r = v;
    2567           0 :         return NDR_ERR_SUCCESS;
    2568             : }
    2569             : 
    2570           0 : _PUBLIC_ void ndr_print_clusapi_GroupSetControlCode(struct ndr_print *ndr, const char *name, enum clusapi_GroupSetControlCode r)
    2571             : {
    2572           0 :         const char *val = NULL;
    2573             : 
    2574           0 :         switch (r) {
    2575           0 :                 case CLUSCTL_GROUPSET_GET_ID: val = "CLUSCTL_GROUPSET_GET_ID"; break;
    2576           0 :                 case CLUSCTL_GROUPSET_GET_RO_COMMON_PROPERTIES: val = "CLUSCTL_GROUPSET_GET_RO_COMMON_PROPERTIES"; break;
    2577           0 :                 case CLUSCTL_GROUPSET_GET_COMMON_PROPERTIES: val = "CLUSCTL_GROUPSET_GET_COMMON_PROPERTIES"; break;
    2578           0 :                 case CLUSCTL_GROUPSET_GET_GROUPS: val = "CLUSCTL_GROUPSET_GET_GROUPS"; break;
    2579           0 :                 case CLUSCTL_GROUPSET_GET_PROVIDER_GROUPS: val = "CLUSCTL_GROUPSET_GET_PROVIDER_GROUPS"; break;
    2580           0 :                 case CLUSCTL_GROUPSET_GET_PROVIDER_GROUPSETS: val = "CLUSCTL_GROUPSET_GET_PROVIDER_GROUPSETS"; break;
    2581           0 :                 case CLUSCTL_GROUPSET_SET_COMMON_PROPERTIES: val = "CLUSCTL_GROUPSET_SET_COMMON_PROPERTIES"; break;
    2582             :         }
    2583           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
    2584           0 : }
    2585             : 
    2586           0 : static enum ndr_err_code ndr_push_clusapi_OpenCluster(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_OpenCluster *r)
    2587             : {
    2588           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2589           0 :         if (flags & NDR_IN) {
    2590           0 :         }
    2591           0 :         if (flags & NDR_OUT) {
    2592           0 :                 if (r->out.Status == NULL) {
    2593           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2594             :                 }
    2595           0 :                 if (r->out.Cluster == NULL) {
    2596           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2597             :                 }
    2598           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
    2599           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.Cluster));
    2600             :         }
    2601           0 :         return NDR_ERR_SUCCESS;
    2602             : }
    2603             : 
    2604           0 : static enum ndr_err_code ndr_pull_clusapi_OpenCluster(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_OpenCluster *r)
    2605             : {
    2606           0 :         TALLOC_CTX *_mem_save_Status_0 = NULL;
    2607           0 :         TALLOC_CTX *_mem_save_Cluster_0 = NULL;
    2608           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2609           0 :         if (flags & NDR_IN) {
    2610           0 :                 NDR_ZERO_STRUCT(r->out);
    2611             : 
    2612           0 :                 NDR_PULL_ALLOC(ndr, r->out.Status);
    2613           0 :                 NDR_ZERO_STRUCTP(r->out.Status);
    2614           0 :                 NDR_PULL_ALLOC(ndr, r->out.Cluster);
    2615           0 :                 NDR_ZERO_STRUCTP(r->out.Cluster);
    2616             :         }
    2617           0 :         if (flags & NDR_OUT) {
    2618             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2619             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2620           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2621           0 :                         NDR_PULL_ALLOC(ndr, r->out.Status);
    2622             :                 }
    2623           0 :                 _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2624           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
    2625           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
    2626           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
    2627           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2628           0 :                         NDR_PULL_ALLOC(ndr, r->out.Cluster);
    2629             :                 }
    2630           0 :                 _mem_save_Cluster_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2631           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Cluster, LIBNDR_FLAG_REF_ALLOC);
    2632           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.Cluster));
    2633           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Cluster_0, LIBNDR_FLAG_REF_ALLOC);
    2634             :         }
    2635           0 :         return NDR_ERR_SUCCESS;
    2636             : }
    2637             : 
    2638           0 : _PUBLIC_ void ndr_print_clusapi_OpenCluster(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_OpenCluster *r)
    2639             : {
    2640           0 :         ndr_print_struct(ndr, name, "clusapi_OpenCluster");
    2641           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2642           0 :         ndr->depth++;
    2643           0 :         if (flags & NDR_SET_VALUES) {
    2644           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2645             :         }
    2646           0 :         if (flags & NDR_IN) {
    2647           0 :                 ndr_print_struct(ndr, "in", "clusapi_OpenCluster");
    2648           0 :                 ndr->depth++;
    2649           0 :                 ndr->depth--;
    2650             :         }
    2651           0 :         if (flags & NDR_OUT) {
    2652           0 :                 ndr_print_struct(ndr, "out", "clusapi_OpenCluster");
    2653           0 :                 ndr->depth++;
    2654           0 :                 ndr_print_ptr(ndr, "Status", r->out.Status);
    2655           0 :                 ndr->depth++;
    2656           0 :                 ndr_print_WERROR(ndr, "Status", *r->out.Status);
    2657           0 :                 ndr->depth--;
    2658           0 :                 ndr_print_ptr(ndr, "Cluster", r->out.Cluster);
    2659           0 :                 ndr->depth++;
    2660           0 :                 ndr_print_policy_handle(ndr, "Cluster", r->out.Cluster);
    2661           0 :                 ndr->depth--;
    2662           0 :                 ndr->depth--;
    2663             :         }
    2664           0 :         ndr->depth--;
    2665             : }
    2666             : 
    2667           0 : static enum ndr_err_code ndr_push_clusapi_CloseCluster(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CloseCluster *r)
    2668             : {
    2669           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2670           0 :         if (flags & NDR_IN) {
    2671           0 :                 if (r->in.Cluster == NULL) {
    2672           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2673             :                 }
    2674           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.Cluster));
    2675             :         }
    2676           0 :         if (flags & NDR_OUT) {
    2677           0 :                 if (r->out.Cluster == NULL) {
    2678           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2679             :                 }
    2680           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.Cluster));
    2681           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    2682             :         }
    2683           0 :         return NDR_ERR_SUCCESS;
    2684             : }
    2685             : 
    2686           0 : static enum ndr_err_code ndr_pull_clusapi_CloseCluster(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CloseCluster *r)
    2687             : {
    2688           0 :         TALLOC_CTX *_mem_save_Cluster_0 = NULL;
    2689           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2690           0 :         if (flags & NDR_IN) {
    2691           0 :                 NDR_ZERO_STRUCT(r->out);
    2692             : 
    2693           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2694           0 :                         NDR_PULL_ALLOC(ndr, r->in.Cluster);
    2695             :                 }
    2696           0 :                 _mem_save_Cluster_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2697           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.Cluster, LIBNDR_FLAG_REF_ALLOC);
    2698           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.Cluster));
    2699           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Cluster_0, LIBNDR_FLAG_REF_ALLOC);
    2700           0 :                 NDR_PULL_ALLOC(ndr, r->out.Cluster);
    2701           0 :                 *r->out.Cluster = *r->in.Cluster;
    2702             :         }
    2703           0 :         if (flags & NDR_OUT) {
    2704             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2705             :                 if (r->in.Cluster == NULL) {
    2706             :                         NDR_PULL_ALLOC(ndr, r->in.Cluster);
    2707             :                         NDR_ZERO_STRUCTP(r->in.Cluster);
    2708             :                 }
    2709             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2710           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2711           0 :                         NDR_PULL_ALLOC(ndr, r->out.Cluster);
    2712             :                 }
    2713           0 :                 _mem_save_Cluster_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2714           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Cluster, LIBNDR_FLAG_REF_ALLOC);
    2715           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.Cluster));
    2716           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Cluster_0, LIBNDR_FLAG_REF_ALLOC);
    2717           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    2718             :         }
    2719           0 :         return NDR_ERR_SUCCESS;
    2720             : }
    2721             : 
    2722           0 : _PUBLIC_ void ndr_print_clusapi_CloseCluster(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CloseCluster *r)
    2723             : {
    2724           0 :         ndr_print_struct(ndr, name, "clusapi_CloseCluster");
    2725           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2726           0 :         ndr->depth++;
    2727           0 :         if (flags & NDR_SET_VALUES) {
    2728           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2729             :         }
    2730           0 :         if (flags & NDR_IN) {
    2731           0 :                 ndr_print_struct(ndr, "in", "clusapi_CloseCluster");
    2732           0 :                 ndr->depth++;
    2733           0 :                 ndr_print_ptr(ndr, "Cluster", r->in.Cluster);
    2734           0 :                 ndr->depth++;
    2735           0 :                 ndr_print_policy_handle(ndr, "Cluster", r->in.Cluster);
    2736           0 :                 ndr->depth--;
    2737           0 :                 ndr->depth--;
    2738             :         }
    2739           0 :         if (flags & NDR_OUT) {
    2740           0 :                 ndr_print_struct(ndr, "out", "clusapi_CloseCluster");
    2741           0 :                 ndr->depth++;
    2742           0 :                 ndr_print_ptr(ndr, "Cluster", r->out.Cluster);
    2743           0 :                 ndr->depth++;
    2744           0 :                 ndr_print_policy_handle(ndr, "Cluster", r->out.Cluster);
    2745           0 :                 ndr->depth--;
    2746           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    2747           0 :                 ndr->depth--;
    2748             :         }
    2749           0 :         ndr->depth--;
    2750             : }
    2751             : 
    2752           0 : static enum ndr_err_code ndr_push_clusapi_SetClusterName(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_SetClusterName *r)
    2753             : {
    2754           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2755           0 :         if (flags & NDR_IN) {
    2756           0 :                 if (r->in.NewClusterName == NULL) {
    2757           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2758             :                 }
    2759           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.NewClusterName, CH_UTF16)));
    2760           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    2761           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.NewClusterName, CH_UTF16)));
    2762           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.NewClusterName, ndr_charset_length(r->in.NewClusterName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    2763             :         }
    2764           0 :         if (flags & NDR_OUT) {
    2765           0 :                 if (r->out.rpc_status == NULL) {
    2766           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2767             :                 }
    2768           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    2769           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    2770             :         }
    2771           0 :         return NDR_ERR_SUCCESS;
    2772             : }
    2773             : 
    2774           0 : static enum ndr_err_code ndr_pull_clusapi_SetClusterName(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_SetClusterName *r)
    2775             : {
    2776           0 :         uint32_t size_NewClusterName_1 = 0;
    2777           0 :         uint32_t length_NewClusterName_1 = 0;
    2778           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    2779           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2780           0 :         if (flags & NDR_IN) {
    2781           0 :                 NDR_ZERO_STRUCT(r->out);
    2782             : 
    2783           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.NewClusterName));
    2784           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.NewClusterName));
    2785           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.NewClusterName, &size_NewClusterName_1));
    2786           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.NewClusterName, &length_NewClusterName_1));
    2787           0 :                 if (length_NewClusterName_1 > size_NewClusterName_1) {
    2788           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_NewClusterName_1, length_NewClusterName_1);
    2789             :                 }
    2790           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_NewClusterName_1, sizeof(uint16_t)));
    2791           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.NewClusterName, length_NewClusterName_1, sizeof(uint16_t), CH_UTF16));
    2792           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    2793           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    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.rpc_status);
    2800             :                 }
    2801           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2802           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    2803           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    2804           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    2805           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    2806             :         }
    2807           0 :         return NDR_ERR_SUCCESS;
    2808             : }
    2809             : 
    2810           0 : _PUBLIC_ void ndr_print_clusapi_SetClusterName(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_SetClusterName *r)
    2811             : {
    2812           0 :         ndr_print_struct(ndr, name, "clusapi_SetClusterName");
    2813           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2814           0 :         ndr->depth++;
    2815           0 :         if (flags & NDR_SET_VALUES) {
    2816           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2817             :         }
    2818           0 :         if (flags & NDR_IN) {
    2819           0 :                 ndr_print_struct(ndr, "in", "clusapi_SetClusterName");
    2820           0 :                 ndr->depth++;
    2821           0 :                 ndr_print_ptr(ndr, "NewClusterName", r->in.NewClusterName);
    2822           0 :                 ndr->depth++;
    2823           0 :                 ndr_print_string(ndr, "NewClusterName", r->in.NewClusterName);
    2824           0 :                 ndr->depth--;
    2825           0 :                 ndr->depth--;
    2826             :         }
    2827           0 :         if (flags & NDR_OUT) {
    2828           0 :                 ndr_print_struct(ndr, "out", "clusapi_SetClusterName");
    2829           0 :                 ndr->depth++;
    2830           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    2831           0 :                 ndr->depth++;
    2832           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    2833           0 :                 ndr->depth--;
    2834           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    2835           0 :                 ndr->depth--;
    2836             :         }
    2837           0 :         ndr->depth--;
    2838             : }
    2839             : 
    2840           0 : static enum ndr_err_code ndr_push_clusapi_GetClusterName(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_GetClusterName *r)
    2841             : {
    2842           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2843           0 :         if (flags & NDR_IN) {
    2844           0 :         }
    2845           0 :         if (flags & NDR_OUT) {
    2846           0 :                 if (r->out.ClusterName == NULL) {
    2847           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2848             :                 }
    2849           0 :                 if (r->out.NodeName == NULL) {
    2850           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2851             :                 }
    2852           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ClusterName));
    2853           0 :                 if (*r->out.ClusterName) {
    2854           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.ClusterName, CH_UTF16)));
    2855           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    2856           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.ClusterName, CH_UTF16)));
    2857           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.ClusterName, ndr_charset_length(*r->out.ClusterName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    2858             :                 }
    2859           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.NodeName));
    2860           0 :                 if (*r->out.NodeName) {
    2861           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.NodeName, CH_UTF16)));
    2862           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    2863           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.NodeName, CH_UTF16)));
    2864           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.NodeName, ndr_charset_length(*r->out.NodeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    2865             :                 }
    2866           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    2867             :         }
    2868           0 :         return NDR_ERR_SUCCESS;
    2869             : }
    2870             : 
    2871           0 : static enum ndr_err_code ndr_pull_clusapi_GetClusterName(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_GetClusterName *r)
    2872             : {
    2873           0 :         uint32_t _ptr_ClusterName;
    2874           0 :         uint32_t size_ClusterName_2 = 0;
    2875           0 :         uint32_t length_ClusterName_2 = 0;
    2876           0 :         uint32_t _ptr_NodeName;
    2877           0 :         uint32_t size_NodeName_2 = 0;
    2878           0 :         uint32_t length_NodeName_2 = 0;
    2879           0 :         TALLOC_CTX *_mem_save_ClusterName_0 = NULL;
    2880           0 :         TALLOC_CTX *_mem_save_ClusterName_1 = NULL;
    2881           0 :         TALLOC_CTX *_mem_save_NodeName_0 = NULL;
    2882           0 :         TALLOC_CTX *_mem_save_NodeName_1 = NULL;
    2883           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2884           0 :         if (flags & NDR_IN) {
    2885           0 :                 NDR_ZERO_STRUCT(r->out);
    2886             : 
    2887           0 :                 NDR_PULL_ALLOC(ndr, r->out.ClusterName);
    2888           0 :                 NDR_ZERO_STRUCTP(r->out.ClusterName);
    2889           0 :                 NDR_PULL_ALLOC(ndr, r->out.NodeName);
    2890           0 :                 NDR_ZERO_STRUCTP(r->out.NodeName);
    2891             :         }
    2892           0 :         if (flags & NDR_OUT) {
    2893             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2894             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2895           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2896           0 :                         NDR_PULL_ALLOC(ndr, r->out.ClusterName);
    2897             :                 }
    2898           0 :                 _mem_save_ClusterName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2899           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ClusterName, LIBNDR_FLAG_REF_ALLOC);
    2900           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ClusterName));
    2901           0 :                 if (_ptr_ClusterName) {
    2902           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ClusterName);
    2903             :                 } else {
    2904           0 :                         *r->out.ClusterName = NULL;
    2905             :                 }
    2906           0 :                 if (*r->out.ClusterName) {
    2907           0 :                         _mem_save_ClusterName_1 = NDR_PULL_GET_MEM_CTX(ndr);
    2908           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ClusterName, 0);
    2909           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.ClusterName));
    2910           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, r->out.ClusterName));
    2911           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.ClusterName, &size_ClusterName_2));
    2912           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.ClusterName, &length_ClusterName_2));
    2913           0 :                         if (length_ClusterName_2 > size_ClusterName_2) {
    2914           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_ClusterName_2, length_ClusterName_2);
    2915             :                         }
    2916           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_ClusterName_2, sizeof(uint16_t)));
    2917           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.ClusterName, length_ClusterName_2, sizeof(uint16_t), CH_UTF16));
    2918           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ClusterName_1, 0);
    2919             :                 }
    2920           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ClusterName_0, LIBNDR_FLAG_REF_ALLOC);
    2921           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2922           0 :                         NDR_PULL_ALLOC(ndr, r->out.NodeName);
    2923             :                 }
    2924           0 :                 _mem_save_NodeName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2925           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.NodeName, LIBNDR_FLAG_REF_ALLOC);
    2926           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_NodeName));
    2927           0 :                 if (_ptr_NodeName) {
    2928           0 :                         NDR_PULL_ALLOC(ndr, *r->out.NodeName);
    2929             :                 } else {
    2930           0 :                         *r->out.NodeName = NULL;
    2931             :                 }
    2932           0 :                 if (*r->out.NodeName) {
    2933           0 :                         _mem_save_NodeName_1 = NDR_PULL_GET_MEM_CTX(ndr);
    2934           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.NodeName, 0);
    2935           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.NodeName));
    2936           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, r->out.NodeName));
    2937           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.NodeName, &size_NodeName_2));
    2938           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.NodeName, &length_NodeName_2));
    2939           0 :                         if (length_NodeName_2 > size_NodeName_2) {
    2940           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_NodeName_2, length_NodeName_2);
    2941             :                         }
    2942           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_NodeName_2, sizeof(uint16_t)));
    2943           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.NodeName, length_NodeName_2, sizeof(uint16_t), CH_UTF16));
    2944           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_NodeName_1, 0);
    2945             :                 }
    2946           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_NodeName_0, LIBNDR_FLAG_REF_ALLOC);
    2947           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    2948             :         }
    2949           0 :         return NDR_ERR_SUCCESS;
    2950             : }
    2951             : 
    2952           0 : _PUBLIC_ void ndr_print_clusapi_GetClusterName(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_GetClusterName *r)
    2953             : {
    2954           0 :         ndr_print_struct(ndr, name, "clusapi_GetClusterName");
    2955           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2956           0 :         ndr->depth++;
    2957           0 :         if (flags & NDR_SET_VALUES) {
    2958           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2959             :         }
    2960           0 :         if (flags & NDR_IN) {
    2961           0 :                 ndr_print_struct(ndr, "in", "clusapi_GetClusterName");
    2962           0 :                 ndr->depth++;
    2963           0 :                 ndr->depth--;
    2964             :         }
    2965           0 :         if (flags & NDR_OUT) {
    2966           0 :                 ndr_print_struct(ndr, "out", "clusapi_GetClusterName");
    2967           0 :                 ndr->depth++;
    2968           0 :                 ndr_print_ptr(ndr, "ClusterName", r->out.ClusterName);
    2969           0 :                 ndr->depth++;
    2970           0 :                 ndr_print_ptr(ndr, "ClusterName", *r->out.ClusterName);
    2971           0 :                 ndr->depth++;
    2972           0 :                 if (*r->out.ClusterName) {
    2973           0 :                         ndr_print_string(ndr, "ClusterName", *r->out.ClusterName);
    2974             :                 }
    2975           0 :                 ndr->depth--;
    2976           0 :                 ndr->depth--;
    2977           0 :                 ndr_print_ptr(ndr, "NodeName", r->out.NodeName);
    2978           0 :                 ndr->depth++;
    2979           0 :                 ndr_print_ptr(ndr, "NodeName", *r->out.NodeName);
    2980           0 :                 ndr->depth++;
    2981           0 :                 if (*r->out.NodeName) {
    2982           0 :                         ndr_print_string(ndr, "NodeName", *r->out.NodeName);
    2983             :                 }
    2984           0 :                 ndr->depth--;
    2985           0 :                 ndr->depth--;
    2986           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    2987           0 :                 ndr->depth--;
    2988             :         }
    2989           0 :         ndr->depth--;
    2990             : }
    2991             : 
    2992           0 : static enum ndr_err_code ndr_push_clusapi_GetClusterVersion(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_GetClusterVersion *r)
    2993             : {
    2994           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2995           0 :         if (flags & NDR_IN) {
    2996           0 :         }
    2997           0 :         if (flags & NDR_OUT) {
    2998           0 :                 if (r->out.lpwMajorVersion == NULL) {
    2999           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3000             :                 }
    3001           0 :                 if (r->out.lpwMinorVersion == NULL) {
    3002           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3003             :                 }
    3004           0 :                 if (r->out.lpwBuildNumber == NULL) {
    3005           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3006             :                 }
    3007           0 :                 if (r->out.lpszVendorId == NULL) {
    3008           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3009             :                 }
    3010           0 :                 if (r->out.lpszCSDVersion == NULL) {
    3011           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3012             :                 }
    3013           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, *r->out.lpwMajorVersion));
    3014           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, *r->out.lpwMinorVersion));
    3015           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, *r->out.lpwBuildNumber));
    3016           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lpszVendorId));
    3017           0 :                 if (*r->out.lpszVendorId) {
    3018           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszVendorId, CH_UTF16)));
    3019           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    3020           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszVendorId, CH_UTF16)));
    3021           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.lpszVendorId, ndr_charset_length(*r->out.lpszVendorId, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    3022             :                 }
    3023           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lpszCSDVersion));
    3024           0 :                 if (*r->out.lpszCSDVersion) {
    3025           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszCSDVersion, CH_UTF16)));
    3026           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    3027           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszCSDVersion, CH_UTF16)));
    3028           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.lpszCSDVersion, ndr_charset_length(*r->out.lpszCSDVersion, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    3029             :                 }
    3030           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    3031             :         }
    3032           0 :         return NDR_ERR_SUCCESS;
    3033             : }
    3034             : 
    3035           0 : static enum ndr_err_code ndr_pull_clusapi_GetClusterVersion(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_GetClusterVersion *r)
    3036             : {
    3037           0 :         uint32_t _ptr_lpszVendorId;
    3038           0 :         uint32_t size_lpszVendorId_2 = 0;
    3039           0 :         uint32_t length_lpszVendorId_2 = 0;
    3040           0 :         uint32_t _ptr_lpszCSDVersion;
    3041           0 :         uint32_t size_lpszCSDVersion_2 = 0;
    3042           0 :         uint32_t length_lpszCSDVersion_2 = 0;
    3043           0 :         TALLOC_CTX *_mem_save_lpwMajorVersion_0 = NULL;
    3044           0 :         TALLOC_CTX *_mem_save_lpwMinorVersion_0 = NULL;
    3045           0 :         TALLOC_CTX *_mem_save_lpwBuildNumber_0 = NULL;
    3046           0 :         TALLOC_CTX *_mem_save_lpszVendorId_0 = NULL;
    3047           0 :         TALLOC_CTX *_mem_save_lpszVendorId_1 = NULL;
    3048           0 :         TALLOC_CTX *_mem_save_lpszCSDVersion_0 = NULL;
    3049           0 :         TALLOC_CTX *_mem_save_lpszCSDVersion_1 = NULL;
    3050           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    3051           0 :         if (flags & NDR_IN) {
    3052           0 :                 NDR_ZERO_STRUCT(r->out);
    3053             : 
    3054           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpwMajorVersion);
    3055           0 :                 NDR_ZERO_STRUCTP(r->out.lpwMajorVersion);
    3056           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpwMinorVersion);
    3057           0 :                 NDR_ZERO_STRUCTP(r->out.lpwMinorVersion);
    3058           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpwBuildNumber);
    3059           0 :                 NDR_ZERO_STRUCTP(r->out.lpwBuildNumber);
    3060           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpszVendorId);
    3061           0 :                 NDR_ZERO_STRUCTP(r->out.lpszVendorId);
    3062           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpszCSDVersion);
    3063           0 :                 NDR_ZERO_STRUCTP(r->out.lpszCSDVersion);
    3064             :         }
    3065           0 :         if (flags & NDR_OUT) {
    3066             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    3067             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    3068           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3069           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpwMajorVersion);
    3070             :                 }
    3071           0 :                 _mem_save_lpwMajorVersion_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3072           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpwMajorVersion, LIBNDR_FLAG_REF_ALLOC);
    3073           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, r->out.lpwMajorVersion));
    3074           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpwMajorVersion_0, LIBNDR_FLAG_REF_ALLOC);
    3075           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3076           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpwMinorVersion);
    3077             :                 }
    3078           0 :                 _mem_save_lpwMinorVersion_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3079           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpwMinorVersion, LIBNDR_FLAG_REF_ALLOC);
    3080           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, r->out.lpwMinorVersion));
    3081           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpwMinorVersion_0, LIBNDR_FLAG_REF_ALLOC);
    3082           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3083           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpwBuildNumber);
    3084             :                 }
    3085           0 :                 _mem_save_lpwBuildNumber_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3086           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpwBuildNumber, LIBNDR_FLAG_REF_ALLOC);
    3087           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, r->out.lpwBuildNumber));
    3088           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpwBuildNumber_0, LIBNDR_FLAG_REF_ALLOC);
    3089           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3090           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpszVendorId);
    3091             :                 }
    3092           0 :                 _mem_save_lpszVendorId_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3093           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpszVendorId, LIBNDR_FLAG_REF_ALLOC);
    3094           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpszVendorId));
    3095           0 :                 if (_ptr_lpszVendorId) {
    3096           0 :                         NDR_PULL_ALLOC(ndr, *r->out.lpszVendorId);
    3097             :                 } else {
    3098           0 :                         *r->out.lpszVendorId = NULL;
    3099             :                 }
    3100           0 :                 if (*r->out.lpszVendorId) {
    3101           0 :                         _mem_save_lpszVendorId_1 = NDR_PULL_GET_MEM_CTX(ndr);
    3102           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.lpszVendorId, 0);
    3103           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.lpszVendorId));
    3104           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, r->out.lpszVendorId));
    3105           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.lpszVendorId, &size_lpszVendorId_2));
    3106           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.lpszVendorId, &length_lpszVendorId_2));
    3107           0 :                         if (length_lpszVendorId_2 > size_lpszVendorId_2) {
    3108           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszVendorId_2, length_lpszVendorId_2);
    3109             :                         }
    3110           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszVendorId_2, sizeof(uint16_t)));
    3111           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.lpszVendorId, length_lpszVendorId_2, sizeof(uint16_t), CH_UTF16));
    3112           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszVendorId_1, 0);
    3113             :                 }
    3114           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszVendorId_0, LIBNDR_FLAG_REF_ALLOC);
    3115           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3116           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpszCSDVersion);
    3117             :                 }
    3118           0 :                 _mem_save_lpszCSDVersion_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3119           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpszCSDVersion, LIBNDR_FLAG_REF_ALLOC);
    3120           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpszCSDVersion));
    3121           0 :                 if (_ptr_lpszCSDVersion) {
    3122           0 :                         NDR_PULL_ALLOC(ndr, *r->out.lpszCSDVersion);
    3123             :                 } else {
    3124           0 :                         *r->out.lpszCSDVersion = NULL;
    3125             :                 }
    3126           0 :                 if (*r->out.lpszCSDVersion) {
    3127           0 :                         _mem_save_lpszCSDVersion_1 = NDR_PULL_GET_MEM_CTX(ndr);
    3128           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.lpszCSDVersion, 0);
    3129           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.lpszCSDVersion));
    3130           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, r->out.lpszCSDVersion));
    3131           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.lpszCSDVersion, &size_lpszCSDVersion_2));
    3132           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.lpszCSDVersion, &length_lpszCSDVersion_2));
    3133           0 :                         if (length_lpszCSDVersion_2 > size_lpszCSDVersion_2) {
    3134           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszCSDVersion_2, length_lpszCSDVersion_2);
    3135             :                         }
    3136           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszCSDVersion_2, sizeof(uint16_t)));
    3137           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.lpszCSDVersion, length_lpszCSDVersion_2, sizeof(uint16_t), CH_UTF16));
    3138           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszCSDVersion_1, 0);
    3139             :                 }
    3140           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszCSDVersion_0, LIBNDR_FLAG_REF_ALLOC);
    3141           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    3142             :         }
    3143           0 :         return NDR_ERR_SUCCESS;
    3144             : }
    3145             : 
    3146           0 : _PUBLIC_ void ndr_print_clusapi_GetClusterVersion(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_GetClusterVersion *r)
    3147             : {
    3148           0 :         ndr_print_struct(ndr, name, "clusapi_GetClusterVersion");
    3149           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    3150           0 :         ndr->depth++;
    3151           0 :         if (flags & NDR_SET_VALUES) {
    3152           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    3153             :         }
    3154           0 :         if (flags & NDR_IN) {
    3155           0 :                 ndr_print_struct(ndr, "in", "clusapi_GetClusterVersion");
    3156           0 :                 ndr->depth++;
    3157           0 :                 ndr->depth--;
    3158             :         }
    3159           0 :         if (flags & NDR_OUT) {
    3160           0 :                 ndr_print_struct(ndr, "out", "clusapi_GetClusterVersion");
    3161           0 :                 ndr->depth++;
    3162           0 :                 ndr_print_ptr(ndr, "lpwMajorVersion", r->out.lpwMajorVersion);
    3163           0 :                 ndr->depth++;
    3164           0 :                 ndr_print_uint16(ndr, "lpwMajorVersion", *r->out.lpwMajorVersion);
    3165           0 :                 ndr->depth--;
    3166           0 :                 ndr_print_ptr(ndr, "lpwMinorVersion", r->out.lpwMinorVersion);
    3167           0 :                 ndr->depth++;
    3168           0 :                 ndr_print_uint16(ndr, "lpwMinorVersion", *r->out.lpwMinorVersion);
    3169           0 :                 ndr->depth--;
    3170           0 :                 ndr_print_ptr(ndr, "lpwBuildNumber", r->out.lpwBuildNumber);
    3171           0 :                 ndr->depth++;
    3172           0 :                 ndr_print_uint16(ndr, "lpwBuildNumber", *r->out.lpwBuildNumber);
    3173           0 :                 ndr->depth--;
    3174           0 :                 ndr_print_ptr(ndr, "lpszVendorId", r->out.lpszVendorId);
    3175           0 :                 ndr->depth++;
    3176           0 :                 ndr_print_ptr(ndr, "lpszVendorId", *r->out.lpszVendorId);
    3177           0 :                 ndr->depth++;
    3178           0 :                 if (*r->out.lpszVendorId) {
    3179           0 :                         ndr_print_string(ndr, "lpszVendorId", *r->out.lpszVendorId);
    3180             :                 }
    3181           0 :                 ndr->depth--;
    3182           0 :                 ndr->depth--;
    3183           0 :                 ndr_print_ptr(ndr, "lpszCSDVersion", r->out.lpszCSDVersion);
    3184           0 :                 ndr->depth++;
    3185           0 :                 ndr_print_ptr(ndr, "lpszCSDVersion", *r->out.lpszCSDVersion);
    3186           0 :                 ndr->depth++;
    3187           0 :                 if (*r->out.lpszCSDVersion) {
    3188           0 :                         ndr_print_string(ndr, "lpszCSDVersion", *r->out.lpszCSDVersion);
    3189             :                 }
    3190           0 :                 ndr->depth--;
    3191           0 :                 ndr->depth--;
    3192           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    3193           0 :                 ndr->depth--;
    3194             :         }
    3195           0 :         ndr->depth--;
    3196             : }
    3197             : 
    3198           0 : static enum ndr_err_code ndr_push_clusapi_GetQuorumResource(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_GetQuorumResource *r)
    3199             : {
    3200           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    3201           0 :         if (flags & NDR_IN) {
    3202           0 :         }
    3203           0 :         if (flags & NDR_OUT) {
    3204           0 :                 if (r->out.lpszResourceName == NULL) {
    3205           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3206             :                 }
    3207           0 :                 if (r->out.lpszDeviceName == NULL) {
    3208           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3209             :                 }
    3210           0 :                 if (r->out.pdwMaxQuorumLogSize == NULL) {
    3211           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3212             :                 }
    3213           0 :                 if (r->out.rpc_status == NULL) {
    3214           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3215             :                 }
    3216           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lpszResourceName));
    3217           0 :                 if (*r->out.lpszResourceName) {
    3218           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszResourceName, CH_UTF16)));
    3219           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    3220           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszResourceName, CH_UTF16)));
    3221           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.lpszResourceName, ndr_charset_length(*r->out.lpszResourceName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    3222             :                 }
    3223           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lpszDeviceName));
    3224           0 :                 if (*r->out.lpszDeviceName) {
    3225           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszDeviceName, CH_UTF16)));
    3226           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    3227           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszDeviceName, CH_UTF16)));
    3228           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.lpszDeviceName, ndr_charset_length(*r->out.lpszDeviceName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    3229             :                 }
    3230           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.pdwMaxQuorumLogSize));
    3231           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    3232           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    3233             :         }
    3234           0 :         return NDR_ERR_SUCCESS;
    3235             : }
    3236             : 
    3237           0 : static enum ndr_err_code ndr_pull_clusapi_GetQuorumResource(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_GetQuorumResource *r)
    3238             : {
    3239           0 :         uint32_t _ptr_lpszResourceName;
    3240           0 :         uint32_t size_lpszResourceName_2 = 0;
    3241           0 :         uint32_t length_lpszResourceName_2 = 0;
    3242           0 :         uint32_t _ptr_lpszDeviceName;
    3243           0 :         uint32_t size_lpszDeviceName_2 = 0;
    3244           0 :         uint32_t length_lpszDeviceName_2 = 0;
    3245           0 :         TALLOC_CTX *_mem_save_lpszResourceName_0 = NULL;
    3246           0 :         TALLOC_CTX *_mem_save_lpszResourceName_1 = NULL;
    3247           0 :         TALLOC_CTX *_mem_save_lpszDeviceName_0 = NULL;
    3248           0 :         TALLOC_CTX *_mem_save_lpszDeviceName_1 = NULL;
    3249           0 :         TALLOC_CTX *_mem_save_pdwMaxQuorumLogSize_0 = NULL;
    3250           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    3251           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    3252           0 :         if (flags & NDR_IN) {
    3253           0 :                 NDR_ZERO_STRUCT(r->out);
    3254             : 
    3255           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpszResourceName);
    3256           0 :                 NDR_ZERO_STRUCTP(r->out.lpszResourceName);
    3257           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpszDeviceName);
    3258           0 :                 NDR_ZERO_STRUCTP(r->out.lpszDeviceName);
    3259           0 :                 NDR_PULL_ALLOC(ndr, r->out.pdwMaxQuorumLogSize);
    3260           0 :                 NDR_ZERO_STRUCTP(r->out.pdwMaxQuorumLogSize);
    3261           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    3262           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    3263             :         }
    3264           0 :         if (flags & NDR_OUT) {
    3265             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    3266             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    3267           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3268           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpszResourceName);
    3269             :                 }
    3270           0 :                 _mem_save_lpszResourceName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3271           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpszResourceName, LIBNDR_FLAG_REF_ALLOC);
    3272           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpszResourceName));
    3273           0 :                 if (_ptr_lpszResourceName) {
    3274           0 :                         NDR_PULL_ALLOC(ndr, *r->out.lpszResourceName);
    3275             :                 } else {
    3276           0 :                         *r->out.lpszResourceName = NULL;
    3277             :                 }
    3278           0 :                 if (*r->out.lpszResourceName) {
    3279           0 :                         _mem_save_lpszResourceName_1 = NDR_PULL_GET_MEM_CTX(ndr);
    3280           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.lpszResourceName, 0);
    3281           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.lpszResourceName));
    3282           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, r->out.lpszResourceName));
    3283           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.lpszResourceName, &size_lpszResourceName_2));
    3284           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.lpszResourceName, &length_lpszResourceName_2));
    3285           0 :                         if (length_lpszResourceName_2 > size_lpszResourceName_2) {
    3286           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszResourceName_2, length_lpszResourceName_2);
    3287             :                         }
    3288           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszResourceName_2, sizeof(uint16_t)));
    3289           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.lpszResourceName, length_lpszResourceName_2, sizeof(uint16_t), CH_UTF16));
    3290           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszResourceName_1, 0);
    3291             :                 }
    3292           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszResourceName_0, LIBNDR_FLAG_REF_ALLOC);
    3293           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3294           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpszDeviceName);
    3295             :                 }
    3296           0 :                 _mem_save_lpszDeviceName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3297           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpszDeviceName, LIBNDR_FLAG_REF_ALLOC);
    3298           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpszDeviceName));
    3299           0 :                 if (_ptr_lpszDeviceName) {
    3300           0 :                         NDR_PULL_ALLOC(ndr, *r->out.lpszDeviceName);
    3301             :                 } else {
    3302           0 :                         *r->out.lpszDeviceName = NULL;
    3303             :                 }
    3304           0 :                 if (*r->out.lpszDeviceName) {
    3305           0 :                         _mem_save_lpszDeviceName_1 = NDR_PULL_GET_MEM_CTX(ndr);
    3306           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.lpszDeviceName, 0);
    3307           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.lpszDeviceName));
    3308           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, r->out.lpszDeviceName));
    3309           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.lpszDeviceName, &size_lpszDeviceName_2));
    3310           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.lpszDeviceName, &length_lpszDeviceName_2));
    3311           0 :                         if (length_lpszDeviceName_2 > size_lpszDeviceName_2) {
    3312           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszDeviceName_2, length_lpszDeviceName_2);
    3313             :                         }
    3314           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszDeviceName_2, sizeof(uint16_t)));
    3315           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.lpszDeviceName, length_lpszDeviceName_2, sizeof(uint16_t), CH_UTF16));
    3316           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszDeviceName_1, 0);
    3317             :                 }
    3318           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszDeviceName_0, LIBNDR_FLAG_REF_ALLOC);
    3319           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3320           0 :                         NDR_PULL_ALLOC(ndr, r->out.pdwMaxQuorumLogSize);
    3321             :                 }
    3322           0 :                 _mem_save_pdwMaxQuorumLogSize_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3323           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.pdwMaxQuorumLogSize, LIBNDR_FLAG_REF_ALLOC);
    3324           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.pdwMaxQuorumLogSize));
    3325           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pdwMaxQuorumLogSize_0, LIBNDR_FLAG_REF_ALLOC);
    3326           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3327           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    3328             :                 }
    3329           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3330           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    3331           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    3332           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    3333           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    3334             :         }
    3335           0 :         return NDR_ERR_SUCCESS;
    3336             : }
    3337             : 
    3338           0 : _PUBLIC_ void ndr_print_clusapi_GetQuorumResource(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_GetQuorumResource *r)
    3339             : {
    3340           0 :         ndr_print_struct(ndr, name, "clusapi_GetQuorumResource");
    3341           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    3342           0 :         ndr->depth++;
    3343           0 :         if (flags & NDR_SET_VALUES) {
    3344           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    3345             :         }
    3346           0 :         if (flags & NDR_IN) {
    3347           0 :                 ndr_print_struct(ndr, "in", "clusapi_GetQuorumResource");
    3348           0 :                 ndr->depth++;
    3349           0 :                 ndr->depth--;
    3350             :         }
    3351           0 :         if (flags & NDR_OUT) {
    3352           0 :                 ndr_print_struct(ndr, "out", "clusapi_GetQuorumResource");
    3353           0 :                 ndr->depth++;
    3354           0 :                 ndr_print_ptr(ndr, "lpszResourceName", r->out.lpszResourceName);
    3355           0 :                 ndr->depth++;
    3356           0 :                 ndr_print_ptr(ndr, "lpszResourceName", *r->out.lpszResourceName);
    3357           0 :                 ndr->depth++;
    3358           0 :                 if (*r->out.lpszResourceName) {
    3359           0 :                         ndr_print_string(ndr, "lpszResourceName", *r->out.lpszResourceName);
    3360             :                 }
    3361           0 :                 ndr->depth--;
    3362           0 :                 ndr->depth--;
    3363           0 :                 ndr_print_ptr(ndr, "lpszDeviceName", r->out.lpszDeviceName);
    3364           0 :                 ndr->depth++;
    3365           0 :                 ndr_print_ptr(ndr, "lpszDeviceName", *r->out.lpszDeviceName);
    3366           0 :                 ndr->depth++;
    3367           0 :                 if (*r->out.lpszDeviceName) {
    3368           0 :                         ndr_print_string(ndr, "lpszDeviceName", *r->out.lpszDeviceName);
    3369             :                 }
    3370           0 :                 ndr->depth--;
    3371           0 :                 ndr->depth--;
    3372           0 :                 ndr_print_ptr(ndr, "pdwMaxQuorumLogSize", r->out.pdwMaxQuorumLogSize);
    3373           0 :                 ndr->depth++;
    3374           0 :                 ndr_print_uint32(ndr, "pdwMaxQuorumLogSize", *r->out.pdwMaxQuorumLogSize);
    3375           0 :                 ndr->depth--;
    3376           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    3377           0 :                 ndr->depth++;
    3378           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    3379           0 :                 ndr->depth--;
    3380           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    3381           0 :                 ndr->depth--;
    3382             :         }
    3383           0 :         ndr->depth--;
    3384             : }
    3385             : 
    3386           0 : static enum ndr_err_code ndr_push_clusapi_SetQuorumResource(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_SetQuorumResource *r)
    3387             : {
    3388           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    3389           0 :         if (flags & NDR_IN) {
    3390           0 :                 if (r->in.lpszDeviceName == NULL) {
    3391           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3392             :                 }
    3393           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    3394           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszDeviceName, CH_UTF16)));
    3395           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    3396           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszDeviceName, CH_UTF16)));
    3397           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszDeviceName, ndr_charset_length(r->in.lpszDeviceName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    3398           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwMaxQuorumLogSize));
    3399             :         }
    3400           0 :         if (flags & NDR_OUT) {
    3401           0 :                 if (r->out.rpc_status == NULL) {
    3402           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3403             :                 }
    3404           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    3405           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    3406             :         }
    3407           0 :         return NDR_ERR_SUCCESS;
    3408             : }
    3409             : 
    3410           0 : static enum ndr_err_code ndr_pull_clusapi_SetQuorumResource(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_SetQuorumResource *r)
    3411             : {
    3412           0 :         uint32_t size_lpszDeviceName_1 = 0;
    3413           0 :         uint32_t length_lpszDeviceName_1 = 0;
    3414           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    3415           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    3416           0 :         if (flags & NDR_IN) {
    3417           0 :                 NDR_ZERO_STRUCT(r->out);
    3418             : 
    3419           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    3420           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszDeviceName));
    3421           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszDeviceName));
    3422           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszDeviceName, &size_lpszDeviceName_1));
    3423           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszDeviceName, &length_lpszDeviceName_1));
    3424           0 :                 if (length_lpszDeviceName_1 > size_lpszDeviceName_1) {
    3425           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszDeviceName_1, length_lpszDeviceName_1);
    3426             :                 }
    3427           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszDeviceName_1, sizeof(uint16_t)));
    3428           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszDeviceName, length_lpszDeviceName_1, sizeof(uint16_t), CH_UTF16));
    3429           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwMaxQuorumLogSize));
    3430           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    3431           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    3432             :         }
    3433           0 :         if (flags & NDR_OUT) {
    3434             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    3435             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    3436           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3437           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    3438             :                 }
    3439           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3440           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    3441           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    3442           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    3443           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    3444             :         }
    3445           0 :         return NDR_ERR_SUCCESS;
    3446             : }
    3447             : 
    3448           0 : _PUBLIC_ void ndr_print_clusapi_SetQuorumResource(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_SetQuorumResource *r)
    3449             : {
    3450           0 :         ndr_print_struct(ndr, name, "clusapi_SetQuorumResource");
    3451           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    3452           0 :         ndr->depth++;
    3453           0 :         if (flags & NDR_SET_VALUES) {
    3454           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    3455             :         }
    3456           0 :         if (flags & NDR_IN) {
    3457           0 :                 ndr_print_struct(ndr, "in", "clusapi_SetQuorumResource");
    3458           0 :                 ndr->depth++;
    3459           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
    3460           0 :                 ndr_print_ptr(ndr, "lpszDeviceName", r->in.lpszDeviceName);
    3461           0 :                 ndr->depth++;
    3462           0 :                 ndr_print_string(ndr, "lpszDeviceName", r->in.lpszDeviceName);
    3463           0 :                 ndr->depth--;
    3464           0 :                 ndr_print_uint32(ndr, "dwMaxQuorumLogSize", r->in.dwMaxQuorumLogSize);
    3465           0 :                 ndr->depth--;
    3466             :         }
    3467           0 :         if (flags & NDR_OUT) {
    3468           0 :                 ndr_print_struct(ndr, "out", "clusapi_SetQuorumResource");
    3469           0 :                 ndr->depth++;
    3470           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    3471           0 :                 ndr->depth++;
    3472           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    3473           0 :                 ndr->depth--;
    3474           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    3475           0 :                 ndr->depth--;
    3476             :         }
    3477           0 :         ndr->depth--;
    3478             : }
    3479             : 
    3480           0 : static enum ndr_err_code ndr_push_clusapi_CreateEnum(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CreateEnum *r)
    3481             : {
    3482           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    3483           0 :         if (flags & NDR_IN) {
    3484           0 :                 NDR_CHECK(ndr_push_ClusterEnumType(ndr, NDR_SCALARS, r->in.dwType));
    3485             :         }
    3486           0 :         if (flags & NDR_OUT) {
    3487           0 :                 if (r->out.ReturnEnum == NULL) {
    3488           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3489             :                 }
    3490           0 :                 if (r->out.rpc_status == NULL) {
    3491           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3492             :                 }
    3493           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ReturnEnum));
    3494           0 :                 if (*r->out.ReturnEnum) {
    3495           0 :                         NDR_CHECK(ndr_push_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
    3496             :                 }
    3497           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    3498           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    3499             :         }
    3500           0 :         return NDR_ERR_SUCCESS;
    3501             : }
    3502             : 
    3503           0 : static enum ndr_err_code ndr_pull_clusapi_CreateEnum(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CreateEnum *r)
    3504             : {
    3505           0 :         uint32_t _ptr_ReturnEnum;
    3506           0 :         TALLOC_CTX *_mem_save_ReturnEnum_0 = NULL;
    3507           0 :         TALLOC_CTX *_mem_save_ReturnEnum_1 = NULL;
    3508           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    3509           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    3510           0 :         if (flags & NDR_IN) {
    3511           0 :                 NDR_ZERO_STRUCT(r->out);
    3512             : 
    3513           0 :                 NDR_CHECK(ndr_pull_ClusterEnumType(ndr, NDR_SCALARS, &r->in.dwType));
    3514           0 :                 NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
    3515           0 :                 NDR_ZERO_STRUCTP(r->out.ReturnEnum);
    3516           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    3517           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    3518             :         }
    3519           0 :         if (flags & NDR_OUT) {
    3520             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    3521             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    3522           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3523           0 :                         NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
    3524             :                 }
    3525           0 :                 _mem_save_ReturnEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3526           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ReturnEnum, LIBNDR_FLAG_REF_ALLOC);
    3527           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ReturnEnum));
    3528           0 :                 if (_ptr_ReturnEnum) {
    3529           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ReturnEnum);
    3530             :                 } else {
    3531           0 :                         *r->out.ReturnEnum = NULL;
    3532             :                 }
    3533           0 :                 if (*r->out.ReturnEnum) {
    3534           0 :                         _mem_save_ReturnEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
    3535           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ReturnEnum, 0);
    3536           0 :                         NDR_CHECK(ndr_pull_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
    3537           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_1, 0);
    3538             :                 }
    3539           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_0, LIBNDR_FLAG_REF_ALLOC);
    3540           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3541           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    3542             :                 }
    3543           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3544           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    3545           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    3546           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    3547           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    3548             :         }
    3549           0 :         return NDR_ERR_SUCCESS;
    3550             : }
    3551             : 
    3552           0 : _PUBLIC_ void ndr_print_clusapi_CreateEnum(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CreateEnum *r)
    3553             : {
    3554           0 :         ndr_print_struct(ndr, name, "clusapi_CreateEnum");
    3555           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    3556           0 :         ndr->depth++;
    3557           0 :         if (flags & NDR_SET_VALUES) {
    3558           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    3559             :         }
    3560           0 :         if (flags & NDR_IN) {
    3561           0 :                 ndr_print_struct(ndr, "in", "clusapi_CreateEnum");
    3562           0 :                 ndr->depth++;
    3563           0 :                 ndr_print_ClusterEnumType(ndr, "dwType", r->in.dwType);
    3564           0 :                 ndr->depth--;
    3565             :         }
    3566           0 :         if (flags & NDR_OUT) {
    3567           0 :                 ndr_print_struct(ndr, "out", "clusapi_CreateEnum");
    3568           0 :                 ndr->depth++;
    3569           0 :                 ndr_print_ptr(ndr, "ReturnEnum", r->out.ReturnEnum);
    3570           0 :                 ndr->depth++;
    3571           0 :                 ndr_print_ptr(ndr, "ReturnEnum", *r->out.ReturnEnum);
    3572           0 :                 ndr->depth++;
    3573           0 :                 if (*r->out.ReturnEnum) {
    3574           0 :                         ndr_print_ENUM_LIST(ndr, "ReturnEnum", *r->out.ReturnEnum);
    3575             :                 }
    3576           0 :                 ndr->depth--;
    3577           0 :                 ndr->depth--;
    3578           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    3579           0 :                 ndr->depth++;
    3580           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    3581           0 :                 ndr->depth--;
    3582           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    3583           0 :                 ndr->depth--;
    3584             :         }
    3585           0 :         ndr->depth--;
    3586             : }
    3587             : 
    3588           0 : static enum ndr_err_code ndr_push_clusapi_OpenResource(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_OpenResource *r)
    3589             : {
    3590           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    3591           0 :         if (flags & NDR_IN) {
    3592           0 :                 if (r->in.lpszResourceName == NULL) {
    3593           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3594             :                 }
    3595           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceName, CH_UTF16)));
    3596           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    3597           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceName, CH_UTF16)));
    3598           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszResourceName, ndr_charset_length(r->in.lpszResourceName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    3599             :         }
    3600           0 :         if (flags & NDR_OUT) {
    3601           0 :                 if (r->out.Status == NULL) {
    3602           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3603             :                 }
    3604           0 :                 if (r->out.rpc_status == NULL) {
    3605           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3606             :                 }
    3607           0 :                 if (r->out.hResource == NULL) {
    3608           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3609             :                 }
    3610           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
    3611           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    3612           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hResource));
    3613             :         }
    3614           0 :         return NDR_ERR_SUCCESS;
    3615             : }
    3616             : 
    3617           0 : static enum ndr_err_code ndr_pull_clusapi_OpenResource(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_OpenResource *r)
    3618             : {
    3619           0 :         uint32_t size_lpszResourceName_1 = 0;
    3620           0 :         uint32_t length_lpszResourceName_1 = 0;
    3621           0 :         TALLOC_CTX *_mem_save_Status_0 = NULL;
    3622           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    3623           0 :         TALLOC_CTX *_mem_save_hResource_0 = NULL;
    3624           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    3625           0 :         if (flags & NDR_IN) {
    3626           0 :                 NDR_ZERO_STRUCT(r->out);
    3627             : 
    3628           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszResourceName));
    3629           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszResourceName));
    3630           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszResourceName, &size_lpszResourceName_1));
    3631           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszResourceName, &length_lpszResourceName_1));
    3632           0 :                 if (length_lpszResourceName_1 > size_lpszResourceName_1) {
    3633           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszResourceName_1, length_lpszResourceName_1);
    3634             :                 }
    3635           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszResourceName_1, sizeof(uint16_t)));
    3636           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszResourceName, length_lpszResourceName_1, sizeof(uint16_t), CH_UTF16));
    3637           0 :                 NDR_PULL_ALLOC(ndr, r->out.Status);
    3638           0 :                 NDR_ZERO_STRUCTP(r->out.Status);
    3639           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    3640           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    3641           0 :                 NDR_PULL_ALLOC(ndr, r->out.hResource);
    3642           0 :                 NDR_ZERO_STRUCTP(r->out.hResource);
    3643             :         }
    3644           0 :         if (flags & NDR_OUT) {
    3645             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    3646             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    3647           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3648           0 :                         NDR_PULL_ALLOC(ndr, r->out.Status);
    3649             :                 }
    3650           0 :                 _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3651           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
    3652           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
    3653           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
    3654           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3655           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    3656             :                 }
    3657           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3658           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    3659           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    3660           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    3661           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3662           0 :                         NDR_PULL_ALLOC(ndr, r->out.hResource);
    3663             :                 }
    3664           0 :                 _mem_save_hResource_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3665           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.hResource, LIBNDR_FLAG_REF_ALLOC);
    3666           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hResource));
    3667           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hResource_0, LIBNDR_FLAG_REF_ALLOC);
    3668             :         }
    3669           0 :         return NDR_ERR_SUCCESS;
    3670             : }
    3671             : 
    3672           0 : _PUBLIC_ void ndr_print_clusapi_OpenResource(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_OpenResource *r)
    3673             : {
    3674           0 :         ndr_print_struct(ndr, name, "clusapi_OpenResource");
    3675           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    3676           0 :         ndr->depth++;
    3677           0 :         if (flags & NDR_SET_VALUES) {
    3678           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    3679             :         }
    3680           0 :         if (flags & NDR_IN) {
    3681           0 :                 ndr_print_struct(ndr, "in", "clusapi_OpenResource");
    3682           0 :                 ndr->depth++;
    3683           0 :                 ndr_print_ptr(ndr, "lpszResourceName", r->in.lpszResourceName);
    3684           0 :                 ndr->depth++;
    3685           0 :                 ndr_print_string(ndr, "lpszResourceName", r->in.lpszResourceName);
    3686           0 :                 ndr->depth--;
    3687           0 :                 ndr->depth--;
    3688             :         }
    3689           0 :         if (flags & NDR_OUT) {
    3690           0 :                 ndr_print_struct(ndr, "out", "clusapi_OpenResource");
    3691           0 :                 ndr->depth++;
    3692           0 :                 ndr_print_ptr(ndr, "Status", r->out.Status);
    3693           0 :                 ndr->depth++;
    3694           0 :                 ndr_print_WERROR(ndr, "Status", *r->out.Status);
    3695           0 :                 ndr->depth--;
    3696           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    3697           0 :                 ndr->depth++;
    3698           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    3699           0 :                 ndr->depth--;
    3700           0 :                 ndr_print_ptr(ndr, "hResource", r->out.hResource);
    3701           0 :                 ndr->depth++;
    3702           0 :                 ndr_print_policy_handle(ndr, "hResource", r->out.hResource);
    3703           0 :                 ndr->depth--;
    3704           0 :                 ndr->depth--;
    3705             :         }
    3706           0 :         ndr->depth--;
    3707             : }
    3708             : 
    3709           0 : static enum ndr_err_code ndr_push_clusapi_CreateResource(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CreateResource *r)
    3710             : {
    3711           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    3712           0 :         if (flags & NDR_IN) {
    3713           0 :                 if (r->in.lpszResourceName == NULL) {
    3714           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3715             :                 }
    3716           0 :                 if (r->in.lpszResourceType == NULL) {
    3717           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3718             :                 }
    3719           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
    3720           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceName, CH_UTF16)));
    3721           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    3722           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceName, CH_UTF16)));
    3723           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszResourceName, ndr_charset_length(r->in.lpszResourceName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    3724           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceType, CH_UTF16)));
    3725           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    3726           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceType, CH_UTF16)));
    3727           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszResourceType, ndr_charset_length(r->in.lpszResourceType, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    3728           0 :                 NDR_CHECK(ndr_push_clusapi_CreateResourceFlags(ndr, NDR_SCALARS, r->in.dwFlags));
    3729             :         }
    3730           0 :         if (flags & NDR_OUT) {
    3731           0 :                 if (r->out.Status == NULL) {
    3732           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3733             :                 }
    3734           0 :                 if (r->out.rpc_status == NULL) {
    3735           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3736             :                 }
    3737           0 :                 if (r->out.hResource == NULL) {
    3738           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3739             :                 }
    3740           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
    3741           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    3742           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hResource));
    3743             :         }
    3744           0 :         return NDR_ERR_SUCCESS;
    3745             : }
    3746             : 
    3747           0 : static enum ndr_err_code ndr_pull_clusapi_CreateResource(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CreateResource *r)
    3748             : {
    3749           0 :         uint32_t size_lpszResourceName_1 = 0;
    3750           0 :         uint32_t length_lpszResourceName_1 = 0;
    3751           0 :         uint32_t size_lpszResourceType_1 = 0;
    3752           0 :         uint32_t length_lpszResourceType_1 = 0;
    3753           0 :         TALLOC_CTX *_mem_save_Status_0 = NULL;
    3754           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    3755           0 :         TALLOC_CTX *_mem_save_hResource_0 = NULL;
    3756           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    3757           0 :         if (flags & NDR_IN) {
    3758           0 :                 NDR_ZERO_STRUCT(r->out);
    3759             : 
    3760           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
    3761           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszResourceName));
    3762           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszResourceName));
    3763           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszResourceName, &size_lpszResourceName_1));
    3764           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszResourceName, &length_lpszResourceName_1));
    3765           0 :                 if (length_lpszResourceName_1 > size_lpszResourceName_1) {
    3766           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszResourceName_1, length_lpszResourceName_1);
    3767             :                 }
    3768           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszResourceName_1, sizeof(uint16_t)));
    3769           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszResourceName, length_lpszResourceName_1, sizeof(uint16_t), CH_UTF16));
    3770           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszResourceType));
    3771           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszResourceType));
    3772           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszResourceType, &size_lpszResourceType_1));
    3773           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszResourceType, &length_lpszResourceType_1));
    3774           0 :                 if (length_lpszResourceType_1 > size_lpszResourceType_1) {
    3775           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszResourceType_1, length_lpszResourceType_1);
    3776             :                 }
    3777           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszResourceType_1, sizeof(uint16_t)));
    3778           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszResourceType, length_lpszResourceType_1, sizeof(uint16_t), CH_UTF16));
    3779           0 :                 NDR_CHECK(ndr_pull_clusapi_CreateResourceFlags(ndr, NDR_SCALARS, &r->in.dwFlags));
    3780           0 :                 NDR_PULL_ALLOC(ndr, r->out.Status);
    3781           0 :                 NDR_ZERO_STRUCTP(r->out.Status);
    3782           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    3783           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    3784           0 :                 NDR_PULL_ALLOC(ndr, r->out.hResource);
    3785           0 :                 NDR_ZERO_STRUCTP(r->out.hResource);
    3786             :         }
    3787           0 :         if (flags & NDR_OUT) {
    3788             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    3789             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    3790           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3791           0 :                         NDR_PULL_ALLOC(ndr, r->out.Status);
    3792             :                 }
    3793           0 :                 _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3794           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
    3795           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
    3796           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
    3797           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3798           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    3799             :                 }
    3800           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3801           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    3802           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    3803           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    3804           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3805           0 :                         NDR_PULL_ALLOC(ndr, r->out.hResource);
    3806             :                 }
    3807           0 :                 _mem_save_hResource_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3808           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.hResource, LIBNDR_FLAG_REF_ALLOC);
    3809           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hResource));
    3810           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hResource_0, LIBNDR_FLAG_REF_ALLOC);
    3811             :         }
    3812           0 :         return NDR_ERR_SUCCESS;
    3813             : }
    3814             : 
    3815           0 : _PUBLIC_ void ndr_print_clusapi_CreateResource(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CreateResource *r)
    3816             : {
    3817           0 :         ndr_print_struct(ndr, name, "clusapi_CreateResource");
    3818           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    3819           0 :         ndr->depth++;
    3820           0 :         if (flags & NDR_SET_VALUES) {
    3821           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    3822             :         }
    3823           0 :         if (flags & NDR_IN) {
    3824           0 :                 ndr_print_struct(ndr, "in", "clusapi_CreateResource");
    3825           0 :                 ndr->depth++;
    3826           0 :                 ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
    3827           0 :                 ndr_print_ptr(ndr, "lpszResourceName", r->in.lpszResourceName);
    3828           0 :                 ndr->depth++;
    3829           0 :                 ndr_print_string(ndr, "lpszResourceName", r->in.lpszResourceName);
    3830           0 :                 ndr->depth--;
    3831           0 :                 ndr_print_ptr(ndr, "lpszResourceType", r->in.lpszResourceType);
    3832           0 :                 ndr->depth++;
    3833           0 :                 ndr_print_string(ndr, "lpszResourceType", r->in.lpszResourceType);
    3834           0 :                 ndr->depth--;
    3835           0 :                 ndr_print_clusapi_CreateResourceFlags(ndr, "dwFlags", r->in.dwFlags);
    3836           0 :                 ndr->depth--;
    3837             :         }
    3838           0 :         if (flags & NDR_OUT) {
    3839           0 :                 ndr_print_struct(ndr, "out", "clusapi_CreateResource");
    3840           0 :                 ndr->depth++;
    3841           0 :                 ndr_print_ptr(ndr, "Status", r->out.Status);
    3842           0 :                 ndr->depth++;
    3843           0 :                 ndr_print_WERROR(ndr, "Status", *r->out.Status);
    3844           0 :                 ndr->depth--;
    3845           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    3846           0 :                 ndr->depth++;
    3847           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    3848           0 :                 ndr->depth--;
    3849           0 :                 ndr_print_ptr(ndr, "hResource", r->out.hResource);
    3850           0 :                 ndr->depth++;
    3851           0 :                 ndr_print_policy_handle(ndr, "hResource", r->out.hResource);
    3852           0 :                 ndr->depth--;
    3853           0 :                 ndr->depth--;
    3854             :         }
    3855           0 :         ndr->depth--;
    3856             : }
    3857             : 
    3858           0 : static enum ndr_err_code ndr_push_clusapi_DeleteResource(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_DeleteResource *r)
    3859             : {
    3860           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    3861           0 :         if (flags & NDR_IN) {
    3862           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    3863             :         }
    3864           0 :         if (flags & NDR_OUT) {
    3865           0 :                 if (r->out.rpc_status == NULL) {
    3866           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3867             :                 }
    3868           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    3869           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    3870             :         }
    3871           0 :         return NDR_ERR_SUCCESS;
    3872             : }
    3873             : 
    3874           0 : static enum ndr_err_code ndr_pull_clusapi_DeleteResource(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_DeleteResource *r)
    3875             : {
    3876           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    3877           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    3878           0 :         if (flags & NDR_IN) {
    3879           0 :                 NDR_ZERO_STRUCT(r->out);
    3880             : 
    3881           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    3882           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    3883           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    3884             :         }
    3885           0 :         if (flags & NDR_OUT) {
    3886             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    3887             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    3888           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3889           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    3890             :                 }
    3891           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3892           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    3893           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    3894           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    3895           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    3896             :         }
    3897           0 :         return NDR_ERR_SUCCESS;
    3898             : }
    3899             : 
    3900           0 : _PUBLIC_ void ndr_print_clusapi_DeleteResource(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_DeleteResource *r)
    3901             : {
    3902           0 :         ndr_print_struct(ndr, name, "clusapi_DeleteResource");
    3903           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    3904           0 :         ndr->depth++;
    3905           0 :         if (flags & NDR_SET_VALUES) {
    3906           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    3907             :         }
    3908           0 :         if (flags & NDR_IN) {
    3909           0 :                 ndr_print_struct(ndr, "in", "clusapi_DeleteResource");
    3910           0 :                 ndr->depth++;
    3911           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
    3912           0 :                 ndr->depth--;
    3913             :         }
    3914           0 :         if (flags & NDR_OUT) {
    3915           0 :                 ndr_print_struct(ndr, "out", "clusapi_DeleteResource");
    3916           0 :                 ndr->depth++;
    3917           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    3918           0 :                 ndr->depth++;
    3919           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    3920           0 :                 ndr->depth--;
    3921           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    3922           0 :                 ndr->depth--;
    3923             :         }
    3924           0 :         ndr->depth--;
    3925             : }
    3926             : 
    3927           0 : static enum ndr_err_code ndr_push_clusapi_CloseResource(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CloseResource *r)
    3928             : {
    3929           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    3930           0 :         if (flags & NDR_IN) {
    3931           0 :                 if (r->in.Resource == NULL) {
    3932           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3933             :                 }
    3934           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.Resource));
    3935             :         }
    3936           0 :         if (flags & NDR_OUT) {
    3937           0 :                 if (r->out.Resource == NULL) {
    3938           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    3939             :                 }
    3940           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.Resource));
    3941           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    3942             :         }
    3943           0 :         return NDR_ERR_SUCCESS;
    3944             : }
    3945             : 
    3946           0 : static enum ndr_err_code ndr_pull_clusapi_CloseResource(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CloseResource *r)
    3947             : {
    3948           0 :         TALLOC_CTX *_mem_save_Resource_0 = NULL;
    3949           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    3950           0 :         if (flags & NDR_IN) {
    3951           0 :                 NDR_ZERO_STRUCT(r->out);
    3952             : 
    3953           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3954           0 :                         NDR_PULL_ALLOC(ndr, r->in.Resource);
    3955             :                 }
    3956           0 :                 _mem_save_Resource_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3957           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.Resource, LIBNDR_FLAG_REF_ALLOC);
    3958           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.Resource));
    3959           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Resource_0, LIBNDR_FLAG_REF_ALLOC);
    3960           0 :                 NDR_PULL_ALLOC(ndr, r->out.Resource);
    3961           0 :                 *r->out.Resource = *r->in.Resource;
    3962             :         }
    3963           0 :         if (flags & NDR_OUT) {
    3964             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    3965             :                 if (r->in.Resource == NULL) {
    3966             :                         NDR_PULL_ALLOC(ndr, r->in.Resource);
    3967             :                         NDR_ZERO_STRUCTP(r->in.Resource);
    3968             :                 }
    3969             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    3970           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    3971           0 :                         NDR_PULL_ALLOC(ndr, r->out.Resource);
    3972             :                 }
    3973           0 :                 _mem_save_Resource_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3974           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Resource, LIBNDR_FLAG_REF_ALLOC);
    3975           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.Resource));
    3976           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Resource_0, LIBNDR_FLAG_REF_ALLOC);
    3977           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    3978             :         }
    3979           0 :         return NDR_ERR_SUCCESS;
    3980             : }
    3981             : 
    3982           0 : _PUBLIC_ void ndr_print_clusapi_CloseResource(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CloseResource *r)
    3983             : {
    3984           0 :         ndr_print_struct(ndr, name, "clusapi_CloseResource");
    3985           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    3986           0 :         ndr->depth++;
    3987           0 :         if (flags & NDR_SET_VALUES) {
    3988           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    3989             :         }
    3990           0 :         if (flags & NDR_IN) {
    3991           0 :                 ndr_print_struct(ndr, "in", "clusapi_CloseResource");
    3992           0 :                 ndr->depth++;
    3993           0 :                 ndr_print_ptr(ndr, "Resource", r->in.Resource);
    3994           0 :                 ndr->depth++;
    3995           0 :                 ndr_print_policy_handle(ndr, "Resource", r->in.Resource);
    3996           0 :                 ndr->depth--;
    3997           0 :                 ndr->depth--;
    3998             :         }
    3999           0 :         if (flags & NDR_OUT) {
    4000           0 :                 ndr_print_struct(ndr, "out", "clusapi_CloseResource");
    4001           0 :                 ndr->depth++;
    4002           0 :                 ndr_print_ptr(ndr, "Resource", r->out.Resource);
    4003           0 :                 ndr->depth++;
    4004           0 :                 ndr_print_policy_handle(ndr, "Resource", r->out.Resource);
    4005           0 :                 ndr->depth--;
    4006           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    4007           0 :                 ndr->depth--;
    4008             :         }
    4009           0 :         ndr->depth--;
    4010             : }
    4011             : 
    4012           0 : static enum ndr_err_code ndr_push_clusapi_GetResourceState(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_GetResourceState *r)
    4013             : {
    4014           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    4015           0 :         if (flags & NDR_IN) {
    4016           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    4017             :         }
    4018           0 :         if (flags & NDR_OUT) {
    4019           0 :                 if (r->out.State == NULL) {
    4020           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4021             :                 }
    4022           0 :                 if (r->out.NodeName == NULL) {
    4023           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4024             :                 }
    4025           0 :                 if (r->out.GroupName == NULL) {
    4026           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4027             :                 }
    4028           0 :                 if (r->out.rpc_status == NULL) {
    4029           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4030             :                 }
    4031           0 :                 NDR_CHECK(ndr_push_clusapi_ClusterResourceState(ndr, NDR_SCALARS, *r->out.State));
    4032           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.NodeName));
    4033           0 :                 if (*r->out.NodeName) {
    4034           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.NodeName, CH_UTF16)));
    4035           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    4036           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.NodeName, CH_UTF16)));
    4037           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.NodeName, ndr_charset_length(*r->out.NodeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    4038             :                 }
    4039           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.GroupName));
    4040           0 :                 if (*r->out.GroupName) {
    4041           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.GroupName, CH_UTF16)));
    4042           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    4043           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.GroupName, CH_UTF16)));
    4044           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.GroupName, ndr_charset_length(*r->out.GroupName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    4045             :                 }
    4046           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    4047           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    4048             :         }
    4049           0 :         return NDR_ERR_SUCCESS;
    4050             : }
    4051             : 
    4052           0 : static enum ndr_err_code ndr_pull_clusapi_GetResourceState(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_GetResourceState *r)
    4053             : {
    4054           0 :         uint32_t _ptr_NodeName;
    4055           0 :         uint32_t size_NodeName_2 = 0;
    4056           0 :         uint32_t length_NodeName_2 = 0;
    4057           0 :         uint32_t _ptr_GroupName;
    4058           0 :         uint32_t size_GroupName_2 = 0;
    4059           0 :         uint32_t length_GroupName_2 = 0;
    4060           0 :         TALLOC_CTX *_mem_save_State_0 = NULL;
    4061           0 :         TALLOC_CTX *_mem_save_NodeName_0 = NULL;
    4062           0 :         TALLOC_CTX *_mem_save_NodeName_1 = NULL;
    4063           0 :         TALLOC_CTX *_mem_save_GroupName_0 = NULL;
    4064           0 :         TALLOC_CTX *_mem_save_GroupName_1 = NULL;
    4065           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    4066           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    4067           0 :         if (flags & NDR_IN) {
    4068           0 :                 NDR_ZERO_STRUCT(r->out);
    4069             : 
    4070           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    4071           0 :                 NDR_PULL_ALLOC(ndr, r->out.State);
    4072           0 :                 NDR_ZERO_STRUCTP(r->out.State);
    4073           0 :                 NDR_PULL_ALLOC(ndr, r->out.NodeName);
    4074           0 :                 NDR_ZERO_STRUCTP(r->out.NodeName);
    4075           0 :                 NDR_PULL_ALLOC(ndr, r->out.GroupName);
    4076           0 :                 NDR_ZERO_STRUCTP(r->out.GroupName);
    4077           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    4078           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    4079             :         }
    4080           0 :         if (flags & NDR_OUT) {
    4081             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    4082             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    4083           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4084           0 :                         NDR_PULL_ALLOC(ndr, r->out.State);
    4085             :                 }
    4086           0 :                 _mem_save_State_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4087           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.State, LIBNDR_FLAG_REF_ALLOC);
    4088           0 :                 NDR_CHECK(ndr_pull_clusapi_ClusterResourceState(ndr, NDR_SCALARS, r->out.State));
    4089           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_State_0, LIBNDR_FLAG_REF_ALLOC);
    4090           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4091           0 :                         NDR_PULL_ALLOC(ndr, r->out.NodeName);
    4092             :                 }
    4093           0 :                 _mem_save_NodeName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4094           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.NodeName, LIBNDR_FLAG_REF_ALLOC);
    4095           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_NodeName));
    4096           0 :                 if (_ptr_NodeName) {
    4097           0 :                         NDR_PULL_ALLOC(ndr, *r->out.NodeName);
    4098             :                 } else {
    4099           0 :                         *r->out.NodeName = NULL;
    4100             :                 }
    4101           0 :                 if (*r->out.NodeName) {
    4102           0 :                         _mem_save_NodeName_1 = NDR_PULL_GET_MEM_CTX(ndr);
    4103           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.NodeName, 0);
    4104           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.NodeName));
    4105           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, r->out.NodeName));
    4106           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.NodeName, &size_NodeName_2));
    4107           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.NodeName, &length_NodeName_2));
    4108           0 :                         if (length_NodeName_2 > size_NodeName_2) {
    4109           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_NodeName_2, length_NodeName_2);
    4110             :                         }
    4111           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_NodeName_2, sizeof(uint16_t)));
    4112           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.NodeName, length_NodeName_2, sizeof(uint16_t), CH_UTF16));
    4113           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_NodeName_1, 0);
    4114             :                 }
    4115           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_NodeName_0, LIBNDR_FLAG_REF_ALLOC);
    4116           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4117           0 :                         NDR_PULL_ALLOC(ndr, r->out.GroupName);
    4118             :                 }
    4119           0 :                 _mem_save_GroupName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4120           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.GroupName, LIBNDR_FLAG_REF_ALLOC);
    4121           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_GroupName));
    4122           0 :                 if (_ptr_GroupName) {
    4123           0 :                         NDR_PULL_ALLOC(ndr, *r->out.GroupName);
    4124             :                 } else {
    4125           0 :                         *r->out.GroupName = NULL;
    4126             :                 }
    4127           0 :                 if (*r->out.GroupName) {
    4128           0 :                         _mem_save_GroupName_1 = NDR_PULL_GET_MEM_CTX(ndr);
    4129           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.GroupName, 0);
    4130           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.GroupName));
    4131           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, r->out.GroupName));
    4132           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.GroupName, &size_GroupName_2));
    4133           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.GroupName, &length_GroupName_2));
    4134           0 :                         if (length_GroupName_2 > size_GroupName_2) {
    4135           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_GroupName_2, length_GroupName_2);
    4136             :                         }
    4137           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_GroupName_2, sizeof(uint16_t)));
    4138           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.GroupName, length_GroupName_2, sizeof(uint16_t), CH_UTF16));
    4139           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_GroupName_1, 0);
    4140             :                 }
    4141           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_GroupName_0, LIBNDR_FLAG_REF_ALLOC);
    4142           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4143           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    4144             :                 }
    4145           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4146           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    4147           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    4148           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    4149           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    4150             :         }
    4151           0 :         return NDR_ERR_SUCCESS;
    4152             : }
    4153             : 
    4154           0 : _PUBLIC_ void ndr_print_clusapi_GetResourceState(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_GetResourceState *r)
    4155             : {
    4156           0 :         ndr_print_struct(ndr, name, "clusapi_GetResourceState");
    4157           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    4158           0 :         ndr->depth++;
    4159           0 :         if (flags & NDR_SET_VALUES) {
    4160           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    4161             :         }
    4162           0 :         if (flags & NDR_IN) {
    4163           0 :                 ndr_print_struct(ndr, "in", "clusapi_GetResourceState");
    4164           0 :                 ndr->depth++;
    4165           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
    4166           0 :                 ndr->depth--;
    4167             :         }
    4168           0 :         if (flags & NDR_OUT) {
    4169           0 :                 ndr_print_struct(ndr, "out", "clusapi_GetResourceState");
    4170           0 :                 ndr->depth++;
    4171           0 :                 ndr_print_ptr(ndr, "State", r->out.State);
    4172           0 :                 ndr->depth++;
    4173           0 :                 ndr_print_clusapi_ClusterResourceState(ndr, "State", *r->out.State);
    4174           0 :                 ndr->depth--;
    4175           0 :                 ndr_print_ptr(ndr, "NodeName", r->out.NodeName);
    4176           0 :                 ndr->depth++;
    4177           0 :                 ndr_print_ptr(ndr, "NodeName", *r->out.NodeName);
    4178           0 :                 ndr->depth++;
    4179           0 :                 if (*r->out.NodeName) {
    4180           0 :                         ndr_print_string(ndr, "NodeName", *r->out.NodeName);
    4181             :                 }
    4182           0 :                 ndr->depth--;
    4183           0 :                 ndr->depth--;
    4184           0 :                 ndr_print_ptr(ndr, "GroupName", r->out.GroupName);
    4185           0 :                 ndr->depth++;
    4186           0 :                 ndr_print_ptr(ndr, "GroupName", *r->out.GroupName);
    4187           0 :                 ndr->depth++;
    4188           0 :                 if (*r->out.GroupName) {
    4189           0 :                         ndr_print_string(ndr, "GroupName", *r->out.GroupName);
    4190             :                 }
    4191           0 :                 ndr->depth--;
    4192           0 :                 ndr->depth--;
    4193           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    4194           0 :                 ndr->depth++;
    4195           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    4196           0 :                 ndr->depth--;
    4197           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    4198           0 :                 ndr->depth--;
    4199             :         }
    4200           0 :         ndr->depth--;
    4201             : }
    4202             : 
    4203           0 : static enum ndr_err_code ndr_push_clusapi_SetResourceName(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_SetResourceName *r)
    4204             : {
    4205           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    4206           0 :         if (flags & NDR_IN) {
    4207           0 :                 if (r->in.lpszResourceName == NULL) {
    4208           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4209             :                 }
    4210           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    4211           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceName, CH_UTF16)));
    4212           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    4213           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceName, CH_UTF16)));
    4214           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszResourceName, ndr_charset_length(r->in.lpszResourceName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    4215             :         }
    4216           0 :         if (flags & NDR_OUT) {
    4217           0 :                 if (r->out.rpc_status == NULL) {
    4218           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4219             :                 }
    4220           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    4221           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    4222             :         }
    4223           0 :         return NDR_ERR_SUCCESS;
    4224             : }
    4225             : 
    4226           0 : static enum ndr_err_code ndr_pull_clusapi_SetResourceName(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_SetResourceName *r)
    4227             : {
    4228           0 :         uint32_t size_lpszResourceName_1 = 0;
    4229           0 :         uint32_t length_lpszResourceName_1 = 0;
    4230           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    4231           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    4232           0 :         if (flags & NDR_IN) {
    4233           0 :                 NDR_ZERO_STRUCT(r->out);
    4234             : 
    4235           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    4236           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszResourceName));
    4237           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszResourceName));
    4238           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszResourceName, &size_lpszResourceName_1));
    4239           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszResourceName, &length_lpszResourceName_1));
    4240           0 :                 if (length_lpszResourceName_1 > size_lpszResourceName_1) {
    4241           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszResourceName_1, length_lpszResourceName_1);
    4242             :                 }
    4243           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszResourceName_1, sizeof(uint16_t)));
    4244           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszResourceName, length_lpszResourceName_1, sizeof(uint16_t), CH_UTF16));
    4245           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    4246           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    4247             :         }
    4248           0 :         if (flags & NDR_OUT) {
    4249             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    4250             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    4251           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4252           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    4253             :                 }
    4254           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4255           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    4256           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    4257           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    4258           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    4259             :         }
    4260           0 :         return NDR_ERR_SUCCESS;
    4261             : }
    4262             : 
    4263           0 : _PUBLIC_ void ndr_print_clusapi_SetResourceName(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_SetResourceName *r)
    4264             : {
    4265           0 :         ndr_print_struct(ndr, name, "clusapi_SetResourceName");
    4266           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    4267           0 :         ndr->depth++;
    4268           0 :         if (flags & NDR_SET_VALUES) {
    4269           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    4270             :         }
    4271           0 :         if (flags & NDR_IN) {
    4272           0 :                 ndr_print_struct(ndr, "in", "clusapi_SetResourceName");
    4273           0 :                 ndr->depth++;
    4274           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
    4275           0 :                 ndr_print_ptr(ndr, "lpszResourceName", r->in.lpszResourceName);
    4276           0 :                 ndr->depth++;
    4277           0 :                 ndr_print_string(ndr, "lpszResourceName", r->in.lpszResourceName);
    4278           0 :                 ndr->depth--;
    4279           0 :                 ndr->depth--;
    4280             :         }
    4281           0 :         if (flags & NDR_OUT) {
    4282           0 :                 ndr_print_struct(ndr, "out", "clusapi_SetResourceName");
    4283           0 :                 ndr->depth++;
    4284           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    4285           0 :                 ndr->depth++;
    4286           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    4287           0 :                 ndr->depth--;
    4288           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    4289           0 :                 ndr->depth--;
    4290             :         }
    4291           0 :         ndr->depth--;
    4292             : }
    4293             : 
    4294           0 : static enum ndr_err_code ndr_push_clusapi_GetResourceId(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_GetResourceId *r)
    4295             : {
    4296           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    4297           0 :         if (flags & NDR_IN) {
    4298           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    4299             :         }
    4300           0 :         if (flags & NDR_OUT) {
    4301           0 :                 if (r->out.pGuid == NULL) {
    4302           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4303             :                 }
    4304           0 :                 if (r->out.rpc_status == NULL) {
    4305           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4306             :                 }
    4307           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.pGuid));
    4308           0 :                 if (*r->out.pGuid) {
    4309           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.pGuid, CH_UTF16)));
    4310           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    4311           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.pGuid, CH_UTF16)));
    4312           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.pGuid, ndr_charset_length(*r->out.pGuid, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    4313             :                 }
    4314           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    4315           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    4316             :         }
    4317           0 :         return NDR_ERR_SUCCESS;
    4318             : }
    4319             : 
    4320           0 : static enum ndr_err_code ndr_pull_clusapi_GetResourceId(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_GetResourceId *r)
    4321             : {
    4322           0 :         uint32_t _ptr_pGuid;
    4323           0 :         uint32_t size_pGuid_2 = 0;
    4324           0 :         uint32_t length_pGuid_2 = 0;
    4325           0 :         TALLOC_CTX *_mem_save_pGuid_0 = NULL;
    4326           0 :         TALLOC_CTX *_mem_save_pGuid_1 = NULL;
    4327           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    4328           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    4329           0 :         if (flags & NDR_IN) {
    4330           0 :                 NDR_ZERO_STRUCT(r->out);
    4331             : 
    4332           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    4333           0 :                 NDR_PULL_ALLOC(ndr, r->out.pGuid);
    4334           0 :                 NDR_ZERO_STRUCTP(r->out.pGuid);
    4335           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    4336           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    4337             :         }
    4338           0 :         if (flags & NDR_OUT) {
    4339             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    4340             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    4341           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4342           0 :                         NDR_PULL_ALLOC(ndr, r->out.pGuid);
    4343             :                 }
    4344           0 :                 _mem_save_pGuid_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4345           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.pGuid, LIBNDR_FLAG_REF_ALLOC);
    4346           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pGuid));
    4347           0 :                 if (_ptr_pGuid) {
    4348           0 :                         NDR_PULL_ALLOC(ndr, *r->out.pGuid);
    4349             :                 } else {
    4350           0 :                         *r->out.pGuid = NULL;
    4351             :                 }
    4352           0 :                 if (*r->out.pGuid) {
    4353           0 :                         _mem_save_pGuid_1 = NDR_PULL_GET_MEM_CTX(ndr);
    4354           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.pGuid, 0);
    4355           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.pGuid));
    4356           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, r->out.pGuid));
    4357           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.pGuid, &size_pGuid_2));
    4358           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.pGuid, &length_pGuid_2));
    4359           0 :                         if (length_pGuid_2 > size_pGuid_2) {
    4360           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_pGuid_2, length_pGuid_2);
    4361             :                         }
    4362           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_pGuid_2, sizeof(uint16_t)));
    4363           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.pGuid, length_pGuid_2, sizeof(uint16_t), CH_UTF16));
    4364           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pGuid_1, 0);
    4365             :                 }
    4366           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pGuid_0, LIBNDR_FLAG_REF_ALLOC);
    4367           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4368           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    4369             :                 }
    4370           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4371           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    4372           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    4373           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    4374           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    4375             :         }
    4376           0 :         return NDR_ERR_SUCCESS;
    4377             : }
    4378             : 
    4379           0 : _PUBLIC_ void ndr_print_clusapi_GetResourceId(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_GetResourceId *r)
    4380             : {
    4381           0 :         ndr_print_struct(ndr, name, "clusapi_GetResourceId");
    4382           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    4383           0 :         ndr->depth++;
    4384           0 :         if (flags & NDR_SET_VALUES) {
    4385           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    4386             :         }
    4387           0 :         if (flags & NDR_IN) {
    4388           0 :                 ndr_print_struct(ndr, "in", "clusapi_GetResourceId");
    4389           0 :                 ndr->depth++;
    4390           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
    4391           0 :                 ndr->depth--;
    4392             :         }
    4393           0 :         if (flags & NDR_OUT) {
    4394           0 :                 ndr_print_struct(ndr, "out", "clusapi_GetResourceId");
    4395           0 :                 ndr->depth++;
    4396           0 :                 ndr_print_ptr(ndr, "pGuid", r->out.pGuid);
    4397           0 :                 ndr->depth++;
    4398           0 :                 ndr_print_ptr(ndr, "pGuid", *r->out.pGuid);
    4399           0 :                 ndr->depth++;
    4400           0 :                 if (*r->out.pGuid) {
    4401           0 :                         ndr_print_string(ndr, "pGuid", *r->out.pGuid);
    4402             :                 }
    4403           0 :                 ndr->depth--;
    4404           0 :                 ndr->depth--;
    4405           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    4406           0 :                 ndr->depth++;
    4407           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    4408           0 :                 ndr->depth--;
    4409           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    4410           0 :                 ndr->depth--;
    4411             :         }
    4412           0 :         ndr->depth--;
    4413             : }
    4414             : 
    4415           0 : static enum ndr_err_code ndr_push_clusapi_GetResourceType(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_GetResourceType *r)
    4416             : {
    4417           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    4418           0 :         if (flags & NDR_IN) {
    4419           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    4420             :         }
    4421           0 :         if (flags & NDR_OUT) {
    4422           0 :                 if (r->out.lpszResourceType == NULL) {
    4423           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4424             :                 }
    4425           0 :                 if (r->out.rpc_status == NULL) {
    4426           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4427             :                 }
    4428           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lpszResourceType));
    4429           0 :                 if (*r->out.lpszResourceType) {
    4430           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszResourceType, CH_UTF16)));
    4431           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    4432           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszResourceType, CH_UTF16)));
    4433           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.lpszResourceType, ndr_charset_length(*r->out.lpszResourceType, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    4434             :                 }
    4435           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    4436           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    4437             :         }
    4438           0 :         return NDR_ERR_SUCCESS;
    4439             : }
    4440             : 
    4441           0 : static enum ndr_err_code ndr_pull_clusapi_GetResourceType(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_GetResourceType *r)
    4442             : {
    4443           0 :         uint32_t _ptr_lpszResourceType;
    4444           0 :         uint32_t size_lpszResourceType_2 = 0;
    4445           0 :         uint32_t length_lpszResourceType_2 = 0;
    4446           0 :         TALLOC_CTX *_mem_save_lpszResourceType_0 = NULL;
    4447           0 :         TALLOC_CTX *_mem_save_lpszResourceType_1 = NULL;
    4448           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    4449           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    4450           0 :         if (flags & NDR_IN) {
    4451           0 :                 NDR_ZERO_STRUCT(r->out);
    4452             : 
    4453           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    4454           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpszResourceType);
    4455           0 :                 NDR_ZERO_STRUCTP(r->out.lpszResourceType);
    4456           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    4457           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    4458             :         }
    4459           0 :         if (flags & NDR_OUT) {
    4460             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    4461             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    4462           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4463           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpszResourceType);
    4464             :                 }
    4465           0 :                 _mem_save_lpszResourceType_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4466           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpszResourceType, LIBNDR_FLAG_REF_ALLOC);
    4467           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpszResourceType));
    4468           0 :                 if (_ptr_lpszResourceType) {
    4469           0 :                         NDR_PULL_ALLOC(ndr, *r->out.lpszResourceType);
    4470             :                 } else {
    4471           0 :                         *r->out.lpszResourceType = NULL;
    4472             :                 }
    4473           0 :                 if (*r->out.lpszResourceType) {
    4474           0 :                         _mem_save_lpszResourceType_1 = NDR_PULL_GET_MEM_CTX(ndr);
    4475           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.lpszResourceType, 0);
    4476           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.lpszResourceType));
    4477           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, r->out.lpszResourceType));
    4478           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.lpszResourceType, &size_lpszResourceType_2));
    4479           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.lpszResourceType, &length_lpszResourceType_2));
    4480           0 :                         if (length_lpszResourceType_2 > size_lpszResourceType_2) {
    4481           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszResourceType_2, length_lpszResourceType_2);
    4482             :                         }
    4483           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszResourceType_2, sizeof(uint16_t)));
    4484           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.lpszResourceType, length_lpszResourceType_2, sizeof(uint16_t), CH_UTF16));
    4485           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszResourceType_1, 0);
    4486             :                 }
    4487           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszResourceType_0, LIBNDR_FLAG_REF_ALLOC);
    4488           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4489           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    4490             :                 }
    4491           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4492           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    4493           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    4494           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    4495           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    4496             :         }
    4497           0 :         return NDR_ERR_SUCCESS;
    4498             : }
    4499             : 
    4500           0 : _PUBLIC_ void ndr_print_clusapi_GetResourceType(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_GetResourceType *r)
    4501             : {
    4502           0 :         ndr_print_struct(ndr, name, "clusapi_GetResourceType");
    4503           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    4504           0 :         ndr->depth++;
    4505           0 :         if (flags & NDR_SET_VALUES) {
    4506           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    4507             :         }
    4508           0 :         if (flags & NDR_IN) {
    4509           0 :                 ndr_print_struct(ndr, "in", "clusapi_GetResourceType");
    4510           0 :                 ndr->depth++;
    4511           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
    4512           0 :                 ndr->depth--;
    4513             :         }
    4514           0 :         if (flags & NDR_OUT) {
    4515           0 :                 ndr_print_struct(ndr, "out", "clusapi_GetResourceType");
    4516           0 :                 ndr->depth++;
    4517           0 :                 ndr_print_ptr(ndr, "lpszResourceType", r->out.lpszResourceType);
    4518           0 :                 ndr->depth++;
    4519           0 :                 ndr_print_ptr(ndr, "lpszResourceType", *r->out.lpszResourceType);
    4520           0 :                 ndr->depth++;
    4521           0 :                 if (*r->out.lpszResourceType) {
    4522           0 :                         ndr_print_string(ndr, "lpszResourceType", *r->out.lpszResourceType);
    4523             :                 }
    4524           0 :                 ndr->depth--;
    4525           0 :                 ndr->depth--;
    4526           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    4527           0 :                 ndr->depth++;
    4528           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    4529           0 :                 ndr->depth--;
    4530           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    4531           0 :                 ndr->depth--;
    4532             :         }
    4533           0 :         ndr->depth--;
    4534             : }
    4535             : 
    4536           0 : static enum ndr_err_code ndr_push_clusapi_FailResource(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_FailResource *r)
    4537             : {
    4538           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    4539           0 :         if (flags & NDR_IN) {
    4540           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    4541             :         }
    4542           0 :         if (flags & NDR_OUT) {
    4543           0 :                 if (r->out.rpc_status == NULL) {
    4544           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4545             :                 }
    4546           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    4547           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    4548             :         }
    4549           0 :         return NDR_ERR_SUCCESS;
    4550             : }
    4551             : 
    4552           0 : static enum ndr_err_code ndr_pull_clusapi_FailResource(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_FailResource *r)
    4553             : {
    4554           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    4555           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    4556           0 :         if (flags & NDR_IN) {
    4557           0 :                 NDR_ZERO_STRUCT(r->out);
    4558             : 
    4559           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    4560           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    4561           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    4562             :         }
    4563           0 :         if (flags & NDR_OUT) {
    4564             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    4565             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    4566           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4567           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    4568             :                 }
    4569           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4570           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    4571           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    4572           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    4573           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    4574             :         }
    4575           0 :         return NDR_ERR_SUCCESS;
    4576             : }
    4577             : 
    4578           0 : _PUBLIC_ void ndr_print_clusapi_FailResource(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_FailResource *r)
    4579             : {
    4580           0 :         ndr_print_struct(ndr, name, "clusapi_FailResource");
    4581           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    4582           0 :         ndr->depth++;
    4583           0 :         if (flags & NDR_SET_VALUES) {
    4584           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    4585             :         }
    4586           0 :         if (flags & NDR_IN) {
    4587           0 :                 ndr_print_struct(ndr, "in", "clusapi_FailResource");
    4588           0 :                 ndr->depth++;
    4589           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
    4590           0 :                 ndr->depth--;
    4591             :         }
    4592           0 :         if (flags & NDR_OUT) {
    4593           0 :                 ndr_print_struct(ndr, "out", "clusapi_FailResource");
    4594           0 :                 ndr->depth++;
    4595           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    4596           0 :                 ndr->depth++;
    4597           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    4598           0 :                 ndr->depth--;
    4599           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    4600           0 :                 ndr->depth--;
    4601             :         }
    4602           0 :         ndr->depth--;
    4603             : }
    4604             : 
    4605           0 : static enum ndr_err_code ndr_push_clusapi_OnlineResource(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_OnlineResource *r)
    4606             : {
    4607           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    4608           0 :         if (flags & NDR_IN) {
    4609           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    4610             :         }
    4611           0 :         if (flags & NDR_OUT) {
    4612           0 :                 if (r->out.rpc_status == NULL) {
    4613           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4614             :                 }
    4615           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    4616           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    4617             :         }
    4618           0 :         return NDR_ERR_SUCCESS;
    4619             : }
    4620             : 
    4621           0 : static enum ndr_err_code ndr_pull_clusapi_OnlineResource(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_OnlineResource *r)
    4622             : {
    4623           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    4624           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    4625           0 :         if (flags & NDR_IN) {
    4626           0 :                 NDR_ZERO_STRUCT(r->out);
    4627             : 
    4628           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    4629           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    4630           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    4631             :         }
    4632           0 :         if (flags & NDR_OUT) {
    4633             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    4634             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    4635           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4636           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    4637             :                 }
    4638           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4639           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    4640           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    4641           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    4642           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    4643             :         }
    4644           0 :         return NDR_ERR_SUCCESS;
    4645             : }
    4646             : 
    4647           0 : _PUBLIC_ void ndr_print_clusapi_OnlineResource(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_OnlineResource *r)
    4648             : {
    4649           0 :         ndr_print_struct(ndr, name, "clusapi_OnlineResource");
    4650           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    4651           0 :         ndr->depth++;
    4652           0 :         if (flags & NDR_SET_VALUES) {
    4653           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    4654             :         }
    4655           0 :         if (flags & NDR_IN) {
    4656           0 :                 ndr_print_struct(ndr, "in", "clusapi_OnlineResource");
    4657           0 :                 ndr->depth++;
    4658           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
    4659           0 :                 ndr->depth--;
    4660             :         }
    4661           0 :         if (flags & NDR_OUT) {
    4662           0 :                 ndr_print_struct(ndr, "out", "clusapi_OnlineResource");
    4663           0 :                 ndr->depth++;
    4664           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    4665           0 :                 ndr->depth++;
    4666           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    4667           0 :                 ndr->depth--;
    4668           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    4669           0 :                 ndr->depth--;
    4670             :         }
    4671           0 :         ndr->depth--;
    4672             : }
    4673             : 
    4674           0 : static enum ndr_err_code ndr_push_clusapi_OfflineResource(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_OfflineResource *r)
    4675             : {
    4676           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    4677           0 :         if (flags & NDR_IN) {
    4678           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    4679             :         }
    4680           0 :         if (flags & NDR_OUT) {
    4681           0 :                 if (r->out.rpc_status == NULL) {
    4682           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4683             :                 }
    4684           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    4685           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    4686             :         }
    4687           0 :         return NDR_ERR_SUCCESS;
    4688             : }
    4689             : 
    4690           0 : static enum ndr_err_code ndr_pull_clusapi_OfflineResource(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_OfflineResource *r)
    4691             : {
    4692           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    4693           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    4694           0 :         if (flags & NDR_IN) {
    4695           0 :                 NDR_ZERO_STRUCT(r->out);
    4696             : 
    4697           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    4698           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    4699           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    4700             :         }
    4701           0 :         if (flags & NDR_OUT) {
    4702             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    4703             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    4704           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4705           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    4706             :                 }
    4707           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4708           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    4709           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    4710           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    4711           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    4712             :         }
    4713           0 :         return NDR_ERR_SUCCESS;
    4714             : }
    4715             : 
    4716           0 : _PUBLIC_ void ndr_print_clusapi_OfflineResource(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_OfflineResource *r)
    4717             : {
    4718           0 :         ndr_print_struct(ndr, name, "clusapi_OfflineResource");
    4719           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    4720           0 :         ndr->depth++;
    4721           0 :         if (flags & NDR_SET_VALUES) {
    4722           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    4723             :         }
    4724           0 :         if (flags & NDR_IN) {
    4725           0 :                 ndr_print_struct(ndr, "in", "clusapi_OfflineResource");
    4726           0 :                 ndr->depth++;
    4727           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
    4728           0 :                 ndr->depth--;
    4729             :         }
    4730           0 :         if (flags & NDR_OUT) {
    4731           0 :                 ndr_print_struct(ndr, "out", "clusapi_OfflineResource");
    4732           0 :                 ndr->depth++;
    4733           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    4734           0 :                 ndr->depth++;
    4735           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    4736           0 :                 ndr->depth--;
    4737           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    4738           0 :                 ndr->depth--;
    4739             :         }
    4740           0 :         ndr->depth--;
    4741             : }
    4742             : 
    4743           0 : static enum ndr_err_code ndr_push_clusapi_AddResourceDependency(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_AddResourceDependency *r)
    4744             : {
    4745           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    4746           0 :         if (flags & NDR_IN) {
    4747           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    4748           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hDependsOn));
    4749             :         }
    4750           0 :         if (flags & NDR_OUT) {
    4751           0 :                 if (r->out.rpc_status == NULL) {
    4752           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4753             :                 }
    4754           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    4755           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    4756             :         }
    4757           0 :         return NDR_ERR_SUCCESS;
    4758             : }
    4759             : 
    4760           0 : static enum ndr_err_code ndr_pull_clusapi_AddResourceDependency(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_AddResourceDependency *r)
    4761             : {
    4762           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    4763           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    4764           0 :         if (flags & NDR_IN) {
    4765           0 :                 NDR_ZERO_STRUCT(r->out);
    4766             : 
    4767           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    4768           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hDependsOn));
    4769           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    4770           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    4771             :         }
    4772           0 :         if (flags & NDR_OUT) {
    4773             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    4774             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    4775           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4776           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    4777             :                 }
    4778           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4779           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    4780           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    4781           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    4782           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    4783             :         }
    4784           0 :         return NDR_ERR_SUCCESS;
    4785             : }
    4786             : 
    4787           0 : _PUBLIC_ void ndr_print_clusapi_AddResourceDependency(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_AddResourceDependency *r)
    4788             : {
    4789           0 :         ndr_print_struct(ndr, name, "clusapi_AddResourceDependency");
    4790           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    4791           0 :         ndr->depth++;
    4792           0 :         if (flags & NDR_SET_VALUES) {
    4793           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    4794             :         }
    4795           0 :         if (flags & NDR_IN) {
    4796           0 :                 ndr_print_struct(ndr, "in", "clusapi_AddResourceDependency");
    4797           0 :                 ndr->depth++;
    4798           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
    4799           0 :                 ndr_print_policy_handle(ndr, "hDependsOn", &r->in.hDependsOn);
    4800           0 :                 ndr->depth--;
    4801             :         }
    4802           0 :         if (flags & NDR_OUT) {
    4803           0 :                 ndr_print_struct(ndr, "out", "clusapi_AddResourceDependency");
    4804           0 :                 ndr->depth++;
    4805           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    4806           0 :                 ndr->depth++;
    4807           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    4808           0 :                 ndr->depth--;
    4809           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    4810           0 :                 ndr->depth--;
    4811             :         }
    4812           0 :         ndr->depth--;
    4813             : }
    4814             : 
    4815           0 : static enum ndr_err_code ndr_push_clusapi_RemoveResourceDependency(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_RemoveResourceDependency *r)
    4816             : {
    4817           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    4818           0 :         if (flags & NDR_IN) {
    4819           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    4820           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hDependsOn));
    4821             :         }
    4822           0 :         if (flags & NDR_OUT) {
    4823           0 :                 if (r->out.rpc_status == NULL) {
    4824           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4825             :                 }
    4826           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    4827           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    4828             :         }
    4829           0 :         return NDR_ERR_SUCCESS;
    4830             : }
    4831             : 
    4832           0 : static enum ndr_err_code ndr_pull_clusapi_RemoveResourceDependency(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_RemoveResourceDependency *r)
    4833             : {
    4834           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    4835           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    4836           0 :         if (flags & NDR_IN) {
    4837           0 :                 NDR_ZERO_STRUCT(r->out);
    4838             : 
    4839           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    4840           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hDependsOn));
    4841           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    4842           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    4843             :         }
    4844           0 :         if (flags & NDR_OUT) {
    4845             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    4846             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    4847           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4848           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    4849             :                 }
    4850           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4851           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    4852           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    4853           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    4854           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    4855             :         }
    4856           0 :         return NDR_ERR_SUCCESS;
    4857             : }
    4858             : 
    4859           0 : _PUBLIC_ void ndr_print_clusapi_RemoveResourceDependency(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_RemoveResourceDependency *r)
    4860             : {
    4861           0 :         ndr_print_struct(ndr, name, "clusapi_RemoveResourceDependency");
    4862           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    4863           0 :         ndr->depth++;
    4864           0 :         if (flags & NDR_SET_VALUES) {
    4865           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    4866             :         }
    4867           0 :         if (flags & NDR_IN) {
    4868           0 :                 ndr_print_struct(ndr, "in", "clusapi_RemoveResourceDependency");
    4869           0 :                 ndr->depth++;
    4870           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
    4871           0 :                 ndr_print_policy_handle(ndr, "hDependsOn", &r->in.hDependsOn);
    4872           0 :                 ndr->depth--;
    4873             :         }
    4874           0 :         if (flags & NDR_OUT) {
    4875           0 :                 ndr_print_struct(ndr, "out", "clusapi_RemoveResourceDependency");
    4876           0 :                 ndr->depth++;
    4877           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    4878           0 :                 ndr->depth++;
    4879           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    4880           0 :                 ndr->depth--;
    4881           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    4882           0 :                 ndr->depth--;
    4883             :         }
    4884           0 :         ndr->depth--;
    4885             : }
    4886             : 
    4887           0 : static enum ndr_err_code ndr_push_clusapi_CanResourceBeDependent(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CanResourceBeDependent *r)
    4888             : {
    4889           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    4890           0 :         if (flags & NDR_IN) {
    4891           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    4892           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResourceDependent));
    4893             :         }
    4894           0 :         if (flags & NDR_OUT) {
    4895           0 :                 if (r->out.rpc_status == NULL) {
    4896           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4897             :                 }
    4898           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    4899           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    4900             :         }
    4901           0 :         return NDR_ERR_SUCCESS;
    4902             : }
    4903             : 
    4904           0 : static enum ndr_err_code ndr_pull_clusapi_CanResourceBeDependent(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CanResourceBeDependent *r)
    4905             : {
    4906           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    4907           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    4908           0 :         if (flags & NDR_IN) {
    4909           0 :                 NDR_ZERO_STRUCT(r->out);
    4910             : 
    4911           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    4912           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResourceDependent));
    4913           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    4914           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    4915             :         }
    4916           0 :         if (flags & NDR_OUT) {
    4917             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    4918             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    4919           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    4920           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    4921             :                 }
    4922           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4923           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    4924           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    4925           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    4926           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    4927             :         }
    4928           0 :         return NDR_ERR_SUCCESS;
    4929             : }
    4930             : 
    4931           0 : _PUBLIC_ void ndr_print_clusapi_CanResourceBeDependent(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CanResourceBeDependent *r)
    4932             : {
    4933           0 :         ndr_print_struct(ndr, name, "clusapi_CanResourceBeDependent");
    4934           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    4935           0 :         ndr->depth++;
    4936           0 :         if (flags & NDR_SET_VALUES) {
    4937           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    4938             :         }
    4939           0 :         if (flags & NDR_IN) {
    4940           0 :                 ndr_print_struct(ndr, "in", "clusapi_CanResourceBeDependent");
    4941           0 :                 ndr->depth++;
    4942           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
    4943           0 :                 ndr_print_policy_handle(ndr, "hResourceDependent", &r->in.hResourceDependent);
    4944           0 :                 ndr->depth--;
    4945             :         }
    4946           0 :         if (flags & NDR_OUT) {
    4947           0 :                 ndr_print_struct(ndr, "out", "clusapi_CanResourceBeDependent");
    4948           0 :                 ndr->depth++;
    4949           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    4950           0 :                 ndr->depth++;
    4951           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    4952           0 :                 ndr->depth--;
    4953           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    4954           0 :                 ndr->depth--;
    4955             :         }
    4956           0 :         ndr->depth--;
    4957             : }
    4958             : 
    4959           0 : static enum ndr_err_code ndr_push_clusapi_CreateResEnum(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CreateResEnum *r)
    4960             : {
    4961           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    4962           0 :         if (flags & NDR_IN) {
    4963           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    4964           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwType));
    4965             :         }
    4966           0 :         if (flags & NDR_OUT) {
    4967           0 :                 if (r->out.ReturnEnum == NULL) {
    4968           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4969             :                 }
    4970           0 :                 if (r->out.rpc_status == NULL) {
    4971           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    4972             :                 }
    4973           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ReturnEnum));
    4974           0 :                 if (*r->out.ReturnEnum) {
    4975           0 :                         NDR_CHECK(ndr_push_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
    4976             :                 }
    4977           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    4978           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    4979             :         }
    4980           0 :         return NDR_ERR_SUCCESS;
    4981             : }
    4982             : 
    4983           0 : static enum ndr_err_code ndr_pull_clusapi_CreateResEnum(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CreateResEnum *r)
    4984             : {
    4985           0 :         uint32_t _ptr_ReturnEnum;
    4986           0 :         TALLOC_CTX *_mem_save_ReturnEnum_0 = NULL;
    4987           0 :         TALLOC_CTX *_mem_save_ReturnEnum_1 = NULL;
    4988           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    4989           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    4990           0 :         if (flags & NDR_IN) {
    4991           0 :                 NDR_ZERO_STRUCT(r->out);
    4992             : 
    4993           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    4994           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwType));
    4995           0 :                 NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
    4996           0 :                 NDR_ZERO_STRUCTP(r->out.ReturnEnum);
    4997           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    4998           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    4999             :         }
    5000           0 :         if (flags & NDR_OUT) {
    5001             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    5002             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    5003           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5004           0 :                         NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
    5005             :                 }
    5006           0 :                 _mem_save_ReturnEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5007           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ReturnEnum, LIBNDR_FLAG_REF_ALLOC);
    5008           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ReturnEnum));
    5009           0 :                 if (_ptr_ReturnEnum) {
    5010           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ReturnEnum);
    5011             :                 } else {
    5012           0 :                         *r->out.ReturnEnum = NULL;
    5013             :                 }
    5014           0 :                 if (*r->out.ReturnEnum) {
    5015           0 :                         _mem_save_ReturnEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
    5016           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ReturnEnum, 0);
    5017           0 :                         NDR_CHECK(ndr_pull_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
    5018           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_1, 0);
    5019             :                 }
    5020           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_0, LIBNDR_FLAG_REF_ALLOC);
    5021           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5022           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    5023             :                 }
    5024           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5025           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    5026           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    5027           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    5028           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    5029             :         }
    5030           0 :         return NDR_ERR_SUCCESS;
    5031             : }
    5032             : 
    5033           0 : _PUBLIC_ void ndr_print_clusapi_CreateResEnum(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CreateResEnum *r)
    5034             : {
    5035           0 :         ndr_print_struct(ndr, name, "clusapi_CreateResEnum");
    5036           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    5037           0 :         ndr->depth++;
    5038           0 :         if (flags & NDR_SET_VALUES) {
    5039           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    5040             :         }
    5041           0 :         if (flags & NDR_IN) {
    5042           0 :                 ndr_print_struct(ndr, "in", "clusapi_CreateResEnum");
    5043           0 :                 ndr->depth++;
    5044           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
    5045           0 :                 ndr_print_uint32(ndr, "dwType", r->in.dwType);
    5046           0 :                 ndr->depth--;
    5047             :         }
    5048           0 :         if (flags & NDR_OUT) {
    5049           0 :                 ndr_print_struct(ndr, "out", "clusapi_CreateResEnum");
    5050           0 :                 ndr->depth++;
    5051           0 :                 ndr_print_ptr(ndr, "ReturnEnum", r->out.ReturnEnum);
    5052           0 :                 ndr->depth++;
    5053           0 :                 ndr_print_ptr(ndr, "ReturnEnum", *r->out.ReturnEnum);
    5054           0 :                 ndr->depth++;
    5055           0 :                 if (*r->out.ReturnEnum) {
    5056           0 :                         ndr_print_ENUM_LIST(ndr, "ReturnEnum", *r->out.ReturnEnum);
    5057             :                 }
    5058           0 :                 ndr->depth--;
    5059           0 :                 ndr->depth--;
    5060           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    5061           0 :                 ndr->depth++;
    5062           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    5063           0 :                 ndr->depth--;
    5064           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    5065           0 :                 ndr->depth--;
    5066             :         }
    5067           0 :         ndr->depth--;
    5068             : }
    5069             : 
    5070           0 : static enum ndr_err_code ndr_push_clusapi_AddResourceNode(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_AddResourceNode *r)
    5071             : {
    5072           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    5073           0 :         if (flags & NDR_IN) {
    5074           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    5075           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
    5076             :         }
    5077           0 :         if (flags & NDR_OUT) {
    5078           0 :                 if (r->out.rpc_status == NULL) {
    5079           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5080             :                 }
    5081           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    5082           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    5083             :         }
    5084           0 :         return NDR_ERR_SUCCESS;
    5085             : }
    5086             : 
    5087           0 : static enum ndr_err_code ndr_pull_clusapi_AddResourceNode(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_AddResourceNode *r)
    5088             : {
    5089           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    5090           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    5091           0 :         if (flags & NDR_IN) {
    5092           0 :                 NDR_ZERO_STRUCT(r->out);
    5093             : 
    5094           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    5095           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
    5096           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    5097           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    5098             :         }
    5099           0 :         if (flags & NDR_OUT) {
    5100             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    5101             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    5102           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5103           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    5104             :                 }
    5105           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5106           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    5107           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    5108           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    5109           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    5110             :         }
    5111           0 :         return NDR_ERR_SUCCESS;
    5112             : }
    5113             : 
    5114           0 : _PUBLIC_ void ndr_print_clusapi_AddResourceNode(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_AddResourceNode *r)
    5115             : {
    5116           0 :         ndr_print_struct(ndr, name, "clusapi_AddResourceNode");
    5117           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    5118           0 :         ndr->depth++;
    5119           0 :         if (flags & NDR_SET_VALUES) {
    5120           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    5121             :         }
    5122           0 :         if (flags & NDR_IN) {
    5123           0 :                 ndr_print_struct(ndr, "in", "clusapi_AddResourceNode");
    5124           0 :                 ndr->depth++;
    5125           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
    5126           0 :                 ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
    5127           0 :                 ndr->depth--;
    5128             :         }
    5129           0 :         if (flags & NDR_OUT) {
    5130           0 :                 ndr_print_struct(ndr, "out", "clusapi_AddResourceNode");
    5131           0 :                 ndr->depth++;
    5132           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    5133           0 :                 ndr->depth++;
    5134           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    5135           0 :                 ndr->depth--;
    5136           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    5137           0 :                 ndr->depth--;
    5138             :         }
    5139           0 :         ndr->depth--;
    5140             : }
    5141             : 
    5142           0 : static enum ndr_err_code ndr_push_clusapi_RemoveResourceNode(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_RemoveResourceNode *r)
    5143             : {
    5144           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    5145           0 :         if (flags & NDR_IN) {
    5146           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    5147           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
    5148             :         }
    5149           0 :         if (flags & NDR_OUT) {
    5150           0 :                 if (r->out.rpc_status == NULL) {
    5151           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5152             :                 }
    5153           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    5154           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    5155             :         }
    5156           0 :         return NDR_ERR_SUCCESS;
    5157             : }
    5158             : 
    5159           0 : static enum ndr_err_code ndr_pull_clusapi_RemoveResourceNode(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_RemoveResourceNode *r)
    5160             : {
    5161           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    5162           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    5163           0 :         if (flags & NDR_IN) {
    5164           0 :                 NDR_ZERO_STRUCT(r->out);
    5165             : 
    5166           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    5167           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
    5168           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    5169           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    5170             :         }
    5171           0 :         if (flags & NDR_OUT) {
    5172             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    5173             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    5174           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5175           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    5176             :                 }
    5177           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5178           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    5179           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    5180           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    5181           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    5182             :         }
    5183           0 :         return NDR_ERR_SUCCESS;
    5184             : }
    5185             : 
    5186           0 : _PUBLIC_ void ndr_print_clusapi_RemoveResourceNode(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_RemoveResourceNode *r)
    5187             : {
    5188           0 :         ndr_print_struct(ndr, name, "clusapi_RemoveResourceNode");
    5189           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    5190           0 :         ndr->depth++;
    5191           0 :         if (flags & NDR_SET_VALUES) {
    5192           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    5193             :         }
    5194           0 :         if (flags & NDR_IN) {
    5195           0 :                 ndr_print_struct(ndr, "in", "clusapi_RemoveResourceNode");
    5196           0 :                 ndr->depth++;
    5197           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
    5198           0 :                 ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
    5199           0 :                 ndr->depth--;
    5200             :         }
    5201           0 :         if (flags & NDR_OUT) {
    5202           0 :                 ndr_print_struct(ndr, "out", "clusapi_RemoveResourceNode");
    5203           0 :                 ndr->depth++;
    5204           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    5205           0 :                 ndr->depth++;
    5206           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    5207           0 :                 ndr->depth--;
    5208           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    5209           0 :                 ndr->depth--;
    5210             :         }
    5211           0 :         ndr->depth--;
    5212             : }
    5213             : 
    5214           0 : static enum ndr_err_code ndr_push_clusapi_ChangeResourceGroup(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_ChangeResourceGroup *r)
    5215             : {
    5216           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    5217           0 :         if (flags & NDR_IN) {
    5218           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    5219           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
    5220             :         }
    5221           0 :         if (flags & NDR_OUT) {
    5222           0 :                 if (r->out.rpc_status == NULL) {
    5223           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5224             :                 }
    5225           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    5226           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    5227             :         }
    5228           0 :         return NDR_ERR_SUCCESS;
    5229             : }
    5230             : 
    5231           0 : static enum ndr_err_code ndr_pull_clusapi_ChangeResourceGroup(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_ChangeResourceGroup *r)
    5232             : {
    5233           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    5234           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    5235           0 :         if (flags & NDR_IN) {
    5236           0 :                 NDR_ZERO_STRUCT(r->out);
    5237             : 
    5238           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    5239           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
    5240           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    5241           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    5242             :         }
    5243           0 :         if (flags & NDR_OUT) {
    5244             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    5245             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    5246           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5247           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    5248             :                 }
    5249           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5250           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    5251           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    5252           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    5253           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    5254             :         }
    5255           0 :         return NDR_ERR_SUCCESS;
    5256             : }
    5257             : 
    5258           0 : _PUBLIC_ void ndr_print_clusapi_ChangeResourceGroup(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_ChangeResourceGroup *r)
    5259             : {
    5260           0 :         ndr_print_struct(ndr, name, "clusapi_ChangeResourceGroup");
    5261           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    5262           0 :         ndr->depth++;
    5263           0 :         if (flags & NDR_SET_VALUES) {
    5264           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    5265             :         }
    5266           0 :         if (flags & NDR_IN) {
    5267           0 :                 ndr_print_struct(ndr, "in", "clusapi_ChangeResourceGroup");
    5268           0 :                 ndr->depth++;
    5269           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
    5270           0 :                 ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
    5271           0 :                 ndr->depth--;
    5272             :         }
    5273           0 :         if (flags & NDR_OUT) {
    5274           0 :                 ndr_print_struct(ndr, "out", "clusapi_ChangeResourceGroup");
    5275           0 :                 ndr->depth++;
    5276           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    5277           0 :                 ndr->depth++;
    5278           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    5279           0 :                 ndr->depth--;
    5280           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    5281           0 :                 ndr->depth--;
    5282             :         }
    5283           0 :         ndr->depth--;
    5284             : }
    5285             : 
    5286           0 : static enum ndr_err_code ndr_push_clusapi_CreateResourceType(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CreateResourceType *r)
    5287             : {
    5288           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    5289           0 :         if (flags & NDR_IN) {
    5290           0 :                 if (r->in.lpszTypeName == NULL) {
    5291           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5292             :                 }
    5293           0 :                 if (r->in.lpszDisplayName == NULL) {
    5294           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5295             :                 }
    5296           0 :                 if (r->in.lpszDllName == NULL) {
    5297           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5298             :                 }
    5299           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszTypeName, CH_UTF16)));
    5300           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    5301           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszTypeName, CH_UTF16)));
    5302           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszTypeName, ndr_charset_length(r->in.lpszTypeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    5303           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszDisplayName, CH_UTF16)));
    5304           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    5305           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszDisplayName, CH_UTF16)));
    5306           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszDisplayName, ndr_charset_length(r->in.lpszDisplayName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    5307           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszDllName, CH_UTF16)));
    5308           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    5309           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszDllName, CH_UTF16)));
    5310           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszDllName, ndr_charset_length(r->in.lpszDllName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    5311           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwLooksAlive));
    5312           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwIsAlive));
    5313             :         }
    5314           0 :         if (flags & NDR_OUT) {
    5315           0 :                 if (r->out.rpc_status == NULL) {
    5316           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5317             :                 }
    5318           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    5319           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    5320             :         }
    5321           0 :         return NDR_ERR_SUCCESS;
    5322             : }
    5323             : 
    5324           0 : static enum ndr_err_code ndr_pull_clusapi_CreateResourceType(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CreateResourceType *r)
    5325             : {
    5326           0 :         uint32_t size_lpszTypeName_1 = 0;
    5327           0 :         uint32_t length_lpszTypeName_1 = 0;
    5328           0 :         uint32_t size_lpszDisplayName_1 = 0;
    5329           0 :         uint32_t length_lpszDisplayName_1 = 0;
    5330           0 :         uint32_t size_lpszDllName_1 = 0;
    5331           0 :         uint32_t length_lpszDllName_1 = 0;
    5332           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    5333           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    5334           0 :         if (flags & NDR_IN) {
    5335           0 :                 NDR_ZERO_STRUCT(r->out);
    5336             : 
    5337           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszTypeName));
    5338           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszTypeName));
    5339           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszTypeName, &size_lpszTypeName_1));
    5340           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszTypeName, &length_lpszTypeName_1));
    5341           0 :                 if (length_lpszTypeName_1 > size_lpszTypeName_1) {
    5342           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszTypeName_1, length_lpszTypeName_1);
    5343             :                 }
    5344           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszTypeName_1, sizeof(uint16_t)));
    5345           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszTypeName, length_lpszTypeName_1, sizeof(uint16_t), CH_UTF16));
    5346           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszDisplayName));
    5347           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszDisplayName));
    5348           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszDisplayName, &size_lpszDisplayName_1));
    5349           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszDisplayName, &length_lpszDisplayName_1));
    5350           0 :                 if (length_lpszDisplayName_1 > size_lpszDisplayName_1) {
    5351           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszDisplayName_1, length_lpszDisplayName_1);
    5352             :                 }
    5353           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszDisplayName_1, sizeof(uint16_t)));
    5354           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszDisplayName, length_lpszDisplayName_1, sizeof(uint16_t), CH_UTF16));
    5355           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszDllName));
    5356           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszDllName));
    5357           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszDllName, &size_lpszDllName_1));
    5358           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszDllName, &length_lpszDllName_1));
    5359           0 :                 if (length_lpszDllName_1 > size_lpszDllName_1) {
    5360           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszDllName_1, length_lpszDllName_1);
    5361             :                 }
    5362           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszDllName_1, sizeof(uint16_t)));
    5363           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszDllName, length_lpszDllName_1, sizeof(uint16_t), CH_UTF16));
    5364           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwLooksAlive));
    5365           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwIsAlive));
    5366           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    5367           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    5368             :         }
    5369           0 :         if (flags & NDR_OUT) {
    5370             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    5371             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    5372           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5373           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    5374             :                 }
    5375           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5376           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    5377           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    5378           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    5379           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    5380             :         }
    5381           0 :         return NDR_ERR_SUCCESS;
    5382             : }
    5383             : 
    5384           0 : _PUBLIC_ void ndr_print_clusapi_CreateResourceType(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CreateResourceType *r)
    5385             : {
    5386           0 :         ndr_print_struct(ndr, name, "clusapi_CreateResourceType");
    5387           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    5388           0 :         ndr->depth++;
    5389           0 :         if (flags & NDR_SET_VALUES) {
    5390           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    5391             :         }
    5392           0 :         if (flags & NDR_IN) {
    5393           0 :                 ndr_print_struct(ndr, "in", "clusapi_CreateResourceType");
    5394           0 :                 ndr->depth++;
    5395           0 :                 ndr_print_ptr(ndr, "lpszTypeName", r->in.lpszTypeName);
    5396           0 :                 ndr->depth++;
    5397           0 :                 ndr_print_string(ndr, "lpszTypeName", r->in.lpszTypeName);
    5398           0 :                 ndr->depth--;
    5399           0 :                 ndr_print_ptr(ndr, "lpszDisplayName", r->in.lpszDisplayName);
    5400           0 :                 ndr->depth++;
    5401           0 :                 ndr_print_string(ndr, "lpszDisplayName", r->in.lpszDisplayName);
    5402           0 :                 ndr->depth--;
    5403           0 :                 ndr_print_ptr(ndr, "lpszDllName", r->in.lpszDllName);
    5404           0 :                 ndr->depth++;
    5405           0 :                 ndr_print_string(ndr, "lpszDllName", r->in.lpszDllName);
    5406           0 :                 ndr->depth--;
    5407           0 :                 ndr_print_uint32(ndr, "dwLooksAlive", r->in.dwLooksAlive);
    5408           0 :                 ndr_print_uint32(ndr, "dwIsAlive", r->in.dwIsAlive);
    5409           0 :                 ndr->depth--;
    5410             :         }
    5411           0 :         if (flags & NDR_OUT) {
    5412           0 :                 ndr_print_struct(ndr, "out", "clusapi_CreateResourceType");
    5413           0 :                 ndr->depth++;
    5414           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    5415           0 :                 ndr->depth++;
    5416           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    5417           0 :                 ndr->depth--;
    5418           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    5419           0 :                 ndr->depth--;
    5420             :         }
    5421           0 :         ndr->depth--;
    5422             : }
    5423             : 
    5424           0 : static enum ndr_err_code ndr_push_clusapi_DeleteResourceType(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_DeleteResourceType *r)
    5425             : {
    5426           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    5427           0 :         if (flags & NDR_IN) {
    5428           0 :                 if (r->in.lpszTypeName == NULL) {
    5429           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5430             :                 }
    5431           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszTypeName, CH_UTF16)));
    5432           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    5433           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszTypeName, CH_UTF16)));
    5434           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszTypeName, ndr_charset_length(r->in.lpszTypeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    5435             :         }
    5436           0 :         if (flags & NDR_OUT) {
    5437           0 :                 if (r->out.rpc_status == NULL) {
    5438           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5439             :                 }
    5440           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    5441           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    5442             :         }
    5443           0 :         return NDR_ERR_SUCCESS;
    5444             : }
    5445             : 
    5446           0 : static enum ndr_err_code ndr_pull_clusapi_DeleteResourceType(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_DeleteResourceType *r)
    5447             : {
    5448           0 :         uint32_t size_lpszTypeName_1 = 0;
    5449           0 :         uint32_t length_lpszTypeName_1 = 0;
    5450           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    5451           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    5452           0 :         if (flags & NDR_IN) {
    5453           0 :                 NDR_ZERO_STRUCT(r->out);
    5454             : 
    5455           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszTypeName));
    5456           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszTypeName));
    5457           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszTypeName, &size_lpszTypeName_1));
    5458           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszTypeName, &length_lpszTypeName_1));
    5459           0 :                 if (length_lpszTypeName_1 > size_lpszTypeName_1) {
    5460           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszTypeName_1, length_lpszTypeName_1);
    5461             :                 }
    5462           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszTypeName_1, sizeof(uint16_t)));
    5463           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszTypeName, length_lpszTypeName_1, sizeof(uint16_t), CH_UTF16));
    5464           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    5465           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    5466             :         }
    5467           0 :         if (flags & NDR_OUT) {
    5468             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    5469             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    5470           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5471           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    5472             :                 }
    5473           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5474           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    5475           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    5476           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    5477           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    5478             :         }
    5479           0 :         return NDR_ERR_SUCCESS;
    5480             : }
    5481             : 
    5482           0 : _PUBLIC_ void ndr_print_clusapi_DeleteResourceType(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_DeleteResourceType *r)
    5483             : {
    5484           0 :         ndr_print_struct(ndr, name, "clusapi_DeleteResourceType");
    5485           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    5486           0 :         ndr->depth++;
    5487           0 :         if (flags & NDR_SET_VALUES) {
    5488           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    5489             :         }
    5490           0 :         if (flags & NDR_IN) {
    5491           0 :                 ndr_print_struct(ndr, "in", "clusapi_DeleteResourceType");
    5492           0 :                 ndr->depth++;
    5493           0 :                 ndr_print_ptr(ndr, "lpszTypeName", r->in.lpszTypeName);
    5494           0 :                 ndr->depth++;
    5495           0 :                 ndr_print_string(ndr, "lpszTypeName", r->in.lpszTypeName);
    5496           0 :                 ndr->depth--;
    5497           0 :                 ndr->depth--;
    5498             :         }
    5499           0 :         if (flags & NDR_OUT) {
    5500           0 :                 ndr_print_struct(ndr, "out", "clusapi_DeleteResourceType");
    5501           0 :                 ndr->depth++;
    5502           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    5503           0 :                 ndr->depth++;
    5504           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    5505           0 :                 ndr->depth--;
    5506           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    5507           0 :                 ndr->depth--;
    5508             :         }
    5509           0 :         ndr->depth--;
    5510             : }
    5511             : 
    5512           0 : static enum ndr_err_code ndr_push_clusapi_GetRootKey(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_GetRootKey *r)
    5513             : {
    5514           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    5515           0 :         if (flags & NDR_IN) {
    5516           0 :                 NDR_CHECK(ndr_push_winreg_AccessMask(ndr, NDR_SCALARS, r->in.samDesired));
    5517             :         }
    5518           0 :         if (flags & NDR_OUT) {
    5519           0 :                 if (r->out.Status == NULL) {
    5520           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5521             :                 }
    5522           0 :                 if (r->out.rpc_status == NULL) {
    5523           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5524             :                 }
    5525           0 :                 if (r->out.phKey == NULL) {
    5526           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5527             :                 }
    5528           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
    5529           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    5530           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.phKey));
    5531             :         }
    5532           0 :         return NDR_ERR_SUCCESS;
    5533             : }
    5534             : 
    5535           0 : static enum ndr_err_code ndr_pull_clusapi_GetRootKey(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_GetRootKey *r)
    5536             : {
    5537           0 :         TALLOC_CTX *_mem_save_Status_0 = NULL;
    5538           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    5539           0 :         TALLOC_CTX *_mem_save_phKey_0 = NULL;
    5540           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    5541           0 :         if (flags & NDR_IN) {
    5542           0 :                 NDR_ZERO_STRUCT(r->out);
    5543             : 
    5544           0 :                 NDR_CHECK(ndr_pull_winreg_AccessMask(ndr, NDR_SCALARS, &r->in.samDesired));
    5545           0 :                 NDR_PULL_ALLOC(ndr, r->out.Status);
    5546           0 :                 NDR_ZERO_STRUCTP(r->out.Status);
    5547           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    5548           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    5549           0 :                 NDR_PULL_ALLOC(ndr, r->out.phKey);
    5550           0 :                 NDR_ZERO_STRUCTP(r->out.phKey);
    5551             :         }
    5552           0 :         if (flags & NDR_OUT) {
    5553             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    5554             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    5555           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5556           0 :                         NDR_PULL_ALLOC(ndr, r->out.Status);
    5557             :                 }
    5558           0 :                 _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5559           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
    5560           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
    5561           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
    5562           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5563           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    5564             :                 }
    5565           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5566           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    5567           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    5568           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    5569           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5570           0 :                         NDR_PULL_ALLOC(ndr, r->out.phKey);
    5571             :                 }
    5572           0 :                 _mem_save_phKey_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5573           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.phKey, LIBNDR_FLAG_REF_ALLOC);
    5574           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.phKey));
    5575           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_phKey_0, LIBNDR_FLAG_REF_ALLOC);
    5576             :         }
    5577           0 :         return NDR_ERR_SUCCESS;
    5578             : }
    5579             : 
    5580           0 : _PUBLIC_ void ndr_print_clusapi_GetRootKey(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_GetRootKey *r)
    5581             : {
    5582           0 :         ndr_print_struct(ndr, name, "clusapi_GetRootKey");
    5583           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    5584           0 :         ndr->depth++;
    5585           0 :         if (flags & NDR_SET_VALUES) {
    5586           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    5587             :         }
    5588           0 :         if (flags & NDR_IN) {
    5589           0 :                 ndr_print_struct(ndr, "in", "clusapi_GetRootKey");
    5590           0 :                 ndr->depth++;
    5591           0 :                 ndr_print_winreg_AccessMask(ndr, "samDesired", r->in.samDesired);
    5592           0 :                 ndr->depth--;
    5593             :         }
    5594           0 :         if (flags & NDR_OUT) {
    5595           0 :                 ndr_print_struct(ndr, "out", "clusapi_GetRootKey");
    5596           0 :                 ndr->depth++;
    5597           0 :                 ndr_print_ptr(ndr, "Status", r->out.Status);
    5598           0 :                 ndr->depth++;
    5599           0 :                 ndr_print_WERROR(ndr, "Status", *r->out.Status);
    5600           0 :                 ndr->depth--;
    5601           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    5602           0 :                 ndr->depth++;
    5603           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    5604           0 :                 ndr->depth--;
    5605           0 :                 ndr_print_ptr(ndr, "phKey", r->out.phKey);
    5606           0 :                 ndr->depth++;
    5607           0 :                 ndr_print_policy_handle(ndr, "phKey", r->out.phKey);
    5608           0 :                 ndr->depth--;
    5609           0 :                 ndr->depth--;
    5610             :         }
    5611           0 :         ndr->depth--;
    5612             : }
    5613             : 
    5614           0 : static enum ndr_err_code ndr_push_clusapi_CreateKey(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CreateKey *r)
    5615             : {
    5616           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    5617           0 :         if (flags & NDR_IN) {
    5618           0 :                 if (r->in.lpSubKey == NULL) {
    5619           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5620             :                 }
    5621           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
    5622           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpSubKey, CH_UTF16)));
    5623           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    5624           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpSubKey, CH_UTF16)));
    5625           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpSubKey, ndr_charset_length(r->in.lpSubKey, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    5626           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwOptions));
    5627           0 :                 NDR_CHECK(ndr_push_winreg_AccessMask(ndr, NDR_SCALARS, r->in.samDesired));
    5628           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpSecurityAttributes));
    5629           0 :                 if (r->in.lpSecurityAttributes) {
    5630           0 :                         NDR_CHECK(ndr_push_RPC_SECURITY_ATTRIBUTES(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.lpSecurityAttributes));
    5631             :                 }
    5632             :         }
    5633           0 :         if (flags & NDR_OUT) {
    5634           0 :                 if (r->out.lpdwDisposition == NULL) {
    5635           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5636             :                 }
    5637           0 :                 if (r->out.Status == NULL) {
    5638           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5639             :                 }
    5640           0 :                 if (r->out.rpc_status == NULL) {
    5641           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5642             :                 }
    5643           0 :                 if (r->out.phKey == NULL) {
    5644           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5645             :                 }
    5646           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpdwDisposition));
    5647           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
    5648           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    5649           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.phKey));
    5650             :         }
    5651           0 :         return NDR_ERR_SUCCESS;
    5652             : }
    5653             : 
    5654           0 : static enum ndr_err_code ndr_pull_clusapi_CreateKey(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CreateKey *r)
    5655             : {
    5656           0 :         uint32_t size_lpSubKey_1 = 0;
    5657           0 :         uint32_t length_lpSubKey_1 = 0;
    5658           0 :         uint32_t _ptr_lpSecurityAttributes;
    5659           0 :         TALLOC_CTX *_mem_save_lpSecurityAttributes_0 = NULL;
    5660           0 :         TALLOC_CTX *_mem_save_lpdwDisposition_0 = NULL;
    5661           0 :         TALLOC_CTX *_mem_save_Status_0 = NULL;
    5662           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    5663           0 :         TALLOC_CTX *_mem_save_phKey_0 = NULL;
    5664           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    5665           0 :         if (flags & NDR_IN) {
    5666           0 :                 NDR_ZERO_STRUCT(r->out);
    5667             : 
    5668           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
    5669           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpSubKey));
    5670           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpSubKey));
    5671           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpSubKey, &size_lpSubKey_1));
    5672           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpSubKey, &length_lpSubKey_1));
    5673           0 :                 if (length_lpSubKey_1 > size_lpSubKey_1) {
    5674           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpSubKey_1, length_lpSubKey_1);
    5675             :                 }
    5676           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpSubKey_1, sizeof(uint16_t)));
    5677           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpSubKey, length_lpSubKey_1, sizeof(uint16_t), CH_UTF16));
    5678           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwOptions));
    5679           0 :                 NDR_CHECK(ndr_pull_winreg_AccessMask(ndr, NDR_SCALARS, &r->in.samDesired));
    5680           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpSecurityAttributes));
    5681           0 :                 if (_ptr_lpSecurityAttributes) {
    5682           0 :                         NDR_PULL_ALLOC(ndr, r->in.lpSecurityAttributes);
    5683             :                 } else {
    5684           0 :                         r->in.lpSecurityAttributes = NULL;
    5685             :                 }
    5686           0 :                 if (r->in.lpSecurityAttributes) {
    5687           0 :                         _mem_save_lpSecurityAttributes_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5688           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.lpSecurityAttributes, 0);
    5689           0 :                         NDR_CHECK(ndr_pull_RPC_SECURITY_ATTRIBUTES(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.lpSecurityAttributes));
    5690           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpSecurityAttributes_0, 0);
    5691             :                 }
    5692           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpdwDisposition);
    5693           0 :                 NDR_ZERO_STRUCTP(r->out.lpdwDisposition);
    5694           0 :                 NDR_PULL_ALLOC(ndr, r->out.Status);
    5695           0 :                 NDR_ZERO_STRUCTP(r->out.Status);
    5696           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    5697           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    5698           0 :                 NDR_PULL_ALLOC(ndr, r->out.phKey);
    5699           0 :                 NDR_ZERO_STRUCTP(r->out.phKey);
    5700             :         }
    5701           0 :         if (flags & NDR_OUT) {
    5702             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    5703             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    5704           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5705           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpdwDisposition);
    5706             :                 }
    5707           0 :                 _mem_save_lpdwDisposition_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5708           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpdwDisposition, LIBNDR_FLAG_REF_ALLOC);
    5709           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpdwDisposition));
    5710           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpdwDisposition_0, LIBNDR_FLAG_REF_ALLOC);
    5711           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5712           0 :                         NDR_PULL_ALLOC(ndr, r->out.Status);
    5713             :                 }
    5714           0 :                 _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5715           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
    5716           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
    5717           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
    5718           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5719           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    5720             :                 }
    5721           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5722           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    5723           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    5724           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    5725           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5726           0 :                         NDR_PULL_ALLOC(ndr, r->out.phKey);
    5727             :                 }
    5728           0 :                 _mem_save_phKey_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5729           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.phKey, LIBNDR_FLAG_REF_ALLOC);
    5730           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.phKey));
    5731           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_phKey_0, LIBNDR_FLAG_REF_ALLOC);
    5732             :         }
    5733           0 :         return NDR_ERR_SUCCESS;
    5734             : }
    5735             : 
    5736           0 : _PUBLIC_ void ndr_print_clusapi_CreateKey(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CreateKey *r)
    5737             : {
    5738           0 :         ndr_print_struct(ndr, name, "clusapi_CreateKey");
    5739           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    5740           0 :         ndr->depth++;
    5741           0 :         if (flags & NDR_SET_VALUES) {
    5742           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    5743             :         }
    5744           0 :         if (flags & NDR_IN) {
    5745           0 :                 ndr_print_struct(ndr, "in", "clusapi_CreateKey");
    5746           0 :                 ndr->depth++;
    5747           0 :                 ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
    5748           0 :                 ndr_print_ptr(ndr, "lpSubKey", r->in.lpSubKey);
    5749           0 :                 ndr->depth++;
    5750           0 :                 ndr_print_string(ndr, "lpSubKey", r->in.lpSubKey);
    5751           0 :                 ndr->depth--;
    5752           0 :                 ndr_print_uint32(ndr, "dwOptions", r->in.dwOptions);
    5753           0 :                 ndr_print_winreg_AccessMask(ndr, "samDesired", r->in.samDesired);
    5754           0 :                 ndr_print_ptr(ndr, "lpSecurityAttributes", r->in.lpSecurityAttributes);
    5755           0 :                 ndr->depth++;
    5756           0 :                 if (r->in.lpSecurityAttributes) {
    5757           0 :                         ndr_print_RPC_SECURITY_ATTRIBUTES(ndr, "lpSecurityAttributes", r->in.lpSecurityAttributes);
    5758             :                 }
    5759           0 :                 ndr->depth--;
    5760           0 :                 ndr->depth--;
    5761             :         }
    5762           0 :         if (flags & NDR_OUT) {
    5763           0 :                 ndr_print_struct(ndr, "out", "clusapi_CreateKey");
    5764           0 :                 ndr->depth++;
    5765           0 :                 ndr_print_ptr(ndr, "lpdwDisposition", r->out.lpdwDisposition);
    5766           0 :                 ndr->depth++;
    5767           0 :                 ndr_print_uint32(ndr, "lpdwDisposition", *r->out.lpdwDisposition);
    5768           0 :                 ndr->depth--;
    5769           0 :                 ndr_print_ptr(ndr, "Status", r->out.Status);
    5770           0 :                 ndr->depth++;
    5771           0 :                 ndr_print_WERROR(ndr, "Status", *r->out.Status);
    5772           0 :                 ndr->depth--;
    5773           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    5774           0 :                 ndr->depth++;
    5775           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    5776           0 :                 ndr->depth--;
    5777           0 :                 ndr_print_ptr(ndr, "phKey", r->out.phKey);
    5778           0 :                 ndr->depth++;
    5779           0 :                 ndr_print_policy_handle(ndr, "phKey", r->out.phKey);
    5780           0 :                 ndr->depth--;
    5781           0 :                 ndr->depth--;
    5782             :         }
    5783           0 :         ndr->depth--;
    5784             : }
    5785             : 
    5786           0 : static enum ndr_err_code ndr_push_clusapi_OpenKey(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_OpenKey *r)
    5787             : {
    5788           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    5789           0 :         if (flags & NDR_IN) {
    5790           0 :                 if (r->in.lpSubKey == NULL) {
    5791           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5792             :                 }
    5793           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
    5794           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpSubKey, CH_UTF16)));
    5795           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    5796           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpSubKey, CH_UTF16)));
    5797           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpSubKey, ndr_charset_length(r->in.lpSubKey, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    5798           0 :                 NDR_CHECK(ndr_push_winreg_AccessMask(ndr, NDR_SCALARS, r->in.samDesired));
    5799             :         }
    5800           0 :         if (flags & NDR_OUT) {
    5801           0 :                 if (r->out.Status == NULL) {
    5802           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5803             :                 }
    5804           0 :                 if (r->out.rpc_status == NULL) {
    5805           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5806             :                 }
    5807           0 :                 if (r->out.phKey == NULL) {
    5808           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5809             :                 }
    5810           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
    5811           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    5812           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.phKey));
    5813             :         }
    5814           0 :         return NDR_ERR_SUCCESS;
    5815             : }
    5816             : 
    5817           0 : static enum ndr_err_code ndr_pull_clusapi_OpenKey(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_OpenKey *r)
    5818             : {
    5819           0 :         uint32_t size_lpSubKey_1 = 0;
    5820           0 :         uint32_t length_lpSubKey_1 = 0;
    5821           0 :         TALLOC_CTX *_mem_save_Status_0 = NULL;
    5822           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    5823           0 :         TALLOC_CTX *_mem_save_phKey_0 = NULL;
    5824           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    5825           0 :         if (flags & NDR_IN) {
    5826           0 :                 NDR_ZERO_STRUCT(r->out);
    5827             : 
    5828           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
    5829           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpSubKey));
    5830           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpSubKey));
    5831           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpSubKey, &size_lpSubKey_1));
    5832           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpSubKey, &length_lpSubKey_1));
    5833           0 :                 if (length_lpSubKey_1 > size_lpSubKey_1) {
    5834           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpSubKey_1, length_lpSubKey_1);
    5835             :                 }
    5836           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpSubKey_1, sizeof(uint16_t)));
    5837           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpSubKey, length_lpSubKey_1, sizeof(uint16_t), CH_UTF16));
    5838           0 :                 NDR_CHECK(ndr_pull_winreg_AccessMask(ndr, NDR_SCALARS, &r->in.samDesired));
    5839           0 :                 NDR_PULL_ALLOC(ndr, r->out.Status);
    5840           0 :                 NDR_ZERO_STRUCTP(r->out.Status);
    5841           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    5842           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    5843           0 :                 NDR_PULL_ALLOC(ndr, r->out.phKey);
    5844           0 :                 NDR_ZERO_STRUCTP(r->out.phKey);
    5845             :         }
    5846           0 :         if (flags & NDR_OUT) {
    5847             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    5848             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    5849           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5850           0 :                         NDR_PULL_ALLOC(ndr, r->out.Status);
    5851             :                 }
    5852           0 :                 _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5853           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
    5854           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
    5855           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
    5856           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5857           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    5858             :                 }
    5859           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5860           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    5861           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    5862           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    5863           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5864           0 :                         NDR_PULL_ALLOC(ndr, r->out.phKey);
    5865             :                 }
    5866           0 :                 _mem_save_phKey_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5867           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.phKey, LIBNDR_FLAG_REF_ALLOC);
    5868           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.phKey));
    5869           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_phKey_0, LIBNDR_FLAG_REF_ALLOC);
    5870             :         }
    5871           0 :         return NDR_ERR_SUCCESS;
    5872             : }
    5873             : 
    5874           0 : _PUBLIC_ void ndr_print_clusapi_OpenKey(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_OpenKey *r)
    5875             : {
    5876           0 :         ndr_print_struct(ndr, name, "clusapi_OpenKey");
    5877           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    5878           0 :         ndr->depth++;
    5879           0 :         if (flags & NDR_SET_VALUES) {
    5880           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    5881             :         }
    5882           0 :         if (flags & NDR_IN) {
    5883           0 :                 ndr_print_struct(ndr, "in", "clusapi_OpenKey");
    5884           0 :                 ndr->depth++;
    5885           0 :                 ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
    5886           0 :                 ndr_print_ptr(ndr, "lpSubKey", r->in.lpSubKey);
    5887           0 :                 ndr->depth++;
    5888           0 :                 ndr_print_string(ndr, "lpSubKey", r->in.lpSubKey);
    5889           0 :                 ndr->depth--;
    5890           0 :                 ndr_print_winreg_AccessMask(ndr, "samDesired", r->in.samDesired);
    5891           0 :                 ndr->depth--;
    5892             :         }
    5893           0 :         if (flags & NDR_OUT) {
    5894           0 :                 ndr_print_struct(ndr, "out", "clusapi_OpenKey");
    5895           0 :                 ndr->depth++;
    5896           0 :                 ndr_print_ptr(ndr, "Status", r->out.Status);
    5897           0 :                 ndr->depth++;
    5898           0 :                 ndr_print_WERROR(ndr, "Status", *r->out.Status);
    5899           0 :                 ndr->depth--;
    5900           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    5901           0 :                 ndr->depth++;
    5902           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    5903           0 :                 ndr->depth--;
    5904           0 :                 ndr_print_ptr(ndr, "phKey", r->out.phKey);
    5905           0 :                 ndr->depth++;
    5906           0 :                 ndr_print_policy_handle(ndr, "phKey", r->out.phKey);
    5907           0 :                 ndr->depth--;
    5908           0 :                 ndr->depth--;
    5909             :         }
    5910           0 :         ndr->depth--;
    5911             : }
    5912             : 
    5913           0 : static enum ndr_err_code ndr_push_clusapi_EnumKey(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_EnumKey *r)
    5914             : {
    5915           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    5916           0 :         if (flags & NDR_IN) {
    5917           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
    5918           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwIndex));
    5919             :         }
    5920           0 :         if (flags & NDR_OUT) {
    5921           0 :                 if (r->out.KeyName == NULL) {
    5922           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5923             :                 }
    5924           0 :                 if (r->out.lpftLastWriteTime == NULL) {
    5925           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5926             :                 }
    5927           0 :                 if (r->out.rpc_status == NULL) {
    5928           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    5929             :                 }
    5930           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.KeyName));
    5931           0 :                 if (*r->out.KeyName) {
    5932           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.KeyName, CH_UTF16)));
    5933           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    5934           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.KeyName, CH_UTF16)));
    5935           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.KeyName, ndr_charset_length(*r->out.KeyName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    5936             :                 }
    5937           0 :                 NDR_CHECK(ndr_push_NTTIME(ndr, NDR_SCALARS, *r->out.lpftLastWriteTime));
    5938           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    5939           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    5940             :         }
    5941           0 :         return NDR_ERR_SUCCESS;
    5942             : }
    5943             : 
    5944           0 : static enum ndr_err_code ndr_pull_clusapi_EnumKey(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_EnumKey *r)
    5945             : {
    5946           0 :         uint32_t _ptr_KeyName;
    5947           0 :         uint32_t size_KeyName_2 = 0;
    5948           0 :         uint32_t length_KeyName_2 = 0;
    5949           0 :         TALLOC_CTX *_mem_save_KeyName_0 = NULL;
    5950           0 :         TALLOC_CTX *_mem_save_KeyName_1 = NULL;
    5951           0 :         TALLOC_CTX *_mem_save_lpftLastWriteTime_0 = NULL;
    5952           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    5953           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    5954           0 :         if (flags & NDR_IN) {
    5955           0 :                 NDR_ZERO_STRUCT(r->out);
    5956             : 
    5957           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
    5958           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwIndex));
    5959           0 :                 NDR_PULL_ALLOC(ndr, r->out.KeyName);
    5960           0 :                 NDR_ZERO_STRUCTP(r->out.KeyName);
    5961           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpftLastWriteTime);
    5962           0 :                 NDR_ZERO_STRUCTP(r->out.lpftLastWriteTime);
    5963           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    5964           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    5965             :         }
    5966           0 :         if (flags & NDR_OUT) {
    5967             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    5968             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    5969           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5970           0 :                         NDR_PULL_ALLOC(ndr, r->out.KeyName);
    5971             :                 }
    5972           0 :                 _mem_save_KeyName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5973           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.KeyName, LIBNDR_FLAG_REF_ALLOC);
    5974           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_KeyName));
    5975           0 :                 if (_ptr_KeyName) {
    5976           0 :                         NDR_PULL_ALLOC(ndr, *r->out.KeyName);
    5977             :                 } else {
    5978           0 :                         *r->out.KeyName = NULL;
    5979             :                 }
    5980           0 :                 if (*r->out.KeyName) {
    5981           0 :                         _mem_save_KeyName_1 = NDR_PULL_GET_MEM_CTX(ndr);
    5982           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.KeyName, 0);
    5983           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.KeyName));
    5984           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, r->out.KeyName));
    5985           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.KeyName, &size_KeyName_2));
    5986           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.KeyName, &length_KeyName_2));
    5987           0 :                         if (length_KeyName_2 > size_KeyName_2) {
    5988           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_KeyName_2, length_KeyName_2);
    5989             :                         }
    5990           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_KeyName_2, sizeof(uint16_t)));
    5991           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.KeyName, length_KeyName_2, sizeof(uint16_t), CH_UTF16));
    5992           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_KeyName_1, 0);
    5993             :                 }
    5994           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_KeyName_0, LIBNDR_FLAG_REF_ALLOC);
    5995           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    5996           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpftLastWriteTime);
    5997             :                 }
    5998           0 :                 _mem_save_lpftLastWriteTime_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5999           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpftLastWriteTime, LIBNDR_FLAG_REF_ALLOC);
    6000           0 :                 NDR_CHECK(ndr_pull_NTTIME(ndr, NDR_SCALARS, r->out.lpftLastWriteTime));
    6001           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpftLastWriteTime_0, LIBNDR_FLAG_REF_ALLOC);
    6002           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6003           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    6004             :                 }
    6005           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6006           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    6007           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    6008           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    6009           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    6010             :         }
    6011           0 :         return NDR_ERR_SUCCESS;
    6012             : }
    6013             : 
    6014           0 : _PUBLIC_ void ndr_print_clusapi_EnumKey(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_EnumKey *r)
    6015             : {
    6016           0 :         ndr_print_struct(ndr, name, "clusapi_EnumKey");
    6017           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    6018           0 :         ndr->depth++;
    6019           0 :         if (flags & NDR_SET_VALUES) {
    6020           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    6021             :         }
    6022           0 :         if (flags & NDR_IN) {
    6023           0 :                 ndr_print_struct(ndr, "in", "clusapi_EnumKey");
    6024           0 :                 ndr->depth++;
    6025           0 :                 ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
    6026           0 :                 ndr_print_uint32(ndr, "dwIndex", r->in.dwIndex);
    6027           0 :                 ndr->depth--;
    6028             :         }
    6029           0 :         if (flags & NDR_OUT) {
    6030           0 :                 ndr_print_struct(ndr, "out", "clusapi_EnumKey");
    6031           0 :                 ndr->depth++;
    6032           0 :                 ndr_print_ptr(ndr, "KeyName", r->out.KeyName);
    6033           0 :                 ndr->depth++;
    6034           0 :                 ndr_print_ptr(ndr, "KeyName", *r->out.KeyName);
    6035           0 :                 ndr->depth++;
    6036           0 :                 if (*r->out.KeyName) {
    6037           0 :                         ndr_print_string(ndr, "KeyName", *r->out.KeyName);
    6038             :                 }
    6039           0 :                 ndr->depth--;
    6040           0 :                 ndr->depth--;
    6041           0 :                 ndr_print_ptr(ndr, "lpftLastWriteTime", r->out.lpftLastWriteTime);
    6042           0 :                 ndr->depth++;
    6043           0 :                 ndr_print_NTTIME(ndr, "lpftLastWriteTime", *r->out.lpftLastWriteTime);
    6044           0 :                 ndr->depth--;
    6045           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    6046           0 :                 ndr->depth++;
    6047           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    6048           0 :                 ndr->depth--;
    6049           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    6050           0 :                 ndr->depth--;
    6051             :         }
    6052           0 :         ndr->depth--;
    6053             : }
    6054             : 
    6055           0 : static enum ndr_err_code ndr_push_clusapi_SetValue(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_SetValue *r)
    6056             : {
    6057           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    6058           0 :         if (flags & NDR_IN) {
    6059           0 :                 if (r->in.lpValueName == NULL) {
    6060           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6061             :                 }
    6062           0 :                 if (r->in.lpData == NULL) {
    6063           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6064             :                 }
    6065           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
    6066           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpValueName, CH_UTF16)));
    6067           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    6068           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpValueName, CH_UTF16)));
    6069           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpValueName, ndr_charset_length(r->in.lpValueName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    6070           0 :                 NDR_CHECK(ndr_push_winreg_Type(ndr, NDR_SCALARS, r->in.dwType));
    6071           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbData));
    6072           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpData, r->in.cbData));
    6073           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbData));
    6074             :         }
    6075           0 :         if (flags & NDR_OUT) {
    6076           0 :                 if (r->out.rpc_status == NULL) {
    6077           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6078             :                 }
    6079           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    6080           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    6081             :         }
    6082           0 :         return NDR_ERR_SUCCESS;
    6083             : }
    6084             : 
    6085           0 : static enum ndr_err_code ndr_pull_clusapi_SetValue(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_SetValue *r)
    6086             : {
    6087           0 :         uint32_t size_lpValueName_1 = 0;
    6088           0 :         uint32_t length_lpValueName_1 = 0;
    6089           0 :         uint32_t size_lpData_1 = 0;
    6090           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    6091           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    6092           0 :         if (flags & NDR_IN) {
    6093           0 :                 NDR_ZERO_STRUCT(r->out);
    6094             : 
    6095           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
    6096           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpValueName));
    6097           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpValueName));
    6098           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpValueName, &size_lpValueName_1));
    6099           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpValueName, &length_lpValueName_1));
    6100           0 :                 if (length_lpValueName_1 > size_lpValueName_1) {
    6101           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpValueName_1, length_lpValueName_1);
    6102             :                 }
    6103           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpValueName_1, sizeof(uint16_t)));
    6104           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpValueName, length_lpValueName_1, sizeof(uint16_t), CH_UTF16));
    6105           0 :                 NDR_CHECK(ndr_pull_winreg_Type(ndr, NDR_SCALARS, &r->in.dwType));
    6106           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpData));
    6107           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpData, &size_lpData_1));
    6108           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6109           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.lpData, size_lpData_1);
    6110             :                 }
    6111           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpData, size_lpData_1));
    6112           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbData));
    6113           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    6114           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    6115           0 :                 if (r->in.lpData) {
    6116           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpData, r->in.cbData));
    6117             :                 }
    6118             :         }
    6119           0 :         if (flags & NDR_OUT) {
    6120             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    6121             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    6122           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6123           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    6124             :                 }
    6125           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6126           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    6127           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    6128           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    6129           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    6130             :         }
    6131           0 :         return NDR_ERR_SUCCESS;
    6132             : }
    6133             : 
    6134           0 : _PUBLIC_ void ndr_print_clusapi_SetValue(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_SetValue *r)
    6135             : {
    6136           0 :         ndr_print_struct(ndr, name, "clusapi_SetValue");
    6137           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    6138           0 :         ndr->depth++;
    6139           0 :         if (flags & NDR_SET_VALUES) {
    6140           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    6141             :         }
    6142           0 :         if (flags & NDR_IN) {
    6143           0 :                 ndr_print_struct(ndr, "in", "clusapi_SetValue");
    6144           0 :                 ndr->depth++;
    6145           0 :                 ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
    6146           0 :                 ndr_print_ptr(ndr, "lpValueName", r->in.lpValueName);
    6147           0 :                 ndr->depth++;
    6148           0 :                 ndr_print_string(ndr, "lpValueName", r->in.lpValueName);
    6149           0 :                 ndr->depth--;
    6150           0 :                 ndr_print_winreg_Type(ndr, "dwType", r->in.dwType);
    6151           0 :                 ndr_print_ptr(ndr, "lpData", r->in.lpData);
    6152           0 :                 ndr->depth++;
    6153           0 :                 ndr_print_array_uint8(ndr, "lpData", r->in.lpData, r->in.cbData);
    6154           0 :                 ndr->depth--;
    6155           0 :                 ndr_print_uint32(ndr, "cbData", r->in.cbData);
    6156           0 :                 ndr->depth--;
    6157             :         }
    6158           0 :         if (flags & NDR_OUT) {
    6159           0 :                 ndr_print_struct(ndr, "out", "clusapi_SetValue");
    6160           0 :                 ndr->depth++;
    6161           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    6162           0 :                 ndr->depth++;
    6163           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    6164           0 :                 ndr->depth--;
    6165           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    6166           0 :                 ndr->depth--;
    6167             :         }
    6168           0 :         ndr->depth--;
    6169             : }
    6170             : 
    6171           0 : static enum ndr_err_code ndr_push_clusapi_DeleteValue(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_DeleteValue *r)
    6172             : {
    6173           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    6174           0 :         if (flags & NDR_IN) {
    6175           0 :                 if (r->in.lpValueName == NULL) {
    6176           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6177             :                 }
    6178           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
    6179           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpValueName, CH_UTF16)));
    6180           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    6181           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpValueName, CH_UTF16)));
    6182           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpValueName, ndr_charset_length(r->in.lpValueName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    6183             :         }
    6184           0 :         if (flags & NDR_OUT) {
    6185           0 :                 if (r->out.rpc_status == NULL) {
    6186           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6187             :                 }
    6188           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    6189           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    6190             :         }
    6191           0 :         return NDR_ERR_SUCCESS;
    6192             : }
    6193             : 
    6194           0 : static enum ndr_err_code ndr_pull_clusapi_DeleteValue(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_DeleteValue *r)
    6195             : {
    6196           0 :         uint32_t size_lpValueName_1 = 0;
    6197           0 :         uint32_t length_lpValueName_1 = 0;
    6198           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    6199           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    6200           0 :         if (flags & NDR_IN) {
    6201           0 :                 NDR_ZERO_STRUCT(r->out);
    6202             : 
    6203           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
    6204           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpValueName));
    6205           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpValueName));
    6206           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpValueName, &size_lpValueName_1));
    6207           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpValueName, &length_lpValueName_1));
    6208           0 :                 if (length_lpValueName_1 > size_lpValueName_1) {
    6209           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpValueName_1, length_lpValueName_1);
    6210             :                 }
    6211           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpValueName_1, sizeof(uint16_t)));
    6212           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpValueName, length_lpValueName_1, sizeof(uint16_t), CH_UTF16));
    6213           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    6214           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    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.rpc_status);
    6221             :                 }
    6222           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6223           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    6224           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    6225           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    6226           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    6227             :         }
    6228           0 :         return NDR_ERR_SUCCESS;
    6229             : }
    6230             : 
    6231           0 : _PUBLIC_ void ndr_print_clusapi_DeleteValue(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_DeleteValue *r)
    6232             : {
    6233           0 :         ndr_print_struct(ndr, name, "clusapi_DeleteValue");
    6234           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    6235           0 :         ndr->depth++;
    6236           0 :         if (flags & NDR_SET_VALUES) {
    6237           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    6238             :         }
    6239           0 :         if (flags & NDR_IN) {
    6240           0 :                 ndr_print_struct(ndr, "in", "clusapi_DeleteValue");
    6241           0 :                 ndr->depth++;
    6242           0 :                 ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
    6243           0 :                 ndr_print_ptr(ndr, "lpValueName", r->in.lpValueName);
    6244           0 :                 ndr->depth++;
    6245           0 :                 ndr_print_string(ndr, "lpValueName", r->in.lpValueName);
    6246           0 :                 ndr->depth--;
    6247           0 :                 ndr->depth--;
    6248             :         }
    6249           0 :         if (flags & NDR_OUT) {
    6250           0 :                 ndr_print_struct(ndr, "out", "clusapi_DeleteValue");
    6251           0 :                 ndr->depth++;
    6252           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    6253           0 :                 ndr->depth++;
    6254           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    6255           0 :                 ndr->depth--;
    6256           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    6257           0 :                 ndr->depth--;
    6258             :         }
    6259           0 :         ndr->depth--;
    6260             : }
    6261             : 
    6262           0 : static enum ndr_err_code ndr_push_clusapi_QueryValue(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_QueryValue *r)
    6263             : {
    6264           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    6265           0 :         if (flags & NDR_IN) {
    6266           0 :                 if (r->in.lpValueName == NULL) {
    6267           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6268             :                 }
    6269           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
    6270           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpValueName, CH_UTF16)));
    6271           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    6272           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpValueName, CH_UTF16)));
    6273           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpValueName, ndr_charset_length(r->in.lpValueName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    6274           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbData));
    6275             :         }
    6276           0 :         if (flags & NDR_OUT) {
    6277           0 :                 if (r->out.lpValueType == NULL) {
    6278           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6279             :                 }
    6280           0 :                 if (r->out.lpData == NULL) {
    6281           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6282             :                 }
    6283           0 :                 if (r->out.lpcbRequired == NULL) {
    6284           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6285             :                 }
    6286           0 :                 if (r->out.rpc_status == NULL) {
    6287           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6288             :                 }
    6289           0 :                 NDR_CHECK(ndr_push_winreg_Type(ndr, NDR_SCALARS, *r->out.lpValueType));
    6290           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbData));
    6291           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpData, r->in.cbData));
    6292           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
    6293           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    6294           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    6295             :         }
    6296           0 :         return NDR_ERR_SUCCESS;
    6297             : }
    6298             : 
    6299           0 : static enum ndr_err_code ndr_pull_clusapi_QueryValue(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_QueryValue *r)
    6300             : {
    6301           0 :         uint32_t size_lpValueName_1 = 0;
    6302           0 :         uint32_t length_lpValueName_1 = 0;
    6303           0 :         uint32_t size_lpData_1 = 0;
    6304           0 :         TALLOC_CTX *_mem_save_lpValueType_0 = NULL;
    6305           0 :         TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
    6306           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    6307           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    6308           0 :         if (flags & NDR_IN) {
    6309           0 :                 NDR_ZERO_STRUCT(r->out);
    6310             : 
    6311           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
    6312           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpValueName));
    6313           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpValueName));
    6314           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpValueName, &size_lpValueName_1));
    6315           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpValueName, &length_lpValueName_1));
    6316           0 :                 if (length_lpValueName_1 > size_lpValueName_1) {
    6317           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpValueName_1, length_lpValueName_1);
    6318             :                 }
    6319           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpValueName_1, sizeof(uint16_t)));
    6320           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpValueName, length_lpValueName_1, sizeof(uint16_t), CH_UTF16));
    6321           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbData));
    6322           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpValueType);
    6323           0 :                 NDR_ZERO_STRUCTP(r->out.lpValueType);
    6324           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.lpData, r->in.cbData);
    6325           0 :                 memset(r->out.lpData, 0, (r->in.cbData) * sizeof(*r->out.lpData));
    6326           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
    6327           0 :                 NDR_ZERO_STRUCTP(r->out.lpcbRequired);
    6328           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    6329           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    6330             :         }
    6331           0 :         if (flags & NDR_OUT) {
    6332             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    6333             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    6334           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6335           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpValueType);
    6336             :                 }
    6337           0 :                 _mem_save_lpValueType_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6338           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpValueType, LIBNDR_FLAG_REF_ALLOC);
    6339           0 :                 NDR_CHECK(ndr_pull_winreg_Type(ndr, NDR_SCALARS, r->out.lpValueType));
    6340           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpValueType_0, LIBNDR_FLAG_REF_ALLOC);
    6341           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpData));
    6342           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpData, &size_lpData_1));
    6343           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6344           0 :                         NDR_PULL_ALLOC_N(ndr, r->out.lpData, size_lpData_1);
    6345             :                 }
    6346           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpData, size_lpData_1));
    6347           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6348           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
    6349             :                 }
    6350           0 :                 _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6351           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
    6352           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
    6353           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
    6354           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6355           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    6356             :                 }
    6357           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6358           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    6359           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    6360           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    6361           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    6362           0 :                 if (r->out.lpData) {
    6363           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpData, r->in.cbData));
    6364             :                 }
    6365             :         }
    6366           0 :         return NDR_ERR_SUCCESS;
    6367             : }
    6368             : 
    6369           0 : _PUBLIC_ void ndr_print_clusapi_QueryValue(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_QueryValue *r)
    6370             : {
    6371           0 :         ndr_print_struct(ndr, name, "clusapi_QueryValue");
    6372           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    6373           0 :         ndr->depth++;
    6374           0 :         if (flags & NDR_SET_VALUES) {
    6375           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    6376             :         }
    6377           0 :         if (flags & NDR_IN) {
    6378           0 :                 ndr_print_struct(ndr, "in", "clusapi_QueryValue");
    6379           0 :                 ndr->depth++;
    6380           0 :                 ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
    6381           0 :                 ndr_print_ptr(ndr, "lpValueName", r->in.lpValueName);
    6382           0 :                 ndr->depth++;
    6383           0 :                 ndr_print_string(ndr, "lpValueName", r->in.lpValueName);
    6384           0 :                 ndr->depth--;
    6385           0 :                 ndr_print_uint32(ndr, "cbData", r->in.cbData);
    6386           0 :                 ndr->depth--;
    6387             :         }
    6388           0 :         if (flags & NDR_OUT) {
    6389           0 :                 ndr_print_struct(ndr, "out", "clusapi_QueryValue");
    6390           0 :                 ndr->depth++;
    6391           0 :                 ndr_print_ptr(ndr, "lpValueType", r->out.lpValueType);
    6392           0 :                 ndr->depth++;
    6393           0 :                 ndr_print_winreg_Type(ndr, "lpValueType", *r->out.lpValueType);
    6394           0 :                 ndr->depth--;
    6395           0 :                 ndr_print_ptr(ndr, "lpData", r->out.lpData);
    6396           0 :                 ndr->depth++;
    6397           0 :                 ndr_print_array_uint8(ndr, "lpData", r->out.lpData, r->in.cbData);
    6398           0 :                 ndr->depth--;
    6399           0 :                 ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
    6400           0 :                 ndr->depth++;
    6401           0 :                 ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
    6402           0 :                 ndr->depth--;
    6403           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    6404           0 :                 ndr->depth++;
    6405           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    6406           0 :                 ndr->depth--;
    6407           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    6408           0 :                 ndr->depth--;
    6409             :         }
    6410           0 :         ndr->depth--;
    6411             : }
    6412             : 
    6413           0 : static enum ndr_err_code ndr_push_clusapi_DeleteKey(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_DeleteKey *r)
    6414             : {
    6415           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    6416           0 :         if (flags & NDR_IN) {
    6417           0 :                 if (r->in.lpSubKey == NULL) {
    6418           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6419             :                 }
    6420           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
    6421           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpSubKey, CH_UTF16)));
    6422           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    6423           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpSubKey, CH_UTF16)));
    6424           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpSubKey, ndr_charset_length(r->in.lpSubKey, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    6425             :         }
    6426           0 :         if (flags & NDR_OUT) {
    6427           0 :                 if (r->out.rpc_status == NULL) {
    6428           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6429             :                 }
    6430           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    6431           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    6432             :         }
    6433           0 :         return NDR_ERR_SUCCESS;
    6434             : }
    6435             : 
    6436           0 : static enum ndr_err_code ndr_pull_clusapi_DeleteKey(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_DeleteKey *r)
    6437             : {
    6438           0 :         uint32_t size_lpSubKey_1 = 0;
    6439           0 :         uint32_t length_lpSubKey_1 = 0;
    6440           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    6441           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    6442           0 :         if (flags & NDR_IN) {
    6443           0 :                 NDR_ZERO_STRUCT(r->out);
    6444             : 
    6445           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
    6446           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpSubKey));
    6447           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpSubKey));
    6448           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpSubKey, &size_lpSubKey_1));
    6449           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpSubKey, &length_lpSubKey_1));
    6450           0 :                 if (length_lpSubKey_1 > size_lpSubKey_1) {
    6451           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpSubKey_1, length_lpSubKey_1);
    6452             :                 }
    6453           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpSubKey_1, sizeof(uint16_t)));
    6454           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpSubKey, length_lpSubKey_1, sizeof(uint16_t), CH_UTF16));
    6455           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    6456           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    6457             :         }
    6458           0 :         if (flags & NDR_OUT) {
    6459             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    6460             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    6461           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6462           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    6463             :                 }
    6464           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6465           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    6466           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    6467           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    6468           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    6469             :         }
    6470           0 :         return NDR_ERR_SUCCESS;
    6471             : }
    6472             : 
    6473           0 : _PUBLIC_ void ndr_print_clusapi_DeleteKey(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_DeleteKey *r)
    6474             : {
    6475           0 :         ndr_print_struct(ndr, name, "clusapi_DeleteKey");
    6476           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    6477           0 :         ndr->depth++;
    6478           0 :         if (flags & NDR_SET_VALUES) {
    6479           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    6480             :         }
    6481           0 :         if (flags & NDR_IN) {
    6482           0 :                 ndr_print_struct(ndr, "in", "clusapi_DeleteKey");
    6483           0 :                 ndr->depth++;
    6484           0 :                 ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
    6485           0 :                 ndr_print_ptr(ndr, "lpSubKey", r->in.lpSubKey);
    6486           0 :                 ndr->depth++;
    6487           0 :                 ndr_print_string(ndr, "lpSubKey", r->in.lpSubKey);
    6488           0 :                 ndr->depth--;
    6489           0 :                 ndr->depth--;
    6490             :         }
    6491           0 :         if (flags & NDR_OUT) {
    6492           0 :                 ndr_print_struct(ndr, "out", "clusapi_DeleteKey");
    6493           0 :                 ndr->depth++;
    6494           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    6495           0 :                 ndr->depth++;
    6496           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    6497           0 :                 ndr->depth--;
    6498           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    6499           0 :                 ndr->depth--;
    6500             :         }
    6501           0 :         ndr->depth--;
    6502             : }
    6503             : 
    6504           0 : static enum ndr_err_code ndr_push_clusapi_EnumValue(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_EnumValue *r)
    6505             : {
    6506           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    6507           0 :         if (flags & NDR_IN) {
    6508           0 :                 if (r->in.lpcbData == NULL) {
    6509           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6510             :                 }
    6511           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
    6512           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwIndex));
    6513           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.lpcbData));
    6514             :         }
    6515           0 :         if (flags & NDR_OUT) {
    6516           0 :                 if (r->out.lpValueName == NULL) {
    6517           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6518             :                 }
    6519           0 :                 if (r->out.lpType == NULL) {
    6520           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6521             :                 }
    6522           0 :                 if (r->out.lpData == NULL) {
    6523           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6524             :                 }
    6525           0 :                 if (r->out.lpcbData == NULL) {
    6526           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6527             :                 }
    6528           0 :                 if (r->out.TotalSize == NULL) {
    6529           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6530             :                 }
    6531           0 :                 if (r->out.rpc_status == NULL) {
    6532           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6533             :                 }
    6534           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lpValueName));
    6535           0 :                 if (*r->out.lpValueName) {
    6536           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpValueName, CH_UTF16)));
    6537           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    6538           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpValueName, CH_UTF16)));
    6539           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.lpValueName, ndr_charset_length(*r->out.lpValueName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    6540             :                 }
    6541           0 :                 NDR_CHECK(ndr_push_winreg_Type(ndr, NDR_SCALARS, *r->out.lpType));
    6542           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpcbData));
    6543           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpData, *r->out.lpcbData));
    6544           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbData));
    6545           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.TotalSize));
    6546           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    6547           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    6548             :         }
    6549           0 :         return NDR_ERR_SUCCESS;
    6550             : }
    6551             : 
    6552           0 : static enum ndr_err_code ndr_pull_clusapi_EnumValue(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_EnumValue *r)
    6553             : {
    6554           0 :         uint32_t _ptr_lpValueName;
    6555           0 :         uint32_t size_lpValueName_2 = 0;
    6556           0 :         uint32_t length_lpValueName_2 = 0;
    6557           0 :         uint32_t size_lpData_1 = 0;
    6558           0 :         TALLOC_CTX *_mem_save_lpValueName_0 = NULL;
    6559           0 :         TALLOC_CTX *_mem_save_lpValueName_1 = NULL;
    6560           0 :         TALLOC_CTX *_mem_save_lpType_0 = NULL;
    6561           0 :         TALLOC_CTX *_mem_save_lpcbData_0 = NULL;
    6562           0 :         TALLOC_CTX *_mem_save_TotalSize_0 = NULL;
    6563           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    6564           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    6565           0 :         if (flags & NDR_IN) {
    6566           0 :                 NDR_ZERO_STRUCT(r->out);
    6567             : 
    6568           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
    6569           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwIndex));
    6570           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6571           0 :                         NDR_PULL_ALLOC(ndr, r->in.lpcbData);
    6572             :                 }
    6573           0 :                 _mem_save_lpcbData_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6574           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.lpcbData, LIBNDR_FLAG_REF_ALLOC);
    6575           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.lpcbData));
    6576           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbData_0, LIBNDR_FLAG_REF_ALLOC);
    6577           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpValueName);
    6578           0 :                 NDR_ZERO_STRUCTP(r->out.lpValueName);
    6579           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpType);
    6580           0 :                 NDR_ZERO_STRUCTP(r->out.lpType);
    6581           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.lpData, *r->in.lpcbData);
    6582           0 :                 memset(r->out.lpData, 0, (*r->in.lpcbData) * sizeof(*r->out.lpData));
    6583           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpcbData);
    6584           0 :                 *r->out.lpcbData = *r->in.lpcbData;
    6585           0 :                 NDR_PULL_ALLOC(ndr, r->out.TotalSize);
    6586           0 :                 NDR_ZERO_STRUCTP(r->out.TotalSize);
    6587           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    6588           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    6589             :         }
    6590           0 :         if (flags & NDR_OUT) {
    6591             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    6592             :                 if (r->in.lpcbData == NULL) {
    6593             :                         NDR_PULL_ALLOC(ndr, r->in.lpcbData);
    6594             :                         NDR_ZERO_STRUCTP(r->in.lpcbData);
    6595             :                 }
    6596             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    6597           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6598           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpValueName);
    6599             :                 }
    6600           0 :                 _mem_save_lpValueName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6601           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpValueName, LIBNDR_FLAG_REF_ALLOC);
    6602           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpValueName));
    6603           0 :                 if (_ptr_lpValueName) {
    6604           0 :                         NDR_PULL_ALLOC(ndr, *r->out.lpValueName);
    6605             :                 } else {
    6606           0 :                         *r->out.lpValueName = NULL;
    6607             :                 }
    6608           0 :                 if (*r->out.lpValueName) {
    6609           0 :                         _mem_save_lpValueName_1 = NDR_PULL_GET_MEM_CTX(ndr);
    6610           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.lpValueName, 0);
    6611           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.lpValueName));
    6612           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, r->out.lpValueName));
    6613           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.lpValueName, &size_lpValueName_2));
    6614           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.lpValueName, &length_lpValueName_2));
    6615           0 :                         if (length_lpValueName_2 > size_lpValueName_2) {
    6616           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpValueName_2, length_lpValueName_2);
    6617             :                         }
    6618           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_lpValueName_2, sizeof(uint16_t)));
    6619           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.lpValueName, length_lpValueName_2, sizeof(uint16_t), CH_UTF16));
    6620           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpValueName_1, 0);
    6621             :                 }
    6622           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpValueName_0, LIBNDR_FLAG_REF_ALLOC);
    6623           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6624           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpType);
    6625             :                 }
    6626           0 :                 _mem_save_lpType_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6627           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpType, LIBNDR_FLAG_REF_ALLOC);
    6628           0 :                 NDR_CHECK(ndr_pull_winreg_Type(ndr, NDR_SCALARS, r->out.lpType));
    6629           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpType_0, LIBNDR_FLAG_REF_ALLOC);
    6630           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpData));
    6631           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpData, &size_lpData_1));
    6632           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6633           0 :                         NDR_PULL_ALLOC_N(ndr, r->out.lpData, size_lpData_1);
    6634             :                 }
    6635           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpData, size_lpData_1));
    6636           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6637           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpcbData);
    6638             :                 }
    6639           0 :                 _mem_save_lpcbData_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6640           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbData, LIBNDR_FLAG_REF_ALLOC);
    6641           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbData));
    6642           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbData_0, LIBNDR_FLAG_REF_ALLOC);
    6643           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6644           0 :                         NDR_PULL_ALLOC(ndr, r->out.TotalSize);
    6645             :                 }
    6646           0 :                 _mem_save_TotalSize_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6647           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.TotalSize, LIBNDR_FLAG_REF_ALLOC);
    6648           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.TotalSize));
    6649           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_TotalSize_0, LIBNDR_FLAG_REF_ALLOC);
    6650           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6651           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    6652             :                 }
    6653           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6654           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    6655           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    6656           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    6657           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    6658           0 :                 if (r->out.lpData) {
    6659           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpData, *r->out.lpcbData));
    6660             :                 }
    6661             :         }
    6662           0 :         return NDR_ERR_SUCCESS;
    6663             : }
    6664             : 
    6665           0 : _PUBLIC_ void ndr_print_clusapi_EnumValue(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_EnumValue *r)
    6666             : {
    6667           0 :         ndr_print_struct(ndr, name, "clusapi_EnumValue");
    6668           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    6669           0 :         ndr->depth++;
    6670           0 :         if (flags & NDR_SET_VALUES) {
    6671           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    6672             :         }
    6673           0 :         if (flags & NDR_IN) {
    6674           0 :                 ndr_print_struct(ndr, "in", "clusapi_EnumValue");
    6675           0 :                 ndr->depth++;
    6676           0 :                 ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
    6677           0 :                 ndr_print_uint32(ndr, "dwIndex", r->in.dwIndex);
    6678           0 :                 ndr_print_ptr(ndr, "lpcbData", r->in.lpcbData);
    6679           0 :                 ndr->depth++;
    6680           0 :                 ndr_print_uint32(ndr, "lpcbData", *r->in.lpcbData);
    6681           0 :                 ndr->depth--;
    6682           0 :                 ndr->depth--;
    6683             :         }
    6684           0 :         if (flags & NDR_OUT) {
    6685           0 :                 ndr_print_struct(ndr, "out", "clusapi_EnumValue");
    6686           0 :                 ndr->depth++;
    6687           0 :                 ndr_print_ptr(ndr, "lpValueName", r->out.lpValueName);
    6688           0 :                 ndr->depth++;
    6689           0 :                 ndr_print_ptr(ndr, "lpValueName", *r->out.lpValueName);
    6690           0 :                 ndr->depth++;
    6691           0 :                 if (*r->out.lpValueName) {
    6692           0 :                         ndr_print_string(ndr, "lpValueName", *r->out.lpValueName);
    6693             :                 }
    6694           0 :                 ndr->depth--;
    6695           0 :                 ndr->depth--;
    6696           0 :                 ndr_print_ptr(ndr, "lpType", r->out.lpType);
    6697           0 :                 ndr->depth++;
    6698           0 :                 ndr_print_winreg_Type(ndr, "lpType", *r->out.lpType);
    6699           0 :                 ndr->depth--;
    6700           0 :                 ndr_print_ptr(ndr, "lpData", r->out.lpData);
    6701           0 :                 ndr->depth++;
    6702           0 :                 ndr_print_array_uint8(ndr, "lpData", r->out.lpData, *r->out.lpcbData);
    6703           0 :                 ndr->depth--;
    6704           0 :                 ndr_print_ptr(ndr, "lpcbData", r->out.lpcbData);
    6705           0 :                 ndr->depth++;
    6706           0 :                 ndr_print_uint32(ndr, "lpcbData", *r->out.lpcbData);
    6707           0 :                 ndr->depth--;
    6708           0 :                 ndr_print_ptr(ndr, "TotalSize", r->out.TotalSize);
    6709           0 :                 ndr->depth++;
    6710           0 :                 ndr_print_uint32(ndr, "TotalSize", *r->out.TotalSize);
    6711           0 :                 ndr->depth--;
    6712           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    6713           0 :                 ndr->depth++;
    6714           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    6715           0 :                 ndr->depth--;
    6716           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    6717           0 :                 ndr->depth--;
    6718             :         }
    6719           0 :         ndr->depth--;
    6720             : }
    6721             : 
    6722           0 : static enum ndr_err_code ndr_push_clusapi_CloseKey(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CloseKey *r)
    6723             : {
    6724           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    6725           0 :         if (flags & NDR_IN) {
    6726           0 :                 if (r->in.pKey == NULL) {
    6727           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6728             :                 }
    6729           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.pKey));
    6730             :         }
    6731           0 :         if (flags & NDR_OUT) {
    6732           0 :                 if (r->out.pKey == NULL) {
    6733           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6734             :                 }
    6735           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.pKey));
    6736           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    6737             :         }
    6738           0 :         return NDR_ERR_SUCCESS;
    6739             : }
    6740             : 
    6741           0 : static enum ndr_err_code ndr_pull_clusapi_CloseKey(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CloseKey *r)
    6742             : {
    6743           0 :         TALLOC_CTX *_mem_save_pKey_0 = NULL;
    6744           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    6745           0 :         if (flags & NDR_IN) {
    6746           0 :                 NDR_ZERO_STRUCT(r->out);
    6747             : 
    6748           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6749           0 :                         NDR_PULL_ALLOC(ndr, r->in.pKey);
    6750             :                 }
    6751           0 :                 _mem_save_pKey_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6752           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pKey, LIBNDR_FLAG_REF_ALLOC);
    6753           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.pKey));
    6754           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pKey_0, LIBNDR_FLAG_REF_ALLOC);
    6755           0 :                 NDR_PULL_ALLOC(ndr, r->out.pKey);
    6756           0 :                 *r->out.pKey = *r->in.pKey;
    6757             :         }
    6758           0 :         if (flags & NDR_OUT) {
    6759             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    6760             :                 if (r->in.pKey == NULL) {
    6761             :                         NDR_PULL_ALLOC(ndr, r->in.pKey);
    6762             :                         NDR_ZERO_STRUCTP(r->in.pKey);
    6763             :                 }
    6764             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    6765           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6766           0 :                         NDR_PULL_ALLOC(ndr, r->out.pKey);
    6767             :                 }
    6768           0 :                 _mem_save_pKey_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6769           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.pKey, LIBNDR_FLAG_REF_ALLOC);
    6770           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.pKey));
    6771           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pKey_0, LIBNDR_FLAG_REF_ALLOC);
    6772           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    6773             :         }
    6774           0 :         return NDR_ERR_SUCCESS;
    6775             : }
    6776             : 
    6777           0 : _PUBLIC_ void ndr_print_clusapi_CloseKey(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CloseKey *r)
    6778             : {
    6779           0 :         ndr_print_struct(ndr, name, "clusapi_CloseKey");
    6780           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    6781           0 :         ndr->depth++;
    6782           0 :         if (flags & NDR_SET_VALUES) {
    6783           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    6784             :         }
    6785           0 :         if (flags & NDR_IN) {
    6786           0 :                 ndr_print_struct(ndr, "in", "clusapi_CloseKey");
    6787           0 :                 ndr->depth++;
    6788           0 :                 ndr_print_ptr(ndr, "pKey", r->in.pKey);
    6789           0 :                 ndr->depth++;
    6790           0 :                 ndr_print_policy_handle(ndr, "pKey", r->in.pKey);
    6791           0 :                 ndr->depth--;
    6792           0 :                 ndr->depth--;
    6793             :         }
    6794           0 :         if (flags & NDR_OUT) {
    6795           0 :                 ndr_print_struct(ndr, "out", "clusapi_CloseKey");
    6796           0 :                 ndr->depth++;
    6797           0 :                 ndr_print_ptr(ndr, "pKey", r->out.pKey);
    6798           0 :                 ndr->depth++;
    6799           0 :                 ndr_print_policy_handle(ndr, "pKey", r->out.pKey);
    6800           0 :                 ndr->depth--;
    6801           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    6802           0 :                 ndr->depth--;
    6803             :         }
    6804           0 :         ndr->depth--;
    6805             : }
    6806             : 
    6807           0 : static enum ndr_err_code ndr_push_clusapi_QueryInfoKey(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_QueryInfoKey *r)
    6808             : {
    6809           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    6810           0 :         if (flags & NDR_IN) {
    6811           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
    6812             :         }
    6813           0 :         if (flags & NDR_OUT) {
    6814           0 :                 if (r->out.lpcSubKeys == NULL) {
    6815           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6816             :                 }
    6817           0 :                 if (r->out.lpcbMaxSubKeyLen == NULL) {
    6818           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6819             :                 }
    6820           0 :                 if (r->out.lpcValues == NULL) {
    6821           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6822             :                 }
    6823           0 :                 if (r->out.lpcbMaxValueNameLen == NULL) {
    6824           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6825             :                 }
    6826           0 :                 if (r->out.lpcbMaxValueLen == NULL) {
    6827           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6828             :                 }
    6829           0 :                 if (r->out.lpcbSecurityDescriptor == NULL) {
    6830           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6831             :                 }
    6832           0 :                 if (r->out.lpftLastWriteTime == NULL) {
    6833           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6834             :                 }
    6835           0 :                 if (r->out.rpc_status == NULL) {
    6836           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    6837             :                 }
    6838           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcSubKeys));
    6839           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbMaxSubKeyLen));
    6840           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcValues));
    6841           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbMaxValueNameLen));
    6842           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbMaxValueLen));
    6843           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbSecurityDescriptor));
    6844           0 :                 NDR_CHECK(ndr_push_NTTIME(ndr, NDR_SCALARS, *r->out.lpftLastWriteTime));
    6845           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    6846           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    6847             :         }
    6848           0 :         return NDR_ERR_SUCCESS;
    6849             : }
    6850             : 
    6851           0 : static enum ndr_err_code ndr_pull_clusapi_QueryInfoKey(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_QueryInfoKey *r)
    6852             : {
    6853           0 :         TALLOC_CTX *_mem_save_lpcSubKeys_0 = NULL;
    6854           0 :         TALLOC_CTX *_mem_save_lpcbMaxSubKeyLen_0 = NULL;
    6855           0 :         TALLOC_CTX *_mem_save_lpcValues_0 = NULL;
    6856           0 :         TALLOC_CTX *_mem_save_lpcbMaxValueNameLen_0 = NULL;
    6857           0 :         TALLOC_CTX *_mem_save_lpcbMaxValueLen_0 = NULL;
    6858           0 :         TALLOC_CTX *_mem_save_lpcbSecurityDescriptor_0 = NULL;
    6859           0 :         TALLOC_CTX *_mem_save_lpftLastWriteTime_0 = NULL;
    6860           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    6861           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    6862           0 :         if (flags & NDR_IN) {
    6863           0 :                 NDR_ZERO_STRUCT(r->out);
    6864             : 
    6865           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
    6866           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpcSubKeys);
    6867           0 :                 NDR_ZERO_STRUCTP(r->out.lpcSubKeys);
    6868           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpcbMaxSubKeyLen);
    6869           0 :                 NDR_ZERO_STRUCTP(r->out.lpcbMaxSubKeyLen);
    6870           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpcValues);
    6871           0 :                 NDR_ZERO_STRUCTP(r->out.lpcValues);
    6872           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpcbMaxValueNameLen);
    6873           0 :                 NDR_ZERO_STRUCTP(r->out.lpcbMaxValueNameLen);
    6874           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpcbMaxValueLen);
    6875           0 :                 NDR_ZERO_STRUCTP(r->out.lpcbMaxValueLen);
    6876           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpcbSecurityDescriptor);
    6877           0 :                 NDR_ZERO_STRUCTP(r->out.lpcbSecurityDescriptor);
    6878           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpftLastWriteTime);
    6879           0 :                 NDR_ZERO_STRUCTP(r->out.lpftLastWriteTime);
    6880           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    6881           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    6882             :         }
    6883           0 :         if (flags & NDR_OUT) {
    6884             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    6885             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    6886           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6887           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpcSubKeys);
    6888             :                 }
    6889           0 :                 _mem_save_lpcSubKeys_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6890           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcSubKeys, LIBNDR_FLAG_REF_ALLOC);
    6891           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcSubKeys));
    6892           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcSubKeys_0, LIBNDR_FLAG_REF_ALLOC);
    6893           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6894           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpcbMaxSubKeyLen);
    6895             :                 }
    6896           0 :                 _mem_save_lpcbMaxSubKeyLen_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6897           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbMaxSubKeyLen, LIBNDR_FLAG_REF_ALLOC);
    6898           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbMaxSubKeyLen));
    6899           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbMaxSubKeyLen_0, LIBNDR_FLAG_REF_ALLOC);
    6900           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6901           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpcValues);
    6902             :                 }
    6903           0 :                 _mem_save_lpcValues_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6904           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcValues, LIBNDR_FLAG_REF_ALLOC);
    6905           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcValues));
    6906           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcValues_0, LIBNDR_FLAG_REF_ALLOC);
    6907           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6908           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpcbMaxValueNameLen);
    6909             :                 }
    6910           0 :                 _mem_save_lpcbMaxValueNameLen_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6911           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbMaxValueNameLen, LIBNDR_FLAG_REF_ALLOC);
    6912           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbMaxValueNameLen));
    6913           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbMaxValueNameLen_0, LIBNDR_FLAG_REF_ALLOC);
    6914           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6915           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpcbMaxValueLen);
    6916             :                 }
    6917           0 :                 _mem_save_lpcbMaxValueLen_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6918           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbMaxValueLen, LIBNDR_FLAG_REF_ALLOC);
    6919           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbMaxValueLen));
    6920           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbMaxValueLen_0, LIBNDR_FLAG_REF_ALLOC);
    6921           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6922           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpcbSecurityDescriptor);
    6923             :                 }
    6924           0 :                 _mem_save_lpcbSecurityDescriptor_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6925           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbSecurityDescriptor, LIBNDR_FLAG_REF_ALLOC);
    6926           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbSecurityDescriptor));
    6927           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbSecurityDescriptor_0, LIBNDR_FLAG_REF_ALLOC);
    6928           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6929           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpftLastWriteTime);
    6930             :                 }
    6931           0 :                 _mem_save_lpftLastWriteTime_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6932           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpftLastWriteTime, LIBNDR_FLAG_REF_ALLOC);
    6933           0 :                 NDR_CHECK(ndr_pull_NTTIME(ndr, NDR_SCALARS, r->out.lpftLastWriteTime));
    6934           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpftLastWriteTime_0, LIBNDR_FLAG_REF_ALLOC);
    6935           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    6936           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    6937             :                 }
    6938           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6939           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    6940           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    6941           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    6942           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    6943             :         }
    6944           0 :         return NDR_ERR_SUCCESS;
    6945             : }
    6946             : 
    6947           0 : _PUBLIC_ void ndr_print_clusapi_QueryInfoKey(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_QueryInfoKey *r)
    6948             : {
    6949           0 :         ndr_print_struct(ndr, name, "clusapi_QueryInfoKey");
    6950           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    6951           0 :         ndr->depth++;
    6952           0 :         if (flags & NDR_SET_VALUES) {
    6953           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    6954             :         }
    6955           0 :         if (flags & NDR_IN) {
    6956           0 :                 ndr_print_struct(ndr, "in", "clusapi_QueryInfoKey");
    6957           0 :                 ndr->depth++;
    6958           0 :                 ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
    6959           0 :                 ndr->depth--;
    6960             :         }
    6961           0 :         if (flags & NDR_OUT) {
    6962           0 :                 ndr_print_struct(ndr, "out", "clusapi_QueryInfoKey");
    6963           0 :                 ndr->depth++;
    6964           0 :                 ndr_print_ptr(ndr, "lpcSubKeys", r->out.lpcSubKeys);
    6965           0 :                 ndr->depth++;
    6966           0 :                 ndr_print_uint32(ndr, "lpcSubKeys", *r->out.lpcSubKeys);
    6967           0 :                 ndr->depth--;
    6968           0 :                 ndr_print_ptr(ndr, "lpcbMaxSubKeyLen", r->out.lpcbMaxSubKeyLen);
    6969           0 :                 ndr->depth++;
    6970           0 :                 ndr_print_uint32(ndr, "lpcbMaxSubKeyLen", *r->out.lpcbMaxSubKeyLen);
    6971           0 :                 ndr->depth--;
    6972           0 :                 ndr_print_ptr(ndr, "lpcValues", r->out.lpcValues);
    6973           0 :                 ndr->depth++;
    6974           0 :                 ndr_print_uint32(ndr, "lpcValues", *r->out.lpcValues);
    6975           0 :                 ndr->depth--;
    6976           0 :                 ndr_print_ptr(ndr, "lpcbMaxValueNameLen", r->out.lpcbMaxValueNameLen);
    6977           0 :                 ndr->depth++;
    6978           0 :                 ndr_print_uint32(ndr, "lpcbMaxValueNameLen", *r->out.lpcbMaxValueNameLen);
    6979           0 :                 ndr->depth--;
    6980           0 :                 ndr_print_ptr(ndr, "lpcbMaxValueLen", r->out.lpcbMaxValueLen);
    6981           0 :                 ndr->depth++;
    6982           0 :                 ndr_print_uint32(ndr, "lpcbMaxValueLen", *r->out.lpcbMaxValueLen);
    6983           0 :                 ndr->depth--;
    6984           0 :                 ndr_print_ptr(ndr, "lpcbSecurityDescriptor", r->out.lpcbSecurityDescriptor);
    6985           0 :                 ndr->depth++;
    6986           0 :                 ndr_print_uint32(ndr, "lpcbSecurityDescriptor", *r->out.lpcbSecurityDescriptor);
    6987           0 :                 ndr->depth--;
    6988           0 :                 ndr_print_ptr(ndr, "lpftLastWriteTime", r->out.lpftLastWriteTime);
    6989           0 :                 ndr->depth++;
    6990           0 :                 ndr_print_NTTIME(ndr, "lpftLastWriteTime", *r->out.lpftLastWriteTime);
    6991           0 :                 ndr->depth--;
    6992           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    6993           0 :                 ndr->depth++;
    6994           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    6995           0 :                 ndr->depth--;
    6996           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    6997           0 :                 ndr->depth--;
    6998             :         }
    6999           0 :         ndr->depth--;
    7000             : }
    7001             : 
    7002           0 : static enum ndr_err_code ndr_push_clusapi_SetKeySecurity(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_SetKeySecurity *r)
    7003             : {
    7004           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7005           0 :         if (flags & NDR_IN) {
    7006           0 :                 if (r->in.pRpcSecurityDescriptor == NULL) {
    7007           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7008             :                 }
    7009           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
    7010           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.SecurityInformation));
    7011           0 :                 NDR_CHECK(ndr_push_RPC_SECURITY_DESCRIPTOR(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pRpcSecurityDescriptor));
    7012             :         }
    7013           0 :         if (flags & NDR_OUT) {
    7014           0 :                 if (r->out.rpc_status == NULL) {
    7015           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7016             :                 }
    7017           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    7018           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    7019             :         }
    7020           0 :         return NDR_ERR_SUCCESS;
    7021             : }
    7022             : 
    7023           0 : static enum ndr_err_code ndr_pull_clusapi_SetKeySecurity(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_SetKeySecurity *r)
    7024             : {
    7025           0 :         TALLOC_CTX *_mem_save_pRpcSecurityDescriptor_0 = NULL;
    7026           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    7027           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7028           0 :         if (flags & NDR_IN) {
    7029           0 :                 NDR_ZERO_STRUCT(r->out);
    7030             : 
    7031           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
    7032           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.SecurityInformation));
    7033           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7034           0 :                         NDR_PULL_ALLOC(ndr, r->in.pRpcSecurityDescriptor);
    7035             :                 }
    7036           0 :                 _mem_save_pRpcSecurityDescriptor_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7037           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pRpcSecurityDescriptor, LIBNDR_FLAG_REF_ALLOC);
    7038           0 :                 NDR_CHECK(ndr_pull_RPC_SECURITY_DESCRIPTOR(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pRpcSecurityDescriptor));
    7039           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pRpcSecurityDescriptor_0, LIBNDR_FLAG_REF_ALLOC);
    7040           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    7041           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    7042             :         }
    7043           0 :         if (flags & NDR_OUT) {
    7044             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7045             :                 if (r->in.pRpcSecurityDescriptor == NULL) {
    7046             :                         NDR_PULL_ALLOC(ndr, r->in.pRpcSecurityDescriptor);
    7047             :                         NDR_ZERO_STRUCTP(r->in.pRpcSecurityDescriptor);
    7048             :                 }
    7049             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7050           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7051           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    7052             :                 }
    7053           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7054           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    7055           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    7056           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    7057           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    7058             :         }
    7059           0 :         return NDR_ERR_SUCCESS;
    7060             : }
    7061             : 
    7062           0 : _PUBLIC_ void ndr_print_clusapi_SetKeySecurity(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_SetKeySecurity *r)
    7063             : {
    7064           0 :         ndr_print_struct(ndr, name, "clusapi_SetKeySecurity");
    7065           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7066           0 :         ndr->depth++;
    7067           0 :         if (flags & NDR_SET_VALUES) {
    7068           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7069             :         }
    7070           0 :         if (flags & NDR_IN) {
    7071           0 :                 ndr_print_struct(ndr, "in", "clusapi_SetKeySecurity");
    7072           0 :                 ndr->depth++;
    7073           0 :                 ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
    7074           0 :                 ndr_print_uint32(ndr, "SecurityInformation", r->in.SecurityInformation);
    7075           0 :                 ndr_print_ptr(ndr, "pRpcSecurityDescriptor", r->in.pRpcSecurityDescriptor);
    7076           0 :                 ndr->depth++;
    7077           0 :                 ndr_print_RPC_SECURITY_DESCRIPTOR(ndr, "pRpcSecurityDescriptor", r->in.pRpcSecurityDescriptor);
    7078           0 :                 ndr->depth--;
    7079           0 :                 ndr->depth--;
    7080             :         }
    7081           0 :         if (flags & NDR_OUT) {
    7082           0 :                 ndr_print_struct(ndr, "out", "clusapi_SetKeySecurity");
    7083           0 :                 ndr->depth++;
    7084           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    7085           0 :                 ndr->depth++;
    7086           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    7087           0 :                 ndr->depth--;
    7088           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    7089           0 :                 ndr->depth--;
    7090             :         }
    7091           0 :         ndr->depth--;
    7092             : }
    7093             : 
    7094           0 : static enum ndr_err_code ndr_push_clusapi_GetKeySecurity(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_GetKeySecurity *r)
    7095             : {
    7096           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7097           0 :         if (flags & NDR_IN) {
    7098           0 :                 if (r->in.pRpcSecurityDescriptor == NULL) {
    7099           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7100             :                 }
    7101           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
    7102           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.SecurityInformation));
    7103           0 :                 NDR_CHECK(ndr_push_RPC_SECURITY_DESCRIPTOR(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pRpcSecurityDescriptor));
    7104             :         }
    7105           0 :         if (flags & NDR_OUT) {
    7106           0 :                 if (r->out.pRpcSecurityDescriptor == NULL) {
    7107           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7108             :                 }
    7109           0 :                 if (r->out.rpc_status == NULL) {
    7110           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7111             :                 }
    7112           0 :                 NDR_CHECK(ndr_push_RPC_SECURITY_DESCRIPTOR(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.pRpcSecurityDescriptor));
    7113           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    7114           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    7115             :         }
    7116           0 :         return NDR_ERR_SUCCESS;
    7117             : }
    7118             : 
    7119           0 : static enum ndr_err_code ndr_pull_clusapi_GetKeySecurity(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_GetKeySecurity *r)
    7120             : {
    7121           0 :         TALLOC_CTX *_mem_save_pRpcSecurityDescriptor_0 = NULL;
    7122           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    7123           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7124           0 :         if (flags & NDR_IN) {
    7125           0 :                 NDR_ZERO_STRUCT(r->out);
    7126             : 
    7127           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
    7128           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.SecurityInformation));
    7129           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7130           0 :                         NDR_PULL_ALLOC(ndr, r->in.pRpcSecurityDescriptor);
    7131             :                 }
    7132           0 :                 _mem_save_pRpcSecurityDescriptor_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7133           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.pRpcSecurityDescriptor, LIBNDR_FLAG_REF_ALLOC);
    7134           0 :                 NDR_CHECK(ndr_pull_RPC_SECURITY_DESCRIPTOR(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.pRpcSecurityDescriptor));
    7135           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pRpcSecurityDescriptor_0, LIBNDR_FLAG_REF_ALLOC);
    7136           0 :                 NDR_PULL_ALLOC(ndr, r->out.pRpcSecurityDescriptor);
    7137           0 :                 *r->out.pRpcSecurityDescriptor = *r->in.pRpcSecurityDescriptor;
    7138           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    7139           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    7140             :         }
    7141           0 :         if (flags & NDR_OUT) {
    7142             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7143             :                 if (r->in.pRpcSecurityDescriptor == NULL) {
    7144             :                         NDR_PULL_ALLOC(ndr, r->in.pRpcSecurityDescriptor);
    7145             :                         NDR_ZERO_STRUCTP(r->in.pRpcSecurityDescriptor);
    7146             :                 }
    7147             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7148           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7149           0 :                         NDR_PULL_ALLOC(ndr, r->out.pRpcSecurityDescriptor);
    7150             :                 }
    7151           0 :                 _mem_save_pRpcSecurityDescriptor_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7152           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.pRpcSecurityDescriptor, LIBNDR_FLAG_REF_ALLOC);
    7153           0 :                 NDR_CHECK(ndr_pull_RPC_SECURITY_DESCRIPTOR(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.pRpcSecurityDescriptor));
    7154           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pRpcSecurityDescriptor_0, LIBNDR_FLAG_REF_ALLOC);
    7155           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7156           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    7157             :                 }
    7158           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7159           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    7160           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    7161           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    7162           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    7163             :         }
    7164           0 :         return NDR_ERR_SUCCESS;
    7165             : }
    7166             : 
    7167           0 : _PUBLIC_ void ndr_print_clusapi_GetKeySecurity(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_GetKeySecurity *r)
    7168             : {
    7169           0 :         ndr_print_struct(ndr, name, "clusapi_GetKeySecurity");
    7170           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7171           0 :         ndr->depth++;
    7172           0 :         if (flags & NDR_SET_VALUES) {
    7173           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7174             :         }
    7175           0 :         if (flags & NDR_IN) {
    7176           0 :                 ndr_print_struct(ndr, "in", "clusapi_GetKeySecurity");
    7177           0 :                 ndr->depth++;
    7178           0 :                 ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
    7179           0 :                 ndr_print_uint32(ndr, "SecurityInformation", r->in.SecurityInformation);
    7180           0 :                 ndr_print_ptr(ndr, "pRpcSecurityDescriptor", r->in.pRpcSecurityDescriptor);
    7181           0 :                 ndr->depth++;
    7182           0 :                 ndr_print_RPC_SECURITY_DESCRIPTOR(ndr, "pRpcSecurityDescriptor", r->in.pRpcSecurityDescriptor);
    7183           0 :                 ndr->depth--;
    7184           0 :                 ndr->depth--;
    7185             :         }
    7186           0 :         if (flags & NDR_OUT) {
    7187           0 :                 ndr_print_struct(ndr, "out", "clusapi_GetKeySecurity");
    7188           0 :                 ndr->depth++;
    7189           0 :                 ndr_print_ptr(ndr, "pRpcSecurityDescriptor", r->out.pRpcSecurityDescriptor);
    7190           0 :                 ndr->depth++;
    7191           0 :                 ndr_print_RPC_SECURITY_DESCRIPTOR(ndr, "pRpcSecurityDescriptor", r->out.pRpcSecurityDescriptor);
    7192           0 :                 ndr->depth--;
    7193           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    7194           0 :                 ndr->depth++;
    7195           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    7196           0 :                 ndr->depth--;
    7197           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    7198           0 :                 ndr->depth--;
    7199             :         }
    7200           0 :         ndr->depth--;
    7201             : }
    7202             : 
    7203           0 : static enum ndr_err_code ndr_push_clusapi_OpenGroup(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_OpenGroup *r)
    7204             : {
    7205           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7206           0 :         if (flags & NDR_IN) {
    7207           0 :                 if (r->in.lpszGroupName == NULL) {
    7208           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7209             :                 }
    7210           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupName, CH_UTF16)));
    7211           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    7212           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupName, CH_UTF16)));
    7213           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszGroupName, ndr_charset_length(r->in.lpszGroupName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    7214             :         }
    7215           0 :         if (flags & NDR_OUT) {
    7216           0 :                 if (r->out.Status == NULL) {
    7217           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7218             :                 }
    7219           0 :                 if (r->out.rpc_status == NULL) {
    7220           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7221             :                 }
    7222           0 :                 if (r->out.hGroup == NULL) {
    7223           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7224             :                 }
    7225           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
    7226           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    7227           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hGroup));
    7228             :         }
    7229           0 :         return NDR_ERR_SUCCESS;
    7230             : }
    7231             : 
    7232           0 : static enum ndr_err_code ndr_pull_clusapi_OpenGroup(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_OpenGroup *r)
    7233             : {
    7234           0 :         uint32_t size_lpszGroupName_1 = 0;
    7235           0 :         uint32_t length_lpszGroupName_1 = 0;
    7236           0 :         TALLOC_CTX *_mem_save_Status_0 = NULL;
    7237           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    7238           0 :         TALLOC_CTX *_mem_save_hGroup_0 = NULL;
    7239           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7240           0 :         if (flags & NDR_IN) {
    7241           0 :                 NDR_ZERO_STRUCT(r->out);
    7242             : 
    7243           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszGroupName));
    7244           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszGroupName));
    7245           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszGroupName, &size_lpszGroupName_1));
    7246           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszGroupName, &length_lpszGroupName_1));
    7247           0 :                 if (length_lpszGroupName_1 > size_lpszGroupName_1) {
    7248           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszGroupName_1, length_lpszGroupName_1);
    7249             :                 }
    7250           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszGroupName_1, sizeof(uint16_t)));
    7251           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszGroupName, length_lpszGroupName_1, sizeof(uint16_t), CH_UTF16));
    7252           0 :                 NDR_PULL_ALLOC(ndr, r->out.Status);
    7253           0 :                 NDR_ZERO_STRUCTP(r->out.Status);
    7254           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    7255           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    7256           0 :                 NDR_PULL_ALLOC(ndr, r->out.hGroup);
    7257           0 :                 NDR_ZERO_STRUCTP(r->out.hGroup);
    7258             :         }
    7259           0 :         if (flags & NDR_OUT) {
    7260             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7261             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7262           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7263           0 :                         NDR_PULL_ALLOC(ndr, r->out.Status);
    7264             :                 }
    7265           0 :                 _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7266           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
    7267           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
    7268           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
    7269           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7270           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    7271             :                 }
    7272           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7273           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    7274           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    7275           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    7276           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7277           0 :                         NDR_PULL_ALLOC(ndr, r->out.hGroup);
    7278             :                 }
    7279           0 :                 _mem_save_hGroup_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7280           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.hGroup, LIBNDR_FLAG_REF_ALLOC);
    7281           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hGroup));
    7282           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hGroup_0, LIBNDR_FLAG_REF_ALLOC);
    7283             :         }
    7284           0 :         return NDR_ERR_SUCCESS;
    7285             : }
    7286             : 
    7287           0 : _PUBLIC_ void ndr_print_clusapi_OpenGroup(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_OpenGroup *r)
    7288             : {
    7289           0 :         ndr_print_struct(ndr, name, "clusapi_OpenGroup");
    7290           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7291           0 :         ndr->depth++;
    7292           0 :         if (flags & NDR_SET_VALUES) {
    7293           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7294             :         }
    7295           0 :         if (flags & NDR_IN) {
    7296           0 :                 ndr_print_struct(ndr, "in", "clusapi_OpenGroup");
    7297           0 :                 ndr->depth++;
    7298           0 :                 ndr_print_ptr(ndr, "lpszGroupName", r->in.lpszGroupName);
    7299           0 :                 ndr->depth++;
    7300           0 :                 ndr_print_string(ndr, "lpszGroupName", r->in.lpszGroupName);
    7301           0 :                 ndr->depth--;
    7302           0 :                 ndr->depth--;
    7303             :         }
    7304           0 :         if (flags & NDR_OUT) {
    7305           0 :                 ndr_print_struct(ndr, "out", "clusapi_OpenGroup");
    7306           0 :                 ndr->depth++;
    7307           0 :                 ndr_print_ptr(ndr, "Status", r->out.Status);
    7308           0 :                 ndr->depth++;
    7309           0 :                 ndr_print_WERROR(ndr, "Status", *r->out.Status);
    7310           0 :                 ndr->depth--;
    7311           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    7312           0 :                 ndr->depth++;
    7313           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    7314           0 :                 ndr->depth--;
    7315           0 :                 ndr_print_ptr(ndr, "hGroup", r->out.hGroup);
    7316           0 :                 ndr->depth++;
    7317           0 :                 ndr_print_policy_handle(ndr, "hGroup", r->out.hGroup);
    7318           0 :                 ndr->depth--;
    7319           0 :                 ndr->depth--;
    7320             :         }
    7321           0 :         ndr->depth--;
    7322             : }
    7323             : 
    7324           0 : static enum ndr_err_code ndr_push_clusapi_CreateGroup(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CreateGroup *r)
    7325             : {
    7326           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7327           0 :         if (flags & NDR_IN) {
    7328           0 :                 if (r->in.lpszGroupName == NULL) {
    7329           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7330             :                 }
    7331           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupName, CH_UTF16)));
    7332           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    7333           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupName, CH_UTF16)));
    7334           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszGroupName, ndr_charset_length(r->in.lpszGroupName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    7335             :         }
    7336           0 :         if (flags & NDR_OUT) {
    7337           0 :                 if (r->out.Status == NULL) {
    7338           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7339             :                 }
    7340           0 :                 if (r->out.rpc_status == NULL) {
    7341           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7342             :                 }
    7343           0 :                 if (r->out.hGroup == NULL) {
    7344           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7345             :                 }
    7346           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
    7347           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    7348           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hGroup));
    7349             :         }
    7350           0 :         return NDR_ERR_SUCCESS;
    7351             : }
    7352             : 
    7353           0 : static enum ndr_err_code ndr_pull_clusapi_CreateGroup(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CreateGroup *r)
    7354             : {
    7355           0 :         uint32_t size_lpszGroupName_1 = 0;
    7356           0 :         uint32_t length_lpszGroupName_1 = 0;
    7357           0 :         TALLOC_CTX *_mem_save_Status_0 = NULL;
    7358           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    7359           0 :         TALLOC_CTX *_mem_save_hGroup_0 = NULL;
    7360           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7361           0 :         if (flags & NDR_IN) {
    7362           0 :                 NDR_ZERO_STRUCT(r->out);
    7363             : 
    7364           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszGroupName));
    7365           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszGroupName));
    7366           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszGroupName, &size_lpszGroupName_1));
    7367           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszGroupName, &length_lpszGroupName_1));
    7368           0 :                 if (length_lpszGroupName_1 > size_lpszGroupName_1) {
    7369           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszGroupName_1, length_lpszGroupName_1);
    7370             :                 }
    7371           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszGroupName_1, sizeof(uint16_t)));
    7372           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszGroupName, length_lpszGroupName_1, sizeof(uint16_t), CH_UTF16));
    7373           0 :                 NDR_PULL_ALLOC(ndr, r->out.Status);
    7374           0 :                 NDR_ZERO_STRUCTP(r->out.Status);
    7375           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    7376           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    7377           0 :                 NDR_PULL_ALLOC(ndr, r->out.hGroup);
    7378           0 :                 NDR_ZERO_STRUCTP(r->out.hGroup);
    7379             :         }
    7380           0 :         if (flags & NDR_OUT) {
    7381             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7382             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7383           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7384           0 :                         NDR_PULL_ALLOC(ndr, r->out.Status);
    7385             :                 }
    7386           0 :                 _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7387           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
    7388           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
    7389           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
    7390           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7391           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    7392             :                 }
    7393           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7394           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    7395           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    7396           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    7397           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7398           0 :                         NDR_PULL_ALLOC(ndr, r->out.hGroup);
    7399             :                 }
    7400           0 :                 _mem_save_hGroup_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7401           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.hGroup, LIBNDR_FLAG_REF_ALLOC);
    7402           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hGroup));
    7403           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hGroup_0, LIBNDR_FLAG_REF_ALLOC);
    7404             :         }
    7405           0 :         return NDR_ERR_SUCCESS;
    7406             : }
    7407             : 
    7408           0 : _PUBLIC_ void ndr_print_clusapi_CreateGroup(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CreateGroup *r)
    7409             : {
    7410           0 :         ndr_print_struct(ndr, name, "clusapi_CreateGroup");
    7411           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7412           0 :         ndr->depth++;
    7413           0 :         if (flags & NDR_SET_VALUES) {
    7414           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7415             :         }
    7416           0 :         if (flags & NDR_IN) {
    7417           0 :                 ndr_print_struct(ndr, "in", "clusapi_CreateGroup");
    7418           0 :                 ndr->depth++;
    7419           0 :                 ndr_print_ptr(ndr, "lpszGroupName", r->in.lpszGroupName);
    7420           0 :                 ndr->depth++;
    7421           0 :                 ndr_print_string(ndr, "lpszGroupName", r->in.lpszGroupName);
    7422           0 :                 ndr->depth--;
    7423           0 :                 ndr->depth--;
    7424             :         }
    7425           0 :         if (flags & NDR_OUT) {
    7426           0 :                 ndr_print_struct(ndr, "out", "clusapi_CreateGroup");
    7427           0 :                 ndr->depth++;
    7428           0 :                 ndr_print_ptr(ndr, "Status", r->out.Status);
    7429           0 :                 ndr->depth++;
    7430           0 :                 ndr_print_WERROR(ndr, "Status", *r->out.Status);
    7431           0 :                 ndr->depth--;
    7432           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    7433           0 :                 ndr->depth++;
    7434           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    7435           0 :                 ndr->depth--;
    7436           0 :                 ndr_print_ptr(ndr, "hGroup", r->out.hGroup);
    7437           0 :                 ndr->depth++;
    7438           0 :                 ndr_print_policy_handle(ndr, "hGroup", r->out.hGroup);
    7439           0 :                 ndr->depth--;
    7440           0 :                 ndr->depth--;
    7441             :         }
    7442           0 :         ndr->depth--;
    7443             : }
    7444             : 
    7445           0 : static enum ndr_err_code ndr_push_clusapi_DeleteGroup(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_DeleteGroup *r)
    7446             : {
    7447           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7448           0 :         if (flags & NDR_IN) {
    7449           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.Group));
    7450           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->in.force));
    7451             :         }
    7452           0 :         if (flags & NDR_OUT) {
    7453           0 :                 if (r->out.rpc_status == NULL) {
    7454           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7455             :                 }
    7456           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    7457           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    7458             :         }
    7459           0 :         return NDR_ERR_SUCCESS;
    7460             : }
    7461             : 
    7462           0 : static enum ndr_err_code ndr_pull_clusapi_DeleteGroup(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_DeleteGroup *r)
    7463             : {
    7464           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    7465           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7466           0 :         if (flags & NDR_IN) {
    7467           0 :                 NDR_ZERO_STRUCT(r->out);
    7468             : 
    7469           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.Group));
    7470           0 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->in.force));
    7471           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    7472           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    7473             :         }
    7474           0 :         if (flags & NDR_OUT) {
    7475             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7476             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7477           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7478           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    7479             :                 }
    7480           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7481           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    7482           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    7483           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    7484           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    7485             :         }
    7486           0 :         return NDR_ERR_SUCCESS;
    7487             : }
    7488             : 
    7489           0 : _PUBLIC_ void ndr_print_clusapi_DeleteGroup(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_DeleteGroup *r)
    7490             : {
    7491           0 :         ndr_print_struct(ndr, name, "clusapi_DeleteGroup");
    7492           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7493           0 :         ndr->depth++;
    7494           0 :         if (flags & NDR_SET_VALUES) {
    7495           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7496             :         }
    7497           0 :         if (flags & NDR_IN) {
    7498           0 :                 ndr_print_struct(ndr, "in", "clusapi_DeleteGroup");
    7499           0 :                 ndr->depth++;
    7500           0 :                 ndr_print_policy_handle(ndr, "Group", &r->in.Group);
    7501           0 :                 ndr_print_uint8(ndr, "force", r->in.force);
    7502           0 :                 ndr->depth--;
    7503             :         }
    7504           0 :         if (flags & NDR_OUT) {
    7505           0 :                 ndr_print_struct(ndr, "out", "clusapi_DeleteGroup");
    7506           0 :                 ndr->depth++;
    7507           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    7508           0 :                 ndr->depth++;
    7509           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    7510           0 :                 ndr->depth--;
    7511           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    7512           0 :                 ndr->depth--;
    7513             :         }
    7514           0 :         ndr->depth--;
    7515             : }
    7516             : 
    7517           0 : static enum ndr_err_code ndr_push_clusapi_CloseGroup(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CloseGroup *r)
    7518             : {
    7519           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7520           0 :         if (flags & NDR_IN) {
    7521           0 :                 if (r->in.Group == NULL) {
    7522           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7523             :                 }
    7524           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.Group));
    7525             :         }
    7526           0 :         if (flags & NDR_OUT) {
    7527           0 :                 if (r->out.Group == NULL) {
    7528           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7529             :                 }
    7530           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.Group));
    7531           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    7532             :         }
    7533           0 :         return NDR_ERR_SUCCESS;
    7534             : }
    7535             : 
    7536           0 : static enum ndr_err_code ndr_pull_clusapi_CloseGroup(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CloseGroup *r)
    7537             : {
    7538           0 :         TALLOC_CTX *_mem_save_Group_0 = NULL;
    7539           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7540           0 :         if (flags & NDR_IN) {
    7541           0 :                 NDR_ZERO_STRUCT(r->out);
    7542             : 
    7543           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7544           0 :                         NDR_PULL_ALLOC(ndr, r->in.Group);
    7545             :                 }
    7546           0 :                 _mem_save_Group_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7547           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.Group, LIBNDR_FLAG_REF_ALLOC);
    7548           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.Group));
    7549           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Group_0, LIBNDR_FLAG_REF_ALLOC);
    7550           0 :                 NDR_PULL_ALLOC(ndr, r->out.Group);
    7551           0 :                 *r->out.Group = *r->in.Group;
    7552             :         }
    7553           0 :         if (flags & NDR_OUT) {
    7554             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7555             :                 if (r->in.Group == NULL) {
    7556             :                         NDR_PULL_ALLOC(ndr, r->in.Group);
    7557             :                         NDR_ZERO_STRUCTP(r->in.Group);
    7558             :                 }
    7559             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7560           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7561           0 :                         NDR_PULL_ALLOC(ndr, r->out.Group);
    7562             :                 }
    7563           0 :                 _mem_save_Group_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7564           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Group, LIBNDR_FLAG_REF_ALLOC);
    7565           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.Group));
    7566           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Group_0, LIBNDR_FLAG_REF_ALLOC);
    7567           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    7568             :         }
    7569           0 :         return NDR_ERR_SUCCESS;
    7570             : }
    7571             : 
    7572           0 : _PUBLIC_ void ndr_print_clusapi_CloseGroup(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CloseGroup *r)
    7573             : {
    7574           0 :         ndr_print_struct(ndr, name, "clusapi_CloseGroup");
    7575           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7576           0 :         ndr->depth++;
    7577           0 :         if (flags & NDR_SET_VALUES) {
    7578           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7579             :         }
    7580           0 :         if (flags & NDR_IN) {
    7581           0 :                 ndr_print_struct(ndr, "in", "clusapi_CloseGroup");
    7582           0 :                 ndr->depth++;
    7583           0 :                 ndr_print_ptr(ndr, "Group", r->in.Group);
    7584           0 :                 ndr->depth++;
    7585           0 :                 ndr_print_policy_handle(ndr, "Group", r->in.Group);
    7586           0 :                 ndr->depth--;
    7587           0 :                 ndr->depth--;
    7588             :         }
    7589           0 :         if (flags & NDR_OUT) {
    7590           0 :                 ndr_print_struct(ndr, "out", "clusapi_CloseGroup");
    7591           0 :                 ndr->depth++;
    7592           0 :                 ndr_print_ptr(ndr, "Group", r->out.Group);
    7593           0 :                 ndr->depth++;
    7594           0 :                 ndr_print_policy_handle(ndr, "Group", r->out.Group);
    7595           0 :                 ndr->depth--;
    7596           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    7597           0 :                 ndr->depth--;
    7598             :         }
    7599           0 :         ndr->depth--;
    7600             : }
    7601             : 
    7602           0 : static enum ndr_err_code ndr_push_clusapi_GetGroupState(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_GetGroupState *r)
    7603             : {
    7604           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7605           0 :         if (flags & NDR_IN) {
    7606           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
    7607             :         }
    7608           0 :         if (flags & NDR_OUT) {
    7609           0 :                 if (r->out.State == NULL) {
    7610           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7611             :                 }
    7612           0 :                 if (r->out.NodeName == NULL) {
    7613           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7614             :                 }
    7615           0 :                 if (r->out.rpc_status == NULL) {
    7616           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7617             :                 }
    7618           0 :                 NDR_CHECK(ndr_push_clusapi_ClusterGroupState(ndr, NDR_SCALARS, *r->out.State));
    7619           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.NodeName));
    7620           0 :                 if (*r->out.NodeName) {
    7621           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.NodeName, CH_UTF16)));
    7622           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    7623           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.NodeName, CH_UTF16)));
    7624           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.NodeName, ndr_charset_length(*r->out.NodeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    7625             :                 }
    7626           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    7627           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    7628             :         }
    7629           0 :         return NDR_ERR_SUCCESS;
    7630             : }
    7631             : 
    7632           0 : static enum ndr_err_code ndr_pull_clusapi_GetGroupState(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_GetGroupState *r)
    7633             : {
    7634           0 :         uint32_t _ptr_NodeName;
    7635           0 :         uint32_t size_NodeName_2 = 0;
    7636           0 :         uint32_t length_NodeName_2 = 0;
    7637           0 :         TALLOC_CTX *_mem_save_State_0 = NULL;
    7638           0 :         TALLOC_CTX *_mem_save_NodeName_0 = NULL;
    7639           0 :         TALLOC_CTX *_mem_save_NodeName_1 = NULL;
    7640           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    7641           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7642           0 :         if (flags & NDR_IN) {
    7643           0 :                 NDR_ZERO_STRUCT(r->out);
    7644             : 
    7645           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
    7646           0 :                 NDR_PULL_ALLOC(ndr, r->out.State);
    7647           0 :                 NDR_ZERO_STRUCTP(r->out.State);
    7648           0 :                 NDR_PULL_ALLOC(ndr, r->out.NodeName);
    7649           0 :                 NDR_ZERO_STRUCTP(r->out.NodeName);
    7650           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    7651           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    7652             :         }
    7653           0 :         if (flags & NDR_OUT) {
    7654             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7655             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7656           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7657           0 :                         NDR_PULL_ALLOC(ndr, r->out.State);
    7658             :                 }
    7659           0 :                 _mem_save_State_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7660           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.State, LIBNDR_FLAG_REF_ALLOC);
    7661           0 :                 NDR_CHECK(ndr_pull_clusapi_ClusterGroupState(ndr, NDR_SCALARS, r->out.State));
    7662           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_State_0, LIBNDR_FLAG_REF_ALLOC);
    7663           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7664           0 :                         NDR_PULL_ALLOC(ndr, r->out.NodeName);
    7665             :                 }
    7666           0 :                 _mem_save_NodeName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7667           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.NodeName, LIBNDR_FLAG_REF_ALLOC);
    7668           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_NodeName));
    7669           0 :                 if (_ptr_NodeName) {
    7670           0 :                         NDR_PULL_ALLOC(ndr, *r->out.NodeName);
    7671             :                 } else {
    7672           0 :                         *r->out.NodeName = NULL;
    7673             :                 }
    7674           0 :                 if (*r->out.NodeName) {
    7675           0 :                         _mem_save_NodeName_1 = NDR_PULL_GET_MEM_CTX(ndr);
    7676           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.NodeName, 0);
    7677           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.NodeName));
    7678           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, r->out.NodeName));
    7679           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.NodeName, &size_NodeName_2));
    7680           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.NodeName, &length_NodeName_2));
    7681           0 :                         if (length_NodeName_2 > size_NodeName_2) {
    7682           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_NodeName_2, length_NodeName_2);
    7683             :                         }
    7684           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_NodeName_2, sizeof(uint16_t)));
    7685           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.NodeName, length_NodeName_2, sizeof(uint16_t), CH_UTF16));
    7686           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_NodeName_1, 0);
    7687             :                 }
    7688           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_NodeName_0, LIBNDR_FLAG_REF_ALLOC);
    7689           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7690           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    7691             :                 }
    7692           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7693           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    7694           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    7695           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    7696           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    7697             :         }
    7698           0 :         return NDR_ERR_SUCCESS;
    7699             : }
    7700             : 
    7701           0 : _PUBLIC_ void ndr_print_clusapi_GetGroupState(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_GetGroupState *r)
    7702             : {
    7703           0 :         ndr_print_struct(ndr, name, "clusapi_GetGroupState");
    7704           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7705           0 :         ndr->depth++;
    7706           0 :         if (flags & NDR_SET_VALUES) {
    7707           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7708             :         }
    7709           0 :         if (flags & NDR_IN) {
    7710           0 :                 ndr_print_struct(ndr, "in", "clusapi_GetGroupState");
    7711           0 :                 ndr->depth++;
    7712           0 :                 ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
    7713           0 :                 ndr->depth--;
    7714             :         }
    7715           0 :         if (flags & NDR_OUT) {
    7716           0 :                 ndr_print_struct(ndr, "out", "clusapi_GetGroupState");
    7717           0 :                 ndr->depth++;
    7718           0 :                 ndr_print_ptr(ndr, "State", r->out.State);
    7719           0 :                 ndr->depth++;
    7720           0 :                 ndr_print_clusapi_ClusterGroupState(ndr, "State", *r->out.State);
    7721           0 :                 ndr->depth--;
    7722           0 :                 ndr_print_ptr(ndr, "NodeName", r->out.NodeName);
    7723           0 :                 ndr->depth++;
    7724           0 :                 ndr_print_ptr(ndr, "NodeName", *r->out.NodeName);
    7725           0 :                 ndr->depth++;
    7726           0 :                 if (*r->out.NodeName) {
    7727           0 :                         ndr_print_string(ndr, "NodeName", *r->out.NodeName);
    7728             :                 }
    7729           0 :                 ndr->depth--;
    7730           0 :                 ndr->depth--;
    7731           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    7732           0 :                 ndr->depth++;
    7733           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    7734           0 :                 ndr->depth--;
    7735           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    7736           0 :                 ndr->depth--;
    7737             :         }
    7738           0 :         ndr->depth--;
    7739             : }
    7740             : 
    7741           0 : static enum ndr_err_code ndr_push_clusapi_SetGroupName(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_SetGroupName *r)
    7742             : {
    7743           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7744           0 :         if (flags & NDR_IN) {
    7745           0 :                 if (r->in.lpszGroupName == NULL) {
    7746           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7747             :                 }
    7748           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
    7749           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupName, CH_UTF16)));
    7750           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    7751           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupName, CH_UTF16)));
    7752           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszGroupName, ndr_charset_length(r->in.lpszGroupName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    7753             :         }
    7754           0 :         if (flags & NDR_OUT) {
    7755           0 :                 if (r->out.rpc_status == NULL) {
    7756           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7757             :                 }
    7758           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    7759           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    7760             :         }
    7761           0 :         return NDR_ERR_SUCCESS;
    7762             : }
    7763             : 
    7764           0 : static enum ndr_err_code ndr_pull_clusapi_SetGroupName(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_SetGroupName *r)
    7765             : {
    7766           0 :         uint32_t size_lpszGroupName_1 = 0;
    7767           0 :         uint32_t length_lpszGroupName_1 = 0;
    7768           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    7769           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7770           0 :         if (flags & NDR_IN) {
    7771           0 :                 NDR_ZERO_STRUCT(r->out);
    7772             : 
    7773           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
    7774           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszGroupName));
    7775           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszGroupName));
    7776           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszGroupName, &size_lpszGroupName_1));
    7777           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszGroupName, &length_lpszGroupName_1));
    7778           0 :                 if (length_lpszGroupName_1 > size_lpszGroupName_1) {
    7779           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszGroupName_1, length_lpszGroupName_1);
    7780             :                 }
    7781           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszGroupName_1, sizeof(uint16_t)));
    7782           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszGroupName, length_lpszGroupName_1, sizeof(uint16_t), CH_UTF16));
    7783           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    7784           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    7785             :         }
    7786           0 :         if (flags & NDR_OUT) {
    7787             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7788             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7789           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7790           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    7791             :                 }
    7792           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7793           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    7794           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    7795           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    7796           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    7797             :         }
    7798           0 :         return NDR_ERR_SUCCESS;
    7799             : }
    7800             : 
    7801           0 : _PUBLIC_ void ndr_print_clusapi_SetGroupName(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_SetGroupName *r)
    7802             : {
    7803           0 :         ndr_print_struct(ndr, name, "clusapi_SetGroupName");
    7804           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7805           0 :         ndr->depth++;
    7806           0 :         if (flags & NDR_SET_VALUES) {
    7807           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7808             :         }
    7809           0 :         if (flags & NDR_IN) {
    7810           0 :                 ndr_print_struct(ndr, "in", "clusapi_SetGroupName");
    7811           0 :                 ndr->depth++;
    7812           0 :                 ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
    7813           0 :                 ndr_print_ptr(ndr, "lpszGroupName", r->in.lpszGroupName);
    7814           0 :                 ndr->depth++;
    7815           0 :                 ndr_print_string(ndr, "lpszGroupName", r->in.lpszGroupName);
    7816           0 :                 ndr->depth--;
    7817           0 :                 ndr->depth--;
    7818             :         }
    7819           0 :         if (flags & NDR_OUT) {
    7820           0 :                 ndr_print_struct(ndr, "out", "clusapi_SetGroupName");
    7821           0 :                 ndr->depth++;
    7822           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    7823           0 :                 ndr->depth++;
    7824           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    7825           0 :                 ndr->depth--;
    7826           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    7827           0 :                 ndr->depth--;
    7828             :         }
    7829           0 :         ndr->depth--;
    7830             : }
    7831             : 
    7832           0 : static enum ndr_err_code ndr_push_clusapi_GetGroupId(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_GetGroupId *r)
    7833             : {
    7834           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7835           0 :         if (flags & NDR_IN) {
    7836           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
    7837             :         }
    7838           0 :         if (flags & NDR_OUT) {
    7839           0 :                 if (r->out.pGuid == NULL) {
    7840           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7841             :                 }
    7842           0 :                 if (r->out.rpc_status == NULL) {
    7843           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7844             :                 }
    7845           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.pGuid));
    7846           0 :                 if (*r->out.pGuid) {
    7847           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.pGuid, CH_UTF16)));
    7848           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    7849           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.pGuid, CH_UTF16)));
    7850           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.pGuid, ndr_charset_length(*r->out.pGuid, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    7851             :                 }
    7852           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    7853           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    7854             :         }
    7855           0 :         return NDR_ERR_SUCCESS;
    7856             : }
    7857             : 
    7858           0 : static enum ndr_err_code ndr_pull_clusapi_GetGroupId(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_GetGroupId *r)
    7859             : {
    7860           0 :         uint32_t _ptr_pGuid;
    7861           0 :         uint32_t size_pGuid_2 = 0;
    7862           0 :         uint32_t length_pGuid_2 = 0;
    7863           0 :         TALLOC_CTX *_mem_save_pGuid_0 = NULL;
    7864           0 :         TALLOC_CTX *_mem_save_pGuid_1 = NULL;
    7865           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    7866           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7867           0 :         if (flags & NDR_IN) {
    7868           0 :                 NDR_ZERO_STRUCT(r->out);
    7869             : 
    7870           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
    7871           0 :                 NDR_PULL_ALLOC(ndr, r->out.pGuid);
    7872           0 :                 NDR_ZERO_STRUCTP(r->out.pGuid);
    7873           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    7874           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    7875             :         }
    7876           0 :         if (flags & NDR_OUT) {
    7877             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7878             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7879           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7880           0 :                         NDR_PULL_ALLOC(ndr, r->out.pGuid);
    7881             :                 }
    7882           0 :                 _mem_save_pGuid_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7883           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.pGuid, LIBNDR_FLAG_REF_ALLOC);
    7884           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pGuid));
    7885           0 :                 if (_ptr_pGuid) {
    7886           0 :                         NDR_PULL_ALLOC(ndr, *r->out.pGuid);
    7887             :                 } else {
    7888           0 :                         *r->out.pGuid = NULL;
    7889             :                 }
    7890           0 :                 if (*r->out.pGuid) {
    7891           0 :                         _mem_save_pGuid_1 = NDR_PULL_GET_MEM_CTX(ndr);
    7892           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.pGuid, 0);
    7893           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.pGuid));
    7894           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, r->out.pGuid));
    7895           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.pGuid, &size_pGuid_2));
    7896           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.pGuid, &length_pGuid_2));
    7897           0 :                         if (length_pGuid_2 > size_pGuid_2) {
    7898           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_pGuid_2, length_pGuid_2);
    7899             :                         }
    7900           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_pGuid_2, sizeof(uint16_t)));
    7901           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.pGuid, length_pGuid_2, sizeof(uint16_t), CH_UTF16));
    7902           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pGuid_1, 0);
    7903             :                 }
    7904           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pGuid_0, LIBNDR_FLAG_REF_ALLOC);
    7905           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7906           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    7907             :                 }
    7908           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7909           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    7910           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    7911           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    7912           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    7913             :         }
    7914           0 :         return NDR_ERR_SUCCESS;
    7915             : }
    7916             : 
    7917           0 : _PUBLIC_ void ndr_print_clusapi_GetGroupId(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_GetGroupId *r)
    7918             : {
    7919           0 :         ndr_print_struct(ndr, name, "clusapi_GetGroupId");
    7920           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7921           0 :         ndr->depth++;
    7922           0 :         if (flags & NDR_SET_VALUES) {
    7923           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7924             :         }
    7925           0 :         if (flags & NDR_IN) {
    7926           0 :                 ndr_print_struct(ndr, "in", "clusapi_GetGroupId");
    7927           0 :                 ndr->depth++;
    7928           0 :                 ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
    7929           0 :                 ndr->depth--;
    7930             :         }
    7931           0 :         if (flags & NDR_OUT) {
    7932           0 :                 ndr_print_struct(ndr, "out", "clusapi_GetGroupId");
    7933           0 :                 ndr->depth++;
    7934           0 :                 ndr_print_ptr(ndr, "pGuid", r->out.pGuid);
    7935           0 :                 ndr->depth++;
    7936           0 :                 ndr_print_ptr(ndr, "pGuid", *r->out.pGuid);
    7937           0 :                 ndr->depth++;
    7938           0 :                 if (*r->out.pGuid) {
    7939           0 :                         ndr_print_string(ndr, "pGuid", *r->out.pGuid);
    7940             :                 }
    7941           0 :                 ndr->depth--;
    7942           0 :                 ndr->depth--;
    7943           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    7944           0 :                 ndr->depth++;
    7945           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    7946           0 :                 ndr->depth--;
    7947           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    7948           0 :                 ndr->depth--;
    7949             :         }
    7950           0 :         ndr->depth--;
    7951             : }
    7952             : 
    7953           0 : static enum ndr_err_code ndr_push_clusapi_GetNodeId(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_GetNodeId *r)
    7954             : {
    7955           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7956           0 :         if (flags & NDR_IN) {
    7957           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
    7958             :         }
    7959           0 :         if (flags & NDR_OUT) {
    7960           0 :                 if (r->out.pGuid == NULL) {
    7961           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7962             :                 }
    7963           0 :                 if (r->out.rpc_status == NULL) {
    7964           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7965             :                 }
    7966           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.pGuid));
    7967           0 :                 if (*r->out.pGuid) {
    7968           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.pGuid, CH_UTF16)));
    7969           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    7970           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.pGuid, CH_UTF16)));
    7971           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.pGuid, ndr_charset_length(*r->out.pGuid, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    7972             :                 }
    7973           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    7974           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    7975             :         }
    7976           0 :         return NDR_ERR_SUCCESS;
    7977             : }
    7978             : 
    7979           0 : static enum ndr_err_code ndr_pull_clusapi_GetNodeId(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_GetNodeId *r)
    7980             : {
    7981           0 :         uint32_t _ptr_pGuid;
    7982           0 :         uint32_t size_pGuid_2 = 0;
    7983           0 :         uint32_t length_pGuid_2 = 0;
    7984           0 :         TALLOC_CTX *_mem_save_pGuid_0 = NULL;
    7985           0 :         TALLOC_CTX *_mem_save_pGuid_1 = NULL;
    7986           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    7987           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7988           0 :         if (flags & NDR_IN) {
    7989           0 :                 NDR_ZERO_STRUCT(r->out);
    7990             : 
    7991           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
    7992           0 :                 NDR_PULL_ALLOC(ndr, r->out.pGuid);
    7993           0 :                 NDR_ZERO_STRUCTP(r->out.pGuid);
    7994           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    7995           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    7996             :         }
    7997           0 :         if (flags & NDR_OUT) {
    7998             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7999             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    8000           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    8001           0 :                         NDR_PULL_ALLOC(ndr, r->out.pGuid);
    8002             :                 }
    8003           0 :                 _mem_save_pGuid_0 = NDR_PULL_GET_MEM_CTX(ndr);
    8004           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.pGuid, LIBNDR_FLAG_REF_ALLOC);
    8005           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pGuid));
    8006           0 :                 if (_ptr_pGuid) {
    8007           0 :                         NDR_PULL_ALLOC(ndr, *r->out.pGuid);
    8008             :                 } else {
    8009           0 :                         *r->out.pGuid = NULL;
    8010             :                 }
    8011           0 :                 if (*r->out.pGuid) {
    8012           0 :                         _mem_save_pGuid_1 = NDR_PULL_GET_MEM_CTX(ndr);
    8013           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.pGuid, 0);
    8014           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.pGuid));
    8015           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, r->out.pGuid));
    8016           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.pGuid, &size_pGuid_2));
    8017           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.pGuid, &length_pGuid_2));
    8018           0 :                         if (length_pGuid_2 > size_pGuid_2) {
    8019           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_pGuid_2, length_pGuid_2);
    8020             :                         }
    8021           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_pGuid_2, sizeof(uint16_t)));
    8022           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.pGuid, length_pGuid_2, sizeof(uint16_t), CH_UTF16));
    8023           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pGuid_1, 0);
    8024             :                 }
    8025           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pGuid_0, LIBNDR_FLAG_REF_ALLOC);
    8026           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    8027           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    8028             :                 }
    8029           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    8030           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    8031           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    8032           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    8033           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    8034             :         }
    8035           0 :         return NDR_ERR_SUCCESS;
    8036             : }
    8037             : 
    8038           0 : _PUBLIC_ void ndr_print_clusapi_GetNodeId(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_GetNodeId *r)
    8039             : {
    8040           0 :         ndr_print_struct(ndr, name, "clusapi_GetNodeId");
    8041           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    8042           0 :         ndr->depth++;
    8043           0 :         if (flags & NDR_SET_VALUES) {
    8044           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    8045             :         }
    8046           0 :         if (flags & NDR_IN) {
    8047           0 :                 ndr_print_struct(ndr, "in", "clusapi_GetNodeId");
    8048           0 :                 ndr->depth++;
    8049           0 :                 ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
    8050           0 :                 ndr->depth--;
    8051             :         }
    8052           0 :         if (flags & NDR_OUT) {
    8053           0 :                 ndr_print_struct(ndr, "out", "clusapi_GetNodeId");
    8054           0 :                 ndr->depth++;
    8055           0 :                 ndr_print_ptr(ndr, "pGuid", r->out.pGuid);
    8056           0 :                 ndr->depth++;
    8057           0 :                 ndr_print_ptr(ndr, "pGuid", *r->out.pGuid);
    8058           0 :                 ndr->depth++;
    8059           0 :                 if (*r->out.pGuid) {
    8060           0 :                         ndr_print_string(ndr, "pGuid", *r->out.pGuid);
    8061             :                 }
    8062           0 :                 ndr->depth--;
    8063           0 :                 ndr->depth--;
    8064           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    8065           0 :                 ndr->depth++;
    8066           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    8067           0 :                 ndr->depth--;
    8068           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    8069           0 :                 ndr->depth--;
    8070             :         }
    8071           0 :         ndr->depth--;
    8072             : }
    8073             : 
    8074           0 : static enum ndr_err_code ndr_push_clusapi_OnlineGroup(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_OnlineGroup *r)
    8075             : {
    8076           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    8077           0 :         if (flags & NDR_IN) {
    8078           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
    8079             :         }
    8080           0 :         if (flags & NDR_OUT) {
    8081           0 :                 if (r->out.rpc_status == NULL) {
    8082           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    8083             :                 }
    8084           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    8085           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    8086             :         }
    8087           0 :         return NDR_ERR_SUCCESS;
    8088             : }
    8089             : 
    8090           0 : static enum ndr_err_code ndr_pull_clusapi_OnlineGroup(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_OnlineGroup *r)
    8091             : {
    8092           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    8093           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    8094           0 :         if (flags & NDR_IN) {
    8095           0 :                 NDR_ZERO_STRUCT(r->out);
    8096             : 
    8097           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
    8098           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    8099           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    8100             :         }
    8101           0 :         if (flags & NDR_OUT) {
    8102             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    8103             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    8104           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    8105           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    8106             :                 }
    8107           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    8108           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    8109           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    8110           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    8111           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    8112             :         }
    8113           0 :         return NDR_ERR_SUCCESS;
    8114             : }
    8115             : 
    8116           0 : _PUBLIC_ void ndr_print_clusapi_OnlineGroup(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_OnlineGroup *r)
    8117             : {
    8118           0 :         ndr_print_struct(ndr, name, "clusapi_OnlineGroup");
    8119           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    8120           0 :         ndr->depth++;
    8121           0 :         if (flags & NDR_SET_VALUES) {
    8122           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    8123             :         }
    8124           0 :         if (flags & NDR_IN) {
    8125           0 :                 ndr_print_struct(ndr, "in", "clusapi_OnlineGroup");
    8126           0 :                 ndr->depth++;
    8127           0 :                 ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
    8128           0 :                 ndr->depth--;
    8129             :         }
    8130           0 :         if (flags & NDR_OUT) {
    8131           0 :                 ndr_print_struct(ndr, "out", "clusapi_OnlineGroup");
    8132           0 :                 ndr->depth++;
    8133           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    8134           0 :                 ndr->depth++;
    8135           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    8136           0 :                 ndr->depth--;
    8137           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    8138           0 :                 ndr->depth--;
    8139             :         }
    8140           0 :         ndr->depth--;
    8141             : }
    8142             : 
    8143           0 : static enum ndr_err_code ndr_push_clusapi_OfflineGroup(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_OfflineGroup *r)
    8144             : {
    8145           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    8146           0 :         if (flags & NDR_IN) {
    8147           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
    8148             :         }
    8149           0 :         if (flags & NDR_OUT) {
    8150           0 :                 if (r->out.rpc_status == NULL) {
    8151           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    8152             :                 }
    8153           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    8154           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    8155             :         }
    8156           0 :         return NDR_ERR_SUCCESS;
    8157             : }
    8158             : 
    8159           0 : static enum ndr_err_code ndr_pull_clusapi_OfflineGroup(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_OfflineGroup *r)
    8160             : {
    8161           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    8162           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    8163           0 :         if (flags & NDR_IN) {
    8164           0 :                 NDR_ZERO_STRUCT(r->out);
    8165             : 
    8166           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
    8167           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    8168           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    8169             :         }
    8170           0 :         if (flags & NDR_OUT) {
    8171             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    8172             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    8173           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    8174           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    8175             :                 }
    8176           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    8177           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    8178           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    8179           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    8180           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    8181             :         }
    8182           0 :         return NDR_ERR_SUCCESS;
    8183             : }
    8184             : 
    8185           0 : _PUBLIC_ void ndr_print_clusapi_OfflineGroup(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_OfflineGroup *r)
    8186             : {
    8187           0 :         ndr_print_struct(ndr, name, "clusapi_OfflineGroup");
    8188           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    8189           0 :         ndr->depth++;
    8190           0 :         if (flags & NDR_SET_VALUES) {
    8191           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    8192             :         }
    8193           0 :         if (flags & NDR_IN) {
    8194           0 :                 ndr_print_struct(ndr, "in", "clusapi_OfflineGroup");
    8195           0 :                 ndr->depth++;
    8196           0 :                 ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
    8197           0 :                 ndr->depth--;
    8198             :         }
    8199           0 :         if (flags & NDR_OUT) {
    8200           0 :                 ndr_print_struct(ndr, "out", "clusapi_OfflineGroup");
    8201           0 :                 ndr->depth++;
    8202           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    8203           0 :                 ndr->depth++;
    8204           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    8205           0 :                 ndr->depth--;
    8206           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    8207           0 :                 ndr->depth--;
    8208             :         }
    8209           0 :         ndr->depth--;
    8210             : }
    8211             : 
    8212           0 : static enum ndr_err_code ndr_push_clusapi_MoveGroup(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_MoveGroup *r)
    8213             : {
    8214           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    8215           0 :         if (flags & NDR_IN) {
    8216           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
    8217             :         }
    8218           0 :         if (flags & NDR_OUT) {
    8219           0 :                 if (r->out.rpc_status == NULL) {
    8220           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    8221             :                 }
    8222           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    8223           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    8224             :         }
    8225           0 :         return NDR_ERR_SUCCESS;
    8226             : }
    8227             : 
    8228           0 : static enum ndr_err_code ndr_pull_clusapi_MoveGroup(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_MoveGroup *r)
    8229             : {
    8230           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    8231           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    8232           0 :         if (flags & NDR_IN) {
    8233           0 :                 NDR_ZERO_STRUCT(r->out);
    8234             : 
    8235           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
    8236           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    8237           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    8238             :         }
    8239           0 :         if (flags & NDR_OUT) {
    8240             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    8241             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    8242           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    8243           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    8244             :                 }
    8245           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    8246           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    8247           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    8248           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    8249           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    8250             :         }
    8251           0 :         return NDR_ERR_SUCCESS;
    8252             : }
    8253             : 
    8254           0 : _PUBLIC_ void ndr_print_clusapi_MoveGroup(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_MoveGroup *r)
    8255             : {
    8256           0 :         ndr_print_struct(ndr, name, "clusapi_MoveGroup");
    8257           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    8258           0 :         ndr->depth++;
    8259           0 :         if (flags & NDR_SET_VALUES) {
    8260           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    8261             :         }
    8262           0 :         if (flags & NDR_IN) {
    8263           0 :                 ndr_print_struct(ndr, "in", "clusapi_MoveGroup");
    8264           0 :                 ndr->depth++;
    8265           0 :                 ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
    8266           0 :                 ndr->depth--;
    8267             :         }
    8268           0 :         if (flags & NDR_OUT) {
    8269           0 :                 ndr_print_struct(ndr, "out", "clusapi_MoveGroup");
    8270           0 :                 ndr->depth++;
    8271           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    8272           0 :                 ndr->depth++;
    8273           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    8274           0 :                 ndr->depth--;
    8275           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    8276           0 :                 ndr->depth--;
    8277             :         }
    8278           0 :         ndr->depth--;
    8279             : }
    8280             : 
    8281           0 : static enum ndr_err_code ndr_push_clusapi_MoveGroupToNode(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_MoveGroupToNode *r)
    8282             : {
    8283           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    8284           0 :         if (flags & NDR_IN) {
    8285           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
    8286           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
    8287             :         }
    8288           0 :         if (flags & NDR_OUT) {
    8289           0 :                 if (r->out.rpc_status == NULL) {
    8290           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    8291             :                 }
    8292           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    8293           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    8294             :         }
    8295           0 :         return NDR_ERR_SUCCESS;
    8296             : }
    8297             : 
    8298           0 : static enum ndr_err_code ndr_pull_clusapi_MoveGroupToNode(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_MoveGroupToNode *r)
    8299             : {
    8300           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    8301           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    8302           0 :         if (flags & NDR_IN) {
    8303           0 :                 NDR_ZERO_STRUCT(r->out);
    8304             : 
    8305           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
    8306           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
    8307           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    8308           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    8309             :         }
    8310           0 :         if (flags & NDR_OUT) {
    8311             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    8312             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    8313           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    8314           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    8315             :                 }
    8316           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    8317           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    8318           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    8319           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    8320           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    8321             :         }
    8322           0 :         return NDR_ERR_SUCCESS;
    8323             : }
    8324             : 
    8325           0 : _PUBLIC_ void ndr_print_clusapi_MoveGroupToNode(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_MoveGroupToNode *r)
    8326             : {
    8327           0 :         ndr_print_struct(ndr, name, "clusapi_MoveGroupToNode");
    8328           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    8329           0 :         ndr->depth++;
    8330           0 :         if (flags & NDR_SET_VALUES) {
    8331           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    8332             :         }
    8333           0 :         if (flags & NDR_IN) {
    8334           0 :                 ndr_print_struct(ndr, "in", "clusapi_MoveGroupToNode");
    8335           0 :                 ndr->depth++;
    8336           0 :                 ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
    8337           0 :                 ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
    8338           0 :                 ndr->depth--;
    8339             :         }
    8340           0 :         if (flags & NDR_OUT) {
    8341           0 :                 ndr_print_struct(ndr, "out", "clusapi_MoveGroupToNode");
    8342           0 :                 ndr->depth++;
    8343           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    8344           0 :                 ndr->depth++;
    8345           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    8346           0 :                 ndr->depth--;
    8347           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    8348           0 :                 ndr->depth--;
    8349             :         }
    8350           0 :         ndr->depth--;
    8351             : }
    8352             : 
    8353           0 : static enum ndr_err_code ndr_push_clusapi_CreateGroupResourceEnum(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CreateGroupResourceEnum *r)
    8354             : {
    8355           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    8356           0 :         if (flags & NDR_IN) {
    8357           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
    8358           0 :                 NDR_CHECK(ndr_push_ClusterGroupEnumType(ndr, NDR_SCALARS, r->in.dwType));
    8359             :         }
    8360           0 :         if (flags & NDR_OUT) {
    8361           0 :                 if (r->out.ReturnEnum == NULL) {
    8362           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    8363             :                 }
    8364           0 :                 if (r->out.rpc_status == NULL) {
    8365           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    8366             :                 }
    8367           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ReturnEnum));
    8368           0 :                 if (*r->out.ReturnEnum) {
    8369           0 :                         NDR_CHECK(ndr_push_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
    8370             :                 }
    8371           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    8372           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    8373             :         }
    8374           0 :         return NDR_ERR_SUCCESS;
    8375             : }
    8376             : 
    8377           0 : static enum ndr_err_code ndr_pull_clusapi_CreateGroupResourceEnum(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CreateGroupResourceEnum *r)
    8378             : {
    8379           0 :         uint32_t _ptr_ReturnEnum;
    8380           0 :         TALLOC_CTX *_mem_save_ReturnEnum_0 = NULL;
    8381           0 :         TALLOC_CTX *_mem_save_ReturnEnum_1 = NULL;
    8382           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    8383           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    8384           0 :         if (flags & NDR_IN) {
    8385           0 :                 NDR_ZERO_STRUCT(r->out);
    8386             : 
    8387           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
    8388           0 :                 NDR_CHECK(ndr_pull_ClusterGroupEnumType(ndr, NDR_SCALARS, &r->in.dwType));
    8389           0 :                 NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
    8390           0 :                 NDR_ZERO_STRUCTP(r->out.ReturnEnum);
    8391           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    8392           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    8393             :         }
    8394           0 :         if (flags & NDR_OUT) {
    8395             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    8396             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    8397           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    8398           0 :                         NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
    8399             :                 }
    8400           0 :                 _mem_save_ReturnEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
    8401           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ReturnEnum, LIBNDR_FLAG_REF_ALLOC);
    8402           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ReturnEnum));
    8403           0 :                 if (_ptr_ReturnEnum) {
    8404           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ReturnEnum);
    8405             :                 } else {
    8406           0 :                         *r->out.ReturnEnum = NULL;
    8407             :                 }
    8408           0 :                 if (*r->out.ReturnEnum) {
    8409           0 :                         _mem_save_ReturnEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
    8410           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ReturnEnum, 0);
    8411           0 :                         NDR_CHECK(ndr_pull_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
    8412           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_1, 0);
    8413             :                 }
    8414           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_0, LIBNDR_FLAG_REF_ALLOC);
    8415           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    8416           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    8417             :                 }
    8418           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    8419           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    8420           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    8421           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    8422           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    8423             :         }
    8424           0 :         return NDR_ERR_SUCCESS;
    8425             : }
    8426             : 
    8427           0 : _PUBLIC_ void ndr_print_clusapi_CreateGroupResourceEnum(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CreateGroupResourceEnum *r)
    8428             : {
    8429           0 :         ndr_print_struct(ndr, name, "clusapi_CreateGroupResourceEnum");
    8430           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    8431           0 :         ndr->depth++;
    8432           0 :         if (flags & NDR_SET_VALUES) {
    8433           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    8434             :         }
    8435           0 :         if (flags & NDR_IN) {
    8436           0 :                 ndr_print_struct(ndr, "in", "clusapi_CreateGroupResourceEnum");
    8437           0 :                 ndr->depth++;
    8438           0 :                 ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
    8439           0 :                 ndr_print_ClusterGroupEnumType(ndr, "dwType", r->in.dwType);
    8440           0 :                 ndr->depth--;
    8441             :         }
    8442           0 :         if (flags & NDR_OUT) {
    8443           0 :                 ndr_print_struct(ndr, "out", "clusapi_CreateGroupResourceEnum");
    8444           0 :                 ndr->depth++;
    8445           0 :                 ndr_print_ptr(ndr, "ReturnEnum", r->out.ReturnEnum);
    8446           0 :                 ndr->depth++;
    8447           0 :                 ndr_print_ptr(ndr, "ReturnEnum", *r->out.ReturnEnum);
    8448           0 :                 ndr->depth++;
    8449           0 :                 if (*r->out.ReturnEnum) {
    8450           0 :                         ndr_print_ENUM_LIST(ndr, "ReturnEnum", *r->out.ReturnEnum);
    8451             :                 }
    8452           0 :                 ndr->depth--;
    8453           0 :                 ndr->depth--;
    8454           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    8455           0 :                 ndr->depth++;
    8456           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    8457           0 :                 ndr->depth--;
    8458           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    8459           0 :                 ndr->depth--;
    8460             :         }
    8461           0 :         ndr->depth--;
    8462             : }
    8463             : 
    8464           0 : static enum ndr_err_code ndr_push_clusapi_SetGroupNodeList(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_SetGroupNodeList *r)
    8465             : {
    8466           0 :         uint32_t cntr_multiSzNodeList_1;
    8467           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    8468           0 :         if (flags & NDR_IN) {
    8469           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
    8470           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.multiSzNodeList));
    8471           0 :                 if (r->in.multiSzNodeList) {
    8472           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cchListSize));
    8473           0 :                         for (cntr_multiSzNodeList_1 = 0; cntr_multiSzNodeList_1 < (r->in.cchListSize); cntr_multiSzNodeList_1++) {
    8474           0 :                                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.multiSzNodeList[cntr_multiSzNodeList_1]));
    8475             :                         }
    8476             :                 }
    8477           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cchListSize));
    8478             :         }
    8479           0 :         if (flags & NDR_OUT) {
    8480           0 :                 if (r->out.rpc_status == NULL) {
    8481           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    8482             :                 }
    8483           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    8484           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    8485             :         }
    8486           0 :         return NDR_ERR_SUCCESS;
    8487             : }
    8488             : 
    8489           0 : static enum ndr_err_code ndr_pull_clusapi_SetGroupNodeList(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_SetGroupNodeList *r)
    8490             : {
    8491           0 :         uint32_t _ptr_multiSzNodeList;
    8492           0 :         uint32_t size_multiSzNodeList_1 = 0;
    8493           0 :         uint32_t cntr_multiSzNodeList_1;
    8494           0 :         TALLOC_CTX *_mem_save_multiSzNodeList_0 = NULL;
    8495           0 :         TALLOC_CTX *_mem_save_multiSzNodeList_1 = NULL;
    8496           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    8497           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    8498           0 :         if (flags & NDR_IN) {
    8499           0 :                 NDR_ZERO_STRUCT(r->out);
    8500             : 
    8501           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
    8502           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_multiSzNodeList));
    8503           0 :                 if (_ptr_multiSzNodeList) {
    8504           0 :                         NDR_PULL_ALLOC(ndr, r->in.multiSzNodeList);
    8505             :                 } else {
    8506           0 :                         r->in.multiSzNodeList = NULL;
    8507             :                 }
    8508           0 :                 if (r->in.multiSzNodeList) {
    8509           0 :                         _mem_save_multiSzNodeList_0 = NDR_PULL_GET_MEM_CTX(ndr);
    8510           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.multiSzNodeList, 0);
    8511           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.multiSzNodeList));
    8512           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.multiSzNodeList, &size_multiSzNodeList_1));
    8513           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.multiSzNodeList, size_multiSzNodeList_1);
    8514           0 :                         _mem_save_multiSzNodeList_1 = NDR_PULL_GET_MEM_CTX(ndr);
    8515           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.multiSzNodeList, 0);
    8516           0 :                         for (cntr_multiSzNodeList_1 = 0; cntr_multiSzNodeList_1 < (size_multiSzNodeList_1); cntr_multiSzNodeList_1++) {
    8517           0 :                                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.multiSzNodeList[cntr_multiSzNodeList_1]));
    8518             :                         }
    8519           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_multiSzNodeList_1, 0);
    8520           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_multiSzNodeList_0, 0);
    8521             :                 }
    8522           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cchListSize));
    8523           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    8524           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    8525           0 :                 if (r->in.multiSzNodeList) {
    8526           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.multiSzNodeList, r->in.cchListSize));
    8527             :                 }
    8528             :         }
    8529           0 :         if (flags & NDR_OUT) {
    8530             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    8531             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    8532           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    8533           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    8534             :                 }
    8535           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    8536           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    8537           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    8538           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    8539           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    8540             :         }
    8541           0 :         return NDR_ERR_SUCCESS;
    8542             : }
    8543             : 
    8544           0 : _PUBLIC_ void ndr_print_clusapi_SetGroupNodeList(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_SetGroupNodeList *r)
    8545             : {
    8546           0 :         uint32_t cntr_multiSzNodeList_1;
    8547           0 :         ndr_print_struct(ndr, name, "clusapi_SetGroupNodeList");
    8548           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    8549           0 :         ndr->depth++;
    8550           0 :         if (flags & NDR_SET_VALUES) {
    8551           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    8552             :         }
    8553           0 :         if (flags & NDR_IN) {
    8554           0 :                 ndr_print_struct(ndr, "in", "clusapi_SetGroupNodeList");
    8555           0 :                 ndr->depth++;
    8556           0 :                 ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
    8557           0 :                 ndr_print_ptr(ndr, "multiSzNodeList", r->in.multiSzNodeList);
    8558           0 :                 ndr->depth++;
    8559           0 :                 if (r->in.multiSzNodeList) {
    8560           0 :                         ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "multiSzNodeList", (uint32_t)(r->in.cchListSize));
    8561           0 :                         ndr->depth++;
    8562           0 :                         for (cntr_multiSzNodeList_1 = 0; cntr_multiSzNodeList_1 < (r->in.cchListSize); cntr_multiSzNodeList_1++) {
    8563           0 :                                 ndr_print_uint16(ndr, "multiSzNodeList", r->in.multiSzNodeList[cntr_multiSzNodeList_1]);
    8564             :                         }
    8565           0 :                         ndr->depth--;
    8566             :                 }
    8567           0 :                 ndr->depth--;
    8568           0 :                 ndr_print_uint32(ndr, "cchListSize", r->in.cchListSize);
    8569           0 :                 ndr->depth--;
    8570             :         }
    8571           0 :         if (flags & NDR_OUT) {
    8572           0 :                 ndr_print_struct(ndr, "out", "clusapi_SetGroupNodeList");
    8573           0 :                 ndr->depth++;
    8574           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    8575           0 :                 ndr->depth++;
    8576           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    8577           0 :                 ndr->depth--;
    8578           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    8579           0 :                 ndr->depth--;
    8580             :         }
    8581           0 :         ndr->depth--;
    8582             : }
    8583             : 
    8584           0 : static enum ndr_err_code ndr_push_clusapi_CreateNotify(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CreateNotify *r)
    8585             : {
    8586           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    8587           0 :         if (flags & NDR_IN) {
    8588           0 :         }
    8589           0 :         if (flags & NDR_OUT) {
    8590           0 :                 if (r->out.Status == NULL) {
    8591           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    8592             :                 }
    8593           0 :                 if (r->out.rpc_status == NULL) {
    8594           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    8595             :                 }
    8596           0 :                 if (r->out.hNotify == NULL) {
    8597           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    8598             :                 }
    8599           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
    8600           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    8601           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hNotify));
    8602             :         }
    8603           0 :         return NDR_ERR_SUCCESS;
    8604             : }
    8605             : 
    8606           0 : static enum ndr_err_code ndr_pull_clusapi_CreateNotify(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CreateNotify *r)
    8607             : {
    8608           0 :         TALLOC_CTX *_mem_save_Status_0 = NULL;
    8609           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    8610           0 :         TALLOC_CTX *_mem_save_hNotify_0 = NULL;
    8611           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    8612           0 :         if (flags & NDR_IN) {
    8613           0 :                 NDR_ZERO_STRUCT(r->out);
    8614             : 
    8615           0 :                 NDR_PULL_ALLOC(ndr, r->out.Status);
    8616           0 :                 NDR_ZERO_STRUCTP(r->out.Status);
    8617           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    8618           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    8619           0 :                 NDR_PULL_ALLOC(ndr, r->out.hNotify);
    8620           0 :                 NDR_ZERO_STRUCTP(r->out.hNotify);
    8621             :         }
    8622           0 :         if (flags & NDR_OUT) {
    8623             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    8624             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    8625           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    8626           0 :                         NDR_PULL_ALLOC(ndr, r->out.Status);
    8627             :                 }
    8628           0 :                 _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    8629           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
    8630           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
    8631           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
    8632           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    8633           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    8634             :                 }
    8635           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    8636           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    8637           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    8638           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    8639           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    8640           0 :                         NDR_PULL_ALLOC(ndr, r->out.hNotify);
    8641             :                 }
    8642           0 :                 _mem_save_hNotify_0 = NDR_PULL_GET_MEM_CTX(ndr);
    8643           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.hNotify, LIBNDR_FLAG_REF_ALLOC);
    8644           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hNotify));
    8645           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hNotify_0, LIBNDR_FLAG_REF_ALLOC);
    8646             :         }
    8647           0 :         return NDR_ERR_SUCCESS;
    8648             : }
    8649             : 
    8650           0 : _PUBLIC_ void ndr_print_clusapi_CreateNotify(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CreateNotify *r)
    8651             : {
    8652           0 :         ndr_print_struct(ndr, name, "clusapi_CreateNotify");
    8653           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    8654           0 :         ndr->depth++;
    8655           0 :         if (flags & NDR_SET_VALUES) {
    8656           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    8657             :         }
    8658           0 :         if (flags & NDR_IN) {
    8659           0 :                 ndr_print_struct(ndr, "in", "clusapi_CreateNotify");
    8660           0 :                 ndr->depth++;
    8661           0 :                 ndr->depth--;
    8662             :         }
    8663           0 :         if (flags & NDR_OUT) {
    8664           0 :                 ndr_print_struct(ndr, "out", "clusapi_CreateNotify");
    8665           0 :                 ndr->depth++;
    8666           0 :                 ndr_print_ptr(ndr, "Status", r->out.Status);
    8667           0 :                 ndr->depth++;
    8668           0 :                 ndr_print_WERROR(ndr, "Status", *r->out.Status);
    8669           0 :                 ndr->depth--;
    8670           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    8671           0 :                 ndr->depth++;
    8672           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    8673           0 :                 ndr->depth--;
    8674           0 :                 ndr_print_ptr(ndr, "hNotify", r->out.hNotify);
    8675           0 :                 ndr->depth++;
    8676           0 :                 ndr_print_policy_handle(ndr, "hNotify", r->out.hNotify);
    8677           0 :                 ndr->depth--;
    8678           0 :                 ndr->depth--;
    8679             :         }
    8680           0 :         ndr->depth--;
    8681             : }
    8682             : 
    8683           0 : static enum ndr_err_code ndr_push_clusapi_CloseNotify(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CloseNotify *r)
    8684             : {
    8685           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    8686           0 :         if (flags & NDR_IN) {
    8687           0 :                 if (r->in.Notify == NULL) {
    8688           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    8689             :                 }
    8690           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.Notify));
    8691             :         }
    8692           0 :         if (flags & NDR_OUT) {
    8693           0 :                 if (r->out.Notify == NULL) {
    8694           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    8695             :                 }
    8696           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.Notify));
    8697           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    8698             :         }
    8699           0 :         return NDR_ERR_SUCCESS;
    8700             : }
    8701             : 
    8702           0 : static enum ndr_err_code ndr_pull_clusapi_CloseNotify(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CloseNotify *r)
    8703             : {
    8704           0 :         TALLOC_CTX *_mem_save_Notify_0 = NULL;
    8705           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    8706           0 :         if (flags & NDR_IN) {
    8707           0 :                 NDR_ZERO_STRUCT(r->out);
    8708             : 
    8709           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    8710           0 :                         NDR_PULL_ALLOC(ndr, r->in.Notify);
    8711             :                 }
    8712           0 :                 _mem_save_Notify_0 = NDR_PULL_GET_MEM_CTX(ndr);
    8713           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.Notify, LIBNDR_FLAG_REF_ALLOC);
    8714           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.Notify));
    8715           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Notify_0, LIBNDR_FLAG_REF_ALLOC);
    8716           0 :                 NDR_PULL_ALLOC(ndr, r->out.Notify);
    8717           0 :                 *r->out.Notify = *r->in.Notify;
    8718             :         }
    8719           0 :         if (flags & NDR_OUT) {
    8720             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    8721             :                 if (r->in.Notify == NULL) {
    8722             :                         NDR_PULL_ALLOC(ndr, r->in.Notify);
    8723             :                         NDR_ZERO_STRUCTP(r->in.Notify);
    8724             :                 }
    8725             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    8726           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    8727           0 :                         NDR_PULL_ALLOC(ndr, r->out.Notify);
    8728             :                 }
    8729           0 :                 _mem_save_Notify_0 = NDR_PULL_GET_MEM_CTX(ndr);
    8730           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Notify, LIBNDR_FLAG_REF_ALLOC);
    8731           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.Notify));
    8732           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Notify_0, LIBNDR_FLAG_REF_ALLOC);
    8733           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    8734             :         }
    8735           0 :         return NDR_ERR_SUCCESS;
    8736             : }
    8737             : 
    8738           0 : _PUBLIC_ void ndr_print_clusapi_CloseNotify(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CloseNotify *r)
    8739             : {
    8740           0 :         ndr_print_struct(ndr, name, "clusapi_CloseNotify");
    8741           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    8742           0 :         ndr->depth++;
    8743           0 :         if (flags & NDR_SET_VALUES) {
    8744           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    8745             :         }
    8746           0 :         if (flags & NDR_IN) {
    8747           0 :                 ndr_print_struct(ndr, "in", "clusapi_CloseNotify");
    8748           0 :                 ndr->depth++;
    8749           0 :                 ndr_print_ptr(ndr, "Notify", r->in.Notify);
    8750           0 :                 ndr->depth++;
    8751           0 :                 ndr_print_policy_handle(ndr, "Notify", r->in.Notify);
    8752           0 :                 ndr->depth--;
    8753           0 :                 ndr->depth--;
    8754             :         }
    8755           0 :         if (flags & NDR_OUT) {
    8756           0 :                 ndr_print_struct(ndr, "out", "clusapi_CloseNotify");
    8757           0 :                 ndr->depth++;
    8758           0 :                 ndr_print_ptr(ndr, "Notify", r->out.Notify);
    8759           0 :                 ndr->depth++;
    8760           0 :                 ndr_print_policy_handle(ndr, "Notify", r->out.Notify);
    8761           0 :                 ndr->depth--;
    8762           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    8763           0 :                 ndr->depth--;
    8764             :         }
    8765           0 :         ndr->depth--;
    8766             : }
    8767             : 
    8768           0 : static enum ndr_err_code ndr_push_clusapi_AddNotifyCluster(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_AddNotifyCluster *r)
    8769             : {
    8770           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    8771           0 :         if (flags & NDR_IN) {
    8772           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
    8773           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
    8774           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwFilter));
    8775           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
    8776             :         }
    8777           0 :         if (flags & NDR_OUT) {
    8778           0 :                 if (r->out.rpc_status == NULL) {
    8779           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    8780             :                 }
    8781           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    8782           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    8783             :         }
    8784           0 :         return NDR_ERR_SUCCESS;
    8785             : }
    8786             : 
    8787           0 : static enum ndr_err_code ndr_pull_clusapi_AddNotifyCluster(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_AddNotifyCluster *r)
    8788             : {
    8789           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    8790           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    8791           0 :         if (flags & NDR_IN) {
    8792           0 :                 NDR_ZERO_STRUCT(r->out);
    8793             : 
    8794           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
    8795           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
    8796           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwFilter));
    8797           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
    8798           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    8799           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    8800             :         }
    8801           0 :         if (flags & NDR_OUT) {
    8802             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    8803             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    8804           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    8805           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    8806             :                 }
    8807           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    8808           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    8809           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    8810           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    8811           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    8812             :         }
    8813           0 :         return NDR_ERR_SUCCESS;
    8814             : }
    8815             : 
    8816           0 : _PUBLIC_ void ndr_print_clusapi_AddNotifyCluster(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_AddNotifyCluster *r)
    8817             : {
    8818           0 :         ndr_print_struct(ndr, name, "clusapi_AddNotifyCluster");
    8819           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    8820           0 :         ndr->depth++;
    8821           0 :         if (flags & NDR_SET_VALUES) {
    8822           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    8823             :         }
    8824           0 :         if (flags & NDR_IN) {
    8825           0 :                 ndr_print_struct(ndr, "in", "clusapi_AddNotifyCluster");
    8826           0 :                 ndr->depth++;
    8827           0 :                 ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
    8828           0 :                 ndr_print_policy_handle(ndr, "hCluster", &r->in.hCluster);
    8829           0 :                 ndr_print_uint32(ndr, "dwFilter", r->in.dwFilter);
    8830           0 :                 ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
    8831           0 :                 ndr->depth--;
    8832             :         }
    8833           0 :         if (flags & NDR_OUT) {
    8834           0 :                 ndr_print_struct(ndr, "out", "clusapi_AddNotifyCluster");
    8835           0 :                 ndr->depth++;
    8836           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    8837           0 :                 ndr->depth++;
    8838           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    8839           0 :                 ndr->depth--;
    8840           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    8841           0 :                 ndr->depth--;
    8842             :         }
    8843           0 :         ndr->depth--;
    8844             : }
    8845             : 
    8846           0 : static enum ndr_err_code ndr_push_clusapi_AddNotifyNode(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_AddNotifyNode *r)
    8847             : {
    8848           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    8849           0 :         if (flags & NDR_IN) {
    8850           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
    8851           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
    8852           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwFilter));
    8853           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
    8854             :         }
    8855           0 :         if (flags & NDR_OUT) {
    8856           0 :                 if (r->out.dwStateSequence == NULL) {
    8857           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    8858             :                 }
    8859           0 :                 if (r->out.rpc_status == NULL) {
    8860           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    8861             :                 }
    8862           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.dwStateSequence));
    8863           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    8864           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    8865             :         }
    8866           0 :         return NDR_ERR_SUCCESS;
    8867             : }
    8868             : 
    8869           0 : static enum ndr_err_code ndr_pull_clusapi_AddNotifyNode(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_AddNotifyNode *r)
    8870             : {
    8871           0 :         TALLOC_CTX *_mem_save_dwStateSequence_0 = NULL;
    8872           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    8873           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    8874           0 :         if (flags & NDR_IN) {
    8875           0 :                 NDR_ZERO_STRUCT(r->out);
    8876             : 
    8877           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
    8878           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
    8879           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwFilter));
    8880           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
    8881           0 :                 NDR_PULL_ALLOC(ndr, r->out.dwStateSequence);
    8882           0 :                 NDR_ZERO_STRUCTP(r->out.dwStateSequence);
    8883           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    8884           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    8885             :         }
    8886           0 :         if (flags & NDR_OUT) {
    8887             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    8888             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    8889           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    8890           0 :                         NDR_PULL_ALLOC(ndr, r->out.dwStateSequence);
    8891             :                 }
    8892           0 :                 _mem_save_dwStateSequence_0 = NDR_PULL_GET_MEM_CTX(ndr);
    8893           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.dwStateSequence, LIBNDR_FLAG_REF_ALLOC);
    8894           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.dwStateSequence));
    8895           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dwStateSequence_0, LIBNDR_FLAG_REF_ALLOC);
    8896           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    8897           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    8898             :                 }
    8899           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    8900           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    8901           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    8902           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    8903           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    8904             :         }
    8905           0 :         return NDR_ERR_SUCCESS;
    8906             : }
    8907             : 
    8908           0 : _PUBLIC_ void ndr_print_clusapi_AddNotifyNode(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_AddNotifyNode *r)
    8909             : {
    8910           0 :         ndr_print_struct(ndr, name, "clusapi_AddNotifyNode");
    8911           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    8912           0 :         ndr->depth++;
    8913           0 :         if (flags & NDR_SET_VALUES) {
    8914           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    8915             :         }
    8916           0 :         if (flags & NDR_IN) {
    8917           0 :                 ndr_print_struct(ndr, "in", "clusapi_AddNotifyNode");
    8918           0 :                 ndr->depth++;
    8919           0 :                 ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
    8920           0 :                 ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
    8921           0 :                 ndr_print_uint32(ndr, "dwFilter", r->in.dwFilter);
    8922           0 :                 ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
    8923           0 :                 ndr->depth--;
    8924             :         }
    8925           0 :         if (flags & NDR_OUT) {
    8926           0 :                 ndr_print_struct(ndr, "out", "clusapi_AddNotifyNode");
    8927           0 :                 ndr->depth++;
    8928           0 :                 ndr_print_ptr(ndr, "dwStateSequence", r->out.dwStateSequence);
    8929           0 :                 ndr->depth++;
    8930           0 :                 ndr_print_uint32(ndr, "dwStateSequence", *r->out.dwStateSequence);
    8931           0 :                 ndr->depth--;
    8932           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    8933           0 :                 ndr->depth++;
    8934           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    8935           0 :                 ndr->depth--;
    8936           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    8937           0 :                 ndr->depth--;
    8938             :         }
    8939           0 :         ndr->depth--;
    8940             : }
    8941             : 
    8942           0 : static enum ndr_err_code ndr_push_clusapi_AddNotifyGroup(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_AddNotifyGroup *r)
    8943             : {
    8944           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    8945           0 :         if (flags & NDR_IN) {
    8946           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
    8947           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
    8948           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwFilter));
    8949           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
    8950             :         }
    8951           0 :         if (flags & NDR_OUT) {
    8952           0 :                 if (r->out.dwStateSequence == NULL) {
    8953           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    8954             :                 }
    8955           0 :                 if (r->out.rpc_status == NULL) {
    8956           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    8957             :                 }
    8958           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.dwStateSequence));
    8959           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    8960           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    8961             :         }
    8962           0 :         return NDR_ERR_SUCCESS;
    8963             : }
    8964             : 
    8965           0 : static enum ndr_err_code ndr_pull_clusapi_AddNotifyGroup(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_AddNotifyGroup *r)
    8966             : {
    8967           0 :         TALLOC_CTX *_mem_save_dwStateSequence_0 = NULL;
    8968           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    8969           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    8970           0 :         if (flags & NDR_IN) {
    8971           0 :                 NDR_ZERO_STRUCT(r->out);
    8972             : 
    8973           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
    8974           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
    8975           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwFilter));
    8976           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
    8977           0 :                 NDR_PULL_ALLOC(ndr, r->out.dwStateSequence);
    8978           0 :                 NDR_ZERO_STRUCTP(r->out.dwStateSequence);
    8979           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    8980           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    8981             :         }
    8982           0 :         if (flags & NDR_OUT) {
    8983             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    8984             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    8985           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    8986           0 :                         NDR_PULL_ALLOC(ndr, r->out.dwStateSequence);
    8987             :                 }
    8988           0 :                 _mem_save_dwStateSequence_0 = NDR_PULL_GET_MEM_CTX(ndr);
    8989           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.dwStateSequence, LIBNDR_FLAG_REF_ALLOC);
    8990           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.dwStateSequence));
    8991           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dwStateSequence_0, LIBNDR_FLAG_REF_ALLOC);
    8992           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    8993           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    8994             :                 }
    8995           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    8996           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    8997           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    8998           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    8999           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    9000             :         }
    9001           0 :         return NDR_ERR_SUCCESS;
    9002             : }
    9003             : 
    9004           0 : _PUBLIC_ void ndr_print_clusapi_AddNotifyGroup(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_AddNotifyGroup *r)
    9005             : {
    9006           0 :         ndr_print_struct(ndr, name, "clusapi_AddNotifyGroup");
    9007           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    9008           0 :         ndr->depth++;
    9009           0 :         if (flags & NDR_SET_VALUES) {
    9010           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    9011             :         }
    9012           0 :         if (flags & NDR_IN) {
    9013           0 :                 ndr_print_struct(ndr, "in", "clusapi_AddNotifyGroup");
    9014           0 :                 ndr->depth++;
    9015           0 :                 ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
    9016           0 :                 ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
    9017           0 :                 ndr_print_uint32(ndr, "dwFilter", r->in.dwFilter);
    9018           0 :                 ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
    9019           0 :                 ndr->depth--;
    9020             :         }
    9021           0 :         if (flags & NDR_OUT) {
    9022           0 :                 ndr_print_struct(ndr, "out", "clusapi_AddNotifyGroup");
    9023           0 :                 ndr->depth++;
    9024           0 :                 ndr_print_ptr(ndr, "dwStateSequence", r->out.dwStateSequence);
    9025           0 :                 ndr->depth++;
    9026           0 :                 ndr_print_uint32(ndr, "dwStateSequence", *r->out.dwStateSequence);
    9027           0 :                 ndr->depth--;
    9028           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    9029           0 :                 ndr->depth++;
    9030           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    9031           0 :                 ndr->depth--;
    9032           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    9033           0 :                 ndr->depth--;
    9034             :         }
    9035           0 :         ndr->depth--;
    9036             : }
    9037             : 
    9038           0 : static enum ndr_err_code ndr_push_clusapi_AddNotifyResource(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_AddNotifyResource *r)
    9039             : {
    9040           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    9041           0 :         if (flags & NDR_IN) {
    9042           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
    9043           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    9044           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwFilter));
    9045           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
    9046             :         }
    9047           0 :         if (flags & NDR_OUT) {
    9048           0 :                 if (r->out.dwStateSequence == NULL) {
    9049           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    9050             :                 }
    9051           0 :                 if (r->out.rpc_status == NULL) {
    9052           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    9053             :                 }
    9054           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.dwStateSequence));
    9055           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    9056           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    9057             :         }
    9058           0 :         return NDR_ERR_SUCCESS;
    9059             : }
    9060             : 
    9061           0 : static enum ndr_err_code ndr_pull_clusapi_AddNotifyResource(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_AddNotifyResource *r)
    9062             : {
    9063           0 :         TALLOC_CTX *_mem_save_dwStateSequence_0 = NULL;
    9064           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    9065           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    9066           0 :         if (flags & NDR_IN) {
    9067           0 :                 NDR_ZERO_STRUCT(r->out);
    9068             : 
    9069           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
    9070           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    9071           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwFilter));
    9072           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
    9073           0 :                 NDR_PULL_ALLOC(ndr, r->out.dwStateSequence);
    9074           0 :                 NDR_ZERO_STRUCTP(r->out.dwStateSequence);
    9075           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    9076           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    9077             :         }
    9078           0 :         if (flags & NDR_OUT) {
    9079             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    9080             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    9081           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    9082           0 :                         NDR_PULL_ALLOC(ndr, r->out.dwStateSequence);
    9083             :                 }
    9084           0 :                 _mem_save_dwStateSequence_0 = NDR_PULL_GET_MEM_CTX(ndr);
    9085           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.dwStateSequence, LIBNDR_FLAG_REF_ALLOC);
    9086           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.dwStateSequence));
    9087           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dwStateSequence_0, LIBNDR_FLAG_REF_ALLOC);
    9088           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    9089           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    9090             :                 }
    9091           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    9092           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    9093           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    9094           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    9095           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    9096             :         }
    9097           0 :         return NDR_ERR_SUCCESS;
    9098             : }
    9099             : 
    9100           0 : _PUBLIC_ void ndr_print_clusapi_AddNotifyResource(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_AddNotifyResource *r)
    9101             : {
    9102           0 :         ndr_print_struct(ndr, name, "clusapi_AddNotifyResource");
    9103           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    9104           0 :         ndr->depth++;
    9105           0 :         if (flags & NDR_SET_VALUES) {
    9106           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    9107             :         }
    9108           0 :         if (flags & NDR_IN) {
    9109           0 :                 ndr_print_struct(ndr, "in", "clusapi_AddNotifyResource");
    9110           0 :                 ndr->depth++;
    9111           0 :                 ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
    9112           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
    9113           0 :                 ndr_print_uint32(ndr, "dwFilter", r->in.dwFilter);
    9114           0 :                 ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
    9115           0 :                 ndr->depth--;
    9116             :         }
    9117           0 :         if (flags & NDR_OUT) {
    9118           0 :                 ndr_print_struct(ndr, "out", "clusapi_AddNotifyResource");
    9119           0 :                 ndr->depth++;
    9120           0 :                 ndr_print_ptr(ndr, "dwStateSequence", r->out.dwStateSequence);
    9121           0 :                 ndr->depth++;
    9122           0 :                 ndr_print_uint32(ndr, "dwStateSequence", *r->out.dwStateSequence);
    9123           0 :                 ndr->depth--;
    9124           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    9125           0 :                 ndr->depth++;
    9126           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    9127           0 :                 ndr->depth--;
    9128           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    9129           0 :                 ndr->depth--;
    9130             :         }
    9131           0 :         ndr->depth--;
    9132             : }
    9133             : 
    9134           0 : static enum ndr_err_code ndr_push_clusapi_AddNotifyKey(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_AddNotifyKey *r)
    9135             : {
    9136           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    9137           0 :         if (flags & NDR_IN) {
    9138           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
    9139           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
    9140           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
    9141           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.Filter));
    9142           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->in.WatchSubTree));
    9143             :         }
    9144           0 :         if (flags & NDR_OUT) {
    9145           0 :                 if (r->out.rpc_status == NULL) {
    9146           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    9147             :                 }
    9148           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    9149           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    9150             :         }
    9151           0 :         return NDR_ERR_SUCCESS;
    9152             : }
    9153             : 
    9154           0 : static enum ndr_err_code ndr_pull_clusapi_AddNotifyKey(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_AddNotifyKey *r)
    9155             : {
    9156           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    9157           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    9158           0 :         if (flags & NDR_IN) {
    9159           0 :                 NDR_ZERO_STRUCT(r->out);
    9160             : 
    9161           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
    9162           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
    9163           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
    9164           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.Filter));
    9165           0 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->in.WatchSubTree));
    9166           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    9167           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    9168             :         }
    9169           0 :         if (flags & NDR_OUT) {
    9170             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    9171             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    9172           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    9173           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    9174             :                 }
    9175           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    9176           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    9177           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    9178           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    9179           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    9180             :         }
    9181           0 :         return NDR_ERR_SUCCESS;
    9182             : }
    9183             : 
    9184           0 : _PUBLIC_ void ndr_print_clusapi_AddNotifyKey(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_AddNotifyKey *r)
    9185             : {
    9186           0 :         ndr_print_struct(ndr, name, "clusapi_AddNotifyKey");
    9187           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    9188           0 :         ndr->depth++;
    9189           0 :         if (flags & NDR_SET_VALUES) {
    9190           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    9191             :         }
    9192           0 :         if (flags & NDR_IN) {
    9193           0 :                 ndr_print_struct(ndr, "in", "clusapi_AddNotifyKey");
    9194           0 :                 ndr->depth++;
    9195           0 :                 ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
    9196           0 :                 ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
    9197           0 :                 ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
    9198           0 :                 ndr_print_uint32(ndr, "Filter", r->in.Filter);
    9199           0 :                 ndr_print_uint8(ndr, "WatchSubTree", r->in.WatchSubTree);
    9200           0 :                 ndr->depth--;
    9201             :         }
    9202           0 :         if (flags & NDR_OUT) {
    9203           0 :                 ndr_print_struct(ndr, "out", "clusapi_AddNotifyKey");
    9204           0 :                 ndr->depth++;
    9205           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    9206           0 :                 ndr->depth++;
    9207           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    9208           0 :                 ndr->depth--;
    9209           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    9210           0 :                 ndr->depth--;
    9211             :         }
    9212           0 :         ndr->depth--;
    9213             : }
    9214             : 
    9215           0 : static enum ndr_err_code ndr_push_clusapi_ReAddNotifyNode(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_ReAddNotifyNode *r)
    9216             : {
    9217           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    9218           0 :         if (flags & NDR_IN) {
    9219           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
    9220           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
    9221           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwFilter));
    9222           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
    9223           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.StateSequence));
    9224             :         }
    9225           0 :         if (flags & NDR_OUT) {
    9226           0 :                 if (r->out.rpc_status == NULL) {
    9227           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    9228             :                 }
    9229           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    9230           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    9231             :         }
    9232           0 :         return NDR_ERR_SUCCESS;
    9233             : }
    9234             : 
    9235           0 : static enum ndr_err_code ndr_pull_clusapi_ReAddNotifyNode(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_ReAddNotifyNode *r)
    9236             : {
    9237           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    9238           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    9239           0 :         if (flags & NDR_IN) {
    9240           0 :                 NDR_ZERO_STRUCT(r->out);
    9241             : 
    9242           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
    9243           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
    9244           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwFilter));
    9245           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
    9246           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.StateSequence));
    9247           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    9248           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    9249             :         }
    9250           0 :         if (flags & NDR_OUT) {
    9251             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    9252             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    9253           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    9254           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    9255             :                 }
    9256           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    9257           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    9258           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    9259           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    9260           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    9261             :         }
    9262           0 :         return NDR_ERR_SUCCESS;
    9263             : }
    9264             : 
    9265           0 : _PUBLIC_ void ndr_print_clusapi_ReAddNotifyNode(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_ReAddNotifyNode *r)
    9266             : {
    9267           0 :         ndr_print_struct(ndr, name, "clusapi_ReAddNotifyNode");
    9268           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    9269           0 :         ndr->depth++;
    9270           0 :         if (flags & NDR_SET_VALUES) {
    9271           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    9272             :         }
    9273           0 :         if (flags & NDR_IN) {
    9274           0 :                 ndr_print_struct(ndr, "in", "clusapi_ReAddNotifyNode");
    9275           0 :                 ndr->depth++;
    9276           0 :                 ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
    9277           0 :                 ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
    9278           0 :                 ndr_print_uint32(ndr, "dwFilter", r->in.dwFilter);
    9279           0 :                 ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
    9280           0 :                 ndr_print_uint32(ndr, "StateSequence", r->in.StateSequence);
    9281           0 :                 ndr->depth--;
    9282             :         }
    9283           0 :         if (flags & NDR_OUT) {
    9284           0 :                 ndr_print_struct(ndr, "out", "clusapi_ReAddNotifyNode");
    9285           0 :                 ndr->depth++;
    9286           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    9287           0 :                 ndr->depth++;
    9288           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    9289           0 :                 ndr->depth--;
    9290           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    9291           0 :                 ndr->depth--;
    9292             :         }
    9293           0 :         ndr->depth--;
    9294             : }
    9295             : 
    9296           0 : static enum ndr_err_code ndr_push_clusapi_ReAddNotifyGroup(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_ReAddNotifyGroup *r)
    9297             : {
    9298           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    9299           0 :         if (flags & NDR_IN) {
    9300           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
    9301           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
    9302           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwFilter));
    9303           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
    9304           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.StateSequence));
    9305             :         }
    9306           0 :         if (flags & NDR_OUT) {
    9307           0 :                 if (r->out.rpc_status == NULL) {
    9308           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    9309             :                 }
    9310           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    9311           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    9312             :         }
    9313           0 :         return NDR_ERR_SUCCESS;
    9314             : }
    9315             : 
    9316           0 : static enum ndr_err_code ndr_pull_clusapi_ReAddNotifyGroup(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_ReAddNotifyGroup *r)
    9317             : {
    9318           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    9319           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    9320           0 :         if (flags & NDR_IN) {
    9321           0 :                 NDR_ZERO_STRUCT(r->out);
    9322             : 
    9323           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
    9324           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
    9325           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwFilter));
    9326           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
    9327           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.StateSequence));
    9328           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    9329           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    9330             :         }
    9331           0 :         if (flags & NDR_OUT) {
    9332             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    9333             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    9334           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    9335           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    9336             :                 }
    9337           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    9338           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    9339           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    9340           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    9341           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    9342             :         }
    9343           0 :         return NDR_ERR_SUCCESS;
    9344             : }
    9345             : 
    9346           0 : _PUBLIC_ void ndr_print_clusapi_ReAddNotifyGroup(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_ReAddNotifyGroup *r)
    9347             : {
    9348           0 :         ndr_print_struct(ndr, name, "clusapi_ReAddNotifyGroup");
    9349           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    9350           0 :         ndr->depth++;
    9351           0 :         if (flags & NDR_SET_VALUES) {
    9352           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    9353             :         }
    9354           0 :         if (flags & NDR_IN) {
    9355           0 :                 ndr_print_struct(ndr, "in", "clusapi_ReAddNotifyGroup");
    9356           0 :                 ndr->depth++;
    9357           0 :                 ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
    9358           0 :                 ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
    9359           0 :                 ndr_print_uint32(ndr, "dwFilter", r->in.dwFilter);
    9360           0 :                 ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
    9361           0 :                 ndr_print_uint32(ndr, "StateSequence", r->in.StateSequence);
    9362           0 :                 ndr->depth--;
    9363             :         }
    9364           0 :         if (flags & NDR_OUT) {
    9365           0 :                 ndr_print_struct(ndr, "out", "clusapi_ReAddNotifyGroup");
    9366           0 :                 ndr->depth++;
    9367           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    9368           0 :                 ndr->depth++;
    9369           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    9370           0 :                 ndr->depth--;
    9371           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    9372           0 :                 ndr->depth--;
    9373             :         }
    9374           0 :         ndr->depth--;
    9375             : }
    9376             : 
    9377           0 : static enum ndr_err_code ndr_push_clusapi_ReAddNotifyResource(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_ReAddNotifyResource *r)
    9378             : {
    9379           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    9380           0 :         if (flags & NDR_IN) {
    9381           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
    9382           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    9383           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwFilter));
    9384           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
    9385           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.StateSequence));
    9386             :         }
    9387           0 :         if (flags & NDR_OUT) {
    9388           0 :                 if (r->out.rpc_status == NULL) {
    9389           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    9390             :                 }
    9391           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    9392           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    9393             :         }
    9394           0 :         return NDR_ERR_SUCCESS;
    9395             : }
    9396             : 
    9397           0 : static enum ndr_err_code ndr_pull_clusapi_ReAddNotifyResource(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_ReAddNotifyResource *r)
    9398             : {
    9399           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    9400           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    9401           0 :         if (flags & NDR_IN) {
    9402           0 :                 NDR_ZERO_STRUCT(r->out);
    9403             : 
    9404           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
    9405           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
    9406           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwFilter));
    9407           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
    9408           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.StateSequence));
    9409           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    9410           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    9411             :         }
    9412           0 :         if (flags & NDR_OUT) {
    9413             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    9414             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    9415           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    9416           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    9417             :                 }
    9418           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    9419           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    9420           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    9421           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    9422           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    9423             :         }
    9424           0 :         return NDR_ERR_SUCCESS;
    9425             : }
    9426             : 
    9427           0 : _PUBLIC_ void ndr_print_clusapi_ReAddNotifyResource(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_ReAddNotifyResource *r)
    9428             : {
    9429           0 :         ndr_print_struct(ndr, name, "clusapi_ReAddNotifyResource");
    9430           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    9431           0 :         ndr->depth++;
    9432           0 :         if (flags & NDR_SET_VALUES) {
    9433           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    9434             :         }
    9435           0 :         if (flags & NDR_IN) {
    9436           0 :                 ndr_print_struct(ndr, "in", "clusapi_ReAddNotifyResource");
    9437           0 :                 ndr->depth++;
    9438           0 :                 ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
    9439           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
    9440           0 :                 ndr_print_uint32(ndr, "dwFilter", r->in.dwFilter);
    9441           0 :                 ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
    9442           0 :                 ndr_print_uint32(ndr, "StateSequence", r->in.StateSequence);
    9443           0 :                 ndr->depth--;
    9444             :         }
    9445           0 :         if (flags & NDR_OUT) {
    9446           0 :                 ndr_print_struct(ndr, "out", "clusapi_ReAddNotifyResource");
    9447           0 :                 ndr->depth++;
    9448           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    9449           0 :                 ndr->depth++;
    9450           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    9451           0 :                 ndr->depth--;
    9452           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    9453           0 :                 ndr->depth--;
    9454             :         }
    9455           0 :         ndr->depth--;
    9456             : }
    9457             : 
    9458           0 : static enum ndr_err_code ndr_push_clusapi_GetNotify(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_GetNotify *r)
    9459             : {
    9460           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    9461           0 :         if (flags & NDR_IN) {
    9462           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
    9463             :         }
    9464           0 :         if (flags & NDR_OUT) {
    9465           0 :                 if (r->out.dwNotifyKey == NULL) {
    9466           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    9467             :                 }
    9468           0 :                 if (r->out.dwFilter == NULL) {
    9469           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    9470             :                 }
    9471           0 :                 if (r->out.dwStateSequence == NULL) {
    9472           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    9473             :                 }
    9474           0 :                 if (r->out.Name == NULL) {
    9475           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    9476             :                 }
    9477           0 :                 if (r->out.rpc_status == NULL) {
    9478           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    9479             :                 }
    9480           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.dwNotifyKey));
    9481           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.dwFilter));
    9482           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.dwStateSequence));
    9483           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.Name));
    9484           0 :                 if (*r->out.Name) {
    9485           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.Name, CH_UTF16)));
    9486           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    9487           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.Name, CH_UTF16)));
    9488           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.Name, ndr_charset_length(*r->out.Name, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    9489             :                 }
    9490           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    9491           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    9492             :         }
    9493           0 :         return NDR_ERR_SUCCESS;
    9494             : }
    9495             : 
    9496           0 : static enum ndr_err_code ndr_pull_clusapi_GetNotify(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_GetNotify *r)
    9497             : {
    9498           0 :         uint32_t _ptr_Name;
    9499           0 :         uint32_t size_Name_2 = 0;
    9500           0 :         uint32_t length_Name_2 = 0;
    9501           0 :         TALLOC_CTX *_mem_save_dwNotifyKey_0 = NULL;
    9502           0 :         TALLOC_CTX *_mem_save_dwFilter_0 = NULL;
    9503           0 :         TALLOC_CTX *_mem_save_dwStateSequence_0 = NULL;
    9504           0 :         TALLOC_CTX *_mem_save_Name_0 = NULL;
    9505           0 :         TALLOC_CTX *_mem_save_Name_1 = NULL;
    9506           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    9507           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    9508           0 :         if (flags & NDR_IN) {
    9509           0 :                 NDR_ZERO_STRUCT(r->out);
    9510             : 
    9511           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
    9512           0 :                 NDR_PULL_ALLOC(ndr, r->out.dwNotifyKey);
    9513           0 :                 NDR_ZERO_STRUCTP(r->out.dwNotifyKey);
    9514           0 :                 NDR_PULL_ALLOC(ndr, r->out.dwFilter);
    9515           0 :                 NDR_ZERO_STRUCTP(r->out.dwFilter);
    9516           0 :                 NDR_PULL_ALLOC(ndr, r->out.dwStateSequence);
    9517           0 :                 NDR_ZERO_STRUCTP(r->out.dwStateSequence);
    9518           0 :                 NDR_PULL_ALLOC(ndr, r->out.Name);
    9519           0 :                 NDR_ZERO_STRUCTP(r->out.Name);
    9520           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    9521           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    9522             :         }
    9523           0 :         if (flags & NDR_OUT) {
    9524             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    9525             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    9526           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    9527           0 :                         NDR_PULL_ALLOC(ndr, r->out.dwNotifyKey);
    9528             :                 }
    9529           0 :                 _mem_save_dwNotifyKey_0 = NDR_PULL_GET_MEM_CTX(ndr);
    9530           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.dwNotifyKey, LIBNDR_FLAG_REF_ALLOC);
    9531           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.dwNotifyKey));
    9532           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dwNotifyKey_0, LIBNDR_FLAG_REF_ALLOC);
    9533           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    9534           0 :                         NDR_PULL_ALLOC(ndr, r->out.dwFilter);
    9535             :                 }
    9536           0 :                 _mem_save_dwFilter_0 = NDR_PULL_GET_MEM_CTX(ndr);
    9537           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.dwFilter, LIBNDR_FLAG_REF_ALLOC);
    9538           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.dwFilter));
    9539           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dwFilter_0, LIBNDR_FLAG_REF_ALLOC);
    9540           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    9541           0 :                         NDR_PULL_ALLOC(ndr, r->out.dwStateSequence);
    9542             :                 }
    9543           0 :                 _mem_save_dwStateSequence_0 = NDR_PULL_GET_MEM_CTX(ndr);
    9544           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.dwStateSequence, LIBNDR_FLAG_REF_ALLOC);
    9545           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.dwStateSequence));
    9546           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dwStateSequence_0, LIBNDR_FLAG_REF_ALLOC);
    9547           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    9548           0 :                         NDR_PULL_ALLOC(ndr, r->out.Name);
    9549             :                 }
    9550           0 :                 _mem_save_Name_0 = NDR_PULL_GET_MEM_CTX(ndr);
    9551           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Name, LIBNDR_FLAG_REF_ALLOC);
    9552           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Name));
    9553           0 :                 if (_ptr_Name) {
    9554           0 :                         NDR_PULL_ALLOC(ndr, *r->out.Name);
    9555             :                 } else {
    9556           0 :                         *r->out.Name = NULL;
    9557             :                 }
    9558           0 :                 if (*r->out.Name) {
    9559           0 :                         _mem_save_Name_1 = NDR_PULL_GET_MEM_CTX(ndr);
    9560           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.Name, 0);
    9561           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.Name));
    9562           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, r->out.Name));
    9563           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.Name, &size_Name_2));
    9564           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.Name, &length_Name_2));
    9565           0 :                         if (length_Name_2 > size_Name_2) {
    9566           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_Name_2, length_Name_2);
    9567             :                         }
    9568           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_Name_2, sizeof(uint16_t)));
    9569           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.Name, length_Name_2, sizeof(uint16_t), CH_UTF16));
    9570           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Name_1, 0);
    9571             :                 }
    9572           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Name_0, LIBNDR_FLAG_REF_ALLOC);
    9573           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    9574           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    9575             :                 }
    9576           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    9577           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    9578           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    9579           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    9580           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    9581             :         }
    9582           0 :         return NDR_ERR_SUCCESS;
    9583             : }
    9584             : 
    9585           0 : _PUBLIC_ void ndr_print_clusapi_GetNotify(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_GetNotify *r)
    9586             : {
    9587           0 :         ndr_print_struct(ndr, name, "clusapi_GetNotify");
    9588           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    9589           0 :         ndr->depth++;
    9590           0 :         if (flags & NDR_SET_VALUES) {
    9591           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    9592             :         }
    9593           0 :         if (flags & NDR_IN) {
    9594           0 :                 ndr_print_struct(ndr, "in", "clusapi_GetNotify");
    9595           0 :                 ndr->depth++;
    9596           0 :                 ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
    9597           0 :                 ndr->depth--;
    9598             :         }
    9599           0 :         if (flags & NDR_OUT) {
    9600           0 :                 ndr_print_struct(ndr, "out", "clusapi_GetNotify");
    9601           0 :                 ndr->depth++;
    9602           0 :                 ndr_print_ptr(ndr, "dwNotifyKey", r->out.dwNotifyKey);
    9603           0 :                 ndr->depth++;
    9604           0 :                 ndr_print_uint32(ndr, "dwNotifyKey", *r->out.dwNotifyKey);
    9605           0 :                 ndr->depth--;
    9606           0 :                 ndr_print_ptr(ndr, "dwFilter", r->out.dwFilter);
    9607           0 :                 ndr->depth++;
    9608           0 :                 ndr_print_uint32(ndr, "dwFilter", *r->out.dwFilter);
    9609           0 :                 ndr->depth--;
    9610           0 :                 ndr_print_ptr(ndr, "dwStateSequence", r->out.dwStateSequence);
    9611           0 :                 ndr->depth++;
    9612           0 :                 ndr_print_uint32(ndr, "dwStateSequence", *r->out.dwStateSequence);
    9613           0 :                 ndr->depth--;
    9614           0 :                 ndr_print_ptr(ndr, "Name", r->out.Name);
    9615           0 :                 ndr->depth++;
    9616           0 :                 ndr_print_ptr(ndr, "Name", *r->out.Name);
    9617           0 :                 ndr->depth++;
    9618           0 :                 if (*r->out.Name) {
    9619           0 :                         ndr_print_string(ndr, "Name", *r->out.Name);
    9620             :                 }
    9621           0 :                 ndr->depth--;
    9622           0 :                 ndr->depth--;
    9623           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    9624           0 :                 ndr->depth++;
    9625           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    9626           0 :                 ndr->depth--;
    9627           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    9628           0 :                 ndr->depth--;
    9629             :         }
    9630           0 :         ndr->depth--;
    9631             : }
    9632             : 
    9633           0 : static enum ndr_err_code ndr_push_clusapi_OpenNode(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_OpenNode *r)
    9634             : {
    9635           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    9636           0 :         if (flags & NDR_IN) {
    9637           0 :                 if (r->in.lpszNodeName == NULL) {
    9638           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    9639             :                 }
    9640           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNodeName, CH_UTF16)));
    9641           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    9642           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNodeName, CH_UTF16)));
    9643           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszNodeName, ndr_charset_length(r->in.lpszNodeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    9644             :         }
    9645           0 :         if (flags & NDR_OUT) {
    9646           0 :                 if (r->out.Status == NULL) {
    9647           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    9648             :                 }
    9649           0 :                 if (r->out.rpc_status == NULL) {
    9650           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    9651             :                 }
    9652           0 :                 if (r->out.hNode == NULL) {
    9653           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    9654             :                 }
    9655           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
    9656           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    9657           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hNode));
    9658             :         }
    9659           0 :         return NDR_ERR_SUCCESS;
    9660             : }
    9661             : 
    9662           0 : static enum ndr_err_code ndr_pull_clusapi_OpenNode(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_OpenNode *r)
    9663             : {
    9664           0 :         uint32_t size_lpszNodeName_1 = 0;
    9665           0 :         uint32_t length_lpszNodeName_1 = 0;
    9666           0 :         TALLOC_CTX *_mem_save_Status_0 = NULL;
    9667           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    9668           0 :         TALLOC_CTX *_mem_save_hNode_0 = NULL;
    9669           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    9670           0 :         if (flags & NDR_IN) {
    9671           0 :                 NDR_ZERO_STRUCT(r->out);
    9672             : 
    9673           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszNodeName));
    9674           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszNodeName));
    9675           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszNodeName, &size_lpszNodeName_1));
    9676           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszNodeName, &length_lpszNodeName_1));
    9677           0 :                 if (length_lpszNodeName_1 > size_lpszNodeName_1) {
    9678           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszNodeName_1, length_lpszNodeName_1);
    9679             :                 }
    9680           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszNodeName_1, sizeof(uint16_t)));
    9681           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszNodeName, length_lpszNodeName_1, sizeof(uint16_t), CH_UTF16));
    9682           0 :                 NDR_PULL_ALLOC(ndr, r->out.Status);
    9683           0 :                 NDR_ZERO_STRUCTP(r->out.Status);
    9684           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    9685           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    9686           0 :                 NDR_PULL_ALLOC(ndr, r->out.hNode);
    9687           0 :                 NDR_ZERO_STRUCTP(r->out.hNode);
    9688             :         }
    9689           0 :         if (flags & NDR_OUT) {
    9690             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    9691             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    9692           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    9693           0 :                         NDR_PULL_ALLOC(ndr, r->out.Status);
    9694             :                 }
    9695           0 :                 _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    9696           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
    9697           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
    9698           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
    9699           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    9700           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    9701             :                 }
    9702           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    9703           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    9704           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    9705           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    9706           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    9707           0 :                         NDR_PULL_ALLOC(ndr, r->out.hNode);
    9708             :                 }
    9709           0 :                 _mem_save_hNode_0 = NDR_PULL_GET_MEM_CTX(ndr);
    9710           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.hNode, LIBNDR_FLAG_REF_ALLOC);
    9711           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hNode));
    9712           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hNode_0, LIBNDR_FLAG_REF_ALLOC);
    9713             :         }
    9714           0 :         return NDR_ERR_SUCCESS;
    9715             : }
    9716             : 
    9717           0 : _PUBLIC_ void ndr_print_clusapi_OpenNode(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_OpenNode *r)
    9718             : {
    9719           0 :         ndr_print_struct(ndr, name, "clusapi_OpenNode");
    9720           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    9721           0 :         ndr->depth++;
    9722           0 :         if (flags & NDR_SET_VALUES) {
    9723           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    9724             :         }
    9725           0 :         if (flags & NDR_IN) {
    9726           0 :                 ndr_print_struct(ndr, "in", "clusapi_OpenNode");
    9727           0 :                 ndr->depth++;
    9728           0 :                 ndr_print_ptr(ndr, "lpszNodeName", r->in.lpszNodeName);
    9729           0 :                 ndr->depth++;
    9730           0 :                 ndr_print_string(ndr, "lpszNodeName", r->in.lpszNodeName);
    9731           0 :                 ndr->depth--;
    9732           0 :                 ndr->depth--;
    9733             :         }
    9734           0 :         if (flags & NDR_OUT) {
    9735           0 :                 ndr_print_struct(ndr, "out", "clusapi_OpenNode");
    9736           0 :                 ndr->depth++;
    9737           0 :                 ndr_print_ptr(ndr, "Status", r->out.Status);
    9738           0 :                 ndr->depth++;
    9739           0 :                 ndr_print_WERROR(ndr, "Status", *r->out.Status);
    9740           0 :                 ndr->depth--;
    9741           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    9742           0 :                 ndr->depth++;
    9743           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    9744           0 :                 ndr->depth--;
    9745           0 :                 ndr_print_ptr(ndr, "hNode", r->out.hNode);
    9746           0 :                 ndr->depth++;
    9747           0 :                 ndr_print_policy_handle(ndr, "hNode", r->out.hNode);
    9748           0 :                 ndr->depth--;
    9749           0 :                 ndr->depth--;
    9750             :         }
    9751           0 :         ndr->depth--;
    9752             : }
    9753             : 
    9754           0 : static enum ndr_err_code ndr_push_clusapi_CloseNode(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CloseNode *r)
    9755             : {
    9756           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    9757           0 :         if (flags & NDR_IN) {
    9758           0 :                 if (r->in.Node == NULL) {
    9759           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    9760             :                 }
    9761           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.Node));
    9762             :         }
    9763           0 :         if (flags & NDR_OUT) {
    9764           0 :                 if (r->out.Node == NULL) {
    9765           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    9766             :                 }
    9767           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.Node));
    9768           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    9769             :         }
    9770           0 :         return NDR_ERR_SUCCESS;
    9771             : }
    9772             : 
    9773           0 : static enum ndr_err_code ndr_pull_clusapi_CloseNode(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CloseNode *r)
    9774             : {
    9775           0 :         TALLOC_CTX *_mem_save_Node_0 = NULL;
    9776           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    9777           0 :         if (flags & NDR_IN) {
    9778           0 :                 NDR_ZERO_STRUCT(r->out);
    9779             : 
    9780           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    9781           0 :                         NDR_PULL_ALLOC(ndr, r->in.Node);
    9782             :                 }
    9783           0 :                 _mem_save_Node_0 = NDR_PULL_GET_MEM_CTX(ndr);
    9784           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.Node, LIBNDR_FLAG_REF_ALLOC);
    9785           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.Node));
    9786           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Node_0, LIBNDR_FLAG_REF_ALLOC);
    9787           0 :                 NDR_PULL_ALLOC(ndr, r->out.Node);
    9788           0 :                 *r->out.Node = *r->in.Node;
    9789             :         }
    9790           0 :         if (flags & NDR_OUT) {
    9791             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    9792             :                 if (r->in.Node == NULL) {
    9793             :                         NDR_PULL_ALLOC(ndr, r->in.Node);
    9794             :                         NDR_ZERO_STRUCTP(r->in.Node);
    9795             :                 }
    9796             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    9797           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    9798           0 :                         NDR_PULL_ALLOC(ndr, r->out.Node);
    9799             :                 }
    9800           0 :                 _mem_save_Node_0 = NDR_PULL_GET_MEM_CTX(ndr);
    9801           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Node, LIBNDR_FLAG_REF_ALLOC);
    9802           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.Node));
    9803           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Node_0, LIBNDR_FLAG_REF_ALLOC);
    9804           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    9805             :         }
    9806           0 :         return NDR_ERR_SUCCESS;
    9807             : }
    9808             : 
    9809           0 : _PUBLIC_ void ndr_print_clusapi_CloseNode(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CloseNode *r)
    9810             : {
    9811           0 :         ndr_print_struct(ndr, name, "clusapi_CloseNode");
    9812           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    9813           0 :         ndr->depth++;
    9814           0 :         if (flags & NDR_SET_VALUES) {
    9815           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    9816             :         }
    9817           0 :         if (flags & NDR_IN) {
    9818           0 :                 ndr_print_struct(ndr, "in", "clusapi_CloseNode");
    9819           0 :                 ndr->depth++;
    9820           0 :                 ndr_print_ptr(ndr, "Node", r->in.Node);
    9821           0 :                 ndr->depth++;
    9822           0 :                 ndr_print_policy_handle(ndr, "Node", r->in.Node);
    9823           0 :                 ndr->depth--;
    9824           0 :                 ndr->depth--;
    9825             :         }
    9826           0 :         if (flags & NDR_OUT) {
    9827           0 :                 ndr_print_struct(ndr, "out", "clusapi_CloseNode");
    9828           0 :                 ndr->depth++;
    9829           0 :                 ndr_print_ptr(ndr, "Node", r->out.Node);
    9830           0 :                 ndr->depth++;
    9831           0 :                 ndr_print_policy_handle(ndr, "Node", r->out.Node);
    9832           0 :                 ndr->depth--;
    9833           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    9834           0 :                 ndr->depth--;
    9835             :         }
    9836           0 :         ndr->depth--;
    9837             : }
    9838             : 
    9839           0 : static enum ndr_err_code ndr_push_clusapi_GetNodeState(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_GetNodeState *r)
    9840             : {
    9841           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    9842           0 :         if (flags & NDR_IN) {
    9843           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
    9844             :         }
    9845           0 :         if (flags & NDR_OUT) {
    9846           0 :                 if (r->out.State == NULL) {
    9847           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    9848             :                 }
    9849           0 :                 if (r->out.rpc_status == NULL) {
    9850           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    9851             :                 }
    9852           0 :                 NDR_CHECK(ndr_push_clusapi_ClusterNodeState(ndr, NDR_SCALARS, *r->out.State));
    9853           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    9854           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    9855             :         }
    9856           0 :         return NDR_ERR_SUCCESS;
    9857             : }
    9858             : 
    9859           0 : static enum ndr_err_code ndr_pull_clusapi_GetNodeState(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_GetNodeState *r)
    9860             : {
    9861           0 :         TALLOC_CTX *_mem_save_State_0 = NULL;
    9862           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    9863           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    9864           0 :         if (flags & NDR_IN) {
    9865           0 :                 NDR_ZERO_STRUCT(r->out);
    9866             : 
    9867           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
    9868           0 :                 NDR_PULL_ALLOC(ndr, r->out.State);
    9869           0 :                 NDR_ZERO_STRUCTP(r->out.State);
    9870           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    9871           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    9872             :         }
    9873           0 :         if (flags & NDR_OUT) {
    9874             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    9875             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    9876           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    9877           0 :                         NDR_PULL_ALLOC(ndr, r->out.State);
    9878             :                 }
    9879           0 :                 _mem_save_State_0 = NDR_PULL_GET_MEM_CTX(ndr);
    9880           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.State, LIBNDR_FLAG_REF_ALLOC);
    9881           0 :                 NDR_CHECK(ndr_pull_clusapi_ClusterNodeState(ndr, NDR_SCALARS, r->out.State));
    9882           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_State_0, LIBNDR_FLAG_REF_ALLOC);
    9883           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    9884           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    9885             :                 }
    9886           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    9887           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    9888           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    9889           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    9890           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    9891             :         }
    9892           0 :         return NDR_ERR_SUCCESS;
    9893             : }
    9894             : 
    9895           0 : _PUBLIC_ void ndr_print_clusapi_GetNodeState(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_GetNodeState *r)
    9896             : {
    9897           0 :         ndr_print_struct(ndr, name, "clusapi_GetNodeState");
    9898           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    9899           0 :         ndr->depth++;
    9900           0 :         if (flags & NDR_SET_VALUES) {
    9901           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    9902             :         }
    9903           0 :         if (flags & NDR_IN) {
    9904           0 :                 ndr_print_struct(ndr, "in", "clusapi_GetNodeState");
    9905           0 :                 ndr->depth++;
    9906           0 :                 ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
    9907           0 :                 ndr->depth--;
    9908             :         }
    9909           0 :         if (flags & NDR_OUT) {
    9910           0 :                 ndr_print_struct(ndr, "out", "clusapi_GetNodeState");
    9911           0 :                 ndr->depth++;
    9912           0 :                 ndr_print_ptr(ndr, "State", r->out.State);
    9913           0 :                 ndr->depth++;
    9914           0 :                 ndr_print_clusapi_ClusterNodeState(ndr, "State", *r->out.State);
    9915           0 :                 ndr->depth--;
    9916           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    9917           0 :                 ndr->depth++;
    9918           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    9919           0 :                 ndr->depth--;
    9920           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    9921           0 :                 ndr->depth--;
    9922             :         }
    9923           0 :         ndr->depth--;
    9924             : }
    9925             : 
    9926           0 : static enum ndr_err_code ndr_push_clusapi_PauseNode(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_PauseNode *r)
    9927             : {
    9928           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    9929           0 :         if (flags & NDR_IN) {
    9930           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
    9931             :         }
    9932           0 :         if (flags & NDR_OUT) {
    9933           0 :                 if (r->out.rpc_status == NULL) {
    9934           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    9935             :                 }
    9936           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
    9937           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    9938             :         }
    9939           0 :         return NDR_ERR_SUCCESS;
    9940             : }
    9941             : 
    9942           0 : static enum ndr_err_code ndr_pull_clusapi_PauseNode(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_PauseNode *r)
    9943             : {
    9944           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
    9945           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    9946           0 :         if (flags & NDR_IN) {
    9947           0 :                 NDR_ZERO_STRUCT(r->out);
    9948             : 
    9949           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
    9950           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    9951           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
    9952             :         }
    9953           0 :         if (flags & NDR_OUT) {
    9954             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    9955             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    9956           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    9957           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
    9958             :                 }
    9959           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
    9960           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
    9961           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
    9962           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
    9963           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    9964             :         }
    9965           0 :         return NDR_ERR_SUCCESS;
    9966             : }
    9967             : 
    9968           0 : _PUBLIC_ void ndr_print_clusapi_PauseNode(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_PauseNode *r)
    9969             : {
    9970           0 :         ndr_print_struct(ndr, name, "clusapi_PauseNode");
    9971           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    9972           0 :         ndr->depth++;
    9973           0 :         if (flags & NDR_SET_VALUES) {
    9974           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    9975             :         }
    9976           0 :         if (flags & NDR_IN) {
    9977           0 :                 ndr_print_struct(ndr, "in", "clusapi_PauseNode");
    9978           0 :                 ndr->depth++;
    9979           0 :                 ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
    9980           0 :                 ndr->depth--;
    9981             :         }
    9982           0 :         if (flags & NDR_OUT) {
    9983           0 :                 ndr_print_struct(ndr, "out", "clusapi_PauseNode");
    9984           0 :                 ndr->depth++;
    9985           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
    9986           0 :                 ndr->depth++;
    9987           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
    9988           0 :                 ndr->depth--;
    9989           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    9990           0 :                 ndr->depth--;
    9991             :         }
    9992           0 :         ndr->depth--;
    9993             : }
    9994             : 
    9995           0 : static enum ndr_err_code ndr_push_clusapi_ResumeNode(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_ResumeNode *r)
    9996             : {
    9997           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    9998           0 :         if (flags & NDR_IN) {
    9999           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   10000             :         }
   10001           0 :         if (flags & NDR_OUT) {
   10002           0 :                 if (r->out.rpc_status == NULL) {
   10003           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   10004             :                 }
   10005           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   10006           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   10007             :         }
   10008           0 :         return NDR_ERR_SUCCESS;
   10009             : }
   10010             : 
   10011           0 : static enum ndr_err_code ndr_pull_clusapi_ResumeNode(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_ResumeNode *r)
   10012             : {
   10013           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   10014           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   10015           0 :         if (flags & NDR_IN) {
   10016           0 :                 NDR_ZERO_STRUCT(r->out);
   10017             : 
   10018           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   10019           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   10020           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   10021             :         }
   10022           0 :         if (flags & NDR_OUT) {
   10023             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   10024             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   10025           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   10026           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   10027             :                 }
   10028           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   10029           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   10030           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   10031           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   10032           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   10033             :         }
   10034           0 :         return NDR_ERR_SUCCESS;
   10035             : }
   10036             : 
   10037           0 : _PUBLIC_ void ndr_print_clusapi_ResumeNode(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_ResumeNode *r)
   10038             : {
   10039           0 :         ndr_print_struct(ndr, name, "clusapi_ResumeNode");
   10040           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   10041           0 :         ndr->depth++;
   10042           0 :         if (flags & NDR_SET_VALUES) {
   10043           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   10044             :         }
   10045           0 :         if (flags & NDR_IN) {
   10046           0 :                 ndr_print_struct(ndr, "in", "clusapi_ResumeNode");
   10047           0 :                 ndr->depth++;
   10048           0 :                 ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
   10049           0 :                 ndr->depth--;
   10050             :         }
   10051           0 :         if (flags & NDR_OUT) {
   10052           0 :                 ndr_print_struct(ndr, "out", "clusapi_ResumeNode");
   10053           0 :                 ndr->depth++;
   10054           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   10055           0 :                 ndr->depth++;
   10056           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   10057           0 :                 ndr->depth--;
   10058           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   10059           0 :                 ndr->depth--;
   10060             :         }
   10061           0 :         ndr->depth--;
   10062             : }
   10063             : 
   10064           0 : static enum ndr_err_code ndr_push_clusapi_EvictNode(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_EvictNode *r)
   10065             : {
   10066           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   10067           0 :         if (flags & NDR_IN) {
   10068           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   10069             :         }
   10070           0 :         if (flags & NDR_OUT) {
   10071           0 :                 if (r->out.rpc_status == NULL) {
   10072           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   10073             :                 }
   10074           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   10075           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   10076             :         }
   10077           0 :         return NDR_ERR_SUCCESS;
   10078             : }
   10079             : 
   10080           0 : static enum ndr_err_code ndr_pull_clusapi_EvictNode(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_EvictNode *r)
   10081             : {
   10082           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   10083           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   10084           0 :         if (flags & NDR_IN) {
   10085           0 :                 NDR_ZERO_STRUCT(r->out);
   10086             : 
   10087           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   10088           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   10089           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   10090             :         }
   10091           0 :         if (flags & NDR_OUT) {
   10092             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   10093             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   10094           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   10095           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   10096             :                 }
   10097           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   10098           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   10099           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   10100           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   10101           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   10102             :         }
   10103           0 :         return NDR_ERR_SUCCESS;
   10104             : }
   10105             : 
   10106           0 : _PUBLIC_ void ndr_print_clusapi_EvictNode(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_EvictNode *r)
   10107             : {
   10108           0 :         ndr_print_struct(ndr, name, "clusapi_EvictNode");
   10109           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   10110           0 :         ndr->depth++;
   10111           0 :         if (flags & NDR_SET_VALUES) {
   10112           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   10113             :         }
   10114           0 :         if (flags & NDR_IN) {
   10115           0 :                 ndr_print_struct(ndr, "in", "clusapi_EvictNode");
   10116           0 :                 ndr->depth++;
   10117           0 :                 ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
   10118           0 :                 ndr->depth--;
   10119             :         }
   10120           0 :         if (flags & NDR_OUT) {
   10121           0 :                 ndr_print_struct(ndr, "out", "clusapi_EvictNode");
   10122           0 :                 ndr->depth++;
   10123           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   10124           0 :                 ndr->depth++;
   10125           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   10126           0 :                 ndr->depth--;
   10127           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   10128           0 :                 ndr->depth--;
   10129             :         }
   10130           0 :         ndr->depth--;
   10131             : }
   10132             : 
   10133           0 : static enum ndr_err_code ndr_push_clusapi_NodeResourceControl(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_NodeResourceControl *r)
   10134             : {
   10135           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   10136           0 :         if (flags & NDR_IN) {
   10137           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
   10138           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   10139           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwControlCode));
   10140           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
   10141           0 :                 if (r->in.lpInBuffer) {
   10142           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
   10143           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
   10144             :                 }
   10145           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
   10146           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   10147             :         }
   10148           0 :         if (flags & NDR_OUT) {
   10149           0 :                 if (r->out.lpOutBuffer == NULL) {
   10150           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   10151             :                 }
   10152           0 :                 if (r->out.lpBytesReturned == NULL) {
   10153           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   10154             :                 }
   10155           0 :                 if (r->out.lpcbRequired == NULL) {
   10156           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   10157             :                 }
   10158           0 :                 if (r->out.rpc_status == NULL) {
   10159           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   10160             :                 }
   10161           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   10162           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   10163           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   10164           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
   10165           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   10166           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
   10167           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   10168           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   10169             :         }
   10170           0 :         return NDR_ERR_SUCCESS;
   10171             : }
   10172             : 
   10173           0 : static enum ndr_err_code ndr_pull_clusapi_NodeResourceControl(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_NodeResourceControl *r)
   10174             : {
   10175           0 :         uint32_t _ptr_lpInBuffer;
   10176           0 :         uint32_t size_lpInBuffer_1 = 0;
   10177           0 :         uint32_t size_lpOutBuffer_1 = 0;
   10178           0 :         uint32_t length_lpOutBuffer_1 = 0;
   10179           0 :         TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
   10180           0 :         TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
   10181           0 :         TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
   10182           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   10183           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   10184           0 :         if (flags & NDR_IN) {
   10185           0 :                 NDR_ZERO_STRUCT(r->out);
   10186             : 
   10187           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
   10188           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   10189           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwControlCode));
   10190           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
   10191           0 :                 if (_ptr_lpInBuffer) {
   10192           0 :                         NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
   10193             :                 } else {
   10194           0 :                         r->in.lpInBuffer = NULL;
   10195             :                 }
   10196           0 :                 if (r->in.lpInBuffer) {
   10197           0 :                         _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
   10198           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
   10199           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
   10200           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
   10201           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
   10202           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
   10203           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
   10204             :                 }
   10205           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
   10206           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
   10207           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
   10208           0 :                 memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
   10209           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   10210           0 :                 NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
   10211           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   10212           0 :                 NDR_ZERO_STRUCTP(r->out.lpcbRequired);
   10213           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   10214           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   10215           0 :                 if (r->in.lpInBuffer) {
   10216           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
   10217             :                 }
   10218             :         }
   10219           0 :         if (flags & NDR_OUT) {
   10220             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   10221             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   10222           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
   10223           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
   10224           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
   10225           0 :                 NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
   10226           0 :                 if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
   10227           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpOutBuffer_1, length_lpOutBuffer_1);
   10228             :                 }
   10229           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   10230           0 :                         NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
   10231             :                 }
   10232           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
   10233           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   10234           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   10235             :                 }
   10236           0 :                 _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
   10237           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
   10238           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
   10239           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
   10240           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   10241           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   10242             :                 }
   10243           0 :                 _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
   10244           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
   10245           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
   10246           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
   10247           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   10248           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   10249             :                 }
   10250           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   10251           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   10252           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   10253           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   10254           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   10255           0 :                 if (r->out.lpOutBuffer) {
   10256           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
   10257             :                 }
   10258           0 :                 if (r->out.lpOutBuffer) {
   10259           0 :                         NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
   10260             :                 }
   10261             :         }
   10262           0 :         return NDR_ERR_SUCCESS;
   10263             : }
   10264             : 
   10265           0 : _PUBLIC_ void ndr_print_clusapi_NodeResourceControl(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_NodeResourceControl *r)
   10266             : {
   10267           0 :         ndr_print_struct(ndr, name, "clusapi_NodeResourceControl");
   10268           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   10269           0 :         ndr->depth++;
   10270           0 :         if (flags & NDR_SET_VALUES) {
   10271           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   10272             :         }
   10273           0 :         if (flags & NDR_IN) {
   10274           0 :                 ndr_print_struct(ndr, "in", "clusapi_NodeResourceControl");
   10275           0 :                 ndr->depth++;
   10276           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
   10277           0 :                 ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
   10278           0 :                 ndr_print_uint32(ndr, "dwControlCode", r->in.dwControlCode);
   10279           0 :                 ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
   10280           0 :                 ndr->depth++;
   10281           0 :                 if (r->in.lpInBuffer) {
   10282           0 :                         ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
   10283             :                 }
   10284           0 :                 ndr->depth--;
   10285           0 :                 ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
   10286           0 :                 ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
   10287           0 :                 ndr->depth--;
   10288             :         }
   10289           0 :         if (flags & NDR_OUT) {
   10290           0 :                 ndr_print_struct(ndr, "out", "clusapi_NodeResourceControl");
   10291           0 :                 ndr->depth++;
   10292           0 :                 ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
   10293           0 :                 ndr->depth++;
   10294           0 :                 ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
   10295           0 :                 ndr->depth--;
   10296           0 :                 ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
   10297           0 :                 ndr->depth++;
   10298           0 :                 ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
   10299           0 :                 ndr->depth--;
   10300           0 :                 ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
   10301           0 :                 ndr->depth++;
   10302           0 :                 ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
   10303           0 :                 ndr->depth--;
   10304           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   10305           0 :                 ndr->depth++;
   10306           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   10307           0 :                 ndr->depth--;
   10308           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   10309           0 :                 ndr->depth--;
   10310             :         }
   10311           0 :         ndr->depth--;
   10312             : }
   10313             : 
   10314           0 : static enum ndr_err_code ndr_push_clusapi_ResourceControl(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_ResourceControl *r)
   10315             : {
   10316           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   10317           0 :         if (flags & NDR_IN) {
   10318           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
   10319           0 :                 NDR_CHECK(ndr_push_clusapi_ResourceControlCode(ndr, NDR_SCALARS, r->in.dwControlCode));
   10320           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
   10321           0 :                 if (r->in.lpInBuffer) {
   10322           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
   10323           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
   10324             :                 }
   10325           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
   10326           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   10327             :         }
   10328           0 :         if (flags & NDR_OUT) {
   10329           0 :                 if (r->out.lpOutBuffer == NULL) {
   10330           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   10331             :                 }
   10332           0 :                 if (r->out.lpBytesReturned == NULL) {
   10333           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   10334             :                 }
   10335           0 :                 if (r->out.lpcbRequired == NULL) {
   10336           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   10337             :                 }
   10338           0 :                 if (r->out.rpc_status == NULL) {
   10339           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   10340             :                 }
   10341           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   10342           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   10343           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   10344           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
   10345           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   10346           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
   10347           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   10348           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   10349             :         }
   10350           0 :         return NDR_ERR_SUCCESS;
   10351             : }
   10352             : 
   10353           0 : static enum ndr_err_code ndr_pull_clusapi_ResourceControl(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_ResourceControl *r)
   10354             : {
   10355           0 :         uint32_t _ptr_lpInBuffer;
   10356           0 :         uint32_t size_lpInBuffer_1 = 0;
   10357           0 :         uint32_t size_lpOutBuffer_1 = 0;
   10358           0 :         uint32_t length_lpOutBuffer_1 = 0;
   10359           0 :         TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
   10360           0 :         TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
   10361           0 :         TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
   10362           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   10363           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   10364           0 :         if (flags & NDR_IN) {
   10365           0 :                 NDR_ZERO_STRUCT(r->out);
   10366             : 
   10367           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
   10368           0 :                 NDR_CHECK(ndr_pull_clusapi_ResourceControlCode(ndr, NDR_SCALARS, &r->in.dwControlCode));
   10369           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
   10370           0 :                 if (_ptr_lpInBuffer) {
   10371           0 :                         NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
   10372             :                 } else {
   10373           0 :                         r->in.lpInBuffer = NULL;
   10374             :                 }
   10375           0 :                 if (r->in.lpInBuffer) {
   10376           0 :                         _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
   10377           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
   10378           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
   10379           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
   10380           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
   10381           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
   10382           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
   10383             :                 }
   10384           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
   10385           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
   10386           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
   10387           0 :                 memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
   10388           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   10389           0 :                 NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
   10390           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   10391           0 :                 NDR_ZERO_STRUCTP(r->out.lpcbRequired);
   10392           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   10393           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   10394           0 :                 if (r->in.lpInBuffer) {
   10395           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
   10396             :                 }
   10397             :         }
   10398           0 :         if (flags & NDR_OUT) {
   10399             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   10400             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   10401           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
   10402           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
   10403           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
   10404           0 :                 NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
   10405           0 :                 if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
   10406           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpOutBuffer_1, length_lpOutBuffer_1);
   10407             :                 }
   10408           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   10409           0 :                         NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
   10410             :                 }
   10411           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
   10412           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   10413           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   10414             :                 }
   10415           0 :                 _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
   10416           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
   10417           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
   10418           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
   10419           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   10420           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   10421             :                 }
   10422           0 :                 _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
   10423           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
   10424           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
   10425           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
   10426           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   10427           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   10428             :                 }
   10429           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   10430           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   10431           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   10432           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   10433           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   10434           0 :                 if (r->out.lpOutBuffer) {
   10435           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
   10436             :                 }
   10437           0 :                 if (r->out.lpOutBuffer) {
   10438           0 :                         NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
   10439             :                 }
   10440             :         }
   10441           0 :         return NDR_ERR_SUCCESS;
   10442             : }
   10443             : 
   10444           0 : _PUBLIC_ void ndr_print_clusapi_ResourceControl(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_ResourceControl *r)
   10445             : {
   10446           0 :         ndr_print_struct(ndr, name, "clusapi_ResourceControl");
   10447           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   10448           0 :         ndr->depth++;
   10449           0 :         if (flags & NDR_SET_VALUES) {
   10450           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   10451             :         }
   10452           0 :         if (flags & NDR_IN) {
   10453           0 :                 ndr_print_struct(ndr, "in", "clusapi_ResourceControl");
   10454           0 :                 ndr->depth++;
   10455           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
   10456           0 :                 ndr_print_clusapi_ResourceControlCode(ndr, "dwControlCode", r->in.dwControlCode);
   10457           0 :                 ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
   10458           0 :                 ndr->depth++;
   10459           0 :                 if (r->in.lpInBuffer) {
   10460           0 :                         ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
   10461             :                 }
   10462           0 :                 ndr->depth--;
   10463           0 :                 ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
   10464           0 :                 ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
   10465           0 :                 ndr->depth--;
   10466             :         }
   10467           0 :         if (flags & NDR_OUT) {
   10468           0 :                 ndr_print_struct(ndr, "out", "clusapi_ResourceControl");
   10469           0 :                 ndr->depth++;
   10470           0 :                 ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
   10471           0 :                 ndr->depth++;
   10472           0 :                 ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
   10473           0 :                 ndr->depth--;
   10474           0 :                 ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
   10475           0 :                 ndr->depth++;
   10476           0 :                 ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
   10477           0 :                 ndr->depth--;
   10478           0 :                 ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
   10479           0 :                 ndr->depth++;
   10480           0 :                 ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
   10481           0 :                 ndr->depth--;
   10482           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   10483           0 :                 ndr->depth++;
   10484           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   10485           0 :                 ndr->depth--;
   10486           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   10487           0 :                 ndr->depth--;
   10488             :         }
   10489           0 :         ndr->depth--;
   10490             : }
   10491             : 
   10492           0 : static enum ndr_err_code ndr_push_clusapi_NodeResourceTypeControl(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_NodeResourceTypeControl *r)
   10493             : {
   10494           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   10495           0 :         if (flags & NDR_IN) {
   10496           0 :                 if (r->in.lpszResourceTypeName == NULL) {
   10497           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   10498             :                 }
   10499           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
   10500           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceTypeName, CH_UTF16)));
   10501           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   10502           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceTypeName, CH_UTF16)));
   10503           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszResourceTypeName, ndr_charset_length(r->in.lpszResourceTypeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   10504           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   10505           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwControlCode));
   10506           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
   10507           0 :                 if (r->in.lpInBuffer) {
   10508           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
   10509           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
   10510             :                 }
   10511           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
   10512           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   10513             :         }
   10514           0 :         if (flags & NDR_OUT) {
   10515           0 :                 if (r->out.lpOutBuffer == NULL) {
   10516           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   10517             :                 }
   10518           0 :                 if (r->out.lpBytesReturned == NULL) {
   10519           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   10520             :                 }
   10521           0 :                 if (r->out.lpcbRequired == NULL) {
   10522           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   10523             :                 }
   10524           0 :                 if (r->out.rpc_status == NULL) {
   10525           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   10526             :                 }
   10527           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   10528           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   10529           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   10530           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
   10531           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   10532           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
   10533           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   10534           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   10535             :         }
   10536           0 :         return NDR_ERR_SUCCESS;
   10537             : }
   10538             : 
   10539           0 : static enum ndr_err_code ndr_pull_clusapi_NodeResourceTypeControl(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_NodeResourceTypeControl *r)
   10540             : {
   10541           0 :         uint32_t size_lpszResourceTypeName_1 = 0;
   10542           0 :         uint32_t length_lpszResourceTypeName_1 = 0;
   10543           0 :         uint32_t _ptr_lpInBuffer;
   10544           0 :         uint32_t size_lpInBuffer_1 = 0;
   10545           0 :         uint32_t size_lpOutBuffer_1 = 0;
   10546           0 :         uint32_t length_lpOutBuffer_1 = 0;
   10547           0 :         TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
   10548           0 :         TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
   10549           0 :         TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
   10550           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   10551           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   10552           0 :         if (flags & NDR_IN) {
   10553           0 :                 NDR_ZERO_STRUCT(r->out);
   10554             : 
   10555           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
   10556           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszResourceTypeName));
   10557           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszResourceTypeName));
   10558           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszResourceTypeName, &size_lpszResourceTypeName_1));
   10559           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszResourceTypeName, &length_lpszResourceTypeName_1));
   10560           0 :                 if (length_lpszResourceTypeName_1 > size_lpszResourceTypeName_1) {
   10561           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszResourceTypeName_1, length_lpszResourceTypeName_1);
   10562             :                 }
   10563           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszResourceTypeName_1, sizeof(uint16_t)));
   10564           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszResourceTypeName, length_lpszResourceTypeName_1, sizeof(uint16_t), CH_UTF16));
   10565           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   10566           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwControlCode));
   10567           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
   10568           0 :                 if (_ptr_lpInBuffer) {
   10569           0 :                         NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
   10570             :                 } else {
   10571           0 :                         r->in.lpInBuffer = NULL;
   10572             :                 }
   10573           0 :                 if (r->in.lpInBuffer) {
   10574           0 :                         _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
   10575           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
   10576           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
   10577           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
   10578           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
   10579           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
   10580           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
   10581             :                 }
   10582           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
   10583           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
   10584           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
   10585           0 :                 memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
   10586           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   10587           0 :                 NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
   10588           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   10589           0 :                 NDR_ZERO_STRUCTP(r->out.lpcbRequired);
   10590           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   10591           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   10592           0 :                 if (r->in.lpInBuffer) {
   10593           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
   10594             :                 }
   10595             :         }
   10596           0 :         if (flags & NDR_OUT) {
   10597             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   10598             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   10599           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
   10600           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
   10601           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
   10602           0 :                 NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
   10603           0 :                 if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
   10604           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpOutBuffer_1, length_lpOutBuffer_1);
   10605             :                 }
   10606           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   10607           0 :                         NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
   10608             :                 }
   10609           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
   10610           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   10611           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   10612             :                 }
   10613           0 :                 _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
   10614           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
   10615           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
   10616           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
   10617           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   10618           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   10619             :                 }
   10620           0 :                 _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
   10621           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
   10622           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
   10623           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
   10624           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   10625           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   10626             :                 }
   10627           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   10628           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   10629           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   10630           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   10631           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   10632           0 :                 if (r->out.lpOutBuffer) {
   10633           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
   10634             :                 }
   10635           0 :                 if (r->out.lpOutBuffer) {
   10636           0 :                         NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
   10637             :                 }
   10638             :         }
   10639           0 :         return NDR_ERR_SUCCESS;
   10640             : }
   10641             : 
   10642           0 : _PUBLIC_ void ndr_print_clusapi_NodeResourceTypeControl(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_NodeResourceTypeControl *r)
   10643             : {
   10644           0 :         ndr_print_struct(ndr, name, "clusapi_NodeResourceTypeControl");
   10645           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   10646           0 :         ndr->depth++;
   10647           0 :         if (flags & NDR_SET_VALUES) {
   10648           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   10649             :         }
   10650           0 :         if (flags & NDR_IN) {
   10651           0 :                 ndr_print_struct(ndr, "in", "clusapi_NodeResourceTypeControl");
   10652           0 :                 ndr->depth++;
   10653           0 :                 ndr_print_policy_handle(ndr, "hCluster", &r->in.hCluster);
   10654           0 :                 ndr_print_ptr(ndr, "lpszResourceTypeName", r->in.lpszResourceTypeName);
   10655           0 :                 ndr->depth++;
   10656           0 :                 ndr_print_string(ndr, "lpszResourceTypeName", r->in.lpszResourceTypeName);
   10657           0 :                 ndr->depth--;
   10658           0 :                 ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
   10659           0 :                 ndr_print_uint32(ndr, "dwControlCode", r->in.dwControlCode);
   10660           0 :                 ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
   10661           0 :                 ndr->depth++;
   10662           0 :                 if (r->in.lpInBuffer) {
   10663           0 :                         ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
   10664             :                 }
   10665           0 :                 ndr->depth--;
   10666           0 :                 ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
   10667           0 :                 ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
   10668           0 :                 ndr->depth--;
   10669             :         }
   10670           0 :         if (flags & NDR_OUT) {
   10671           0 :                 ndr_print_struct(ndr, "out", "clusapi_NodeResourceTypeControl");
   10672           0 :                 ndr->depth++;
   10673           0 :                 ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
   10674           0 :                 ndr->depth++;
   10675           0 :                 ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
   10676           0 :                 ndr->depth--;
   10677           0 :                 ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
   10678           0 :                 ndr->depth++;
   10679           0 :                 ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
   10680           0 :                 ndr->depth--;
   10681           0 :                 ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
   10682           0 :                 ndr->depth++;
   10683           0 :                 ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
   10684           0 :                 ndr->depth--;
   10685           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   10686           0 :                 ndr->depth++;
   10687           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   10688           0 :                 ndr->depth--;
   10689           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   10690           0 :                 ndr->depth--;
   10691             :         }
   10692           0 :         ndr->depth--;
   10693             : }
   10694             : 
   10695           0 : static enum ndr_err_code ndr_push_clusapi_ResourceTypeControl(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_ResourceTypeControl *r)
   10696             : {
   10697           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   10698           0 :         if (flags & NDR_IN) {
   10699           0 :                 if (r->in.lpszResourceTypeName == NULL) {
   10700           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   10701             :                 }
   10702           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
   10703           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceTypeName, CH_UTF16)));
   10704           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   10705           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceTypeName, CH_UTF16)));
   10706           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszResourceTypeName, ndr_charset_length(r->in.lpszResourceTypeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   10707           0 :                 NDR_CHECK(ndr_push_clusapi_ResourceTypeControlCode(ndr, NDR_SCALARS, r->in.dwControlCode));
   10708           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
   10709           0 :                 if (r->in.lpInBuffer) {
   10710           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
   10711           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
   10712             :                 }
   10713           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
   10714           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   10715             :         }
   10716           0 :         if (flags & NDR_OUT) {
   10717           0 :                 if (r->out.lpOutBuffer == NULL) {
   10718           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   10719             :                 }
   10720           0 :                 if (r->out.lpBytesReturned == NULL) {
   10721           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   10722             :                 }
   10723           0 :                 if (r->out.lpcbRequired == NULL) {
   10724           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   10725             :                 }
   10726           0 :                 if (r->out.rpc_status == NULL) {
   10727           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   10728             :                 }
   10729           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   10730           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   10731           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   10732           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
   10733           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   10734           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
   10735           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   10736           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   10737             :         }
   10738           0 :         return NDR_ERR_SUCCESS;
   10739             : }
   10740             : 
   10741           0 : static enum ndr_err_code ndr_pull_clusapi_ResourceTypeControl(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_ResourceTypeControl *r)
   10742             : {
   10743           0 :         uint32_t size_lpszResourceTypeName_1 = 0;
   10744           0 :         uint32_t length_lpszResourceTypeName_1 = 0;
   10745           0 :         uint32_t _ptr_lpInBuffer;
   10746           0 :         uint32_t size_lpInBuffer_1 = 0;
   10747           0 :         uint32_t size_lpOutBuffer_1 = 0;
   10748           0 :         uint32_t length_lpOutBuffer_1 = 0;
   10749           0 :         TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
   10750           0 :         TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
   10751           0 :         TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
   10752           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   10753           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   10754           0 :         if (flags & NDR_IN) {
   10755           0 :                 NDR_ZERO_STRUCT(r->out);
   10756             : 
   10757           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
   10758           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszResourceTypeName));
   10759           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszResourceTypeName));
   10760           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszResourceTypeName, &size_lpszResourceTypeName_1));
   10761           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszResourceTypeName, &length_lpszResourceTypeName_1));
   10762           0 :                 if (length_lpszResourceTypeName_1 > size_lpszResourceTypeName_1) {
   10763           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszResourceTypeName_1, length_lpszResourceTypeName_1);
   10764             :                 }
   10765           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszResourceTypeName_1, sizeof(uint16_t)));
   10766           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszResourceTypeName, length_lpszResourceTypeName_1, sizeof(uint16_t), CH_UTF16));
   10767           0 :                 NDR_CHECK(ndr_pull_clusapi_ResourceTypeControlCode(ndr, NDR_SCALARS, &r->in.dwControlCode));
   10768           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
   10769           0 :                 if (_ptr_lpInBuffer) {
   10770           0 :                         NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
   10771             :                 } else {
   10772           0 :                         r->in.lpInBuffer = NULL;
   10773             :                 }
   10774           0 :                 if (r->in.lpInBuffer) {
   10775           0 :                         _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
   10776           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
   10777           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
   10778           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
   10779           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
   10780           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
   10781           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
   10782             :                 }
   10783           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
   10784           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
   10785           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
   10786           0 :                 memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
   10787           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   10788           0 :                 NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
   10789           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   10790           0 :                 NDR_ZERO_STRUCTP(r->out.lpcbRequired);
   10791           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   10792           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   10793           0 :                 if (r->in.lpInBuffer) {
   10794           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
   10795             :                 }
   10796             :         }
   10797           0 :         if (flags & NDR_OUT) {
   10798             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   10799             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   10800           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
   10801           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
   10802           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
   10803           0 :                 NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
   10804           0 :                 if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
   10805           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpOutBuffer_1, length_lpOutBuffer_1);
   10806             :                 }
   10807           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   10808           0 :                         NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
   10809             :                 }
   10810           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
   10811           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   10812           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   10813             :                 }
   10814           0 :                 _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
   10815           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
   10816           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
   10817           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
   10818           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   10819           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   10820             :                 }
   10821           0 :                 _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
   10822           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
   10823           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
   10824           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
   10825           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   10826           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   10827             :                 }
   10828           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   10829           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   10830           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   10831           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   10832           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   10833           0 :                 if (r->out.lpOutBuffer) {
   10834           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
   10835             :                 }
   10836           0 :                 if (r->out.lpOutBuffer) {
   10837           0 :                         NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
   10838             :                 }
   10839             :         }
   10840           0 :         return NDR_ERR_SUCCESS;
   10841             : }
   10842             : 
   10843           0 : _PUBLIC_ void ndr_print_clusapi_ResourceTypeControl(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_ResourceTypeControl *r)
   10844             : {
   10845           0 :         ndr_print_struct(ndr, name, "clusapi_ResourceTypeControl");
   10846           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   10847           0 :         ndr->depth++;
   10848           0 :         if (flags & NDR_SET_VALUES) {
   10849           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   10850             :         }
   10851           0 :         if (flags & NDR_IN) {
   10852           0 :                 ndr_print_struct(ndr, "in", "clusapi_ResourceTypeControl");
   10853           0 :                 ndr->depth++;
   10854           0 :                 ndr_print_policy_handle(ndr, "hCluster", &r->in.hCluster);
   10855           0 :                 ndr_print_ptr(ndr, "lpszResourceTypeName", r->in.lpszResourceTypeName);
   10856           0 :                 ndr->depth++;
   10857           0 :                 ndr_print_string(ndr, "lpszResourceTypeName", r->in.lpszResourceTypeName);
   10858           0 :                 ndr->depth--;
   10859           0 :                 ndr_print_clusapi_ResourceTypeControlCode(ndr, "dwControlCode", r->in.dwControlCode);
   10860           0 :                 ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
   10861           0 :                 ndr->depth++;
   10862           0 :                 if (r->in.lpInBuffer) {
   10863           0 :                         ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
   10864             :                 }
   10865           0 :                 ndr->depth--;
   10866           0 :                 ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
   10867           0 :                 ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
   10868           0 :                 ndr->depth--;
   10869             :         }
   10870           0 :         if (flags & NDR_OUT) {
   10871           0 :                 ndr_print_struct(ndr, "out", "clusapi_ResourceTypeControl");
   10872           0 :                 ndr->depth++;
   10873           0 :                 ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
   10874           0 :                 ndr->depth++;
   10875           0 :                 ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
   10876           0 :                 ndr->depth--;
   10877           0 :                 ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
   10878           0 :                 ndr->depth++;
   10879           0 :                 ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
   10880           0 :                 ndr->depth--;
   10881           0 :                 ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
   10882           0 :                 ndr->depth++;
   10883           0 :                 ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
   10884           0 :                 ndr->depth--;
   10885           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   10886           0 :                 ndr->depth++;
   10887           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   10888           0 :                 ndr->depth--;
   10889           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   10890           0 :                 ndr->depth--;
   10891             :         }
   10892           0 :         ndr->depth--;
   10893             : }
   10894             : 
   10895           0 : static enum ndr_err_code ndr_push_clusapi_NodeGroupControl(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_NodeGroupControl *r)
   10896             : {
   10897           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   10898           0 :         if (flags & NDR_IN) {
   10899           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
   10900           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   10901           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwControlCode));
   10902           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
   10903           0 :                 if (r->in.lpInBuffer) {
   10904           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
   10905           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
   10906             :                 }
   10907           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
   10908           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   10909             :         }
   10910           0 :         if (flags & NDR_OUT) {
   10911           0 :                 if (r->out.lpOutBuffer == NULL) {
   10912           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   10913             :                 }
   10914           0 :                 if (r->out.lpBytesReturned == NULL) {
   10915           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   10916             :                 }
   10917           0 :                 if (r->out.lpcbRequired == NULL) {
   10918           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   10919             :                 }
   10920           0 :                 if (r->out.rpc_status == NULL) {
   10921           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   10922             :                 }
   10923           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   10924           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   10925           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   10926           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
   10927           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   10928           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
   10929           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   10930           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   10931             :         }
   10932           0 :         return NDR_ERR_SUCCESS;
   10933             : }
   10934             : 
   10935           0 : static enum ndr_err_code ndr_pull_clusapi_NodeGroupControl(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_NodeGroupControl *r)
   10936             : {
   10937           0 :         uint32_t _ptr_lpInBuffer;
   10938           0 :         uint32_t size_lpInBuffer_1 = 0;
   10939           0 :         uint32_t size_lpOutBuffer_1 = 0;
   10940           0 :         uint32_t length_lpOutBuffer_1 = 0;
   10941           0 :         TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
   10942           0 :         TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
   10943           0 :         TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
   10944           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   10945           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   10946           0 :         if (flags & NDR_IN) {
   10947           0 :                 NDR_ZERO_STRUCT(r->out);
   10948             : 
   10949           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
   10950           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   10951           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwControlCode));
   10952           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
   10953           0 :                 if (_ptr_lpInBuffer) {
   10954           0 :                         NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
   10955             :                 } else {
   10956           0 :                         r->in.lpInBuffer = NULL;
   10957             :                 }
   10958           0 :                 if (r->in.lpInBuffer) {
   10959           0 :                         _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
   10960           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
   10961           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
   10962           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
   10963           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
   10964           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
   10965           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
   10966             :                 }
   10967           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
   10968           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
   10969           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
   10970           0 :                 memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
   10971           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   10972           0 :                 NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
   10973           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   10974           0 :                 NDR_ZERO_STRUCTP(r->out.lpcbRequired);
   10975           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   10976           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   10977           0 :                 if (r->in.lpInBuffer) {
   10978           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
   10979             :                 }
   10980             :         }
   10981           0 :         if (flags & NDR_OUT) {
   10982             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   10983             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   10984           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
   10985           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
   10986           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
   10987           0 :                 NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
   10988           0 :                 if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
   10989           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpOutBuffer_1, length_lpOutBuffer_1);
   10990             :                 }
   10991           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   10992           0 :                         NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
   10993             :                 }
   10994           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
   10995           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   10996           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   10997             :                 }
   10998           0 :                 _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
   10999           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
   11000           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
   11001           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
   11002           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   11003           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   11004             :                 }
   11005           0 :                 _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
   11006           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
   11007           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
   11008           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
   11009           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   11010           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   11011             :                 }
   11012           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   11013           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   11014           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   11015           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   11016           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   11017           0 :                 if (r->out.lpOutBuffer) {
   11018           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
   11019             :                 }
   11020           0 :                 if (r->out.lpOutBuffer) {
   11021           0 :                         NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
   11022             :                 }
   11023             :         }
   11024           0 :         return NDR_ERR_SUCCESS;
   11025             : }
   11026             : 
   11027           0 : _PUBLIC_ void ndr_print_clusapi_NodeGroupControl(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_NodeGroupControl *r)
   11028             : {
   11029           0 :         ndr_print_struct(ndr, name, "clusapi_NodeGroupControl");
   11030           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   11031           0 :         ndr->depth++;
   11032           0 :         if (flags & NDR_SET_VALUES) {
   11033           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   11034             :         }
   11035           0 :         if (flags & NDR_IN) {
   11036           0 :                 ndr_print_struct(ndr, "in", "clusapi_NodeGroupControl");
   11037           0 :                 ndr->depth++;
   11038           0 :                 ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
   11039           0 :                 ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
   11040           0 :                 ndr_print_uint32(ndr, "dwControlCode", r->in.dwControlCode);
   11041           0 :                 ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
   11042           0 :                 ndr->depth++;
   11043           0 :                 if (r->in.lpInBuffer) {
   11044           0 :                         ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
   11045             :                 }
   11046           0 :                 ndr->depth--;
   11047           0 :                 ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
   11048           0 :                 ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
   11049           0 :                 ndr->depth--;
   11050             :         }
   11051           0 :         if (flags & NDR_OUT) {
   11052           0 :                 ndr_print_struct(ndr, "out", "clusapi_NodeGroupControl");
   11053           0 :                 ndr->depth++;
   11054           0 :                 ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
   11055           0 :                 ndr->depth++;
   11056           0 :                 ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
   11057           0 :                 ndr->depth--;
   11058           0 :                 ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
   11059           0 :                 ndr->depth++;
   11060           0 :                 ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
   11061           0 :                 ndr->depth--;
   11062           0 :                 ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
   11063           0 :                 ndr->depth++;
   11064           0 :                 ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
   11065           0 :                 ndr->depth--;
   11066           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   11067           0 :                 ndr->depth++;
   11068           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   11069           0 :                 ndr->depth--;
   11070           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   11071           0 :                 ndr->depth--;
   11072             :         }
   11073           0 :         ndr->depth--;
   11074             : }
   11075             : 
   11076           0 : static enum ndr_err_code ndr_push_clusapi_GroupControl(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_GroupControl *r)
   11077             : {
   11078           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   11079           0 :         if (flags & NDR_IN) {
   11080           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
   11081           0 :                 NDR_CHECK(ndr_push_clusapi_GroupControlCode(ndr, NDR_SCALARS, r->in.dwControlCode));
   11082           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
   11083           0 :                 if (r->in.lpInBuffer) {
   11084           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
   11085           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
   11086             :                 }
   11087           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
   11088           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   11089             :         }
   11090           0 :         if (flags & NDR_OUT) {
   11091           0 :                 if (r->out.lpOutBuffer == NULL) {
   11092           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   11093             :                 }
   11094           0 :                 if (r->out.lpBytesReturned == NULL) {
   11095           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   11096             :                 }
   11097           0 :                 if (r->out.lpcbRequired == NULL) {
   11098           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   11099             :                 }
   11100           0 :                 if (r->out.rpc_status == NULL) {
   11101           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   11102             :                 }
   11103           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   11104           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   11105           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   11106           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
   11107           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   11108           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
   11109           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   11110           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   11111             :         }
   11112           0 :         return NDR_ERR_SUCCESS;
   11113             : }
   11114             : 
   11115           0 : static enum ndr_err_code ndr_pull_clusapi_GroupControl(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_GroupControl *r)
   11116             : {
   11117           0 :         uint32_t _ptr_lpInBuffer;
   11118           0 :         uint32_t size_lpInBuffer_1 = 0;
   11119           0 :         uint32_t size_lpOutBuffer_1 = 0;
   11120           0 :         uint32_t length_lpOutBuffer_1 = 0;
   11121           0 :         TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
   11122           0 :         TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
   11123           0 :         TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
   11124           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   11125           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   11126           0 :         if (flags & NDR_IN) {
   11127           0 :                 NDR_ZERO_STRUCT(r->out);
   11128             : 
   11129           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
   11130           0 :                 NDR_CHECK(ndr_pull_clusapi_GroupControlCode(ndr, NDR_SCALARS, &r->in.dwControlCode));
   11131           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
   11132           0 :                 if (_ptr_lpInBuffer) {
   11133           0 :                         NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
   11134             :                 } else {
   11135           0 :                         r->in.lpInBuffer = NULL;
   11136             :                 }
   11137           0 :                 if (r->in.lpInBuffer) {
   11138           0 :                         _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
   11139           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
   11140           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
   11141           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
   11142           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
   11143           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
   11144           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
   11145             :                 }
   11146           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
   11147           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
   11148           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
   11149           0 :                 memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
   11150           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   11151           0 :                 NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
   11152           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   11153           0 :                 NDR_ZERO_STRUCTP(r->out.lpcbRequired);
   11154           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   11155           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   11156           0 :                 if (r->in.lpInBuffer) {
   11157           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
   11158             :                 }
   11159             :         }
   11160           0 :         if (flags & NDR_OUT) {
   11161             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   11162             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   11163           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
   11164           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
   11165           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
   11166           0 :                 NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
   11167           0 :                 if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
   11168           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpOutBuffer_1, length_lpOutBuffer_1);
   11169             :                 }
   11170           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   11171           0 :                         NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
   11172             :                 }
   11173           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
   11174           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   11175           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   11176             :                 }
   11177           0 :                 _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
   11178           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
   11179           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
   11180           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
   11181           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   11182           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   11183             :                 }
   11184           0 :                 _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
   11185           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
   11186           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
   11187           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
   11188           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   11189           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   11190             :                 }
   11191           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   11192           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   11193           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   11194           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   11195           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   11196           0 :                 if (r->out.lpOutBuffer) {
   11197           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
   11198             :                 }
   11199           0 :                 if (r->out.lpOutBuffer) {
   11200           0 :                         NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
   11201             :                 }
   11202             :         }
   11203           0 :         return NDR_ERR_SUCCESS;
   11204             : }
   11205             : 
   11206           0 : _PUBLIC_ void ndr_print_clusapi_GroupControl(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_GroupControl *r)
   11207             : {
   11208           0 :         ndr_print_struct(ndr, name, "clusapi_GroupControl");
   11209           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   11210           0 :         ndr->depth++;
   11211           0 :         if (flags & NDR_SET_VALUES) {
   11212           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   11213             :         }
   11214           0 :         if (flags & NDR_IN) {
   11215           0 :                 ndr_print_struct(ndr, "in", "clusapi_GroupControl");
   11216           0 :                 ndr->depth++;
   11217           0 :                 ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
   11218           0 :                 ndr_print_clusapi_GroupControlCode(ndr, "dwControlCode", r->in.dwControlCode);
   11219           0 :                 ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
   11220           0 :                 ndr->depth++;
   11221           0 :                 if (r->in.lpInBuffer) {
   11222           0 :                         ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
   11223             :                 }
   11224           0 :                 ndr->depth--;
   11225           0 :                 ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
   11226           0 :                 ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
   11227           0 :                 ndr->depth--;
   11228             :         }
   11229           0 :         if (flags & NDR_OUT) {
   11230           0 :                 ndr_print_struct(ndr, "out", "clusapi_GroupControl");
   11231           0 :                 ndr->depth++;
   11232           0 :                 ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
   11233           0 :                 ndr->depth++;
   11234           0 :                 ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
   11235           0 :                 ndr->depth--;
   11236           0 :                 ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
   11237           0 :                 ndr->depth++;
   11238           0 :                 ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
   11239           0 :                 ndr->depth--;
   11240           0 :                 ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
   11241           0 :                 ndr->depth++;
   11242           0 :                 ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
   11243           0 :                 ndr->depth--;
   11244           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   11245           0 :                 ndr->depth++;
   11246           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   11247           0 :                 ndr->depth--;
   11248           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   11249           0 :                 ndr->depth--;
   11250             :         }
   11251           0 :         ndr->depth--;
   11252             : }
   11253             : 
   11254           0 : static enum ndr_err_code ndr_push_clusapi_NodeNodeControl(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_NodeNodeControl *r)
   11255             : {
   11256           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   11257           0 :         if (flags & NDR_IN) {
   11258           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   11259           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hHostNode));
   11260           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwControlCode));
   11261           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
   11262           0 :                 if (r->in.lpInBuffer) {
   11263           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
   11264           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
   11265             :                 }
   11266           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
   11267           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   11268             :         }
   11269           0 :         if (flags & NDR_OUT) {
   11270           0 :                 if (r->out.lpOutBuffer == NULL) {
   11271           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   11272             :                 }
   11273           0 :                 if (r->out.lpBytesReturned == NULL) {
   11274           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   11275             :                 }
   11276           0 :                 if (r->out.lpcbRequired == NULL) {
   11277           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   11278             :                 }
   11279           0 :                 if (r->out.rpc_status == NULL) {
   11280           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   11281             :                 }
   11282           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   11283           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   11284           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   11285           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
   11286           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   11287           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
   11288           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   11289           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   11290             :         }
   11291           0 :         return NDR_ERR_SUCCESS;
   11292             : }
   11293             : 
   11294           0 : static enum ndr_err_code ndr_pull_clusapi_NodeNodeControl(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_NodeNodeControl *r)
   11295             : {
   11296           0 :         uint32_t _ptr_lpInBuffer;
   11297           0 :         uint32_t size_lpInBuffer_1 = 0;
   11298           0 :         uint32_t size_lpOutBuffer_1 = 0;
   11299           0 :         uint32_t length_lpOutBuffer_1 = 0;
   11300           0 :         TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
   11301           0 :         TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
   11302           0 :         TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
   11303           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   11304           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   11305           0 :         if (flags & NDR_IN) {
   11306           0 :                 NDR_ZERO_STRUCT(r->out);
   11307             : 
   11308           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   11309           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hHostNode));
   11310           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwControlCode));
   11311           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
   11312           0 :                 if (_ptr_lpInBuffer) {
   11313           0 :                         NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
   11314             :                 } else {
   11315           0 :                         r->in.lpInBuffer = NULL;
   11316             :                 }
   11317           0 :                 if (r->in.lpInBuffer) {
   11318           0 :                         _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
   11319           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
   11320           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
   11321           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
   11322           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
   11323           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
   11324           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
   11325             :                 }
   11326           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
   11327           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
   11328           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
   11329           0 :                 memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
   11330           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   11331           0 :                 NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
   11332           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   11333           0 :                 NDR_ZERO_STRUCTP(r->out.lpcbRequired);
   11334           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   11335           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   11336           0 :                 if (r->in.lpInBuffer) {
   11337           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
   11338             :                 }
   11339             :         }
   11340           0 :         if (flags & NDR_OUT) {
   11341             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   11342             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   11343           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
   11344           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
   11345           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
   11346           0 :                 NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
   11347           0 :                 if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
   11348           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpOutBuffer_1, length_lpOutBuffer_1);
   11349             :                 }
   11350           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   11351           0 :                         NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
   11352             :                 }
   11353           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
   11354           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   11355           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   11356             :                 }
   11357           0 :                 _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
   11358           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
   11359           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
   11360           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
   11361           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   11362           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   11363             :                 }
   11364           0 :                 _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
   11365           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
   11366           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
   11367           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
   11368           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   11369           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   11370             :                 }
   11371           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   11372           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   11373           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   11374           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   11375           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   11376           0 :                 if (r->out.lpOutBuffer) {
   11377           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
   11378             :                 }
   11379           0 :                 if (r->out.lpOutBuffer) {
   11380           0 :                         NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
   11381             :                 }
   11382             :         }
   11383           0 :         return NDR_ERR_SUCCESS;
   11384             : }
   11385             : 
   11386           0 : _PUBLIC_ void ndr_print_clusapi_NodeNodeControl(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_NodeNodeControl *r)
   11387             : {
   11388           0 :         ndr_print_struct(ndr, name, "clusapi_NodeNodeControl");
   11389           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   11390           0 :         ndr->depth++;
   11391           0 :         if (flags & NDR_SET_VALUES) {
   11392           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   11393             :         }
   11394           0 :         if (flags & NDR_IN) {
   11395           0 :                 ndr_print_struct(ndr, "in", "clusapi_NodeNodeControl");
   11396           0 :                 ndr->depth++;
   11397           0 :                 ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
   11398           0 :                 ndr_print_policy_handle(ndr, "hHostNode", &r->in.hHostNode);
   11399           0 :                 ndr_print_uint32(ndr, "dwControlCode", r->in.dwControlCode);
   11400           0 :                 ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
   11401           0 :                 ndr->depth++;
   11402           0 :                 if (r->in.lpInBuffer) {
   11403           0 :                         ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
   11404             :                 }
   11405           0 :                 ndr->depth--;
   11406           0 :                 ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
   11407           0 :                 ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
   11408           0 :                 ndr->depth--;
   11409             :         }
   11410           0 :         if (flags & NDR_OUT) {
   11411           0 :                 ndr_print_struct(ndr, "out", "clusapi_NodeNodeControl");
   11412           0 :                 ndr->depth++;
   11413           0 :                 ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
   11414           0 :                 ndr->depth++;
   11415           0 :                 ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
   11416           0 :                 ndr->depth--;
   11417           0 :                 ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
   11418           0 :                 ndr->depth++;
   11419           0 :                 ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
   11420           0 :                 ndr->depth--;
   11421           0 :                 ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
   11422           0 :                 ndr->depth++;
   11423           0 :                 ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
   11424           0 :                 ndr->depth--;
   11425           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   11426           0 :                 ndr->depth++;
   11427           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   11428           0 :                 ndr->depth--;
   11429           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   11430           0 :                 ndr->depth--;
   11431             :         }
   11432           0 :         ndr->depth--;
   11433             : }
   11434             : 
   11435           0 : static enum ndr_err_code ndr_push_clusapi_NodeControl(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_NodeControl *r)
   11436             : {
   11437           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   11438           0 :         if (flags & NDR_IN) {
   11439           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   11440           0 :                 NDR_CHECK(ndr_push_clusapi_NodeControlCode(ndr, NDR_SCALARS, r->in.dwControlCode));
   11441           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
   11442           0 :                 if (r->in.lpInBuffer) {
   11443           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
   11444           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
   11445             :                 }
   11446           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
   11447           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   11448             :         }
   11449           0 :         if (flags & NDR_OUT) {
   11450           0 :                 if (r->out.lpOutBuffer == NULL) {
   11451           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   11452             :                 }
   11453           0 :                 if (r->out.lpBytesReturned == NULL) {
   11454           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   11455             :                 }
   11456           0 :                 if (r->out.lpcbRequired == NULL) {
   11457           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   11458             :                 }
   11459           0 :                 if (r->out.rpc_status == NULL) {
   11460           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   11461             :                 }
   11462           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   11463           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   11464           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   11465           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
   11466           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   11467           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
   11468           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   11469           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   11470             :         }
   11471           0 :         return NDR_ERR_SUCCESS;
   11472             : }
   11473             : 
   11474           0 : static enum ndr_err_code ndr_pull_clusapi_NodeControl(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_NodeControl *r)
   11475             : {
   11476           0 :         uint32_t _ptr_lpInBuffer;
   11477           0 :         uint32_t size_lpInBuffer_1 = 0;
   11478           0 :         uint32_t size_lpOutBuffer_1 = 0;
   11479           0 :         uint32_t length_lpOutBuffer_1 = 0;
   11480           0 :         TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
   11481           0 :         TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
   11482           0 :         TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
   11483           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   11484           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   11485           0 :         if (flags & NDR_IN) {
   11486           0 :                 NDR_ZERO_STRUCT(r->out);
   11487             : 
   11488           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   11489           0 :                 NDR_CHECK(ndr_pull_clusapi_NodeControlCode(ndr, NDR_SCALARS, &r->in.dwControlCode));
   11490           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
   11491           0 :                 if (_ptr_lpInBuffer) {
   11492           0 :                         NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
   11493             :                 } else {
   11494           0 :                         r->in.lpInBuffer = NULL;
   11495             :                 }
   11496           0 :                 if (r->in.lpInBuffer) {
   11497           0 :                         _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
   11498           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
   11499           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
   11500           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
   11501           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
   11502           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
   11503           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
   11504             :                 }
   11505           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
   11506           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
   11507           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
   11508           0 :                 memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
   11509           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   11510           0 :                 NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
   11511           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   11512           0 :                 NDR_ZERO_STRUCTP(r->out.lpcbRequired);
   11513           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   11514           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   11515           0 :                 if (r->in.lpInBuffer) {
   11516           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
   11517             :                 }
   11518             :         }
   11519           0 :         if (flags & NDR_OUT) {
   11520             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   11521             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   11522           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
   11523           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
   11524           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
   11525           0 :                 NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
   11526           0 :                 if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
   11527           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpOutBuffer_1, length_lpOutBuffer_1);
   11528             :                 }
   11529           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   11530           0 :                         NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
   11531             :                 }
   11532           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
   11533           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   11534           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   11535             :                 }
   11536           0 :                 _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
   11537           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
   11538           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
   11539           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
   11540           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   11541           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   11542             :                 }
   11543           0 :                 _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
   11544           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
   11545           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
   11546           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
   11547           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   11548           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   11549             :                 }
   11550           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   11551           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   11552           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   11553           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   11554           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   11555           0 :                 if (r->out.lpOutBuffer) {
   11556           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
   11557             :                 }
   11558           0 :                 if (r->out.lpOutBuffer) {
   11559           0 :                         NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
   11560             :                 }
   11561             :         }
   11562           0 :         return NDR_ERR_SUCCESS;
   11563             : }
   11564             : 
   11565           0 : _PUBLIC_ void ndr_print_clusapi_NodeControl(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_NodeControl *r)
   11566             : {
   11567           0 :         ndr_print_struct(ndr, name, "clusapi_NodeControl");
   11568           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   11569           0 :         ndr->depth++;
   11570           0 :         if (flags & NDR_SET_VALUES) {
   11571           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   11572             :         }
   11573           0 :         if (flags & NDR_IN) {
   11574           0 :                 ndr_print_struct(ndr, "in", "clusapi_NodeControl");
   11575           0 :                 ndr->depth++;
   11576           0 :                 ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
   11577           0 :                 ndr_print_clusapi_NodeControlCode(ndr, "dwControlCode", r->in.dwControlCode);
   11578           0 :                 ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
   11579           0 :                 ndr->depth++;
   11580           0 :                 if (r->in.lpInBuffer) {
   11581           0 :                         ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
   11582             :                 }
   11583           0 :                 ndr->depth--;
   11584           0 :                 ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
   11585           0 :                 ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
   11586           0 :                 ndr->depth--;
   11587             :         }
   11588           0 :         if (flags & NDR_OUT) {
   11589           0 :                 ndr_print_struct(ndr, "out", "clusapi_NodeControl");
   11590           0 :                 ndr->depth++;
   11591           0 :                 ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
   11592           0 :                 ndr->depth++;
   11593           0 :                 ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
   11594           0 :                 ndr->depth--;
   11595           0 :                 ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
   11596           0 :                 ndr->depth++;
   11597           0 :                 ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
   11598           0 :                 ndr->depth--;
   11599           0 :                 ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
   11600           0 :                 ndr->depth++;
   11601           0 :                 ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
   11602           0 :                 ndr->depth--;
   11603           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   11604           0 :                 ndr->depth++;
   11605           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   11606           0 :                 ndr->depth--;
   11607           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   11608           0 :                 ndr->depth--;
   11609             :         }
   11610           0 :         ndr->depth--;
   11611             : }
   11612             : 
   11613           0 : static enum ndr_err_code ndr_push_Opnum80NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct Opnum80NotUsedOnWire *r)
   11614             : {
   11615           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   11616           0 :         if (flags & NDR_IN) {
   11617           0 :         }
   11618           0 :         if (flags & NDR_OUT) {
   11619           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   11620             :         }
   11621           0 :         return NDR_ERR_SUCCESS;
   11622             : }
   11623             : 
   11624           0 : static enum ndr_err_code ndr_pull_Opnum80NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct Opnum80NotUsedOnWire *r)
   11625             : {
   11626           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   11627           0 :         if (flags & NDR_IN) {
   11628           0 :         }
   11629           0 :         if (flags & NDR_OUT) {
   11630             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   11631             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   11632           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   11633             :         }
   11634           0 :         return NDR_ERR_SUCCESS;
   11635             : }
   11636             : 
   11637           0 : _PUBLIC_ void ndr_print_Opnum80NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct Opnum80NotUsedOnWire *r)
   11638             : {
   11639           0 :         ndr_print_struct(ndr, name, "Opnum80NotUsedOnWire");
   11640           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   11641           0 :         ndr->depth++;
   11642           0 :         if (flags & NDR_SET_VALUES) {
   11643           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   11644             :         }
   11645           0 :         if (flags & NDR_IN) {
   11646           0 :                 ndr_print_struct(ndr, "in", "Opnum80NotUsedOnWire");
   11647           0 :                 ndr->depth++;
   11648           0 :                 ndr->depth--;
   11649             :         }
   11650           0 :         if (flags & NDR_OUT) {
   11651           0 :                 ndr_print_struct(ndr, "out", "Opnum80NotUsedOnWire");
   11652           0 :                 ndr->depth++;
   11653           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   11654           0 :                 ndr->depth--;
   11655             :         }
   11656           0 :         ndr->depth--;
   11657             : }
   11658             : 
   11659           0 : static enum ndr_err_code ndr_push_clusapi_OpenNetwork(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_OpenNetwork *r)
   11660             : {
   11661           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   11662           0 :         if (flags & NDR_IN) {
   11663           0 :                 if (r->in.lpszNetworkName == NULL) {
   11664           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   11665             :                 }
   11666           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16)));
   11667           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   11668           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16)));
   11669           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszNetworkName, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   11670             :         }
   11671           0 :         if (flags & NDR_OUT) {
   11672           0 :                 if (r->out.Status == NULL) {
   11673           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   11674             :                 }
   11675           0 :                 if (r->out.rpc_status == NULL) {
   11676           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   11677             :                 }
   11678           0 :                 if (r->out.hNetwork == NULL) {
   11679           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   11680             :                 }
   11681           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
   11682           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   11683           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hNetwork));
   11684             :         }
   11685           0 :         return NDR_ERR_SUCCESS;
   11686             : }
   11687             : 
   11688           0 : static enum ndr_err_code ndr_pull_clusapi_OpenNetwork(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_OpenNetwork *r)
   11689             : {
   11690           0 :         uint32_t size_lpszNetworkName_1 = 0;
   11691           0 :         uint32_t length_lpszNetworkName_1 = 0;
   11692           0 :         TALLOC_CTX *_mem_save_Status_0 = NULL;
   11693           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   11694           0 :         TALLOC_CTX *_mem_save_hNetwork_0 = NULL;
   11695           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   11696           0 :         if (flags & NDR_IN) {
   11697           0 :                 NDR_ZERO_STRUCT(r->out);
   11698             : 
   11699           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszNetworkName));
   11700           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszNetworkName));
   11701           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszNetworkName, &size_lpszNetworkName_1));
   11702           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszNetworkName, &length_lpszNetworkName_1));
   11703           0 :                 if (length_lpszNetworkName_1 > size_lpszNetworkName_1) {
   11704           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszNetworkName_1, length_lpszNetworkName_1);
   11705             :                 }
   11706           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszNetworkName_1, sizeof(uint16_t)));
   11707           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszNetworkName, length_lpszNetworkName_1, sizeof(uint16_t), CH_UTF16));
   11708           0 :                 NDR_PULL_ALLOC(ndr, r->out.Status);
   11709           0 :                 NDR_ZERO_STRUCTP(r->out.Status);
   11710           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   11711           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   11712           0 :                 NDR_PULL_ALLOC(ndr, r->out.hNetwork);
   11713           0 :                 NDR_ZERO_STRUCTP(r->out.hNetwork);
   11714             :         }
   11715           0 :         if (flags & NDR_OUT) {
   11716             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   11717             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   11718           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   11719           0 :                         NDR_PULL_ALLOC(ndr, r->out.Status);
   11720             :                 }
   11721           0 :                 _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   11722           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
   11723           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
   11724           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
   11725           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   11726           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   11727             :                 }
   11728           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   11729           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   11730           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   11731           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   11732           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   11733           0 :                         NDR_PULL_ALLOC(ndr, r->out.hNetwork);
   11734             :                 }
   11735           0 :                 _mem_save_hNetwork_0 = NDR_PULL_GET_MEM_CTX(ndr);
   11736           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.hNetwork, LIBNDR_FLAG_REF_ALLOC);
   11737           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hNetwork));
   11738           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hNetwork_0, LIBNDR_FLAG_REF_ALLOC);
   11739             :         }
   11740           0 :         return NDR_ERR_SUCCESS;
   11741             : }
   11742             : 
   11743           0 : _PUBLIC_ void ndr_print_clusapi_OpenNetwork(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_OpenNetwork *r)
   11744             : {
   11745           0 :         ndr_print_struct(ndr, name, "clusapi_OpenNetwork");
   11746           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   11747           0 :         ndr->depth++;
   11748           0 :         if (flags & NDR_SET_VALUES) {
   11749           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   11750             :         }
   11751           0 :         if (flags & NDR_IN) {
   11752           0 :                 ndr_print_struct(ndr, "in", "clusapi_OpenNetwork");
   11753           0 :                 ndr->depth++;
   11754           0 :                 ndr_print_ptr(ndr, "lpszNetworkName", r->in.lpszNetworkName);
   11755           0 :                 ndr->depth++;
   11756           0 :                 ndr_print_string(ndr, "lpszNetworkName", r->in.lpszNetworkName);
   11757           0 :                 ndr->depth--;
   11758           0 :                 ndr->depth--;
   11759             :         }
   11760           0 :         if (flags & NDR_OUT) {
   11761           0 :                 ndr_print_struct(ndr, "out", "clusapi_OpenNetwork");
   11762           0 :                 ndr->depth++;
   11763           0 :                 ndr_print_ptr(ndr, "Status", r->out.Status);
   11764           0 :                 ndr->depth++;
   11765           0 :                 ndr_print_WERROR(ndr, "Status", *r->out.Status);
   11766           0 :                 ndr->depth--;
   11767           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   11768           0 :                 ndr->depth++;
   11769           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   11770           0 :                 ndr->depth--;
   11771           0 :                 ndr_print_ptr(ndr, "hNetwork", r->out.hNetwork);
   11772           0 :                 ndr->depth++;
   11773           0 :                 ndr_print_policy_handle(ndr, "hNetwork", r->out.hNetwork);
   11774           0 :                 ndr->depth--;
   11775           0 :                 ndr->depth--;
   11776             :         }
   11777           0 :         ndr->depth--;
   11778             : }
   11779             : 
   11780           0 : static enum ndr_err_code ndr_push_clusapi_CloseNetwork(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CloseNetwork *r)
   11781             : {
   11782           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   11783           0 :         if (flags & NDR_IN) {
   11784           0 :                 if (r->in.Network == NULL) {
   11785           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   11786             :                 }
   11787           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.Network));
   11788             :         }
   11789           0 :         if (flags & NDR_OUT) {
   11790           0 :                 if (r->out.Network == NULL) {
   11791           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   11792             :                 }
   11793           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.Network));
   11794           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   11795             :         }
   11796           0 :         return NDR_ERR_SUCCESS;
   11797             : }
   11798             : 
   11799           0 : static enum ndr_err_code ndr_pull_clusapi_CloseNetwork(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CloseNetwork *r)
   11800             : {
   11801           0 :         TALLOC_CTX *_mem_save_Network_0 = NULL;
   11802           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   11803           0 :         if (flags & NDR_IN) {
   11804           0 :                 NDR_ZERO_STRUCT(r->out);
   11805             : 
   11806           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   11807           0 :                         NDR_PULL_ALLOC(ndr, r->in.Network);
   11808             :                 }
   11809           0 :                 _mem_save_Network_0 = NDR_PULL_GET_MEM_CTX(ndr);
   11810           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.Network, LIBNDR_FLAG_REF_ALLOC);
   11811           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.Network));
   11812           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Network_0, LIBNDR_FLAG_REF_ALLOC);
   11813           0 :                 NDR_PULL_ALLOC(ndr, r->out.Network);
   11814           0 :                 *r->out.Network = *r->in.Network;
   11815             :         }
   11816           0 :         if (flags & NDR_OUT) {
   11817             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   11818             :                 if (r->in.Network == NULL) {
   11819             :                         NDR_PULL_ALLOC(ndr, r->in.Network);
   11820             :                         NDR_ZERO_STRUCTP(r->in.Network);
   11821             :                 }
   11822             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   11823           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   11824           0 :                         NDR_PULL_ALLOC(ndr, r->out.Network);
   11825             :                 }
   11826           0 :                 _mem_save_Network_0 = NDR_PULL_GET_MEM_CTX(ndr);
   11827           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Network, LIBNDR_FLAG_REF_ALLOC);
   11828           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.Network));
   11829           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Network_0, LIBNDR_FLAG_REF_ALLOC);
   11830           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   11831             :         }
   11832           0 :         return NDR_ERR_SUCCESS;
   11833             : }
   11834             : 
   11835           0 : _PUBLIC_ void ndr_print_clusapi_CloseNetwork(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CloseNetwork *r)
   11836             : {
   11837           0 :         ndr_print_struct(ndr, name, "clusapi_CloseNetwork");
   11838           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   11839           0 :         ndr->depth++;
   11840           0 :         if (flags & NDR_SET_VALUES) {
   11841           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   11842             :         }
   11843           0 :         if (flags & NDR_IN) {
   11844           0 :                 ndr_print_struct(ndr, "in", "clusapi_CloseNetwork");
   11845           0 :                 ndr->depth++;
   11846           0 :                 ndr_print_ptr(ndr, "Network", r->in.Network);
   11847           0 :                 ndr->depth++;
   11848           0 :                 ndr_print_policy_handle(ndr, "Network", r->in.Network);
   11849           0 :                 ndr->depth--;
   11850           0 :                 ndr->depth--;
   11851             :         }
   11852           0 :         if (flags & NDR_OUT) {
   11853           0 :                 ndr_print_struct(ndr, "out", "clusapi_CloseNetwork");
   11854           0 :                 ndr->depth++;
   11855           0 :                 ndr_print_ptr(ndr, "Network", r->out.Network);
   11856           0 :                 ndr->depth++;
   11857           0 :                 ndr_print_policy_handle(ndr, "Network", r->out.Network);
   11858           0 :                 ndr->depth--;
   11859           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   11860           0 :                 ndr->depth--;
   11861             :         }
   11862           0 :         ndr->depth--;
   11863             : }
   11864             : 
   11865           0 : static enum ndr_err_code ndr_push_clusapi_GetNetworkState(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_GetNetworkState *r)
   11866             : {
   11867           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   11868           0 :         if (flags & NDR_IN) {
   11869           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
   11870             :         }
   11871           0 :         if (flags & NDR_OUT) {
   11872           0 :                 if (r->out.State == NULL) {
   11873           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   11874             :                 }
   11875           0 :                 if (r->out.rpc_status == NULL) {
   11876           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   11877             :                 }
   11878           0 :                 NDR_CHECK(ndr_push_clusapi_ClusterNetworkState(ndr, NDR_SCALARS, *r->out.State));
   11879           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   11880           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   11881             :         }
   11882           0 :         return NDR_ERR_SUCCESS;
   11883             : }
   11884             : 
   11885           0 : static enum ndr_err_code ndr_pull_clusapi_GetNetworkState(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_GetNetworkState *r)
   11886             : {
   11887           0 :         TALLOC_CTX *_mem_save_State_0 = NULL;
   11888           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   11889           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   11890           0 :         if (flags & NDR_IN) {
   11891           0 :                 NDR_ZERO_STRUCT(r->out);
   11892             : 
   11893           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
   11894           0 :                 NDR_PULL_ALLOC(ndr, r->out.State);
   11895           0 :                 NDR_ZERO_STRUCTP(r->out.State);
   11896           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   11897           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   11898             :         }
   11899           0 :         if (flags & NDR_OUT) {
   11900             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   11901             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   11902           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   11903           0 :                         NDR_PULL_ALLOC(ndr, r->out.State);
   11904             :                 }
   11905           0 :                 _mem_save_State_0 = NDR_PULL_GET_MEM_CTX(ndr);
   11906           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.State, LIBNDR_FLAG_REF_ALLOC);
   11907           0 :                 NDR_CHECK(ndr_pull_clusapi_ClusterNetworkState(ndr, NDR_SCALARS, r->out.State));
   11908           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_State_0, LIBNDR_FLAG_REF_ALLOC);
   11909           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   11910           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   11911             :                 }
   11912           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   11913           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   11914           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   11915           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   11916           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   11917             :         }
   11918           0 :         return NDR_ERR_SUCCESS;
   11919             : }
   11920             : 
   11921           0 : _PUBLIC_ void ndr_print_clusapi_GetNetworkState(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_GetNetworkState *r)
   11922             : {
   11923           0 :         ndr_print_struct(ndr, name, "clusapi_GetNetworkState");
   11924           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   11925           0 :         ndr->depth++;
   11926           0 :         if (flags & NDR_SET_VALUES) {
   11927           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   11928             :         }
   11929           0 :         if (flags & NDR_IN) {
   11930           0 :                 ndr_print_struct(ndr, "in", "clusapi_GetNetworkState");
   11931           0 :                 ndr->depth++;
   11932           0 :                 ndr_print_policy_handle(ndr, "hNetwork", &r->in.hNetwork);
   11933           0 :                 ndr->depth--;
   11934             :         }
   11935           0 :         if (flags & NDR_OUT) {
   11936           0 :                 ndr_print_struct(ndr, "out", "clusapi_GetNetworkState");
   11937           0 :                 ndr->depth++;
   11938           0 :                 ndr_print_ptr(ndr, "State", r->out.State);
   11939           0 :                 ndr->depth++;
   11940           0 :                 ndr_print_clusapi_ClusterNetworkState(ndr, "State", *r->out.State);
   11941           0 :                 ndr->depth--;
   11942           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   11943           0 :                 ndr->depth++;
   11944           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   11945           0 :                 ndr->depth--;
   11946           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   11947           0 :                 ndr->depth--;
   11948             :         }
   11949           0 :         ndr->depth--;
   11950             : }
   11951             : 
   11952           0 : static enum ndr_err_code ndr_push_clusapi_SetNetworkName(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_SetNetworkName *r)
   11953             : {
   11954           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   11955           0 :         if (flags & NDR_IN) {
   11956           0 :                 if (r->in.lpszNetworkName == NULL) {
   11957           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   11958             :                 }
   11959           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
   11960           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16)));
   11961           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   11962           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16)));
   11963           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszNetworkName, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   11964             :         }
   11965           0 :         if (flags & NDR_OUT) {
   11966           0 :                 if (r->out.rpc_status == NULL) {
   11967           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   11968             :                 }
   11969           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   11970           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   11971             :         }
   11972           0 :         return NDR_ERR_SUCCESS;
   11973             : }
   11974             : 
   11975           0 : static enum ndr_err_code ndr_pull_clusapi_SetNetworkName(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_SetNetworkName *r)
   11976             : {
   11977           0 :         uint32_t size_lpszNetworkName_1 = 0;
   11978           0 :         uint32_t length_lpszNetworkName_1 = 0;
   11979           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   11980           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   11981           0 :         if (flags & NDR_IN) {
   11982           0 :                 NDR_ZERO_STRUCT(r->out);
   11983             : 
   11984           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
   11985           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszNetworkName));
   11986           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszNetworkName));
   11987           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszNetworkName, &size_lpszNetworkName_1));
   11988           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszNetworkName, &length_lpszNetworkName_1));
   11989           0 :                 if (length_lpszNetworkName_1 > size_lpszNetworkName_1) {
   11990           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszNetworkName_1, length_lpszNetworkName_1);
   11991             :                 }
   11992           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszNetworkName_1, sizeof(uint16_t)));
   11993           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszNetworkName, length_lpszNetworkName_1, sizeof(uint16_t), CH_UTF16));
   11994           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   11995           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   11996             :         }
   11997           0 :         if (flags & NDR_OUT) {
   11998             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   11999             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   12000           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   12001           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   12002             :                 }
   12003           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   12004           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   12005           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   12006           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   12007           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   12008             :         }
   12009           0 :         return NDR_ERR_SUCCESS;
   12010             : }
   12011             : 
   12012           0 : _PUBLIC_ void ndr_print_clusapi_SetNetworkName(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_SetNetworkName *r)
   12013             : {
   12014           0 :         ndr_print_struct(ndr, name, "clusapi_SetNetworkName");
   12015           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   12016           0 :         ndr->depth++;
   12017           0 :         if (flags & NDR_SET_VALUES) {
   12018           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   12019             :         }
   12020           0 :         if (flags & NDR_IN) {
   12021           0 :                 ndr_print_struct(ndr, "in", "clusapi_SetNetworkName");
   12022           0 :                 ndr->depth++;
   12023           0 :                 ndr_print_policy_handle(ndr, "hNetwork", &r->in.hNetwork);
   12024           0 :                 ndr_print_ptr(ndr, "lpszNetworkName", r->in.lpszNetworkName);
   12025           0 :                 ndr->depth++;
   12026           0 :                 ndr_print_string(ndr, "lpszNetworkName", r->in.lpszNetworkName);
   12027           0 :                 ndr->depth--;
   12028           0 :                 ndr->depth--;
   12029             :         }
   12030           0 :         if (flags & NDR_OUT) {
   12031           0 :                 ndr_print_struct(ndr, "out", "clusapi_SetNetworkName");
   12032           0 :                 ndr->depth++;
   12033           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   12034           0 :                 ndr->depth++;
   12035           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   12036           0 :                 ndr->depth--;
   12037           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   12038           0 :                 ndr->depth--;
   12039             :         }
   12040           0 :         ndr->depth--;
   12041             : }
   12042             : 
   12043           0 : static enum ndr_err_code ndr_push_clusapi_CreateNetworkEnum(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CreateNetworkEnum *r)
   12044             : {
   12045           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   12046           0 :         if (flags & NDR_IN) {
   12047           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
   12048           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwType));
   12049             :         }
   12050           0 :         if (flags & NDR_OUT) {
   12051           0 :                 if (r->out.ReturnEnum == NULL) {
   12052           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   12053             :                 }
   12054           0 :                 if (r->out.rpc_status == NULL) {
   12055           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   12056             :                 }
   12057           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ReturnEnum));
   12058           0 :                 if (*r->out.ReturnEnum) {
   12059           0 :                         NDR_CHECK(ndr_push_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
   12060             :                 }
   12061           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   12062           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   12063             :         }
   12064           0 :         return NDR_ERR_SUCCESS;
   12065             : }
   12066             : 
   12067           0 : static enum ndr_err_code ndr_pull_clusapi_CreateNetworkEnum(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CreateNetworkEnum *r)
   12068             : {
   12069           0 :         uint32_t _ptr_ReturnEnum;
   12070           0 :         TALLOC_CTX *_mem_save_ReturnEnum_0 = NULL;
   12071           0 :         TALLOC_CTX *_mem_save_ReturnEnum_1 = NULL;
   12072           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   12073           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   12074           0 :         if (flags & NDR_IN) {
   12075           0 :                 NDR_ZERO_STRUCT(r->out);
   12076             : 
   12077           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
   12078           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwType));
   12079           0 :                 NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
   12080           0 :                 NDR_ZERO_STRUCTP(r->out.ReturnEnum);
   12081           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   12082           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   12083             :         }
   12084           0 :         if (flags & NDR_OUT) {
   12085             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   12086             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   12087           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   12088           0 :                         NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
   12089             :                 }
   12090           0 :                 _mem_save_ReturnEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
   12091           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ReturnEnum, LIBNDR_FLAG_REF_ALLOC);
   12092           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ReturnEnum));
   12093           0 :                 if (_ptr_ReturnEnum) {
   12094           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ReturnEnum);
   12095             :                 } else {
   12096           0 :                         *r->out.ReturnEnum = NULL;
   12097             :                 }
   12098           0 :                 if (*r->out.ReturnEnum) {
   12099           0 :                         _mem_save_ReturnEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
   12100           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ReturnEnum, 0);
   12101           0 :                         NDR_CHECK(ndr_pull_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
   12102           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_1, 0);
   12103             :                 }
   12104           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_0, LIBNDR_FLAG_REF_ALLOC);
   12105           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   12106           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   12107             :                 }
   12108           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   12109           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   12110           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   12111           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   12112           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   12113             :         }
   12114           0 :         return NDR_ERR_SUCCESS;
   12115             : }
   12116             : 
   12117           0 : _PUBLIC_ void ndr_print_clusapi_CreateNetworkEnum(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CreateNetworkEnum *r)
   12118             : {
   12119           0 :         ndr_print_struct(ndr, name, "clusapi_CreateNetworkEnum");
   12120           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   12121           0 :         ndr->depth++;
   12122           0 :         if (flags & NDR_SET_VALUES) {
   12123           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   12124             :         }
   12125           0 :         if (flags & NDR_IN) {
   12126           0 :                 ndr_print_struct(ndr, "in", "clusapi_CreateNetworkEnum");
   12127           0 :                 ndr->depth++;
   12128           0 :                 ndr_print_policy_handle(ndr, "hNetwork", &r->in.hNetwork);
   12129           0 :                 ndr_print_uint32(ndr, "dwType", r->in.dwType);
   12130           0 :                 ndr->depth--;
   12131             :         }
   12132           0 :         if (flags & NDR_OUT) {
   12133           0 :                 ndr_print_struct(ndr, "out", "clusapi_CreateNetworkEnum");
   12134           0 :                 ndr->depth++;
   12135           0 :                 ndr_print_ptr(ndr, "ReturnEnum", r->out.ReturnEnum);
   12136           0 :                 ndr->depth++;
   12137           0 :                 ndr_print_ptr(ndr, "ReturnEnum", *r->out.ReturnEnum);
   12138           0 :                 ndr->depth++;
   12139           0 :                 if (*r->out.ReturnEnum) {
   12140           0 :                         ndr_print_ENUM_LIST(ndr, "ReturnEnum", *r->out.ReturnEnum);
   12141             :                 }
   12142           0 :                 ndr->depth--;
   12143           0 :                 ndr->depth--;
   12144           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   12145           0 :                 ndr->depth++;
   12146           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   12147           0 :                 ndr->depth--;
   12148           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   12149           0 :                 ndr->depth--;
   12150             :         }
   12151           0 :         ndr->depth--;
   12152             : }
   12153             : 
   12154           0 : static enum ndr_err_code ndr_push_clusapi_GetNetworkId(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_GetNetworkId *r)
   12155             : {
   12156           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   12157           0 :         if (flags & NDR_IN) {
   12158           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
   12159             :         }
   12160           0 :         if (flags & NDR_OUT) {
   12161           0 :                 if (r->out.pGuid == NULL) {
   12162           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   12163             :                 }
   12164           0 :                 if (r->out.rpc_status == NULL) {
   12165           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   12166             :                 }
   12167           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.pGuid));
   12168           0 :                 if (*r->out.pGuid) {
   12169           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.pGuid, CH_UTF16)));
   12170           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   12171           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.pGuid, CH_UTF16)));
   12172           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.pGuid, ndr_charset_length(*r->out.pGuid, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   12173             :                 }
   12174           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   12175           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   12176             :         }
   12177           0 :         return NDR_ERR_SUCCESS;
   12178             : }
   12179             : 
   12180           0 : static enum ndr_err_code ndr_pull_clusapi_GetNetworkId(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_GetNetworkId *r)
   12181             : {
   12182           0 :         uint32_t _ptr_pGuid;
   12183           0 :         uint32_t size_pGuid_2 = 0;
   12184           0 :         uint32_t length_pGuid_2 = 0;
   12185           0 :         TALLOC_CTX *_mem_save_pGuid_0 = NULL;
   12186           0 :         TALLOC_CTX *_mem_save_pGuid_1 = NULL;
   12187           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   12188           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   12189           0 :         if (flags & NDR_IN) {
   12190           0 :                 NDR_ZERO_STRUCT(r->out);
   12191             : 
   12192           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
   12193           0 :                 NDR_PULL_ALLOC(ndr, r->out.pGuid);
   12194           0 :                 NDR_ZERO_STRUCTP(r->out.pGuid);
   12195           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   12196           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   12197             :         }
   12198           0 :         if (flags & NDR_OUT) {
   12199             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   12200             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   12201           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   12202           0 :                         NDR_PULL_ALLOC(ndr, r->out.pGuid);
   12203             :                 }
   12204           0 :                 _mem_save_pGuid_0 = NDR_PULL_GET_MEM_CTX(ndr);
   12205           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.pGuid, LIBNDR_FLAG_REF_ALLOC);
   12206           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pGuid));
   12207           0 :                 if (_ptr_pGuid) {
   12208           0 :                         NDR_PULL_ALLOC(ndr, *r->out.pGuid);
   12209             :                 } else {
   12210           0 :                         *r->out.pGuid = NULL;
   12211             :                 }
   12212           0 :                 if (*r->out.pGuid) {
   12213           0 :                         _mem_save_pGuid_1 = NDR_PULL_GET_MEM_CTX(ndr);
   12214           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.pGuid, 0);
   12215           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.pGuid));
   12216           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, r->out.pGuid));
   12217           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.pGuid, &size_pGuid_2));
   12218           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.pGuid, &length_pGuid_2));
   12219           0 :                         if (length_pGuid_2 > size_pGuid_2) {
   12220           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_pGuid_2, length_pGuid_2);
   12221             :                         }
   12222           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_pGuid_2, sizeof(uint16_t)));
   12223           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.pGuid, length_pGuid_2, sizeof(uint16_t), CH_UTF16));
   12224           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pGuid_1, 0);
   12225             :                 }
   12226           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pGuid_0, LIBNDR_FLAG_REF_ALLOC);
   12227           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   12228           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   12229             :                 }
   12230           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   12231           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   12232           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   12233           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   12234           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   12235             :         }
   12236           0 :         return NDR_ERR_SUCCESS;
   12237             : }
   12238             : 
   12239           0 : _PUBLIC_ void ndr_print_clusapi_GetNetworkId(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_GetNetworkId *r)
   12240             : {
   12241           0 :         ndr_print_struct(ndr, name, "clusapi_GetNetworkId");
   12242           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   12243           0 :         ndr->depth++;
   12244           0 :         if (flags & NDR_SET_VALUES) {
   12245           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   12246             :         }
   12247           0 :         if (flags & NDR_IN) {
   12248           0 :                 ndr_print_struct(ndr, "in", "clusapi_GetNetworkId");
   12249           0 :                 ndr->depth++;
   12250           0 :                 ndr_print_policy_handle(ndr, "hNetwork", &r->in.hNetwork);
   12251           0 :                 ndr->depth--;
   12252             :         }
   12253           0 :         if (flags & NDR_OUT) {
   12254           0 :                 ndr_print_struct(ndr, "out", "clusapi_GetNetworkId");
   12255           0 :                 ndr->depth++;
   12256           0 :                 ndr_print_ptr(ndr, "pGuid", r->out.pGuid);
   12257           0 :                 ndr->depth++;
   12258           0 :                 ndr_print_ptr(ndr, "pGuid", *r->out.pGuid);
   12259           0 :                 ndr->depth++;
   12260           0 :                 if (*r->out.pGuid) {
   12261           0 :                         ndr_print_string(ndr, "pGuid", *r->out.pGuid);
   12262             :                 }
   12263           0 :                 ndr->depth--;
   12264           0 :                 ndr->depth--;
   12265           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   12266           0 :                 ndr->depth++;
   12267           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   12268           0 :                 ndr->depth--;
   12269           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   12270           0 :                 ndr->depth--;
   12271             :         }
   12272           0 :         ndr->depth--;
   12273             : }
   12274             : 
   12275           0 : static enum ndr_err_code ndr_push_clusapi_SetNetworkPriorityOrder(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_SetNetworkPriorityOrder *r)
   12276             : {
   12277           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   12278           0 :         if (flags & NDR_IN) {
   12279           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.NetworkCount));
   12280           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.NetworkCount));
   12281           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   12282           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.NetworkIdList, CH_UTF16)));
   12283           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.NetworkIdList, ndr_charset_length(r->in.NetworkIdList, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   12284             :         }
   12285           0 :         if (flags & NDR_OUT) {
   12286           0 :                 if (r->out.rpc_status == NULL) {
   12287           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   12288             :                 }
   12289           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   12290           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   12291             :         }
   12292           0 :         return NDR_ERR_SUCCESS;
   12293             : }
   12294             : 
   12295           0 : static enum ndr_err_code ndr_pull_clusapi_SetNetworkPriorityOrder(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_SetNetworkPriorityOrder *r)
   12296             : {
   12297           0 :         uint32_t size_NetworkIdList_0 = 0;
   12298           0 :         uint32_t length_NetworkIdList_0 = 0;
   12299           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   12300           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   12301           0 :         if (flags & NDR_IN) {
   12302           0 :                 NDR_ZERO_STRUCT(r->out);
   12303             : 
   12304           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.NetworkCount));
   12305           0 :                 if (r->in.NetworkCount > 1000) {
   12306           0 :                         return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->in.NetworkCount), (uint32_t)(0), (uint32_t)(1000));
   12307             :                 }
   12308           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.NetworkIdList));
   12309           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.NetworkIdList));
   12310           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.NetworkIdList, &size_NetworkIdList_0));
   12311           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.NetworkIdList, &length_NetworkIdList_0));
   12312           0 :                 if (length_NetworkIdList_0 > size_NetworkIdList_0) {
   12313           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_NetworkIdList_0, length_NetworkIdList_0);
   12314             :                 }
   12315           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_NetworkIdList_0, sizeof(uint16_t)));
   12316           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.NetworkIdList, length_NetworkIdList_0, sizeof(uint16_t), CH_UTF16));
   12317           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   12318           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   12319           0 :                 if (r->in.NetworkIdList) {
   12320           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.NetworkIdList, r->in.NetworkCount));
   12321             :                 }
   12322             :         }
   12323           0 :         if (flags & NDR_OUT) {
   12324             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   12325             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   12326           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   12327           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   12328             :                 }
   12329           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   12330           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   12331           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   12332           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   12333           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   12334             :         }
   12335           0 :         return NDR_ERR_SUCCESS;
   12336             : }
   12337             : 
   12338           0 : _PUBLIC_ void ndr_print_clusapi_SetNetworkPriorityOrder(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_SetNetworkPriorityOrder *r)
   12339             : {
   12340           0 :         ndr_print_struct(ndr, name, "clusapi_SetNetworkPriorityOrder");
   12341           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   12342           0 :         ndr->depth++;
   12343           0 :         if (flags & NDR_SET_VALUES) {
   12344           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   12345             :         }
   12346           0 :         if (flags & NDR_IN) {
   12347           0 :                 ndr_print_struct(ndr, "in", "clusapi_SetNetworkPriorityOrder");
   12348           0 :                 ndr->depth++;
   12349           0 :                 ndr_print_uint32(ndr, "NetworkCount", r->in.NetworkCount);
   12350           0 :                 ndr_print_string(ndr, "NetworkIdList", r->in.NetworkIdList);
   12351           0 :                 ndr->depth--;
   12352             :         }
   12353           0 :         if (flags & NDR_OUT) {
   12354           0 :                 ndr_print_struct(ndr, "out", "clusapi_SetNetworkPriorityOrder");
   12355           0 :                 ndr->depth++;
   12356           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   12357           0 :                 ndr->depth++;
   12358           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   12359           0 :                 ndr->depth--;
   12360           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   12361           0 :                 ndr->depth--;
   12362             :         }
   12363           0 :         ndr->depth--;
   12364             : }
   12365             : 
   12366           0 : static enum ndr_err_code ndr_push_clusapi_NodeNetworkControl(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_NodeNetworkControl *r)
   12367             : {
   12368           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   12369           0 :         if (flags & NDR_IN) {
   12370           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
   12371           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   12372           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwControlCode));
   12373           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
   12374           0 :                 if (r->in.lpInBuffer) {
   12375           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
   12376           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
   12377             :                 }
   12378           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
   12379           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   12380             :         }
   12381           0 :         if (flags & NDR_OUT) {
   12382           0 :                 if (r->out.lpOutBuffer == NULL) {
   12383           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   12384             :                 }
   12385           0 :                 if (r->out.lpBytesReturned == NULL) {
   12386           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   12387             :                 }
   12388           0 :                 if (r->out.lpcbRequired == NULL) {
   12389           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   12390             :                 }
   12391           0 :                 if (r->out.rpc_status == NULL) {
   12392           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   12393             :                 }
   12394           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   12395           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   12396           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   12397           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
   12398           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   12399           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
   12400           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   12401           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   12402             :         }
   12403           0 :         return NDR_ERR_SUCCESS;
   12404             : }
   12405             : 
   12406           0 : static enum ndr_err_code ndr_pull_clusapi_NodeNetworkControl(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_NodeNetworkControl *r)
   12407             : {
   12408           0 :         uint32_t _ptr_lpInBuffer;
   12409           0 :         uint32_t size_lpInBuffer_1 = 0;
   12410           0 :         uint32_t size_lpOutBuffer_1 = 0;
   12411           0 :         uint32_t length_lpOutBuffer_1 = 0;
   12412           0 :         TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
   12413           0 :         TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
   12414           0 :         TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
   12415           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   12416           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   12417           0 :         if (flags & NDR_IN) {
   12418           0 :                 NDR_ZERO_STRUCT(r->out);
   12419             : 
   12420           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
   12421           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   12422           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwControlCode));
   12423           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
   12424           0 :                 if (_ptr_lpInBuffer) {
   12425           0 :                         NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
   12426             :                 } else {
   12427           0 :                         r->in.lpInBuffer = NULL;
   12428             :                 }
   12429           0 :                 if (r->in.lpInBuffer) {
   12430           0 :                         _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
   12431           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
   12432           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
   12433           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
   12434           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
   12435           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
   12436           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
   12437             :                 }
   12438           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
   12439           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
   12440           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
   12441           0 :                 memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
   12442           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   12443           0 :                 NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
   12444           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   12445           0 :                 NDR_ZERO_STRUCTP(r->out.lpcbRequired);
   12446           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   12447           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   12448           0 :                 if (r->in.lpInBuffer) {
   12449           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
   12450             :                 }
   12451             :         }
   12452           0 :         if (flags & NDR_OUT) {
   12453             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   12454             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   12455           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
   12456           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
   12457           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
   12458           0 :                 NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
   12459           0 :                 if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
   12460           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpOutBuffer_1, length_lpOutBuffer_1);
   12461             :                 }
   12462           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   12463           0 :                         NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
   12464             :                 }
   12465           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
   12466           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   12467           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   12468             :                 }
   12469           0 :                 _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
   12470           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
   12471           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
   12472           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
   12473           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   12474           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   12475             :                 }
   12476           0 :                 _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
   12477           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
   12478           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
   12479           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
   12480           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   12481           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   12482             :                 }
   12483           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   12484           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   12485           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   12486           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   12487           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   12488           0 :                 if (r->out.lpOutBuffer) {
   12489           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
   12490             :                 }
   12491           0 :                 if (r->out.lpOutBuffer) {
   12492           0 :                         NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
   12493             :                 }
   12494             :         }
   12495           0 :         return NDR_ERR_SUCCESS;
   12496             : }
   12497             : 
   12498           0 : _PUBLIC_ void ndr_print_clusapi_NodeNetworkControl(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_NodeNetworkControl *r)
   12499             : {
   12500           0 :         ndr_print_struct(ndr, name, "clusapi_NodeNetworkControl");
   12501           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   12502           0 :         ndr->depth++;
   12503           0 :         if (flags & NDR_SET_VALUES) {
   12504           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   12505             :         }
   12506           0 :         if (flags & NDR_IN) {
   12507           0 :                 ndr_print_struct(ndr, "in", "clusapi_NodeNetworkControl");
   12508           0 :                 ndr->depth++;
   12509           0 :                 ndr_print_policy_handle(ndr, "hNetwork", &r->in.hNetwork);
   12510           0 :                 ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
   12511           0 :                 ndr_print_uint32(ndr, "dwControlCode", r->in.dwControlCode);
   12512           0 :                 ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
   12513           0 :                 ndr->depth++;
   12514           0 :                 if (r->in.lpInBuffer) {
   12515           0 :                         ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
   12516             :                 }
   12517           0 :                 ndr->depth--;
   12518           0 :                 ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
   12519           0 :                 ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
   12520           0 :                 ndr->depth--;
   12521             :         }
   12522           0 :         if (flags & NDR_OUT) {
   12523           0 :                 ndr_print_struct(ndr, "out", "clusapi_NodeNetworkControl");
   12524           0 :                 ndr->depth++;
   12525           0 :                 ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
   12526           0 :                 ndr->depth++;
   12527           0 :                 ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
   12528           0 :                 ndr->depth--;
   12529           0 :                 ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
   12530           0 :                 ndr->depth++;
   12531           0 :                 ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
   12532           0 :                 ndr->depth--;
   12533           0 :                 ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
   12534           0 :                 ndr->depth++;
   12535           0 :                 ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
   12536           0 :                 ndr->depth--;
   12537           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   12538           0 :                 ndr->depth++;
   12539           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   12540           0 :                 ndr->depth--;
   12541           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   12542           0 :                 ndr->depth--;
   12543             :         }
   12544           0 :         ndr->depth--;
   12545             : }
   12546             : 
   12547           0 : static enum ndr_err_code ndr_push_clusapi_NetworkControl(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_NetworkControl *r)
   12548             : {
   12549           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   12550           0 :         if (flags & NDR_IN) {
   12551           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
   12552           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwControlCode));
   12553           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
   12554           0 :                 if (r->in.lpInBuffer) {
   12555           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
   12556           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
   12557             :                 }
   12558           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
   12559           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   12560             :         }
   12561           0 :         if (flags & NDR_OUT) {
   12562           0 :                 if (r->out.lpOutBuffer == NULL) {
   12563           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   12564             :                 }
   12565           0 :                 if (r->out.lpBytesReturned == NULL) {
   12566           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   12567             :                 }
   12568           0 :                 if (r->out.lpcbRequired == NULL) {
   12569           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   12570             :                 }
   12571           0 :                 if (r->out.rpc_status == NULL) {
   12572           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   12573             :                 }
   12574           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   12575           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   12576           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   12577           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
   12578           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   12579           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
   12580           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   12581           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   12582             :         }
   12583           0 :         return NDR_ERR_SUCCESS;
   12584             : }
   12585             : 
   12586           0 : static enum ndr_err_code ndr_pull_clusapi_NetworkControl(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_NetworkControl *r)
   12587             : {
   12588           0 :         uint32_t _ptr_lpInBuffer;
   12589           0 :         uint32_t size_lpInBuffer_1 = 0;
   12590           0 :         uint32_t size_lpOutBuffer_1 = 0;
   12591           0 :         uint32_t length_lpOutBuffer_1 = 0;
   12592           0 :         TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
   12593           0 :         TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
   12594           0 :         TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
   12595           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   12596           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   12597           0 :         if (flags & NDR_IN) {
   12598           0 :                 NDR_ZERO_STRUCT(r->out);
   12599             : 
   12600           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
   12601           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwControlCode));
   12602           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
   12603           0 :                 if (_ptr_lpInBuffer) {
   12604           0 :                         NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
   12605             :                 } else {
   12606           0 :                         r->in.lpInBuffer = NULL;
   12607             :                 }
   12608           0 :                 if (r->in.lpInBuffer) {
   12609           0 :                         _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
   12610           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
   12611           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
   12612           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
   12613           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
   12614           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
   12615           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
   12616             :                 }
   12617           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
   12618           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
   12619           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
   12620           0 :                 memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
   12621           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   12622           0 :                 NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
   12623           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   12624           0 :                 NDR_ZERO_STRUCTP(r->out.lpcbRequired);
   12625           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   12626           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   12627           0 :                 if (r->in.lpInBuffer) {
   12628           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
   12629             :                 }
   12630             :         }
   12631           0 :         if (flags & NDR_OUT) {
   12632             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   12633             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   12634           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
   12635           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
   12636           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
   12637           0 :                 NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
   12638           0 :                 if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
   12639           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpOutBuffer_1, length_lpOutBuffer_1);
   12640             :                 }
   12641           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   12642           0 :                         NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
   12643             :                 }
   12644           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
   12645           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   12646           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   12647             :                 }
   12648           0 :                 _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
   12649           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
   12650           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
   12651           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
   12652           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   12653           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   12654             :                 }
   12655           0 :                 _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
   12656           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
   12657           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
   12658           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
   12659           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   12660           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   12661             :                 }
   12662           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   12663           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   12664           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   12665           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   12666           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   12667           0 :                 if (r->out.lpOutBuffer) {
   12668           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
   12669             :                 }
   12670           0 :                 if (r->out.lpOutBuffer) {
   12671           0 :                         NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
   12672             :                 }
   12673             :         }
   12674           0 :         return NDR_ERR_SUCCESS;
   12675             : }
   12676             : 
   12677           0 : _PUBLIC_ void ndr_print_clusapi_NetworkControl(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_NetworkControl *r)
   12678             : {
   12679           0 :         ndr_print_struct(ndr, name, "clusapi_NetworkControl");
   12680           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   12681           0 :         ndr->depth++;
   12682           0 :         if (flags & NDR_SET_VALUES) {
   12683           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   12684             :         }
   12685           0 :         if (flags & NDR_IN) {
   12686           0 :                 ndr_print_struct(ndr, "in", "clusapi_NetworkControl");
   12687           0 :                 ndr->depth++;
   12688           0 :                 ndr_print_policy_handle(ndr, "hNetwork", &r->in.hNetwork);
   12689           0 :                 ndr_print_uint32(ndr, "dwControlCode", r->in.dwControlCode);
   12690           0 :                 ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
   12691           0 :                 ndr->depth++;
   12692           0 :                 if (r->in.lpInBuffer) {
   12693           0 :                         ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
   12694             :                 }
   12695           0 :                 ndr->depth--;
   12696           0 :                 ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
   12697           0 :                 ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
   12698           0 :                 ndr->depth--;
   12699             :         }
   12700           0 :         if (flags & NDR_OUT) {
   12701           0 :                 ndr_print_struct(ndr, "out", "clusapi_NetworkControl");
   12702           0 :                 ndr->depth++;
   12703           0 :                 ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
   12704           0 :                 ndr->depth++;
   12705           0 :                 ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
   12706           0 :                 ndr->depth--;
   12707           0 :                 ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
   12708           0 :                 ndr->depth++;
   12709           0 :                 ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
   12710           0 :                 ndr->depth--;
   12711           0 :                 ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
   12712           0 :                 ndr->depth++;
   12713           0 :                 ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
   12714           0 :                 ndr->depth--;
   12715           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   12716           0 :                 ndr->depth++;
   12717           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   12718           0 :                 ndr->depth--;
   12719           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   12720           0 :                 ndr->depth--;
   12721             :         }
   12722           0 :         ndr->depth--;
   12723             : }
   12724             : 
   12725           0 : static enum ndr_err_code ndr_push_clusapi_AddNotifyNetwork(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_AddNotifyNetwork *r)
   12726             : {
   12727           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   12728           0 :         if (flags & NDR_IN) {
   12729           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
   12730           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
   12731           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwFilter));
   12732           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
   12733             :         }
   12734           0 :         if (flags & NDR_OUT) {
   12735           0 :                 if (r->out.dwStateSequence == NULL) {
   12736           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   12737             :                 }
   12738           0 :                 if (r->out.rpc_status == NULL) {
   12739           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   12740             :                 }
   12741           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.dwStateSequence));
   12742           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   12743           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   12744             :         }
   12745           0 :         return NDR_ERR_SUCCESS;
   12746             : }
   12747             : 
   12748           0 : static enum ndr_err_code ndr_pull_clusapi_AddNotifyNetwork(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_AddNotifyNetwork *r)
   12749             : {
   12750           0 :         TALLOC_CTX *_mem_save_dwStateSequence_0 = NULL;
   12751           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   12752           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   12753           0 :         if (flags & NDR_IN) {
   12754           0 :                 NDR_ZERO_STRUCT(r->out);
   12755             : 
   12756           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
   12757           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
   12758           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwFilter));
   12759           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
   12760           0 :                 NDR_PULL_ALLOC(ndr, r->out.dwStateSequence);
   12761           0 :                 NDR_ZERO_STRUCTP(r->out.dwStateSequence);
   12762           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   12763           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   12764             :         }
   12765           0 :         if (flags & NDR_OUT) {
   12766             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   12767             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   12768           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   12769           0 :                         NDR_PULL_ALLOC(ndr, r->out.dwStateSequence);
   12770             :                 }
   12771           0 :                 _mem_save_dwStateSequence_0 = NDR_PULL_GET_MEM_CTX(ndr);
   12772           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.dwStateSequence, LIBNDR_FLAG_REF_ALLOC);
   12773           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.dwStateSequence));
   12774           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dwStateSequence_0, LIBNDR_FLAG_REF_ALLOC);
   12775           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   12776           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   12777             :                 }
   12778           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   12779           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   12780           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   12781           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   12782           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   12783             :         }
   12784           0 :         return NDR_ERR_SUCCESS;
   12785             : }
   12786             : 
   12787           0 : _PUBLIC_ void ndr_print_clusapi_AddNotifyNetwork(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_AddNotifyNetwork *r)
   12788             : {
   12789           0 :         ndr_print_struct(ndr, name, "clusapi_AddNotifyNetwork");
   12790           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   12791           0 :         ndr->depth++;
   12792           0 :         if (flags & NDR_SET_VALUES) {
   12793           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   12794             :         }
   12795           0 :         if (flags & NDR_IN) {
   12796           0 :                 ndr_print_struct(ndr, "in", "clusapi_AddNotifyNetwork");
   12797           0 :                 ndr->depth++;
   12798           0 :                 ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
   12799           0 :                 ndr_print_policy_handle(ndr, "hNetwork", &r->in.hNetwork);
   12800           0 :                 ndr_print_uint32(ndr, "dwFilter", r->in.dwFilter);
   12801           0 :                 ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
   12802           0 :                 ndr->depth--;
   12803             :         }
   12804           0 :         if (flags & NDR_OUT) {
   12805           0 :                 ndr_print_struct(ndr, "out", "clusapi_AddNotifyNetwork");
   12806           0 :                 ndr->depth++;
   12807           0 :                 ndr_print_ptr(ndr, "dwStateSequence", r->out.dwStateSequence);
   12808           0 :                 ndr->depth++;
   12809           0 :                 ndr_print_uint32(ndr, "dwStateSequence", *r->out.dwStateSequence);
   12810           0 :                 ndr->depth--;
   12811           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   12812           0 :                 ndr->depth++;
   12813           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   12814           0 :                 ndr->depth--;
   12815           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   12816           0 :                 ndr->depth--;
   12817             :         }
   12818           0 :         ndr->depth--;
   12819             : }
   12820             : 
   12821           0 : static enum ndr_err_code ndr_push_clusapi_ReAddNotifyNetwork(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_ReAddNotifyNetwork *r)
   12822             : {
   12823           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   12824           0 :         if (flags & NDR_IN) {
   12825           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
   12826           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
   12827           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwFilter));
   12828           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
   12829           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.StateSequence));
   12830             :         }
   12831           0 :         if (flags & NDR_OUT) {
   12832           0 :                 if (r->out.rpc_status == NULL) {
   12833           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   12834             :                 }
   12835           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   12836           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   12837             :         }
   12838           0 :         return NDR_ERR_SUCCESS;
   12839             : }
   12840             : 
   12841           0 : static enum ndr_err_code ndr_pull_clusapi_ReAddNotifyNetwork(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_ReAddNotifyNetwork *r)
   12842             : {
   12843           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   12844           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   12845           0 :         if (flags & NDR_IN) {
   12846           0 :                 NDR_ZERO_STRUCT(r->out);
   12847             : 
   12848           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
   12849           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetwork));
   12850           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwFilter));
   12851           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
   12852           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.StateSequence));
   12853           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   12854           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   12855             :         }
   12856           0 :         if (flags & NDR_OUT) {
   12857             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   12858             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   12859           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   12860           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   12861             :                 }
   12862           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   12863           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   12864           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   12865           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   12866           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   12867             :         }
   12868           0 :         return NDR_ERR_SUCCESS;
   12869             : }
   12870             : 
   12871           0 : _PUBLIC_ void ndr_print_clusapi_ReAddNotifyNetwork(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_ReAddNotifyNetwork *r)
   12872             : {
   12873           0 :         ndr_print_struct(ndr, name, "clusapi_ReAddNotifyNetwork");
   12874           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   12875           0 :         ndr->depth++;
   12876           0 :         if (flags & NDR_SET_VALUES) {
   12877           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   12878             :         }
   12879           0 :         if (flags & NDR_IN) {
   12880           0 :                 ndr_print_struct(ndr, "in", "clusapi_ReAddNotifyNetwork");
   12881           0 :                 ndr->depth++;
   12882           0 :                 ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
   12883           0 :                 ndr_print_policy_handle(ndr, "hNetwork", &r->in.hNetwork);
   12884           0 :                 ndr_print_uint32(ndr, "dwFilter", r->in.dwFilter);
   12885           0 :                 ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
   12886           0 :                 ndr_print_uint32(ndr, "StateSequence", r->in.StateSequence);
   12887           0 :                 ndr->depth--;
   12888             :         }
   12889           0 :         if (flags & NDR_OUT) {
   12890           0 :                 ndr_print_struct(ndr, "out", "clusapi_ReAddNotifyNetwork");
   12891           0 :                 ndr->depth++;
   12892           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   12893           0 :                 ndr->depth++;
   12894           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   12895           0 :                 ndr->depth--;
   12896           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   12897           0 :                 ndr->depth--;
   12898             :         }
   12899           0 :         ndr->depth--;
   12900             : }
   12901             : 
   12902           0 : static enum ndr_err_code ndr_push_clusapi_OpenNetInterface(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_OpenNetInterface *r)
   12903             : {
   12904           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   12905           0 :         if (flags & NDR_IN) {
   12906           0 :                 if (r->in.lpszNetInterfaceName == NULL) {
   12907           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   12908             :                 }
   12909           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetInterfaceName, CH_UTF16)));
   12910           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   12911           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetInterfaceName, CH_UTF16)));
   12912           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszNetInterfaceName, ndr_charset_length(r->in.lpszNetInterfaceName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   12913             :         }
   12914           0 :         if (flags & NDR_OUT) {
   12915           0 :                 if (r->out.Status == NULL) {
   12916           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   12917             :                 }
   12918           0 :                 if (r->out.rpc_status == NULL) {
   12919           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   12920             :                 }
   12921           0 :                 if (r->out.hNetInterface == NULL) {
   12922           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   12923             :                 }
   12924           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
   12925           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   12926           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hNetInterface));
   12927             :         }
   12928           0 :         return NDR_ERR_SUCCESS;
   12929             : }
   12930             : 
   12931           0 : static enum ndr_err_code ndr_pull_clusapi_OpenNetInterface(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_OpenNetInterface *r)
   12932             : {
   12933           0 :         uint32_t size_lpszNetInterfaceName_1 = 0;
   12934           0 :         uint32_t length_lpszNetInterfaceName_1 = 0;
   12935           0 :         TALLOC_CTX *_mem_save_Status_0 = NULL;
   12936           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   12937           0 :         TALLOC_CTX *_mem_save_hNetInterface_0 = NULL;
   12938           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   12939           0 :         if (flags & NDR_IN) {
   12940           0 :                 NDR_ZERO_STRUCT(r->out);
   12941             : 
   12942           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszNetInterfaceName));
   12943           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszNetInterfaceName));
   12944           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszNetInterfaceName, &size_lpszNetInterfaceName_1));
   12945           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszNetInterfaceName, &length_lpszNetInterfaceName_1));
   12946           0 :                 if (length_lpszNetInterfaceName_1 > size_lpszNetInterfaceName_1) {
   12947           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszNetInterfaceName_1, length_lpszNetInterfaceName_1);
   12948             :                 }
   12949           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszNetInterfaceName_1, sizeof(uint16_t)));
   12950           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszNetInterfaceName, length_lpszNetInterfaceName_1, sizeof(uint16_t), CH_UTF16));
   12951           0 :                 NDR_PULL_ALLOC(ndr, r->out.Status);
   12952           0 :                 NDR_ZERO_STRUCTP(r->out.Status);
   12953           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   12954           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   12955           0 :                 NDR_PULL_ALLOC(ndr, r->out.hNetInterface);
   12956           0 :                 NDR_ZERO_STRUCTP(r->out.hNetInterface);
   12957             :         }
   12958           0 :         if (flags & NDR_OUT) {
   12959             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   12960             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   12961           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   12962           0 :                         NDR_PULL_ALLOC(ndr, r->out.Status);
   12963             :                 }
   12964           0 :                 _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   12965           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
   12966           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
   12967           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
   12968           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   12969           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   12970             :                 }
   12971           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   12972           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   12973           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   12974           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   12975           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   12976           0 :                         NDR_PULL_ALLOC(ndr, r->out.hNetInterface);
   12977             :                 }
   12978           0 :                 _mem_save_hNetInterface_0 = NDR_PULL_GET_MEM_CTX(ndr);
   12979           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.hNetInterface, LIBNDR_FLAG_REF_ALLOC);
   12980           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hNetInterface));
   12981           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hNetInterface_0, LIBNDR_FLAG_REF_ALLOC);
   12982             :         }
   12983           0 :         return NDR_ERR_SUCCESS;
   12984             : }
   12985             : 
   12986           0 : _PUBLIC_ void ndr_print_clusapi_OpenNetInterface(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_OpenNetInterface *r)
   12987             : {
   12988           0 :         ndr_print_struct(ndr, name, "clusapi_OpenNetInterface");
   12989           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   12990           0 :         ndr->depth++;
   12991           0 :         if (flags & NDR_SET_VALUES) {
   12992           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   12993             :         }
   12994           0 :         if (flags & NDR_IN) {
   12995           0 :                 ndr_print_struct(ndr, "in", "clusapi_OpenNetInterface");
   12996           0 :                 ndr->depth++;
   12997           0 :                 ndr_print_ptr(ndr, "lpszNetInterfaceName", r->in.lpszNetInterfaceName);
   12998           0 :                 ndr->depth++;
   12999           0 :                 ndr_print_string(ndr, "lpszNetInterfaceName", r->in.lpszNetInterfaceName);
   13000           0 :                 ndr->depth--;
   13001           0 :                 ndr->depth--;
   13002             :         }
   13003           0 :         if (flags & NDR_OUT) {
   13004           0 :                 ndr_print_struct(ndr, "out", "clusapi_OpenNetInterface");
   13005           0 :                 ndr->depth++;
   13006           0 :                 ndr_print_ptr(ndr, "Status", r->out.Status);
   13007           0 :                 ndr->depth++;
   13008           0 :                 ndr_print_WERROR(ndr, "Status", *r->out.Status);
   13009           0 :                 ndr->depth--;
   13010           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   13011           0 :                 ndr->depth++;
   13012           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   13013           0 :                 ndr->depth--;
   13014           0 :                 ndr_print_ptr(ndr, "hNetInterface", r->out.hNetInterface);
   13015           0 :                 ndr->depth++;
   13016           0 :                 ndr_print_policy_handle(ndr, "hNetInterface", r->out.hNetInterface);
   13017           0 :                 ndr->depth--;
   13018           0 :                 ndr->depth--;
   13019             :         }
   13020           0 :         ndr->depth--;
   13021             : }
   13022             : 
   13023           0 : static enum ndr_err_code ndr_push_clusapi_CloseNetInterface(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CloseNetInterface *r)
   13024             : {
   13025           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   13026           0 :         if (flags & NDR_IN) {
   13027           0 :                 if (r->in.NetInterface == NULL) {
   13028           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   13029             :                 }
   13030           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.NetInterface));
   13031             :         }
   13032           0 :         if (flags & NDR_OUT) {
   13033           0 :                 if (r->out.NetInterface == NULL) {
   13034           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   13035             :                 }
   13036           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.NetInterface));
   13037           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   13038             :         }
   13039           0 :         return NDR_ERR_SUCCESS;
   13040             : }
   13041             : 
   13042           0 : static enum ndr_err_code ndr_pull_clusapi_CloseNetInterface(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CloseNetInterface *r)
   13043             : {
   13044           0 :         TALLOC_CTX *_mem_save_NetInterface_0 = NULL;
   13045           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   13046           0 :         if (flags & NDR_IN) {
   13047           0 :                 NDR_ZERO_STRUCT(r->out);
   13048             : 
   13049           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   13050           0 :                         NDR_PULL_ALLOC(ndr, r->in.NetInterface);
   13051             :                 }
   13052           0 :                 _mem_save_NetInterface_0 = NDR_PULL_GET_MEM_CTX(ndr);
   13053           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.NetInterface, LIBNDR_FLAG_REF_ALLOC);
   13054           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.NetInterface));
   13055           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_NetInterface_0, LIBNDR_FLAG_REF_ALLOC);
   13056           0 :                 NDR_PULL_ALLOC(ndr, r->out.NetInterface);
   13057           0 :                 *r->out.NetInterface = *r->in.NetInterface;
   13058             :         }
   13059           0 :         if (flags & NDR_OUT) {
   13060             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   13061             :                 if (r->in.NetInterface == NULL) {
   13062             :                         NDR_PULL_ALLOC(ndr, r->in.NetInterface);
   13063             :                         NDR_ZERO_STRUCTP(r->in.NetInterface);
   13064             :                 }
   13065             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   13066           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   13067           0 :                         NDR_PULL_ALLOC(ndr, r->out.NetInterface);
   13068             :                 }
   13069           0 :                 _mem_save_NetInterface_0 = NDR_PULL_GET_MEM_CTX(ndr);
   13070           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.NetInterface, LIBNDR_FLAG_REF_ALLOC);
   13071           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.NetInterface));
   13072           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_NetInterface_0, LIBNDR_FLAG_REF_ALLOC);
   13073           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   13074             :         }
   13075           0 :         return NDR_ERR_SUCCESS;
   13076             : }
   13077             : 
   13078           0 : _PUBLIC_ void ndr_print_clusapi_CloseNetInterface(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CloseNetInterface *r)
   13079             : {
   13080           0 :         ndr_print_struct(ndr, name, "clusapi_CloseNetInterface");
   13081           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   13082           0 :         ndr->depth++;
   13083           0 :         if (flags & NDR_SET_VALUES) {
   13084           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   13085             :         }
   13086           0 :         if (flags & NDR_IN) {
   13087           0 :                 ndr_print_struct(ndr, "in", "clusapi_CloseNetInterface");
   13088           0 :                 ndr->depth++;
   13089           0 :                 ndr_print_ptr(ndr, "NetInterface", r->in.NetInterface);
   13090           0 :                 ndr->depth++;
   13091           0 :                 ndr_print_policy_handle(ndr, "NetInterface", r->in.NetInterface);
   13092           0 :                 ndr->depth--;
   13093           0 :                 ndr->depth--;
   13094             :         }
   13095           0 :         if (flags & NDR_OUT) {
   13096           0 :                 ndr_print_struct(ndr, "out", "clusapi_CloseNetInterface");
   13097           0 :                 ndr->depth++;
   13098           0 :                 ndr_print_ptr(ndr, "NetInterface", r->out.NetInterface);
   13099           0 :                 ndr->depth++;
   13100           0 :                 ndr_print_policy_handle(ndr, "NetInterface", r->out.NetInterface);
   13101           0 :                 ndr->depth--;
   13102           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   13103           0 :                 ndr->depth--;
   13104             :         }
   13105           0 :         ndr->depth--;
   13106             : }
   13107             : 
   13108           0 : static enum ndr_err_code ndr_push_clusapi_GetNetInterfaceState(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_GetNetInterfaceState *r)
   13109             : {
   13110           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   13111           0 :         if (flags & NDR_IN) {
   13112           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetInterface));
   13113             :         }
   13114           0 :         if (flags & NDR_OUT) {
   13115           0 :                 if (r->out.State == NULL) {
   13116           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   13117             :                 }
   13118           0 :                 if (r->out.rpc_status == NULL) {
   13119           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   13120             :                 }
   13121           0 :                 NDR_CHECK(ndr_push_clusapi_ClusterNetInterfaceState(ndr, NDR_SCALARS, *r->out.State));
   13122           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   13123           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   13124             :         }
   13125           0 :         return NDR_ERR_SUCCESS;
   13126             : }
   13127             : 
   13128           0 : static enum ndr_err_code ndr_pull_clusapi_GetNetInterfaceState(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_GetNetInterfaceState *r)
   13129             : {
   13130           0 :         TALLOC_CTX *_mem_save_State_0 = NULL;
   13131           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   13132           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   13133           0 :         if (flags & NDR_IN) {
   13134           0 :                 NDR_ZERO_STRUCT(r->out);
   13135             : 
   13136           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetInterface));
   13137           0 :                 NDR_PULL_ALLOC(ndr, r->out.State);
   13138           0 :                 NDR_ZERO_STRUCTP(r->out.State);
   13139           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   13140           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   13141             :         }
   13142           0 :         if (flags & NDR_OUT) {
   13143             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   13144             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   13145           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   13146           0 :                         NDR_PULL_ALLOC(ndr, r->out.State);
   13147             :                 }
   13148           0 :                 _mem_save_State_0 = NDR_PULL_GET_MEM_CTX(ndr);
   13149           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.State, LIBNDR_FLAG_REF_ALLOC);
   13150           0 :                 NDR_CHECK(ndr_pull_clusapi_ClusterNetInterfaceState(ndr, NDR_SCALARS, r->out.State));
   13151           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_State_0, LIBNDR_FLAG_REF_ALLOC);
   13152           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   13153           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   13154             :                 }
   13155           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   13156           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   13157           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   13158           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   13159           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   13160             :         }
   13161           0 :         return NDR_ERR_SUCCESS;
   13162             : }
   13163             : 
   13164           0 : _PUBLIC_ void ndr_print_clusapi_GetNetInterfaceState(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_GetNetInterfaceState *r)
   13165             : {
   13166           0 :         ndr_print_struct(ndr, name, "clusapi_GetNetInterfaceState");
   13167           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   13168           0 :         ndr->depth++;
   13169           0 :         if (flags & NDR_SET_VALUES) {
   13170           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   13171             :         }
   13172           0 :         if (flags & NDR_IN) {
   13173           0 :                 ndr_print_struct(ndr, "in", "clusapi_GetNetInterfaceState");
   13174           0 :                 ndr->depth++;
   13175           0 :                 ndr_print_policy_handle(ndr, "hNetInterface", &r->in.hNetInterface);
   13176           0 :                 ndr->depth--;
   13177             :         }
   13178           0 :         if (flags & NDR_OUT) {
   13179           0 :                 ndr_print_struct(ndr, "out", "clusapi_GetNetInterfaceState");
   13180           0 :                 ndr->depth++;
   13181           0 :                 ndr_print_ptr(ndr, "State", r->out.State);
   13182           0 :                 ndr->depth++;
   13183           0 :                 ndr_print_clusapi_ClusterNetInterfaceState(ndr, "State", *r->out.State);
   13184           0 :                 ndr->depth--;
   13185           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   13186           0 :                 ndr->depth++;
   13187           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   13188           0 :                 ndr->depth--;
   13189           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   13190           0 :                 ndr->depth--;
   13191             :         }
   13192           0 :         ndr->depth--;
   13193             : }
   13194             : 
   13195           0 : static enum ndr_err_code ndr_push_clusapi_GetNetInterface(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_GetNetInterface *r)
   13196             : {
   13197           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   13198           0 :         if (flags & NDR_IN) {
   13199           0 :                 if (r->in.lpszNodeName == NULL) {
   13200           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   13201             :                 }
   13202           0 :                 if (r->in.lpszNetworkName == NULL) {
   13203           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   13204             :                 }
   13205           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNodeName, CH_UTF16)));
   13206           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   13207           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNodeName, CH_UTF16)));
   13208           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszNodeName, ndr_charset_length(r->in.lpszNodeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   13209           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16)));
   13210           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   13211           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16)));
   13212           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszNetworkName, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   13213             :         }
   13214           0 :         if (flags & NDR_OUT) {
   13215           0 :                 if (r->out.lppszInterfaceName == NULL) {
   13216           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   13217             :                 }
   13218           0 :                 if (r->out.rpc_status == NULL) {
   13219           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   13220             :                 }
   13221           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lppszInterfaceName));
   13222           0 :                 if (*r->out.lppszInterfaceName) {
   13223           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lppszInterfaceName, CH_UTF16)));
   13224           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   13225           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lppszInterfaceName, CH_UTF16)));
   13226           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.lppszInterfaceName, ndr_charset_length(*r->out.lppszInterfaceName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   13227             :                 }
   13228           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   13229           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   13230             :         }
   13231           0 :         return NDR_ERR_SUCCESS;
   13232             : }
   13233             : 
   13234           0 : static enum ndr_err_code ndr_pull_clusapi_GetNetInterface(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_GetNetInterface *r)
   13235             : {
   13236           0 :         uint32_t size_lpszNodeName_1 = 0;
   13237           0 :         uint32_t length_lpszNodeName_1 = 0;
   13238           0 :         uint32_t size_lpszNetworkName_1 = 0;
   13239           0 :         uint32_t length_lpszNetworkName_1 = 0;
   13240           0 :         uint32_t _ptr_lppszInterfaceName;
   13241           0 :         uint32_t size_lppszInterfaceName_2 = 0;
   13242           0 :         uint32_t length_lppszInterfaceName_2 = 0;
   13243           0 :         TALLOC_CTX *_mem_save_lppszInterfaceName_0 = NULL;
   13244           0 :         TALLOC_CTX *_mem_save_lppszInterfaceName_1 = NULL;
   13245           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   13246           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   13247           0 :         if (flags & NDR_IN) {
   13248           0 :                 NDR_ZERO_STRUCT(r->out);
   13249             : 
   13250           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszNodeName));
   13251           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszNodeName));
   13252           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszNodeName, &size_lpszNodeName_1));
   13253           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszNodeName, &length_lpszNodeName_1));
   13254           0 :                 if (length_lpszNodeName_1 > size_lpszNodeName_1) {
   13255           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszNodeName_1, length_lpszNodeName_1);
   13256             :                 }
   13257           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszNodeName_1, sizeof(uint16_t)));
   13258           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszNodeName, length_lpszNodeName_1, sizeof(uint16_t), CH_UTF16));
   13259           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszNetworkName));
   13260           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszNetworkName));
   13261           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszNetworkName, &size_lpszNetworkName_1));
   13262           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszNetworkName, &length_lpszNetworkName_1));
   13263           0 :                 if (length_lpszNetworkName_1 > size_lpszNetworkName_1) {
   13264           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszNetworkName_1, length_lpszNetworkName_1);
   13265             :                 }
   13266           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszNetworkName_1, sizeof(uint16_t)));
   13267           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszNetworkName, length_lpszNetworkName_1, sizeof(uint16_t), CH_UTF16));
   13268           0 :                 NDR_PULL_ALLOC(ndr, r->out.lppszInterfaceName);
   13269           0 :                 NDR_ZERO_STRUCTP(r->out.lppszInterfaceName);
   13270           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   13271           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   13272             :         }
   13273           0 :         if (flags & NDR_OUT) {
   13274             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   13275             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   13276           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   13277           0 :                         NDR_PULL_ALLOC(ndr, r->out.lppszInterfaceName);
   13278             :                 }
   13279           0 :                 _mem_save_lppszInterfaceName_0 = NDR_PULL_GET_MEM_CTX(ndr);
   13280           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lppszInterfaceName, LIBNDR_FLAG_REF_ALLOC);
   13281           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lppszInterfaceName));
   13282           0 :                 if (_ptr_lppszInterfaceName) {
   13283           0 :                         NDR_PULL_ALLOC(ndr, *r->out.lppszInterfaceName);
   13284             :                 } else {
   13285           0 :                         *r->out.lppszInterfaceName = NULL;
   13286             :                 }
   13287           0 :                 if (*r->out.lppszInterfaceName) {
   13288           0 :                         _mem_save_lppszInterfaceName_1 = NDR_PULL_GET_MEM_CTX(ndr);
   13289           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.lppszInterfaceName, 0);
   13290           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.lppszInterfaceName));
   13291           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, r->out.lppszInterfaceName));
   13292           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.lppszInterfaceName, &size_lppszInterfaceName_2));
   13293           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.lppszInterfaceName, &length_lppszInterfaceName_2));
   13294           0 :                         if (length_lppszInterfaceName_2 > size_lppszInterfaceName_2) {
   13295           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lppszInterfaceName_2, length_lppszInterfaceName_2);
   13296             :                         }
   13297           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_lppszInterfaceName_2, sizeof(uint16_t)));
   13298           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.lppszInterfaceName, length_lppszInterfaceName_2, sizeof(uint16_t), CH_UTF16));
   13299           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lppszInterfaceName_1, 0);
   13300             :                 }
   13301           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lppszInterfaceName_0, LIBNDR_FLAG_REF_ALLOC);
   13302           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   13303           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   13304             :                 }
   13305           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   13306           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   13307           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   13308           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   13309           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   13310             :         }
   13311           0 :         return NDR_ERR_SUCCESS;
   13312             : }
   13313             : 
   13314           0 : _PUBLIC_ void ndr_print_clusapi_GetNetInterface(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_GetNetInterface *r)
   13315             : {
   13316           0 :         ndr_print_struct(ndr, name, "clusapi_GetNetInterface");
   13317           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   13318           0 :         ndr->depth++;
   13319           0 :         if (flags & NDR_SET_VALUES) {
   13320           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   13321             :         }
   13322           0 :         if (flags & NDR_IN) {
   13323           0 :                 ndr_print_struct(ndr, "in", "clusapi_GetNetInterface");
   13324           0 :                 ndr->depth++;
   13325           0 :                 ndr_print_ptr(ndr, "lpszNodeName", r->in.lpszNodeName);
   13326           0 :                 ndr->depth++;
   13327           0 :                 ndr_print_string(ndr, "lpszNodeName", r->in.lpszNodeName);
   13328           0 :                 ndr->depth--;
   13329           0 :                 ndr_print_ptr(ndr, "lpszNetworkName", r->in.lpszNetworkName);
   13330           0 :                 ndr->depth++;
   13331           0 :                 ndr_print_string(ndr, "lpszNetworkName", r->in.lpszNetworkName);
   13332           0 :                 ndr->depth--;
   13333           0 :                 ndr->depth--;
   13334             :         }
   13335           0 :         if (flags & NDR_OUT) {
   13336           0 :                 ndr_print_struct(ndr, "out", "clusapi_GetNetInterface");
   13337           0 :                 ndr->depth++;
   13338           0 :                 ndr_print_ptr(ndr, "lppszInterfaceName", r->out.lppszInterfaceName);
   13339           0 :                 ndr->depth++;
   13340           0 :                 ndr_print_ptr(ndr, "lppszInterfaceName", *r->out.lppszInterfaceName);
   13341           0 :                 ndr->depth++;
   13342           0 :                 if (*r->out.lppszInterfaceName) {
   13343           0 :                         ndr_print_string(ndr, "lppszInterfaceName", *r->out.lppszInterfaceName);
   13344             :                 }
   13345           0 :                 ndr->depth--;
   13346           0 :                 ndr->depth--;
   13347           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   13348           0 :                 ndr->depth++;
   13349           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   13350           0 :                 ndr->depth--;
   13351           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   13352           0 :                 ndr->depth--;
   13353             :         }
   13354           0 :         ndr->depth--;
   13355             : }
   13356             : 
   13357           0 : static enum ndr_err_code ndr_push_clusapi_GetNetInterfaceId(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_GetNetInterfaceId *r)
   13358             : {
   13359           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   13360           0 :         if (flags & NDR_IN) {
   13361           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetInterface));
   13362             :         }
   13363           0 :         if (flags & NDR_OUT) {
   13364           0 :                 if (r->out.pGuid == NULL) {
   13365           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   13366             :                 }
   13367           0 :                 if (r->out.rpc_status == NULL) {
   13368           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   13369             :                 }
   13370           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.pGuid));
   13371           0 :                 if (*r->out.pGuid) {
   13372           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.pGuid, CH_UTF16)));
   13373           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   13374           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.pGuid, CH_UTF16)));
   13375           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.pGuid, ndr_charset_length(*r->out.pGuid, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   13376             :                 }
   13377           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   13378           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   13379             :         }
   13380           0 :         return NDR_ERR_SUCCESS;
   13381             : }
   13382             : 
   13383           0 : static enum ndr_err_code ndr_pull_clusapi_GetNetInterfaceId(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_GetNetInterfaceId *r)
   13384             : {
   13385           0 :         uint32_t _ptr_pGuid;
   13386           0 :         uint32_t size_pGuid_2 = 0;
   13387           0 :         uint32_t length_pGuid_2 = 0;
   13388           0 :         TALLOC_CTX *_mem_save_pGuid_0 = NULL;
   13389           0 :         TALLOC_CTX *_mem_save_pGuid_1 = NULL;
   13390           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   13391           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   13392           0 :         if (flags & NDR_IN) {
   13393           0 :                 NDR_ZERO_STRUCT(r->out);
   13394             : 
   13395           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetInterface));
   13396           0 :                 NDR_PULL_ALLOC(ndr, r->out.pGuid);
   13397           0 :                 NDR_ZERO_STRUCTP(r->out.pGuid);
   13398           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   13399           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   13400             :         }
   13401           0 :         if (flags & NDR_OUT) {
   13402             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   13403             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   13404           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   13405           0 :                         NDR_PULL_ALLOC(ndr, r->out.pGuid);
   13406             :                 }
   13407           0 :                 _mem_save_pGuid_0 = NDR_PULL_GET_MEM_CTX(ndr);
   13408           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.pGuid, LIBNDR_FLAG_REF_ALLOC);
   13409           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pGuid));
   13410           0 :                 if (_ptr_pGuid) {
   13411           0 :                         NDR_PULL_ALLOC(ndr, *r->out.pGuid);
   13412             :                 } else {
   13413           0 :                         *r->out.pGuid = NULL;
   13414             :                 }
   13415           0 :                 if (*r->out.pGuid) {
   13416           0 :                         _mem_save_pGuid_1 = NDR_PULL_GET_MEM_CTX(ndr);
   13417           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.pGuid, 0);
   13418           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.pGuid));
   13419           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, r->out.pGuid));
   13420           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.pGuid, &size_pGuid_2));
   13421           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.pGuid, &length_pGuid_2));
   13422           0 :                         if (length_pGuid_2 > size_pGuid_2) {
   13423           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_pGuid_2, length_pGuid_2);
   13424             :                         }
   13425           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_pGuid_2, sizeof(uint16_t)));
   13426           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.pGuid, length_pGuid_2, sizeof(uint16_t), CH_UTF16));
   13427           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pGuid_1, 0);
   13428             :                 }
   13429           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pGuid_0, LIBNDR_FLAG_REF_ALLOC);
   13430           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   13431           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   13432             :                 }
   13433           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   13434           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   13435           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   13436           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   13437           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   13438             :         }
   13439           0 :         return NDR_ERR_SUCCESS;
   13440             : }
   13441             : 
   13442           0 : _PUBLIC_ void ndr_print_clusapi_GetNetInterfaceId(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_GetNetInterfaceId *r)
   13443             : {
   13444           0 :         ndr_print_struct(ndr, name, "clusapi_GetNetInterfaceId");
   13445           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   13446           0 :         ndr->depth++;
   13447           0 :         if (flags & NDR_SET_VALUES) {
   13448           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   13449             :         }
   13450           0 :         if (flags & NDR_IN) {
   13451           0 :                 ndr_print_struct(ndr, "in", "clusapi_GetNetInterfaceId");
   13452           0 :                 ndr->depth++;
   13453           0 :                 ndr_print_policy_handle(ndr, "hNetInterface", &r->in.hNetInterface);
   13454           0 :                 ndr->depth--;
   13455             :         }
   13456           0 :         if (flags & NDR_OUT) {
   13457           0 :                 ndr_print_struct(ndr, "out", "clusapi_GetNetInterfaceId");
   13458           0 :                 ndr->depth++;
   13459           0 :                 ndr_print_ptr(ndr, "pGuid", r->out.pGuid);
   13460           0 :                 ndr->depth++;
   13461           0 :                 ndr_print_ptr(ndr, "pGuid", *r->out.pGuid);
   13462           0 :                 ndr->depth++;
   13463           0 :                 if (*r->out.pGuid) {
   13464           0 :                         ndr_print_string(ndr, "pGuid", *r->out.pGuid);
   13465             :                 }
   13466           0 :                 ndr->depth--;
   13467           0 :                 ndr->depth--;
   13468           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   13469           0 :                 ndr->depth++;
   13470           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   13471           0 :                 ndr->depth--;
   13472           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   13473           0 :                 ndr->depth--;
   13474             :         }
   13475           0 :         ndr->depth--;
   13476             : }
   13477             : 
   13478           0 : static enum ndr_err_code ndr_push_clusapi_NodeNetInterfaceControl(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_NodeNetInterfaceControl *r)
   13479             : {
   13480           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   13481           0 :         if (flags & NDR_IN) {
   13482           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetInterface));
   13483           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   13484           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwControlCode));
   13485           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
   13486           0 :                 if (r->in.lpInBuffer) {
   13487           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
   13488           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
   13489             :                 }
   13490           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
   13491           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   13492             :         }
   13493           0 :         if (flags & NDR_OUT) {
   13494           0 :                 if (r->out.lpOutBuffer == NULL) {
   13495           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   13496             :                 }
   13497           0 :                 if (r->out.lpBytesReturned == NULL) {
   13498           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   13499             :                 }
   13500           0 :                 if (r->out.lpcbRequired == NULL) {
   13501           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   13502             :                 }
   13503           0 :                 if (r->out.rpc_status == NULL) {
   13504           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   13505             :                 }
   13506           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   13507           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   13508           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   13509           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
   13510           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   13511           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
   13512           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   13513           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   13514             :         }
   13515           0 :         return NDR_ERR_SUCCESS;
   13516             : }
   13517             : 
   13518           0 : static enum ndr_err_code ndr_pull_clusapi_NodeNetInterfaceControl(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_NodeNetInterfaceControl *r)
   13519             : {
   13520           0 :         uint32_t _ptr_lpInBuffer;
   13521           0 :         uint32_t size_lpInBuffer_1 = 0;
   13522           0 :         uint32_t size_lpOutBuffer_1 = 0;
   13523           0 :         uint32_t length_lpOutBuffer_1 = 0;
   13524           0 :         TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
   13525           0 :         TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
   13526           0 :         TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
   13527           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   13528           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   13529           0 :         if (flags & NDR_IN) {
   13530           0 :                 NDR_ZERO_STRUCT(r->out);
   13531             : 
   13532           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetInterface));
   13533           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   13534           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwControlCode));
   13535           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
   13536           0 :                 if (_ptr_lpInBuffer) {
   13537           0 :                         NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
   13538             :                 } else {
   13539           0 :                         r->in.lpInBuffer = NULL;
   13540             :                 }
   13541           0 :                 if (r->in.lpInBuffer) {
   13542           0 :                         _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
   13543           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
   13544           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
   13545           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
   13546           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
   13547           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
   13548           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
   13549             :                 }
   13550           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
   13551           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
   13552           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
   13553           0 :                 memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
   13554           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   13555           0 :                 NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
   13556           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   13557           0 :                 NDR_ZERO_STRUCTP(r->out.lpcbRequired);
   13558           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   13559           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   13560           0 :                 if (r->in.lpInBuffer) {
   13561           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
   13562             :                 }
   13563             :         }
   13564           0 :         if (flags & NDR_OUT) {
   13565             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   13566             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   13567           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
   13568           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
   13569           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
   13570           0 :                 NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
   13571           0 :                 if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
   13572           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpOutBuffer_1, length_lpOutBuffer_1);
   13573             :                 }
   13574           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   13575           0 :                         NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
   13576             :                 }
   13577           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
   13578           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   13579           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   13580             :                 }
   13581           0 :                 _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
   13582           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
   13583           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
   13584           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
   13585           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   13586           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   13587             :                 }
   13588           0 :                 _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
   13589           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
   13590           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
   13591           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
   13592           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   13593           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   13594             :                 }
   13595           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   13596           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   13597           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   13598           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   13599           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   13600           0 :                 if (r->out.lpOutBuffer) {
   13601           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
   13602             :                 }
   13603           0 :                 if (r->out.lpOutBuffer) {
   13604           0 :                         NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
   13605             :                 }
   13606             :         }
   13607           0 :         return NDR_ERR_SUCCESS;
   13608             : }
   13609             : 
   13610           0 : _PUBLIC_ void ndr_print_clusapi_NodeNetInterfaceControl(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_NodeNetInterfaceControl *r)
   13611             : {
   13612           0 :         ndr_print_struct(ndr, name, "clusapi_NodeNetInterfaceControl");
   13613           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   13614           0 :         ndr->depth++;
   13615           0 :         if (flags & NDR_SET_VALUES) {
   13616           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   13617             :         }
   13618           0 :         if (flags & NDR_IN) {
   13619           0 :                 ndr_print_struct(ndr, "in", "clusapi_NodeNetInterfaceControl");
   13620           0 :                 ndr->depth++;
   13621           0 :                 ndr_print_policy_handle(ndr, "hNetInterface", &r->in.hNetInterface);
   13622           0 :                 ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
   13623           0 :                 ndr_print_uint32(ndr, "dwControlCode", r->in.dwControlCode);
   13624           0 :                 ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
   13625           0 :                 ndr->depth++;
   13626           0 :                 if (r->in.lpInBuffer) {
   13627           0 :                         ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
   13628             :                 }
   13629           0 :                 ndr->depth--;
   13630           0 :                 ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
   13631           0 :                 ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
   13632           0 :                 ndr->depth--;
   13633             :         }
   13634           0 :         if (flags & NDR_OUT) {
   13635           0 :                 ndr_print_struct(ndr, "out", "clusapi_NodeNetInterfaceControl");
   13636           0 :                 ndr->depth++;
   13637           0 :                 ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
   13638           0 :                 ndr->depth++;
   13639           0 :                 ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
   13640           0 :                 ndr->depth--;
   13641           0 :                 ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
   13642           0 :                 ndr->depth++;
   13643           0 :                 ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
   13644           0 :                 ndr->depth--;
   13645           0 :                 ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
   13646           0 :                 ndr->depth++;
   13647           0 :                 ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
   13648           0 :                 ndr->depth--;
   13649           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   13650           0 :                 ndr->depth++;
   13651           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   13652           0 :                 ndr->depth--;
   13653           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   13654           0 :                 ndr->depth--;
   13655             :         }
   13656           0 :         ndr->depth--;
   13657             : }
   13658             : 
   13659           0 : static enum ndr_err_code ndr_push_clusapi_NetInterfaceControl(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_NetInterfaceControl *r)
   13660             : {
   13661           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   13662           0 :         if (flags & NDR_IN) {
   13663           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetInterface));
   13664           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwControlCode));
   13665           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
   13666           0 :                 if (r->in.lpInBuffer) {
   13667           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
   13668           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
   13669             :                 }
   13670           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
   13671           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   13672             :         }
   13673           0 :         if (flags & NDR_OUT) {
   13674           0 :                 if (r->out.lpOutBuffer == NULL) {
   13675           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   13676             :                 }
   13677           0 :                 if (r->out.lpBytesReturned == NULL) {
   13678           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   13679             :                 }
   13680           0 :                 if (r->out.lpcbRequired == NULL) {
   13681           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   13682             :                 }
   13683           0 :                 if (r->out.rpc_status == NULL) {
   13684           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   13685             :                 }
   13686           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   13687           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   13688           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   13689           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
   13690           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   13691           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
   13692           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   13693           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   13694             :         }
   13695           0 :         return NDR_ERR_SUCCESS;
   13696             : }
   13697             : 
   13698           0 : static enum ndr_err_code ndr_pull_clusapi_NetInterfaceControl(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_NetInterfaceControl *r)
   13699             : {
   13700           0 :         uint32_t _ptr_lpInBuffer;
   13701           0 :         uint32_t size_lpInBuffer_1 = 0;
   13702           0 :         uint32_t size_lpOutBuffer_1 = 0;
   13703           0 :         uint32_t length_lpOutBuffer_1 = 0;
   13704           0 :         TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
   13705           0 :         TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
   13706           0 :         TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
   13707           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   13708           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   13709           0 :         if (flags & NDR_IN) {
   13710           0 :                 NDR_ZERO_STRUCT(r->out);
   13711             : 
   13712           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetInterface));
   13713           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwControlCode));
   13714           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
   13715           0 :                 if (_ptr_lpInBuffer) {
   13716           0 :                         NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
   13717             :                 } else {
   13718           0 :                         r->in.lpInBuffer = NULL;
   13719             :                 }
   13720           0 :                 if (r->in.lpInBuffer) {
   13721           0 :                         _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
   13722           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
   13723           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
   13724           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
   13725           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
   13726           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
   13727           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
   13728             :                 }
   13729           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
   13730           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
   13731           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
   13732           0 :                 memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
   13733           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   13734           0 :                 NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
   13735           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   13736           0 :                 NDR_ZERO_STRUCTP(r->out.lpcbRequired);
   13737           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   13738           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   13739           0 :                 if (r->in.lpInBuffer) {
   13740           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
   13741             :                 }
   13742             :         }
   13743           0 :         if (flags & NDR_OUT) {
   13744             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   13745             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   13746           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
   13747           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
   13748           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
   13749           0 :                 NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
   13750           0 :                 if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
   13751           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpOutBuffer_1, length_lpOutBuffer_1);
   13752             :                 }
   13753           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   13754           0 :                         NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
   13755             :                 }
   13756           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
   13757           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   13758           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   13759             :                 }
   13760           0 :                 _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
   13761           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
   13762           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
   13763           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
   13764           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   13765           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   13766             :                 }
   13767           0 :                 _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
   13768           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
   13769           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
   13770           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
   13771           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   13772           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   13773             :                 }
   13774           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   13775           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   13776           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   13777           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   13778           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   13779           0 :                 if (r->out.lpOutBuffer) {
   13780           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
   13781             :                 }
   13782           0 :                 if (r->out.lpOutBuffer) {
   13783           0 :                         NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
   13784             :                 }
   13785             :         }
   13786           0 :         return NDR_ERR_SUCCESS;
   13787             : }
   13788             : 
   13789           0 : _PUBLIC_ void ndr_print_clusapi_NetInterfaceControl(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_NetInterfaceControl *r)
   13790             : {
   13791           0 :         ndr_print_struct(ndr, name, "clusapi_NetInterfaceControl");
   13792           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   13793           0 :         ndr->depth++;
   13794           0 :         if (flags & NDR_SET_VALUES) {
   13795           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   13796             :         }
   13797           0 :         if (flags & NDR_IN) {
   13798           0 :                 ndr_print_struct(ndr, "in", "clusapi_NetInterfaceControl");
   13799           0 :                 ndr->depth++;
   13800           0 :                 ndr_print_policy_handle(ndr, "hNetInterface", &r->in.hNetInterface);
   13801           0 :                 ndr_print_uint32(ndr, "dwControlCode", r->in.dwControlCode);
   13802           0 :                 ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
   13803           0 :                 ndr->depth++;
   13804           0 :                 if (r->in.lpInBuffer) {
   13805           0 :                         ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
   13806             :                 }
   13807           0 :                 ndr->depth--;
   13808           0 :                 ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
   13809           0 :                 ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
   13810           0 :                 ndr->depth--;
   13811             :         }
   13812           0 :         if (flags & NDR_OUT) {
   13813           0 :                 ndr_print_struct(ndr, "out", "clusapi_NetInterfaceControl");
   13814           0 :                 ndr->depth++;
   13815           0 :                 ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
   13816           0 :                 ndr->depth++;
   13817           0 :                 ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
   13818           0 :                 ndr->depth--;
   13819           0 :                 ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
   13820           0 :                 ndr->depth++;
   13821           0 :                 ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
   13822           0 :                 ndr->depth--;
   13823           0 :                 ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
   13824           0 :                 ndr->depth++;
   13825           0 :                 ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
   13826           0 :                 ndr->depth--;
   13827           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   13828           0 :                 ndr->depth++;
   13829           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   13830           0 :                 ndr->depth--;
   13831           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   13832           0 :                 ndr->depth--;
   13833             :         }
   13834           0 :         ndr->depth--;
   13835             : }
   13836             : 
   13837           0 : static enum ndr_err_code ndr_push_clusapi_AddNotifyNetInterface(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_AddNotifyNetInterface *r)
   13838             : {
   13839           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   13840           0 :         if (flags & NDR_IN) {
   13841           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
   13842           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetInterface));
   13843           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwFilter));
   13844           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
   13845             :         }
   13846           0 :         if (flags & NDR_OUT) {
   13847           0 :                 if (r->out.dwStateSequence == NULL) {
   13848           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   13849             :                 }
   13850           0 :                 if (r->out.rpc_status == NULL) {
   13851           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   13852             :                 }
   13853           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.dwStateSequence));
   13854           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   13855           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   13856             :         }
   13857           0 :         return NDR_ERR_SUCCESS;
   13858             : }
   13859             : 
   13860           0 : static enum ndr_err_code ndr_pull_clusapi_AddNotifyNetInterface(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_AddNotifyNetInterface *r)
   13861             : {
   13862           0 :         TALLOC_CTX *_mem_save_dwStateSequence_0 = NULL;
   13863           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   13864           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   13865           0 :         if (flags & NDR_IN) {
   13866           0 :                 NDR_ZERO_STRUCT(r->out);
   13867             : 
   13868           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
   13869           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetInterface));
   13870           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwFilter));
   13871           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
   13872           0 :                 NDR_PULL_ALLOC(ndr, r->out.dwStateSequence);
   13873           0 :                 NDR_ZERO_STRUCTP(r->out.dwStateSequence);
   13874           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   13875           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   13876             :         }
   13877           0 :         if (flags & NDR_OUT) {
   13878             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   13879             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   13880           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   13881           0 :                         NDR_PULL_ALLOC(ndr, r->out.dwStateSequence);
   13882             :                 }
   13883           0 :                 _mem_save_dwStateSequence_0 = NDR_PULL_GET_MEM_CTX(ndr);
   13884           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.dwStateSequence, LIBNDR_FLAG_REF_ALLOC);
   13885           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.dwStateSequence));
   13886           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dwStateSequence_0, LIBNDR_FLAG_REF_ALLOC);
   13887           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   13888           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   13889             :                 }
   13890           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   13891           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   13892           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   13893           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   13894           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   13895             :         }
   13896           0 :         return NDR_ERR_SUCCESS;
   13897             : }
   13898             : 
   13899           0 : _PUBLIC_ void ndr_print_clusapi_AddNotifyNetInterface(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_AddNotifyNetInterface *r)
   13900             : {
   13901           0 :         ndr_print_struct(ndr, name, "clusapi_AddNotifyNetInterface");
   13902           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   13903           0 :         ndr->depth++;
   13904           0 :         if (flags & NDR_SET_VALUES) {
   13905           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   13906             :         }
   13907           0 :         if (flags & NDR_IN) {
   13908           0 :                 ndr_print_struct(ndr, "in", "clusapi_AddNotifyNetInterface");
   13909           0 :                 ndr->depth++;
   13910           0 :                 ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
   13911           0 :                 ndr_print_policy_handle(ndr, "hNetInterface", &r->in.hNetInterface);
   13912           0 :                 ndr_print_uint32(ndr, "dwFilter", r->in.dwFilter);
   13913           0 :                 ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
   13914           0 :                 ndr->depth--;
   13915             :         }
   13916           0 :         if (flags & NDR_OUT) {
   13917           0 :                 ndr_print_struct(ndr, "out", "clusapi_AddNotifyNetInterface");
   13918           0 :                 ndr->depth++;
   13919           0 :                 ndr_print_ptr(ndr, "dwStateSequence", r->out.dwStateSequence);
   13920           0 :                 ndr->depth++;
   13921           0 :                 ndr_print_uint32(ndr, "dwStateSequence", *r->out.dwStateSequence);
   13922           0 :                 ndr->depth--;
   13923           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   13924           0 :                 ndr->depth++;
   13925           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   13926           0 :                 ndr->depth--;
   13927           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   13928           0 :                 ndr->depth--;
   13929             :         }
   13930           0 :         ndr->depth--;
   13931             : }
   13932             : 
   13933           0 : static enum ndr_err_code ndr_push_clusapi_ReAddNotifyNetInterface(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_ReAddNotifyNetInterface *r)
   13934             : {
   13935           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   13936           0 :         if (flags & NDR_IN) {
   13937           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
   13938           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNetInterface));
   13939           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwFilter));
   13940           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
   13941           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.StateSequence));
   13942             :         }
   13943           0 :         if (flags & NDR_OUT) {
   13944           0 :                 if (r->out.rpc_status == NULL) {
   13945           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   13946             :                 }
   13947           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   13948           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   13949             :         }
   13950           0 :         return NDR_ERR_SUCCESS;
   13951             : }
   13952             : 
   13953           0 : static enum ndr_err_code ndr_pull_clusapi_ReAddNotifyNetInterface(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_ReAddNotifyNetInterface *r)
   13954             : {
   13955           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   13956           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   13957           0 :         if (flags & NDR_IN) {
   13958           0 :                 NDR_ZERO_STRUCT(r->out);
   13959             : 
   13960           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
   13961           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNetInterface));
   13962           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwFilter));
   13963           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
   13964           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.StateSequence));
   13965           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   13966           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   13967             :         }
   13968           0 :         if (flags & NDR_OUT) {
   13969             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   13970             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   13971           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   13972           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   13973             :                 }
   13974           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   13975           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   13976           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   13977           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   13978           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   13979             :         }
   13980           0 :         return NDR_ERR_SUCCESS;
   13981             : }
   13982             : 
   13983           0 : _PUBLIC_ void ndr_print_clusapi_ReAddNotifyNetInterface(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_ReAddNotifyNetInterface *r)
   13984             : {
   13985           0 :         ndr_print_struct(ndr, name, "clusapi_ReAddNotifyNetInterface");
   13986           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   13987           0 :         ndr->depth++;
   13988           0 :         if (flags & NDR_SET_VALUES) {
   13989           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   13990             :         }
   13991           0 :         if (flags & NDR_IN) {
   13992           0 :                 ndr_print_struct(ndr, "in", "clusapi_ReAddNotifyNetInterface");
   13993           0 :                 ndr->depth++;
   13994           0 :                 ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
   13995           0 :                 ndr_print_policy_handle(ndr, "hNetInterface", &r->in.hNetInterface);
   13996           0 :                 ndr_print_uint32(ndr, "dwFilter", r->in.dwFilter);
   13997           0 :                 ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
   13998           0 :                 ndr_print_uint32(ndr, "StateSequence", r->in.StateSequence);
   13999           0 :                 ndr->depth--;
   14000             :         }
   14001           0 :         if (flags & NDR_OUT) {
   14002           0 :                 ndr_print_struct(ndr, "out", "clusapi_ReAddNotifyNetInterface");
   14003           0 :                 ndr->depth++;
   14004           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   14005           0 :                 ndr->depth++;
   14006           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   14007           0 :                 ndr->depth--;
   14008           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   14009           0 :                 ndr->depth--;
   14010             :         }
   14011           0 :         ndr->depth--;
   14012             : }
   14013             : 
   14014           0 : static enum ndr_err_code ndr_push_clusapi_CreateNodeEnum(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CreateNodeEnum *r)
   14015             : {
   14016           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   14017           0 :         if (flags & NDR_IN) {
   14018           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   14019           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwType));
   14020             :         }
   14021           0 :         if (flags & NDR_OUT) {
   14022           0 :                 if (r->out.ReturnEnum == NULL) {
   14023           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   14024             :                 }
   14025           0 :                 if (r->out.rpc_status == NULL) {
   14026           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   14027             :                 }
   14028           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ReturnEnum));
   14029           0 :                 if (*r->out.ReturnEnum) {
   14030           0 :                         NDR_CHECK(ndr_push_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
   14031             :                 }
   14032           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   14033           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   14034             :         }
   14035           0 :         return NDR_ERR_SUCCESS;
   14036             : }
   14037             : 
   14038           0 : static enum ndr_err_code ndr_pull_clusapi_CreateNodeEnum(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CreateNodeEnum *r)
   14039             : {
   14040           0 :         uint32_t _ptr_ReturnEnum;
   14041           0 :         TALLOC_CTX *_mem_save_ReturnEnum_0 = NULL;
   14042           0 :         TALLOC_CTX *_mem_save_ReturnEnum_1 = NULL;
   14043           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   14044           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   14045           0 :         if (flags & NDR_IN) {
   14046           0 :                 NDR_ZERO_STRUCT(r->out);
   14047             : 
   14048           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   14049           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwType));
   14050           0 :                 NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
   14051           0 :                 NDR_ZERO_STRUCTP(r->out.ReturnEnum);
   14052           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   14053           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   14054             :         }
   14055           0 :         if (flags & NDR_OUT) {
   14056             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   14057             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   14058           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   14059           0 :                         NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
   14060             :                 }
   14061           0 :                 _mem_save_ReturnEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
   14062           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ReturnEnum, LIBNDR_FLAG_REF_ALLOC);
   14063           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ReturnEnum));
   14064           0 :                 if (_ptr_ReturnEnum) {
   14065           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ReturnEnum);
   14066             :                 } else {
   14067           0 :                         *r->out.ReturnEnum = NULL;
   14068             :                 }
   14069           0 :                 if (*r->out.ReturnEnum) {
   14070           0 :                         _mem_save_ReturnEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
   14071           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ReturnEnum, 0);
   14072           0 :                         NDR_CHECK(ndr_pull_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
   14073           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_1, 0);
   14074             :                 }
   14075           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_0, LIBNDR_FLAG_REF_ALLOC);
   14076           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   14077           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   14078             :                 }
   14079           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   14080           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   14081           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   14082           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   14083           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   14084             :         }
   14085           0 :         return NDR_ERR_SUCCESS;
   14086             : }
   14087             : 
   14088           0 : _PUBLIC_ void ndr_print_clusapi_CreateNodeEnum(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CreateNodeEnum *r)
   14089             : {
   14090           0 :         ndr_print_struct(ndr, name, "clusapi_CreateNodeEnum");
   14091           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   14092           0 :         ndr->depth++;
   14093           0 :         if (flags & NDR_SET_VALUES) {
   14094           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   14095             :         }
   14096           0 :         if (flags & NDR_IN) {
   14097           0 :                 ndr_print_struct(ndr, "in", "clusapi_CreateNodeEnum");
   14098           0 :                 ndr->depth++;
   14099           0 :                 ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
   14100           0 :                 ndr_print_uint32(ndr, "dwType", r->in.dwType);
   14101           0 :                 ndr->depth--;
   14102             :         }
   14103           0 :         if (flags & NDR_OUT) {
   14104           0 :                 ndr_print_struct(ndr, "out", "clusapi_CreateNodeEnum");
   14105           0 :                 ndr->depth++;
   14106           0 :                 ndr_print_ptr(ndr, "ReturnEnum", r->out.ReturnEnum);
   14107           0 :                 ndr->depth++;
   14108           0 :                 ndr_print_ptr(ndr, "ReturnEnum", *r->out.ReturnEnum);
   14109           0 :                 ndr->depth++;
   14110           0 :                 if (*r->out.ReturnEnum) {
   14111           0 :                         ndr_print_ENUM_LIST(ndr, "ReturnEnum", *r->out.ReturnEnum);
   14112             :                 }
   14113           0 :                 ndr->depth--;
   14114           0 :                 ndr->depth--;
   14115           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   14116           0 :                 ndr->depth++;
   14117           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   14118           0 :                 ndr->depth--;
   14119           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   14120           0 :                 ndr->depth--;
   14121             :         }
   14122           0 :         ndr->depth--;
   14123             : }
   14124             : 
   14125           0 : static enum ndr_err_code ndr_push_clusapi_GetClusterVersion2(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_GetClusterVersion2 *r)
   14126             : {
   14127           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   14128           0 :         if (flags & NDR_IN) {
   14129           0 :         }
   14130           0 :         if (flags & NDR_OUT) {
   14131           0 :                 if (r->out.lpwMajorVersion == NULL) {
   14132           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   14133             :                 }
   14134           0 :                 if (r->out.lpwMinorVersion == NULL) {
   14135           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   14136             :                 }
   14137           0 :                 if (r->out.lpwBuildNumber == NULL) {
   14138           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   14139             :                 }
   14140           0 :                 if (r->out.lpszVendorId == NULL) {
   14141           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   14142             :                 }
   14143           0 :                 if (r->out.lpszCSDVersion == NULL) {
   14144           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   14145             :                 }
   14146           0 :                 if (r->out.ppClusterOpVerInfo == NULL) {
   14147           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   14148             :                 }
   14149           0 :                 if (r->out.rpc_status == NULL) {
   14150           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   14151             :                 }
   14152           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, *r->out.lpwMajorVersion));
   14153           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, *r->out.lpwMinorVersion));
   14154           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, *r->out.lpwBuildNumber));
   14155           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lpszVendorId));
   14156           0 :                 if (*r->out.lpszVendorId) {
   14157           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszVendorId, CH_UTF16)));
   14158           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   14159           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszVendorId, CH_UTF16)));
   14160           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.lpszVendorId, ndr_charset_length(*r->out.lpszVendorId, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   14161             :                 }
   14162           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lpszCSDVersion));
   14163           0 :                 if (*r->out.lpszCSDVersion) {
   14164           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszCSDVersion, CH_UTF16)));
   14165           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   14166           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszCSDVersion, CH_UTF16)));
   14167           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.lpszCSDVersion, ndr_charset_length(*r->out.lpszCSDVersion, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   14168             :                 }
   14169           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppClusterOpVerInfo));
   14170           0 :                 if (*r->out.ppClusterOpVerInfo) {
   14171           0 :                         NDR_CHECK(ndr_push_CLUSTER_OPERATIONAL_VERSION_INFO(ndr, NDR_SCALARS, *r->out.ppClusterOpVerInfo));
   14172             :                 }
   14173           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   14174           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   14175             :         }
   14176           0 :         return NDR_ERR_SUCCESS;
   14177             : }
   14178             : 
   14179           0 : static enum ndr_err_code ndr_pull_clusapi_GetClusterVersion2(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_GetClusterVersion2 *r)
   14180             : {
   14181           0 :         uint32_t _ptr_lpszVendorId;
   14182           0 :         uint32_t size_lpszVendorId_2 = 0;
   14183           0 :         uint32_t length_lpszVendorId_2 = 0;
   14184           0 :         uint32_t _ptr_lpszCSDVersion;
   14185           0 :         uint32_t size_lpszCSDVersion_2 = 0;
   14186           0 :         uint32_t length_lpszCSDVersion_2 = 0;
   14187           0 :         uint32_t _ptr_ppClusterOpVerInfo;
   14188           0 :         TALLOC_CTX *_mem_save_lpwMajorVersion_0 = NULL;
   14189           0 :         TALLOC_CTX *_mem_save_lpwMinorVersion_0 = NULL;
   14190           0 :         TALLOC_CTX *_mem_save_lpwBuildNumber_0 = NULL;
   14191           0 :         TALLOC_CTX *_mem_save_lpszVendorId_0 = NULL;
   14192           0 :         TALLOC_CTX *_mem_save_lpszVendorId_1 = NULL;
   14193           0 :         TALLOC_CTX *_mem_save_lpszCSDVersion_0 = NULL;
   14194           0 :         TALLOC_CTX *_mem_save_lpszCSDVersion_1 = NULL;
   14195           0 :         TALLOC_CTX *_mem_save_ppClusterOpVerInfo_0 = NULL;
   14196           0 :         TALLOC_CTX *_mem_save_ppClusterOpVerInfo_1 = NULL;
   14197           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   14198           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   14199           0 :         if (flags & NDR_IN) {
   14200           0 :                 NDR_ZERO_STRUCT(r->out);
   14201             : 
   14202           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpwMajorVersion);
   14203           0 :                 NDR_ZERO_STRUCTP(r->out.lpwMajorVersion);
   14204           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpwMinorVersion);
   14205           0 :                 NDR_ZERO_STRUCTP(r->out.lpwMinorVersion);
   14206           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpwBuildNumber);
   14207           0 :                 NDR_ZERO_STRUCTP(r->out.lpwBuildNumber);
   14208           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpszVendorId);
   14209           0 :                 NDR_ZERO_STRUCTP(r->out.lpszVendorId);
   14210           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpszCSDVersion);
   14211           0 :                 NDR_ZERO_STRUCTP(r->out.lpszCSDVersion);
   14212           0 :                 NDR_PULL_ALLOC(ndr, r->out.ppClusterOpVerInfo);
   14213           0 :                 NDR_ZERO_STRUCTP(r->out.ppClusterOpVerInfo);
   14214           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   14215           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   14216             :         }
   14217           0 :         if (flags & NDR_OUT) {
   14218             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   14219             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   14220           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   14221           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpwMajorVersion);
   14222             :                 }
   14223           0 :                 _mem_save_lpwMajorVersion_0 = NDR_PULL_GET_MEM_CTX(ndr);
   14224           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpwMajorVersion, LIBNDR_FLAG_REF_ALLOC);
   14225           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, r->out.lpwMajorVersion));
   14226           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpwMajorVersion_0, LIBNDR_FLAG_REF_ALLOC);
   14227           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   14228           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpwMinorVersion);
   14229             :                 }
   14230           0 :                 _mem_save_lpwMinorVersion_0 = NDR_PULL_GET_MEM_CTX(ndr);
   14231           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpwMinorVersion, LIBNDR_FLAG_REF_ALLOC);
   14232           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, r->out.lpwMinorVersion));
   14233           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpwMinorVersion_0, LIBNDR_FLAG_REF_ALLOC);
   14234           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   14235           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpwBuildNumber);
   14236             :                 }
   14237           0 :                 _mem_save_lpwBuildNumber_0 = NDR_PULL_GET_MEM_CTX(ndr);
   14238           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpwBuildNumber, LIBNDR_FLAG_REF_ALLOC);
   14239           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, r->out.lpwBuildNumber));
   14240           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpwBuildNumber_0, LIBNDR_FLAG_REF_ALLOC);
   14241           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   14242           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpszVendorId);
   14243             :                 }
   14244           0 :                 _mem_save_lpszVendorId_0 = NDR_PULL_GET_MEM_CTX(ndr);
   14245           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpszVendorId, LIBNDR_FLAG_REF_ALLOC);
   14246           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpszVendorId));
   14247           0 :                 if (_ptr_lpszVendorId) {
   14248           0 :                         NDR_PULL_ALLOC(ndr, *r->out.lpszVendorId);
   14249             :                 } else {
   14250           0 :                         *r->out.lpszVendorId = NULL;
   14251             :                 }
   14252           0 :                 if (*r->out.lpszVendorId) {
   14253           0 :                         _mem_save_lpszVendorId_1 = NDR_PULL_GET_MEM_CTX(ndr);
   14254           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.lpszVendorId, 0);
   14255           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.lpszVendorId));
   14256           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, r->out.lpszVendorId));
   14257           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.lpszVendorId, &size_lpszVendorId_2));
   14258           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.lpszVendorId, &length_lpszVendorId_2));
   14259           0 :                         if (length_lpszVendorId_2 > size_lpszVendorId_2) {
   14260           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszVendorId_2, length_lpszVendorId_2);
   14261             :                         }
   14262           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszVendorId_2, sizeof(uint16_t)));
   14263           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.lpszVendorId, length_lpszVendorId_2, sizeof(uint16_t), CH_UTF16));
   14264           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszVendorId_1, 0);
   14265             :                 }
   14266           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszVendorId_0, LIBNDR_FLAG_REF_ALLOC);
   14267           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   14268           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpszCSDVersion);
   14269             :                 }
   14270           0 :                 _mem_save_lpszCSDVersion_0 = NDR_PULL_GET_MEM_CTX(ndr);
   14271           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpszCSDVersion, LIBNDR_FLAG_REF_ALLOC);
   14272           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpszCSDVersion));
   14273           0 :                 if (_ptr_lpszCSDVersion) {
   14274           0 :                         NDR_PULL_ALLOC(ndr, *r->out.lpszCSDVersion);
   14275             :                 } else {
   14276           0 :                         *r->out.lpszCSDVersion = NULL;
   14277             :                 }
   14278           0 :                 if (*r->out.lpszCSDVersion) {
   14279           0 :                         _mem_save_lpszCSDVersion_1 = NDR_PULL_GET_MEM_CTX(ndr);
   14280           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.lpszCSDVersion, 0);
   14281           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.lpszCSDVersion));
   14282           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, r->out.lpszCSDVersion));
   14283           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.lpszCSDVersion, &size_lpszCSDVersion_2));
   14284           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.lpszCSDVersion, &length_lpszCSDVersion_2));
   14285           0 :                         if (length_lpszCSDVersion_2 > size_lpszCSDVersion_2) {
   14286           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszCSDVersion_2, length_lpszCSDVersion_2);
   14287             :                         }
   14288           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszCSDVersion_2, sizeof(uint16_t)));
   14289           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.lpszCSDVersion, length_lpszCSDVersion_2, sizeof(uint16_t), CH_UTF16));
   14290           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszCSDVersion_1, 0);
   14291             :                 }
   14292           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszCSDVersion_0, LIBNDR_FLAG_REF_ALLOC);
   14293           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   14294           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppClusterOpVerInfo);
   14295             :                 }
   14296           0 :                 _mem_save_ppClusterOpVerInfo_0 = NDR_PULL_GET_MEM_CTX(ndr);
   14297           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ppClusterOpVerInfo, LIBNDR_FLAG_REF_ALLOC);
   14298           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppClusterOpVerInfo));
   14299           0 :                 if (_ptr_ppClusterOpVerInfo) {
   14300           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ppClusterOpVerInfo);
   14301             :                 } else {
   14302           0 :                         *r->out.ppClusterOpVerInfo = NULL;
   14303             :                 }
   14304           0 :                 if (*r->out.ppClusterOpVerInfo) {
   14305           0 :                         _mem_save_ppClusterOpVerInfo_1 = NDR_PULL_GET_MEM_CTX(ndr);
   14306           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppClusterOpVerInfo, 0);
   14307           0 :                         NDR_CHECK(ndr_pull_CLUSTER_OPERATIONAL_VERSION_INFO(ndr, NDR_SCALARS, *r->out.ppClusterOpVerInfo));
   14308           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppClusterOpVerInfo_1, 0);
   14309             :                 }
   14310           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppClusterOpVerInfo_0, LIBNDR_FLAG_REF_ALLOC);
   14311           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   14312           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   14313             :                 }
   14314           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   14315           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   14316           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   14317           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   14318           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   14319             :         }
   14320           0 :         return NDR_ERR_SUCCESS;
   14321             : }
   14322             : 
   14323           0 : _PUBLIC_ void ndr_print_clusapi_GetClusterVersion2(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_GetClusterVersion2 *r)
   14324             : {
   14325           0 :         ndr_print_struct(ndr, name, "clusapi_GetClusterVersion2");
   14326           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   14327           0 :         ndr->depth++;
   14328           0 :         if (flags & NDR_SET_VALUES) {
   14329           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   14330             :         }
   14331           0 :         if (flags & NDR_IN) {
   14332           0 :                 ndr_print_struct(ndr, "in", "clusapi_GetClusterVersion2");
   14333           0 :                 ndr->depth++;
   14334           0 :                 ndr->depth--;
   14335             :         }
   14336           0 :         if (flags & NDR_OUT) {
   14337           0 :                 ndr_print_struct(ndr, "out", "clusapi_GetClusterVersion2");
   14338           0 :                 ndr->depth++;
   14339           0 :                 ndr_print_ptr(ndr, "lpwMajorVersion", r->out.lpwMajorVersion);
   14340           0 :                 ndr->depth++;
   14341           0 :                 ndr_print_uint16(ndr, "lpwMajorVersion", *r->out.lpwMajorVersion);
   14342           0 :                 ndr->depth--;
   14343           0 :                 ndr_print_ptr(ndr, "lpwMinorVersion", r->out.lpwMinorVersion);
   14344           0 :                 ndr->depth++;
   14345           0 :                 ndr_print_uint16(ndr, "lpwMinorVersion", *r->out.lpwMinorVersion);
   14346           0 :                 ndr->depth--;
   14347           0 :                 ndr_print_ptr(ndr, "lpwBuildNumber", r->out.lpwBuildNumber);
   14348           0 :                 ndr->depth++;
   14349           0 :                 ndr_print_uint16(ndr, "lpwBuildNumber", *r->out.lpwBuildNumber);
   14350           0 :                 ndr->depth--;
   14351           0 :                 ndr_print_ptr(ndr, "lpszVendorId", r->out.lpszVendorId);
   14352           0 :                 ndr->depth++;
   14353           0 :                 ndr_print_ptr(ndr, "lpszVendorId", *r->out.lpszVendorId);
   14354           0 :                 ndr->depth++;
   14355           0 :                 if (*r->out.lpszVendorId) {
   14356           0 :                         ndr_print_string(ndr, "lpszVendorId", *r->out.lpszVendorId);
   14357             :                 }
   14358           0 :                 ndr->depth--;
   14359           0 :                 ndr->depth--;
   14360           0 :                 ndr_print_ptr(ndr, "lpszCSDVersion", r->out.lpszCSDVersion);
   14361           0 :                 ndr->depth++;
   14362           0 :                 ndr_print_ptr(ndr, "lpszCSDVersion", *r->out.lpszCSDVersion);
   14363           0 :                 ndr->depth++;
   14364           0 :                 if (*r->out.lpszCSDVersion) {
   14365           0 :                         ndr_print_string(ndr, "lpszCSDVersion", *r->out.lpszCSDVersion);
   14366             :                 }
   14367           0 :                 ndr->depth--;
   14368           0 :                 ndr->depth--;
   14369           0 :                 ndr_print_ptr(ndr, "ppClusterOpVerInfo", r->out.ppClusterOpVerInfo);
   14370           0 :                 ndr->depth++;
   14371           0 :                 ndr_print_ptr(ndr, "ppClusterOpVerInfo", *r->out.ppClusterOpVerInfo);
   14372           0 :                 ndr->depth++;
   14373           0 :                 if (*r->out.ppClusterOpVerInfo) {
   14374           0 :                         ndr_print_CLUSTER_OPERATIONAL_VERSION_INFO(ndr, "ppClusterOpVerInfo", *r->out.ppClusterOpVerInfo);
   14375             :                 }
   14376           0 :                 ndr->depth--;
   14377           0 :                 ndr->depth--;
   14378           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   14379           0 :                 ndr->depth++;
   14380           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   14381           0 :                 ndr->depth--;
   14382           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   14383           0 :                 ndr->depth--;
   14384             :         }
   14385           0 :         ndr->depth--;
   14386             : }
   14387             : 
   14388           0 : static enum ndr_err_code ndr_push_clusapi_CreateResTypeEnum(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CreateResTypeEnum *r)
   14389             : {
   14390           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   14391           0 :         if (flags & NDR_IN) {
   14392           0 :                 if (r->in.lpszTypeName == NULL) {
   14393           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   14394             :                 }
   14395           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszTypeName, CH_UTF16)));
   14396           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   14397           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszTypeName, CH_UTF16)));
   14398           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszTypeName, ndr_charset_length(r->in.lpszTypeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   14399           0 :                 NDR_CHECK(ndr_push_ClusterResTypeEnumType(ndr, NDR_SCALARS, r->in.dwType));
   14400             :         }
   14401           0 :         if (flags & NDR_OUT) {
   14402           0 :                 if (r->out.ReturnEnum == NULL) {
   14403           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   14404             :                 }
   14405           0 :                 if (r->out.rpc_status == NULL) {
   14406           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   14407             :                 }
   14408           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ReturnEnum));
   14409           0 :                 if (*r->out.ReturnEnum) {
   14410           0 :                         NDR_CHECK(ndr_push_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
   14411             :                 }
   14412           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   14413           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   14414             :         }
   14415           0 :         return NDR_ERR_SUCCESS;
   14416             : }
   14417             : 
   14418           0 : static enum ndr_err_code ndr_pull_clusapi_CreateResTypeEnum(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CreateResTypeEnum *r)
   14419             : {
   14420           0 :         uint32_t size_lpszTypeName_1 = 0;
   14421           0 :         uint32_t length_lpszTypeName_1 = 0;
   14422           0 :         uint32_t _ptr_ReturnEnum;
   14423           0 :         TALLOC_CTX *_mem_save_ReturnEnum_0 = NULL;
   14424           0 :         TALLOC_CTX *_mem_save_ReturnEnum_1 = NULL;
   14425           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   14426           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   14427           0 :         if (flags & NDR_IN) {
   14428           0 :                 NDR_ZERO_STRUCT(r->out);
   14429             : 
   14430           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszTypeName));
   14431           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszTypeName));
   14432           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszTypeName, &size_lpszTypeName_1));
   14433           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszTypeName, &length_lpszTypeName_1));
   14434           0 :                 if (length_lpszTypeName_1 > size_lpszTypeName_1) {
   14435           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszTypeName_1, length_lpszTypeName_1);
   14436             :                 }
   14437           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszTypeName_1, sizeof(uint16_t)));
   14438           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszTypeName, length_lpszTypeName_1, sizeof(uint16_t), CH_UTF16));
   14439           0 :                 NDR_CHECK(ndr_pull_ClusterResTypeEnumType(ndr, NDR_SCALARS, &r->in.dwType));
   14440           0 :                 NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
   14441           0 :                 NDR_ZERO_STRUCTP(r->out.ReturnEnum);
   14442           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   14443           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   14444             :         }
   14445           0 :         if (flags & NDR_OUT) {
   14446             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   14447             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   14448           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   14449           0 :                         NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
   14450             :                 }
   14451           0 :                 _mem_save_ReturnEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
   14452           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ReturnEnum, LIBNDR_FLAG_REF_ALLOC);
   14453           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ReturnEnum));
   14454           0 :                 if (_ptr_ReturnEnum) {
   14455           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ReturnEnum);
   14456             :                 } else {
   14457           0 :                         *r->out.ReturnEnum = NULL;
   14458             :                 }
   14459           0 :                 if (*r->out.ReturnEnum) {
   14460           0 :                         _mem_save_ReturnEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
   14461           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ReturnEnum, 0);
   14462           0 :                         NDR_CHECK(ndr_pull_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
   14463           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_1, 0);
   14464             :                 }
   14465           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_0, LIBNDR_FLAG_REF_ALLOC);
   14466           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   14467           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   14468             :                 }
   14469           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   14470           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   14471           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   14472           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   14473           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   14474             :         }
   14475           0 :         return NDR_ERR_SUCCESS;
   14476             : }
   14477             : 
   14478           0 : _PUBLIC_ void ndr_print_clusapi_CreateResTypeEnum(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CreateResTypeEnum *r)
   14479             : {
   14480           0 :         ndr_print_struct(ndr, name, "clusapi_CreateResTypeEnum");
   14481           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   14482           0 :         ndr->depth++;
   14483           0 :         if (flags & NDR_SET_VALUES) {
   14484           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   14485             :         }
   14486           0 :         if (flags & NDR_IN) {
   14487           0 :                 ndr_print_struct(ndr, "in", "clusapi_CreateResTypeEnum");
   14488           0 :                 ndr->depth++;
   14489           0 :                 ndr_print_ptr(ndr, "lpszTypeName", r->in.lpszTypeName);
   14490           0 :                 ndr->depth++;
   14491           0 :                 ndr_print_string(ndr, "lpszTypeName", r->in.lpszTypeName);
   14492           0 :                 ndr->depth--;
   14493           0 :                 ndr_print_ClusterResTypeEnumType(ndr, "dwType", r->in.dwType);
   14494           0 :                 ndr->depth--;
   14495             :         }
   14496           0 :         if (flags & NDR_OUT) {
   14497           0 :                 ndr_print_struct(ndr, "out", "clusapi_CreateResTypeEnum");
   14498           0 :                 ndr->depth++;
   14499           0 :                 ndr_print_ptr(ndr, "ReturnEnum", r->out.ReturnEnum);
   14500           0 :                 ndr->depth++;
   14501           0 :                 ndr_print_ptr(ndr, "ReturnEnum", *r->out.ReturnEnum);
   14502           0 :                 ndr->depth++;
   14503           0 :                 if (*r->out.ReturnEnum) {
   14504           0 :                         ndr_print_ENUM_LIST(ndr, "ReturnEnum", *r->out.ReturnEnum);
   14505             :                 }
   14506           0 :                 ndr->depth--;
   14507           0 :                 ndr->depth--;
   14508           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   14509           0 :                 ndr->depth++;
   14510           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   14511           0 :                 ndr->depth--;
   14512           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   14513           0 :                 ndr->depth--;
   14514             :         }
   14515           0 :         ndr->depth--;
   14516             : }
   14517             : 
   14518           0 : static enum ndr_err_code ndr_push_clusapi_BackupClusterDatabase(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_BackupClusterDatabase *r)
   14519             : {
   14520           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   14521           0 :         if (flags & NDR_IN) {
   14522           0 :                 if (r->in.lpszPathName == NULL) {
   14523           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   14524             :                 }
   14525           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszPathName, CH_UTF16)));
   14526           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   14527           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszPathName, CH_UTF16)));
   14528           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszPathName, ndr_charset_length(r->in.lpszPathName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   14529             :         }
   14530           0 :         if (flags & NDR_OUT) {
   14531           0 :                 if (r->out.rpc_status == NULL) {
   14532           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   14533             :                 }
   14534           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   14535           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   14536             :         }
   14537           0 :         return NDR_ERR_SUCCESS;
   14538             : }
   14539             : 
   14540           0 : static enum ndr_err_code ndr_pull_clusapi_BackupClusterDatabase(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_BackupClusterDatabase *r)
   14541             : {
   14542           0 :         uint32_t size_lpszPathName_1 = 0;
   14543           0 :         uint32_t length_lpszPathName_1 = 0;
   14544           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   14545           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   14546           0 :         if (flags & NDR_IN) {
   14547           0 :                 NDR_ZERO_STRUCT(r->out);
   14548             : 
   14549           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszPathName));
   14550           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszPathName));
   14551           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszPathName, &size_lpszPathName_1));
   14552           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszPathName, &length_lpszPathName_1));
   14553           0 :                 if (length_lpszPathName_1 > size_lpszPathName_1) {
   14554           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszPathName_1, length_lpszPathName_1);
   14555             :                 }
   14556           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszPathName_1, sizeof(uint16_t)));
   14557           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszPathName, length_lpszPathName_1, sizeof(uint16_t), CH_UTF16));
   14558           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   14559           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   14560             :         }
   14561           0 :         if (flags & NDR_OUT) {
   14562             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   14563             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   14564           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   14565           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   14566             :                 }
   14567           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   14568           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   14569           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   14570           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   14571           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   14572             :         }
   14573           0 :         return NDR_ERR_SUCCESS;
   14574             : }
   14575             : 
   14576           0 : _PUBLIC_ void ndr_print_clusapi_BackupClusterDatabase(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_BackupClusterDatabase *r)
   14577             : {
   14578           0 :         ndr_print_struct(ndr, name, "clusapi_BackupClusterDatabase");
   14579           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   14580           0 :         ndr->depth++;
   14581           0 :         if (flags & NDR_SET_VALUES) {
   14582           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   14583             :         }
   14584           0 :         if (flags & NDR_IN) {
   14585           0 :                 ndr_print_struct(ndr, "in", "clusapi_BackupClusterDatabase");
   14586           0 :                 ndr->depth++;
   14587           0 :                 ndr_print_ptr(ndr, "lpszPathName", r->in.lpszPathName);
   14588           0 :                 ndr->depth++;
   14589           0 :                 ndr_print_string(ndr, "lpszPathName", r->in.lpszPathName);
   14590           0 :                 ndr->depth--;
   14591           0 :                 ndr->depth--;
   14592             :         }
   14593           0 :         if (flags & NDR_OUT) {
   14594           0 :                 ndr_print_struct(ndr, "out", "clusapi_BackupClusterDatabase");
   14595           0 :                 ndr->depth++;
   14596           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   14597           0 :                 ndr->depth++;
   14598           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   14599           0 :                 ndr->depth--;
   14600           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   14601           0 :                 ndr->depth--;
   14602             :         }
   14603           0 :         ndr->depth--;
   14604             : }
   14605             : 
   14606           0 : static enum ndr_err_code ndr_push_clusapi_NodeClusterControl(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_NodeClusterControl *r)
   14607             : {
   14608           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   14609           0 :         if (flags & NDR_IN) {
   14610           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
   14611           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hHostNode));
   14612           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwControlCode));
   14613           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
   14614           0 :                 if (r->in.lpInBuffer) {
   14615           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
   14616           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
   14617             :                 }
   14618           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
   14619           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   14620             :         }
   14621           0 :         if (flags & NDR_OUT) {
   14622           0 :                 if (r->out.lpOutBuffer == NULL) {
   14623           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   14624             :                 }
   14625           0 :                 if (r->out.lpBytesReturned == NULL) {
   14626           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   14627             :                 }
   14628           0 :                 if (r->out.lpcbRequired == NULL) {
   14629           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   14630             :                 }
   14631           0 :                 if (r->out.rpc_status == NULL) {
   14632           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   14633             :                 }
   14634           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   14635           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   14636           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   14637           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
   14638           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   14639           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
   14640           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   14641           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   14642             :         }
   14643           0 :         return NDR_ERR_SUCCESS;
   14644             : }
   14645             : 
   14646           0 : static enum ndr_err_code ndr_pull_clusapi_NodeClusterControl(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_NodeClusterControl *r)
   14647             : {
   14648           0 :         uint32_t _ptr_lpInBuffer;
   14649           0 :         uint32_t size_lpInBuffer_1 = 0;
   14650           0 :         uint32_t size_lpOutBuffer_1 = 0;
   14651           0 :         uint32_t length_lpOutBuffer_1 = 0;
   14652           0 :         TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
   14653           0 :         TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
   14654           0 :         TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
   14655           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   14656           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   14657           0 :         if (flags & NDR_IN) {
   14658           0 :                 NDR_ZERO_STRUCT(r->out);
   14659             : 
   14660           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
   14661           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hHostNode));
   14662           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwControlCode));
   14663           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
   14664           0 :                 if (_ptr_lpInBuffer) {
   14665           0 :                         NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
   14666             :                 } else {
   14667           0 :                         r->in.lpInBuffer = NULL;
   14668             :                 }
   14669           0 :                 if (r->in.lpInBuffer) {
   14670           0 :                         _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
   14671           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
   14672           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
   14673           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
   14674           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
   14675           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
   14676           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
   14677             :                 }
   14678           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
   14679           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
   14680           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
   14681           0 :                 memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
   14682           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   14683           0 :                 NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
   14684           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   14685           0 :                 NDR_ZERO_STRUCTP(r->out.lpcbRequired);
   14686           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   14687           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   14688           0 :                 if (r->in.lpInBuffer) {
   14689           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
   14690             :                 }
   14691             :         }
   14692           0 :         if (flags & NDR_OUT) {
   14693             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   14694             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   14695           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
   14696           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
   14697           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
   14698           0 :                 NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
   14699           0 :                 if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
   14700           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpOutBuffer_1, length_lpOutBuffer_1);
   14701             :                 }
   14702           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   14703           0 :                         NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
   14704             :                 }
   14705           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
   14706           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   14707           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   14708             :                 }
   14709           0 :                 _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
   14710           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
   14711           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
   14712           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
   14713           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   14714           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   14715             :                 }
   14716           0 :                 _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
   14717           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
   14718           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
   14719           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
   14720           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   14721           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   14722             :                 }
   14723           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   14724           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   14725           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   14726           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   14727           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   14728           0 :                 if (r->out.lpOutBuffer) {
   14729           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
   14730             :                 }
   14731           0 :                 if (r->out.lpOutBuffer) {
   14732           0 :                         NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
   14733             :                 }
   14734             :         }
   14735           0 :         return NDR_ERR_SUCCESS;
   14736             : }
   14737             : 
   14738           0 : _PUBLIC_ void ndr_print_clusapi_NodeClusterControl(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_NodeClusterControl *r)
   14739             : {
   14740           0 :         ndr_print_struct(ndr, name, "clusapi_NodeClusterControl");
   14741           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   14742           0 :         ndr->depth++;
   14743           0 :         if (flags & NDR_SET_VALUES) {
   14744           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   14745             :         }
   14746           0 :         if (flags & NDR_IN) {
   14747           0 :                 ndr_print_struct(ndr, "in", "clusapi_NodeClusterControl");
   14748           0 :                 ndr->depth++;
   14749           0 :                 ndr_print_policy_handle(ndr, "hCluster", &r->in.hCluster);
   14750           0 :                 ndr_print_policy_handle(ndr, "hHostNode", &r->in.hHostNode);
   14751           0 :                 ndr_print_uint32(ndr, "dwControlCode", r->in.dwControlCode);
   14752           0 :                 ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
   14753           0 :                 ndr->depth++;
   14754           0 :                 if (r->in.lpInBuffer) {
   14755           0 :                         ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
   14756             :                 }
   14757           0 :                 ndr->depth--;
   14758           0 :                 ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
   14759           0 :                 ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
   14760           0 :                 ndr->depth--;
   14761             :         }
   14762           0 :         if (flags & NDR_OUT) {
   14763           0 :                 ndr_print_struct(ndr, "out", "clusapi_NodeClusterControl");
   14764           0 :                 ndr->depth++;
   14765           0 :                 ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
   14766           0 :                 ndr->depth++;
   14767           0 :                 ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
   14768           0 :                 ndr->depth--;
   14769           0 :                 ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
   14770           0 :                 ndr->depth++;
   14771           0 :                 ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
   14772           0 :                 ndr->depth--;
   14773           0 :                 ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
   14774           0 :                 ndr->depth++;
   14775           0 :                 ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
   14776           0 :                 ndr->depth--;
   14777           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   14778           0 :                 ndr->depth++;
   14779           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   14780           0 :                 ndr->depth--;
   14781           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   14782           0 :                 ndr->depth--;
   14783             :         }
   14784           0 :         ndr->depth--;
   14785             : }
   14786             : 
   14787           0 : static enum ndr_err_code ndr_push_clusapi_ClusterControl(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_ClusterControl *r)
   14788             : {
   14789           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   14790           0 :         if (flags & NDR_IN) {
   14791           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
   14792           0 :                 NDR_CHECK(ndr_push_clusapi_ClusterControlCode(ndr, NDR_SCALARS, r->in.dwControlCode));
   14793           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
   14794           0 :                 if (r->in.lpInBuffer) {
   14795           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
   14796           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
   14797             :                 }
   14798           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
   14799           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   14800             :         }
   14801           0 :         if (flags & NDR_OUT) {
   14802           0 :                 if (r->out.lpOutBuffer == NULL) {
   14803           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   14804             :                 }
   14805           0 :                 if (r->out.lpBytesReturned == NULL) {
   14806           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   14807             :                 }
   14808           0 :                 if (r->out.lpcbRequired == NULL) {
   14809           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   14810             :                 }
   14811           0 :                 if (r->out.rpc_status == NULL) {
   14812           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   14813             :                 }
   14814           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   14815           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   14816           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   14817           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
   14818           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   14819           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
   14820           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   14821           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   14822             :         }
   14823           0 :         return NDR_ERR_SUCCESS;
   14824             : }
   14825             : 
   14826           0 : static enum ndr_err_code ndr_pull_clusapi_ClusterControl(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_ClusterControl *r)
   14827             : {
   14828           0 :         uint32_t _ptr_lpInBuffer;
   14829           0 :         uint32_t size_lpInBuffer_1 = 0;
   14830           0 :         uint32_t size_lpOutBuffer_1 = 0;
   14831           0 :         uint32_t length_lpOutBuffer_1 = 0;
   14832           0 :         TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
   14833           0 :         TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
   14834           0 :         TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
   14835           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   14836           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   14837           0 :         if (flags & NDR_IN) {
   14838           0 :                 NDR_ZERO_STRUCT(r->out);
   14839             : 
   14840           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
   14841           0 :                 NDR_CHECK(ndr_pull_clusapi_ClusterControlCode(ndr, NDR_SCALARS, &r->in.dwControlCode));
   14842           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
   14843           0 :                 if (_ptr_lpInBuffer) {
   14844           0 :                         NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
   14845             :                 } else {
   14846           0 :                         r->in.lpInBuffer = NULL;
   14847             :                 }
   14848           0 :                 if (r->in.lpInBuffer) {
   14849           0 :                         _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
   14850           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
   14851           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
   14852           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
   14853           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
   14854           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
   14855           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
   14856             :                 }
   14857           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
   14858           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
   14859           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
   14860           0 :                 memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
   14861           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   14862           0 :                 NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
   14863           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   14864           0 :                 NDR_ZERO_STRUCTP(r->out.lpcbRequired);
   14865           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   14866           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   14867           0 :                 if (r->in.lpInBuffer) {
   14868           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
   14869             :                 }
   14870             :         }
   14871           0 :         if (flags & NDR_OUT) {
   14872             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   14873             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   14874           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
   14875           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
   14876           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
   14877           0 :                 NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
   14878           0 :                 if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
   14879           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpOutBuffer_1, length_lpOutBuffer_1);
   14880             :                 }
   14881           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   14882           0 :                         NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
   14883             :                 }
   14884           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
   14885           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   14886           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   14887             :                 }
   14888           0 :                 _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
   14889           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
   14890           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
   14891           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
   14892           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   14893           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   14894             :                 }
   14895           0 :                 _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
   14896           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
   14897           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
   14898           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
   14899           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   14900           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   14901             :                 }
   14902           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   14903           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   14904           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   14905           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   14906           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   14907           0 :                 if (r->out.lpOutBuffer) {
   14908           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
   14909             :                 }
   14910           0 :                 if (r->out.lpOutBuffer) {
   14911           0 :                         NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
   14912             :                 }
   14913             :         }
   14914           0 :         return NDR_ERR_SUCCESS;
   14915             : }
   14916             : 
   14917           0 : _PUBLIC_ void ndr_print_clusapi_ClusterControl(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_ClusterControl *r)
   14918             : {
   14919           0 :         ndr_print_struct(ndr, name, "clusapi_ClusterControl");
   14920           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   14921           0 :         ndr->depth++;
   14922           0 :         if (flags & NDR_SET_VALUES) {
   14923           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   14924             :         }
   14925           0 :         if (flags & NDR_IN) {
   14926           0 :                 ndr_print_struct(ndr, "in", "clusapi_ClusterControl");
   14927           0 :                 ndr->depth++;
   14928           0 :                 ndr_print_policy_handle(ndr, "hCluster", &r->in.hCluster);
   14929           0 :                 ndr_print_clusapi_ClusterControlCode(ndr, "dwControlCode", r->in.dwControlCode);
   14930           0 :                 ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
   14931           0 :                 ndr->depth++;
   14932           0 :                 if (r->in.lpInBuffer) {
   14933           0 :                         ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
   14934             :                 }
   14935           0 :                 ndr->depth--;
   14936           0 :                 ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
   14937           0 :                 ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
   14938           0 :                 ndr->depth--;
   14939             :         }
   14940           0 :         if (flags & NDR_OUT) {
   14941           0 :                 ndr_print_struct(ndr, "out", "clusapi_ClusterControl");
   14942           0 :                 ndr->depth++;
   14943           0 :                 ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
   14944           0 :                 ndr->depth++;
   14945           0 :                 ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
   14946           0 :                 ndr->depth--;
   14947           0 :                 ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
   14948           0 :                 ndr->depth++;
   14949           0 :                 ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
   14950           0 :                 ndr->depth--;
   14951           0 :                 ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
   14952           0 :                 ndr->depth++;
   14953           0 :                 ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
   14954           0 :                 ndr->depth--;
   14955           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   14956           0 :                 ndr->depth++;
   14957           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   14958           0 :                 ndr->depth--;
   14959           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   14960           0 :                 ndr->depth--;
   14961             :         }
   14962           0 :         ndr->depth--;
   14963             : }
   14964             : 
   14965           0 : static enum ndr_err_code ndr_push_clusapi_UnblockGetNotifyCall(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_UnblockGetNotifyCall *r)
   14966             : {
   14967           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   14968           0 :         if (flags & NDR_IN) {
   14969           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
   14970             :         }
   14971           0 :         if (flags & NDR_OUT) {
   14972           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   14973             :         }
   14974           0 :         return NDR_ERR_SUCCESS;
   14975             : }
   14976             : 
   14977           0 : static enum ndr_err_code ndr_pull_clusapi_UnblockGetNotifyCall(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_UnblockGetNotifyCall *r)
   14978             : {
   14979           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   14980           0 :         if (flags & NDR_IN) {
   14981           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
   14982             :         }
   14983           0 :         if (flags & NDR_OUT) {
   14984             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   14985             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   14986           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   14987             :         }
   14988           0 :         return NDR_ERR_SUCCESS;
   14989             : }
   14990             : 
   14991           0 : _PUBLIC_ void ndr_print_clusapi_UnblockGetNotifyCall(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_UnblockGetNotifyCall *r)
   14992             : {
   14993           0 :         ndr_print_struct(ndr, name, "clusapi_UnblockGetNotifyCall");
   14994           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   14995           0 :         ndr->depth++;
   14996           0 :         if (flags & NDR_SET_VALUES) {
   14997           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   14998             :         }
   14999           0 :         if (flags & NDR_IN) {
   15000           0 :                 ndr_print_struct(ndr, "in", "clusapi_UnblockGetNotifyCall");
   15001           0 :                 ndr->depth++;
   15002           0 :                 ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
   15003           0 :                 ndr->depth--;
   15004             :         }
   15005           0 :         if (flags & NDR_OUT) {
   15006           0 :                 ndr_print_struct(ndr, "out", "clusapi_UnblockGetNotifyCall");
   15007           0 :                 ndr->depth++;
   15008           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   15009           0 :                 ndr->depth--;
   15010             :         }
   15011           0 :         ndr->depth--;
   15012             : }
   15013             : 
   15014           0 : static enum ndr_err_code ndr_push_clusapi_SetServiceAccountPassword(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_SetServiceAccountPassword *r)
   15015             : {
   15016           0 :         uint32_t cntr_ReturnStatusBufferPtr_0;
   15017           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   15018           0 :         if (flags & NDR_IN) {
   15019           0 :                 if (r->in.lpszNewPassword == NULL) {
   15020           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   15021             :                 }
   15022           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNewPassword, CH_UTF16)));
   15023           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   15024           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNewPassword, CH_UTF16)));
   15025           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszNewPassword, ndr_charset_length(r->in.lpszNewPassword, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   15026           0 :                 NDR_CHECK(ndr_push_IDL_CLUSTER_SET_PASSWORD_FLAGS(ndr, NDR_SCALARS, r->in.dwFlags));
   15027           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.ReturnStatusBufferSize));
   15028             :         }
   15029           0 :         if (flags & NDR_OUT) {
   15030           0 :                 if (r->out.SizeReturned == NULL) {
   15031           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   15032             :                 }
   15033           0 :                 if (r->out.ExpectedBufferSize == NULL) {
   15034           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   15035             :                 }
   15036           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.ReturnStatusBufferSize));
   15037           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   15038           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.SizeReturned));
   15039           0 :                 for (cntr_ReturnStatusBufferPtr_0 = 0; cntr_ReturnStatusBufferPtr_0 < (*r->out.SizeReturned); cntr_ReturnStatusBufferPtr_0++) {
   15040           0 :                         NDR_CHECK(ndr_push_IDL_CLUSTER_SET_PASSWORD_STATUS(ndr, NDR_SCALARS, &r->out.ReturnStatusBufferPtr[cntr_ReturnStatusBufferPtr_0]));
   15041             :                 }
   15042           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.SizeReturned));
   15043           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.ExpectedBufferSize));
   15044           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   15045             :         }
   15046           0 :         return NDR_ERR_SUCCESS;
   15047             : }
   15048             : 
   15049           0 : static enum ndr_err_code ndr_pull_clusapi_SetServiceAccountPassword(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_SetServiceAccountPassword *r)
   15050             : {
   15051           0 :         uint32_t size_lpszNewPassword_1 = 0;
   15052           0 :         uint32_t length_lpszNewPassword_1 = 0;
   15053           0 :         uint32_t size_ReturnStatusBufferPtr_0 = 0;
   15054           0 :         uint32_t length_ReturnStatusBufferPtr_0 = 0;
   15055           0 :         uint32_t cntr_ReturnStatusBufferPtr_0;
   15056           0 :         TALLOC_CTX *_mem_save_ReturnStatusBufferPtr_0 = NULL;
   15057           0 :         TALLOC_CTX *_mem_save_SizeReturned_0 = NULL;
   15058           0 :         TALLOC_CTX *_mem_save_ExpectedBufferSize_0 = NULL;
   15059           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   15060           0 :         if (flags & NDR_IN) {
   15061           0 :                 NDR_ZERO_STRUCT(r->out);
   15062             : 
   15063           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszNewPassword));
   15064           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszNewPassword));
   15065           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszNewPassword, &size_lpszNewPassword_1));
   15066           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszNewPassword, &length_lpszNewPassword_1));
   15067           0 :                 if (length_lpszNewPassword_1 > size_lpszNewPassword_1) {
   15068           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszNewPassword_1, length_lpszNewPassword_1);
   15069             :                 }
   15070           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszNewPassword_1, sizeof(uint16_t)));
   15071           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszNewPassword, length_lpszNewPassword_1, sizeof(uint16_t), CH_UTF16));
   15072           0 :                 NDR_CHECK(ndr_pull_IDL_CLUSTER_SET_PASSWORD_FLAGS(ndr, NDR_SCALARS, &r->in.dwFlags));
   15073           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.ReturnStatusBufferSize));
   15074           0 :                 if (r->in.ReturnStatusBufferSize > (64*1024)) {
   15075           0 :                         return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->in.ReturnStatusBufferSize), (uint32_t)(0), (uint32_t)((64*1024)));
   15076             :                 }
   15077           0 :                 NDR_PULL_ALLOC(ndr, r->out.SizeReturned);
   15078           0 :                 NDR_ZERO_STRUCTP(r->out.SizeReturned);
   15079           0 :                 NDR_PULL_ALLOC(ndr, r->out.ExpectedBufferSize);
   15080           0 :                 NDR_ZERO_STRUCTP(r->out.ExpectedBufferSize);
   15081             :         }
   15082           0 :         if (flags & NDR_OUT) {
   15083             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   15084             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   15085           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.ReturnStatusBufferPtr));
   15086           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->out.ReturnStatusBufferPtr));
   15087           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.ReturnStatusBufferPtr, &size_ReturnStatusBufferPtr_0));
   15088           0 :                 NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.ReturnStatusBufferPtr, &length_ReturnStatusBufferPtr_0));
   15089           0 :                 if (length_ReturnStatusBufferPtr_0 > size_ReturnStatusBufferPtr_0) {
   15090           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_ReturnStatusBufferPtr_0, length_ReturnStatusBufferPtr_0);
   15091             :                 }
   15092           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.ReturnStatusBufferPtr, size_ReturnStatusBufferPtr_0);
   15093           0 :                 _mem_save_ReturnStatusBufferPtr_0 = NDR_PULL_GET_MEM_CTX(ndr);
   15094           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ReturnStatusBufferPtr, 0);
   15095           0 :                 for (cntr_ReturnStatusBufferPtr_0 = 0; cntr_ReturnStatusBufferPtr_0 < (length_ReturnStatusBufferPtr_0); cntr_ReturnStatusBufferPtr_0++) {
   15096           0 :                         NDR_CHECK(ndr_pull_IDL_CLUSTER_SET_PASSWORD_STATUS(ndr, NDR_SCALARS, &r->out.ReturnStatusBufferPtr[cntr_ReturnStatusBufferPtr_0]));
   15097             :                 }
   15098           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnStatusBufferPtr_0, 0);
   15099           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   15100           0 :                         NDR_PULL_ALLOC(ndr, r->out.SizeReturned);
   15101             :                 }
   15102           0 :                 _mem_save_SizeReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
   15103           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.SizeReturned, LIBNDR_FLAG_REF_ALLOC);
   15104           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.SizeReturned));
   15105           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_SizeReturned_0, LIBNDR_FLAG_REF_ALLOC);
   15106           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   15107           0 :                         NDR_PULL_ALLOC(ndr, r->out.ExpectedBufferSize);
   15108             :                 }
   15109           0 :                 _mem_save_ExpectedBufferSize_0 = NDR_PULL_GET_MEM_CTX(ndr);
   15110           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ExpectedBufferSize, LIBNDR_FLAG_REF_ALLOC);
   15111           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.ExpectedBufferSize));
   15112           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ExpectedBufferSize_0, LIBNDR_FLAG_REF_ALLOC);
   15113           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   15114           0 :                 if (r->out.ReturnStatusBufferPtr) {
   15115           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.ReturnStatusBufferPtr, r->in.ReturnStatusBufferSize));
   15116             :                 }
   15117           0 :                 if (r->out.ReturnStatusBufferPtr) {
   15118           0 :                         NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.ReturnStatusBufferPtr, *r->out.SizeReturned));
   15119             :                 }
   15120             :         }
   15121           0 :         return NDR_ERR_SUCCESS;
   15122             : }
   15123             : 
   15124           0 : _PUBLIC_ void ndr_print_clusapi_SetServiceAccountPassword(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_SetServiceAccountPassword *r)
   15125             : {
   15126           0 :         uint32_t cntr_ReturnStatusBufferPtr_0;
   15127           0 :         ndr_print_struct(ndr, name, "clusapi_SetServiceAccountPassword");
   15128           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   15129           0 :         ndr->depth++;
   15130           0 :         if (flags & NDR_SET_VALUES) {
   15131           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   15132             :         }
   15133           0 :         if (flags & NDR_IN) {
   15134           0 :                 ndr_print_struct(ndr, "in", "clusapi_SetServiceAccountPassword");
   15135           0 :                 ndr->depth++;
   15136           0 :                 ndr_print_ptr(ndr, "lpszNewPassword", r->in.lpszNewPassword);
   15137           0 :                 ndr->depth++;
   15138           0 :                 ndr_print_string(ndr, "lpszNewPassword", r->in.lpszNewPassword);
   15139           0 :                 ndr->depth--;
   15140           0 :                 ndr_print_IDL_CLUSTER_SET_PASSWORD_FLAGS(ndr, "dwFlags", r->in.dwFlags);
   15141           0 :                 ndr_print_uint32(ndr, "ReturnStatusBufferSize", r->in.ReturnStatusBufferSize);
   15142           0 :                 ndr->depth--;
   15143             :         }
   15144           0 :         if (flags & NDR_OUT) {
   15145           0 :                 ndr_print_struct(ndr, "out", "clusapi_SetServiceAccountPassword");
   15146           0 :                 ndr->depth++;
   15147           0 :                 ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "ReturnStatusBufferPtr", (uint32_t)(*r->out.SizeReturned));
   15148           0 :                 ndr->depth++;
   15149           0 :                 for (cntr_ReturnStatusBufferPtr_0 = 0; cntr_ReturnStatusBufferPtr_0 < (*r->out.SizeReturned); cntr_ReturnStatusBufferPtr_0++) {
   15150           0 :                         ndr_print_IDL_CLUSTER_SET_PASSWORD_STATUS(ndr, "ReturnStatusBufferPtr", &r->out.ReturnStatusBufferPtr[cntr_ReturnStatusBufferPtr_0]);
   15151             :                 }
   15152           0 :                 ndr->depth--;
   15153           0 :                 ndr_print_ptr(ndr, "SizeReturned", r->out.SizeReturned);
   15154           0 :                 ndr->depth++;
   15155           0 :                 ndr_print_uint32(ndr, "SizeReturned", *r->out.SizeReturned);
   15156           0 :                 ndr->depth--;
   15157           0 :                 ndr_print_ptr(ndr, "ExpectedBufferSize", r->out.ExpectedBufferSize);
   15158           0 :                 ndr->depth++;
   15159           0 :                 ndr_print_uint32(ndr, "ExpectedBufferSize", *r->out.ExpectedBufferSize);
   15160           0 :                 ndr->depth--;
   15161           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   15162           0 :                 ndr->depth--;
   15163             :         }
   15164           0 :         ndr->depth--;
   15165             : }
   15166             : 
   15167           0 : static enum ndr_err_code ndr_push_clusapi_SetResourceDependencyExpression(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_SetResourceDependencyExpression *r)
   15168             : {
   15169           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   15170           0 :         if (flags & NDR_IN) {
   15171           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
   15172           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpszDependencyExpression));
   15173           0 :                 if (r->in.lpszDependencyExpression) {
   15174           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszDependencyExpression, CH_UTF16)));
   15175           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   15176           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszDependencyExpression, CH_UTF16)));
   15177           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszDependencyExpression, ndr_charset_length(r->in.lpszDependencyExpression, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   15178             :                 }
   15179             :         }
   15180           0 :         if (flags & NDR_OUT) {
   15181           0 :                 if (r->out.rpc_status == NULL) {
   15182           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   15183             :                 }
   15184           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   15185           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   15186             :         }
   15187           0 :         return NDR_ERR_SUCCESS;
   15188             : }
   15189             : 
   15190           0 : static enum ndr_err_code ndr_pull_clusapi_SetResourceDependencyExpression(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_SetResourceDependencyExpression *r)
   15191             : {
   15192           0 :         uint32_t _ptr_lpszDependencyExpression;
   15193           0 :         uint32_t size_lpszDependencyExpression_1 = 0;
   15194           0 :         uint32_t length_lpszDependencyExpression_1 = 0;
   15195           0 :         TALLOC_CTX *_mem_save_lpszDependencyExpression_0 = NULL;
   15196           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   15197           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   15198           0 :         if (flags & NDR_IN) {
   15199           0 :                 NDR_ZERO_STRUCT(r->out);
   15200             : 
   15201           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
   15202           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpszDependencyExpression));
   15203           0 :                 if (_ptr_lpszDependencyExpression) {
   15204           0 :                         NDR_PULL_ALLOC(ndr, r->in.lpszDependencyExpression);
   15205             :                 } else {
   15206           0 :                         r->in.lpszDependencyExpression = NULL;
   15207             :                 }
   15208           0 :                 if (r->in.lpszDependencyExpression) {
   15209           0 :                         _mem_save_lpszDependencyExpression_0 = NDR_PULL_GET_MEM_CTX(ndr);
   15210           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.lpszDependencyExpression, 0);
   15211           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszDependencyExpression));
   15212           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszDependencyExpression));
   15213           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszDependencyExpression, &size_lpszDependencyExpression_1));
   15214           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszDependencyExpression, &length_lpszDependencyExpression_1));
   15215           0 :                         if (length_lpszDependencyExpression_1 > size_lpszDependencyExpression_1) {
   15216           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszDependencyExpression_1, length_lpszDependencyExpression_1);
   15217             :                         }
   15218           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszDependencyExpression_1, sizeof(uint16_t)));
   15219           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszDependencyExpression, length_lpszDependencyExpression_1, sizeof(uint16_t), CH_UTF16));
   15220           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszDependencyExpression_0, 0);
   15221             :                 }
   15222           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   15223           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   15224             :         }
   15225           0 :         if (flags & NDR_OUT) {
   15226             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   15227             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   15228           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   15229           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   15230             :                 }
   15231           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   15232           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   15233           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   15234           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   15235           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   15236             :         }
   15237           0 :         return NDR_ERR_SUCCESS;
   15238             : }
   15239             : 
   15240           0 : _PUBLIC_ void ndr_print_clusapi_SetResourceDependencyExpression(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_SetResourceDependencyExpression *r)
   15241             : {
   15242           0 :         ndr_print_struct(ndr, name, "clusapi_SetResourceDependencyExpression");
   15243           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   15244           0 :         ndr->depth++;
   15245           0 :         if (flags & NDR_SET_VALUES) {
   15246           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   15247             :         }
   15248           0 :         if (flags & NDR_IN) {
   15249           0 :                 ndr_print_struct(ndr, "in", "clusapi_SetResourceDependencyExpression");
   15250           0 :                 ndr->depth++;
   15251           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
   15252           0 :                 ndr_print_ptr(ndr, "lpszDependencyExpression", r->in.lpszDependencyExpression);
   15253           0 :                 ndr->depth++;
   15254           0 :                 if (r->in.lpszDependencyExpression) {
   15255           0 :                         ndr_print_string(ndr, "lpszDependencyExpression", r->in.lpszDependencyExpression);
   15256             :                 }
   15257           0 :                 ndr->depth--;
   15258           0 :                 ndr->depth--;
   15259             :         }
   15260           0 :         if (flags & NDR_OUT) {
   15261           0 :                 ndr_print_struct(ndr, "out", "clusapi_SetResourceDependencyExpression");
   15262           0 :                 ndr->depth++;
   15263           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   15264           0 :                 ndr->depth++;
   15265           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   15266           0 :                 ndr->depth--;
   15267           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   15268           0 :                 ndr->depth--;
   15269             :         }
   15270           0 :         ndr->depth--;
   15271             : }
   15272             : 
   15273           0 : static enum ndr_err_code ndr_push_clusapi_GetResourceDependencyExpression(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_GetResourceDependencyExpression *r)
   15274             : {
   15275           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   15276           0 :         if (flags & NDR_IN) {
   15277           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
   15278             :         }
   15279           0 :         if (flags & NDR_OUT) {
   15280           0 :                 if (r->out.lpszDependencyExpression == NULL) {
   15281           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   15282             :                 }
   15283           0 :                 if (r->out.rpc_status == NULL) {
   15284           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   15285             :                 }
   15286           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lpszDependencyExpression));
   15287           0 :                 if (*r->out.lpszDependencyExpression) {
   15288           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszDependencyExpression, CH_UTF16)));
   15289           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   15290           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszDependencyExpression, CH_UTF16)));
   15291           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.lpszDependencyExpression, ndr_charset_length(*r->out.lpszDependencyExpression, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   15292             :                 }
   15293           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   15294           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   15295             :         }
   15296           0 :         return NDR_ERR_SUCCESS;
   15297             : }
   15298             : 
   15299           0 : static enum ndr_err_code ndr_pull_clusapi_GetResourceDependencyExpression(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_GetResourceDependencyExpression *r)
   15300             : {
   15301           0 :         uint32_t _ptr_lpszDependencyExpression;
   15302           0 :         uint32_t size_lpszDependencyExpression_2 = 0;
   15303           0 :         uint32_t length_lpszDependencyExpression_2 = 0;
   15304           0 :         TALLOC_CTX *_mem_save_lpszDependencyExpression_0 = NULL;
   15305           0 :         TALLOC_CTX *_mem_save_lpszDependencyExpression_1 = NULL;
   15306           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   15307           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   15308           0 :         if (flags & NDR_IN) {
   15309           0 :                 NDR_ZERO_STRUCT(r->out);
   15310             : 
   15311           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
   15312           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpszDependencyExpression);
   15313           0 :                 NDR_ZERO_STRUCTP(r->out.lpszDependencyExpression);
   15314           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   15315           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   15316             :         }
   15317           0 :         if (flags & NDR_OUT) {
   15318             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   15319             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   15320           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   15321           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpszDependencyExpression);
   15322             :                 }
   15323           0 :                 _mem_save_lpszDependencyExpression_0 = NDR_PULL_GET_MEM_CTX(ndr);
   15324           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpszDependencyExpression, LIBNDR_FLAG_REF_ALLOC);
   15325           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpszDependencyExpression));
   15326           0 :                 if (_ptr_lpszDependencyExpression) {
   15327           0 :                         NDR_PULL_ALLOC(ndr, *r->out.lpszDependencyExpression);
   15328             :                 } else {
   15329           0 :                         *r->out.lpszDependencyExpression = NULL;
   15330             :                 }
   15331           0 :                 if (*r->out.lpszDependencyExpression) {
   15332           0 :                         _mem_save_lpszDependencyExpression_1 = NDR_PULL_GET_MEM_CTX(ndr);
   15333           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.lpszDependencyExpression, 0);
   15334           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.lpszDependencyExpression));
   15335           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, r->out.lpszDependencyExpression));
   15336           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.lpszDependencyExpression, &size_lpszDependencyExpression_2));
   15337           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.lpszDependencyExpression, &length_lpszDependencyExpression_2));
   15338           0 :                         if (length_lpszDependencyExpression_2 > size_lpszDependencyExpression_2) {
   15339           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszDependencyExpression_2, length_lpszDependencyExpression_2);
   15340             :                         }
   15341           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszDependencyExpression_2, sizeof(uint16_t)));
   15342           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.lpszDependencyExpression, length_lpszDependencyExpression_2, sizeof(uint16_t), CH_UTF16));
   15343           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszDependencyExpression_1, 0);
   15344             :                 }
   15345           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszDependencyExpression_0, LIBNDR_FLAG_REF_ALLOC);
   15346           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   15347           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   15348             :                 }
   15349           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   15350           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   15351           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   15352           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   15353           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   15354             :         }
   15355           0 :         return NDR_ERR_SUCCESS;
   15356             : }
   15357             : 
   15358           0 : _PUBLIC_ void ndr_print_clusapi_GetResourceDependencyExpression(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_GetResourceDependencyExpression *r)
   15359             : {
   15360           0 :         ndr_print_struct(ndr, name, "clusapi_GetResourceDependencyExpression");
   15361           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   15362           0 :         ndr->depth++;
   15363           0 :         if (flags & NDR_SET_VALUES) {
   15364           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   15365             :         }
   15366           0 :         if (flags & NDR_IN) {
   15367           0 :                 ndr_print_struct(ndr, "in", "clusapi_GetResourceDependencyExpression");
   15368           0 :                 ndr->depth++;
   15369           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
   15370           0 :                 ndr->depth--;
   15371             :         }
   15372           0 :         if (flags & NDR_OUT) {
   15373           0 :                 ndr_print_struct(ndr, "out", "clusapi_GetResourceDependencyExpression");
   15374           0 :                 ndr->depth++;
   15375           0 :                 ndr_print_ptr(ndr, "lpszDependencyExpression", r->out.lpszDependencyExpression);
   15376           0 :                 ndr->depth++;
   15377           0 :                 ndr_print_ptr(ndr, "lpszDependencyExpression", *r->out.lpszDependencyExpression);
   15378           0 :                 ndr->depth++;
   15379           0 :                 if (*r->out.lpszDependencyExpression) {
   15380           0 :                         ndr_print_string(ndr, "lpszDependencyExpression", *r->out.lpszDependencyExpression);
   15381             :                 }
   15382           0 :                 ndr->depth--;
   15383           0 :                 ndr->depth--;
   15384           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   15385           0 :                 ndr->depth++;
   15386           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   15387           0 :                 ndr->depth--;
   15388           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   15389           0 :                 ndr->depth--;
   15390             :         }
   15391           0 :         ndr->depth--;
   15392             : }
   15393             : 
   15394           0 : static enum ndr_err_code ndr_push_Opnum111NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct Opnum111NotUsedOnWire *r)
   15395             : {
   15396           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   15397           0 :         if (flags & NDR_IN) {
   15398           0 :         }
   15399           0 :         if (flags & NDR_OUT) {
   15400           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   15401             :         }
   15402           0 :         return NDR_ERR_SUCCESS;
   15403             : }
   15404             : 
   15405           0 : static enum ndr_err_code ndr_pull_Opnum111NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct Opnum111NotUsedOnWire *r)
   15406             : {
   15407           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   15408           0 :         if (flags & NDR_IN) {
   15409           0 :         }
   15410           0 :         if (flags & NDR_OUT) {
   15411             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   15412             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   15413           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   15414             :         }
   15415           0 :         return NDR_ERR_SUCCESS;
   15416             : }
   15417             : 
   15418           0 : _PUBLIC_ void ndr_print_Opnum111NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct Opnum111NotUsedOnWire *r)
   15419             : {
   15420           0 :         ndr_print_struct(ndr, name, "Opnum111NotUsedOnWire");
   15421           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   15422           0 :         ndr->depth++;
   15423           0 :         if (flags & NDR_SET_VALUES) {
   15424           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   15425             :         }
   15426           0 :         if (flags & NDR_IN) {
   15427           0 :                 ndr_print_struct(ndr, "in", "Opnum111NotUsedOnWire");
   15428           0 :                 ndr->depth++;
   15429           0 :                 ndr->depth--;
   15430             :         }
   15431           0 :         if (flags & NDR_OUT) {
   15432           0 :                 ndr_print_struct(ndr, "out", "Opnum111NotUsedOnWire");
   15433           0 :                 ndr->depth++;
   15434           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   15435           0 :                 ndr->depth--;
   15436             :         }
   15437           0 :         ndr->depth--;
   15438             : }
   15439             : 
   15440           0 : static enum ndr_err_code ndr_push_clusapi_GetResourceNetworkName(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_GetResourceNetworkName *r)
   15441             : {
   15442           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   15443           0 :         if (flags & NDR_IN) {
   15444           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
   15445             :         }
   15446           0 :         if (flags & NDR_OUT) {
   15447           0 :                 if (r->out.lpszName == NULL) {
   15448           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   15449             :                 }
   15450           0 :                 if (r->out.rpc_status == NULL) {
   15451           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   15452             :                 }
   15453           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lpszName));
   15454           0 :                 if (*r->out.lpszName) {
   15455           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszName, CH_UTF16)));
   15456           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   15457           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.lpszName, CH_UTF16)));
   15458           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.lpszName, ndr_charset_length(*r->out.lpszName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   15459             :                 }
   15460           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   15461           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   15462             :         }
   15463           0 :         return NDR_ERR_SUCCESS;
   15464             : }
   15465             : 
   15466           0 : static enum ndr_err_code ndr_pull_clusapi_GetResourceNetworkName(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_GetResourceNetworkName *r)
   15467             : {
   15468           0 :         uint32_t _ptr_lpszName;
   15469           0 :         uint32_t size_lpszName_2 = 0;
   15470           0 :         uint32_t length_lpszName_2 = 0;
   15471           0 :         TALLOC_CTX *_mem_save_lpszName_0 = NULL;
   15472           0 :         TALLOC_CTX *_mem_save_lpszName_1 = NULL;
   15473           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   15474           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   15475           0 :         if (flags & NDR_IN) {
   15476           0 :                 NDR_ZERO_STRUCT(r->out);
   15477             : 
   15478           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
   15479           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpszName);
   15480           0 :                 NDR_ZERO_STRUCTP(r->out.lpszName);
   15481           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   15482           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   15483             :         }
   15484           0 :         if (flags & NDR_OUT) {
   15485             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   15486             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   15487           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   15488           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpszName);
   15489             :                 }
   15490           0 :                 _mem_save_lpszName_0 = NDR_PULL_GET_MEM_CTX(ndr);
   15491           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpszName, LIBNDR_FLAG_REF_ALLOC);
   15492           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpszName));
   15493           0 :                 if (_ptr_lpszName) {
   15494           0 :                         NDR_PULL_ALLOC(ndr, *r->out.lpszName);
   15495             :                 } else {
   15496           0 :                         *r->out.lpszName = NULL;
   15497             :                 }
   15498           0 :                 if (*r->out.lpszName) {
   15499           0 :                         _mem_save_lpszName_1 = NDR_PULL_GET_MEM_CTX(ndr);
   15500           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.lpszName, 0);
   15501           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.lpszName));
   15502           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, r->out.lpszName));
   15503           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.lpszName, &size_lpszName_2));
   15504           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.lpszName, &length_lpszName_2));
   15505           0 :                         if (length_lpszName_2 > size_lpszName_2) {
   15506           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszName_2, length_lpszName_2);
   15507             :                         }
   15508           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszName_2, sizeof(uint16_t)));
   15509           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.lpszName, length_lpszName_2, sizeof(uint16_t), CH_UTF16));
   15510           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszName_1, 0);
   15511             :                 }
   15512           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpszName_0, LIBNDR_FLAG_REF_ALLOC);
   15513           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   15514           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   15515             :                 }
   15516           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   15517           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   15518           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   15519           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   15520           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   15521             :         }
   15522           0 :         return NDR_ERR_SUCCESS;
   15523             : }
   15524             : 
   15525           0 : _PUBLIC_ void ndr_print_clusapi_GetResourceNetworkName(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_GetResourceNetworkName *r)
   15526             : {
   15527           0 :         ndr_print_struct(ndr, name, "clusapi_GetResourceNetworkName");
   15528           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   15529           0 :         ndr->depth++;
   15530           0 :         if (flags & NDR_SET_VALUES) {
   15531           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   15532             :         }
   15533           0 :         if (flags & NDR_IN) {
   15534           0 :                 ndr_print_struct(ndr, "in", "clusapi_GetResourceNetworkName");
   15535           0 :                 ndr->depth++;
   15536           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
   15537           0 :                 ndr->depth--;
   15538             :         }
   15539           0 :         if (flags & NDR_OUT) {
   15540           0 :                 ndr_print_struct(ndr, "out", "clusapi_GetResourceNetworkName");
   15541           0 :                 ndr->depth++;
   15542           0 :                 ndr_print_ptr(ndr, "lpszName", r->out.lpszName);
   15543           0 :                 ndr->depth++;
   15544           0 :                 ndr_print_ptr(ndr, "lpszName", *r->out.lpszName);
   15545           0 :                 ndr->depth++;
   15546           0 :                 if (*r->out.lpszName) {
   15547           0 :                         ndr_print_string(ndr, "lpszName", *r->out.lpszName);
   15548             :                 }
   15549           0 :                 ndr->depth--;
   15550           0 :                 ndr->depth--;
   15551           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   15552           0 :                 ndr->depth++;
   15553           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   15554           0 :                 ndr->depth--;
   15555           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   15556           0 :                 ndr->depth--;
   15557             :         }
   15558           0 :         ndr->depth--;
   15559             : }
   15560             : 
   15561           0 : static enum ndr_err_code ndr_push_clusapi_ExecuteBatch(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_ExecuteBatch *r)
   15562             : {
   15563           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   15564           0 :         if (flags & NDR_IN) {
   15565           0 :                 if (r->in.lpData == NULL) {
   15566           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   15567             :                 }
   15568           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
   15569           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbData));
   15570           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbData));
   15571           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpData, r->in.cbData));
   15572             :         }
   15573           0 :         if (flags & NDR_OUT) {
   15574           0 :                 if (r->out.pdwFailedCommand == NULL) {
   15575           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   15576             :                 }
   15577           0 :                 if (r->out.rpc_status == NULL) {
   15578           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   15579             :                 }
   15580           0 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, *r->out.pdwFailedCommand));
   15581           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   15582           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   15583             :         }
   15584           0 :         return NDR_ERR_SUCCESS;
   15585             : }
   15586             : 
   15587           0 : static enum ndr_err_code ndr_pull_clusapi_ExecuteBatch(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_ExecuteBatch *r)
   15588             : {
   15589           0 :         uint32_t size_lpData_1 = 0;
   15590           0 :         TALLOC_CTX *_mem_save_pdwFailedCommand_0 = NULL;
   15591           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   15592           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   15593           0 :         if (flags & NDR_IN) {
   15594           0 :                 NDR_ZERO_STRUCT(r->out);
   15595             : 
   15596           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
   15597           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbData));
   15598           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpData));
   15599           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpData, &size_lpData_1));
   15600           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   15601           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.lpData, size_lpData_1);
   15602             :                 }
   15603           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpData, size_lpData_1));
   15604           0 :                 NDR_PULL_ALLOC(ndr, r->out.pdwFailedCommand);
   15605           0 :                 NDR_ZERO_STRUCTP(r->out.pdwFailedCommand);
   15606           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   15607           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   15608           0 :                 if (r->in.lpData) {
   15609           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpData, r->in.cbData));
   15610             :                 }
   15611             :         }
   15612           0 :         if (flags & NDR_OUT) {
   15613             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   15614             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   15615           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   15616           0 :                         NDR_PULL_ALLOC(ndr, r->out.pdwFailedCommand);
   15617             :                 }
   15618           0 :                 _mem_save_pdwFailedCommand_0 = NDR_PULL_GET_MEM_CTX(ndr);
   15619           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.pdwFailedCommand, LIBNDR_FLAG_REF_ALLOC);
   15620           0 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, r->out.pdwFailedCommand));
   15621           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pdwFailedCommand_0, LIBNDR_FLAG_REF_ALLOC);
   15622           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   15623           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   15624             :                 }
   15625           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   15626           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   15627           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   15628           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   15629           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   15630             :         }
   15631           0 :         return NDR_ERR_SUCCESS;
   15632             : }
   15633             : 
   15634           0 : _PUBLIC_ void ndr_print_clusapi_ExecuteBatch(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_ExecuteBatch *r)
   15635             : {
   15636           0 :         ndr_print_struct(ndr, name, "clusapi_ExecuteBatch");
   15637           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   15638           0 :         ndr->depth++;
   15639           0 :         if (flags & NDR_SET_VALUES) {
   15640           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   15641             :         }
   15642           0 :         if (flags & NDR_IN) {
   15643           0 :                 ndr_print_struct(ndr, "in", "clusapi_ExecuteBatch");
   15644           0 :                 ndr->depth++;
   15645           0 :                 ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
   15646           0 :                 ndr_print_uint32(ndr, "cbData", r->in.cbData);
   15647           0 :                 ndr_print_ptr(ndr, "lpData", r->in.lpData);
   15648           0 :                 ndr->depth++;
   15649           0 :                 ndr_print_array_uint8(ndr, "lpData", r->in.lpData, r->in.cbData);
   15650           0 :                 ndr->depth--;
   15651           0 :                 ndr->depth--;
   15652             :         }
   15653           0 :         if (flags & NDR_OUT) {
   15654           0 :                 ndr_print_struct(ndr, "out", "clusapi_ExecuteBatch");
   15655           0 :                 ndr->depth++;
   15656           0 :                 ndr_print_ptr(ndr, "pdwFailedCommand", r->out.pdwFailedCommand);
   15657           0 :                 ndr->depth++;
   15658           0 :                 ndr_print_int32(ndr, "pdwFailedCommand", *r->out.pdwFailedCommand);
   15659           0 :                 ndr->depth--;
   15660           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   15661           0 :                 ndr->depth++;
   15662           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   15663           0 :                 ndr->depth--;
   15664           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   15665           0 :                 ndr->depth--;
   15666             :         }
   15667           0 :         ndr->depth--;
   15668             : }
   15669             : 
   15670           0 : static enum ndr_err_code ndr_push_clusapi_CreateBatchPort(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CreateBatchPort *r)
   15671             : {
   15672           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   15673           0 :         if (flags & NDR_IN) {
   15674           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
   15675             :         }
   15676           0 :         if (flags & NDR_OUT) {
   15677           0 :                 if (r->out.phBatchPort == NULL) {
   15678           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   15679             :                 }
   15680           0 :                 if (r->out.rpc_status == NULL) {
   15681           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   15682             :                 }
   15683           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.phBatchPort));
   15684           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   15685           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   15686             :         }
   15687           0 :         return NDR_ERR_SUCCESS;
   15688             : }
   15689             : 
   15690           0 : static enum ndr_err_code ndr_pull_clusapi_CreateBatchPort(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CreateBatchPort *r)
   15691             : {
   15692           0 :         TALLOC_CTX *_mem_save_phBatchPort_0 = NULL;
   15693           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   15694           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   15695           0 :         if (flags & NDR_IN) {
   15696           0 :                 NDR_ZERO_STRUCT(r->out);
   15697             : 
   15698           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
   15699           0 :                 NDR_PULL_ALLOC(ndr, r->out.phBatchPort);
   15700           0 :                 NDR_ZERO_STRUCTP(r->out.phBatchPort);
   15701           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   15702           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   15703             :         }
   15704           0 :         if (flags & NDR_OUT) {
   15705             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   15706             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   15707           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   15708           0 :                         NDR_PULL_ALLOC(ndr, r->out.phBatchPort);
   15709             :                 }
   15710           0 :                 _mem_save_phBatchPort_0 = NDR_PULL_GET_MEM_CTX(ndr);
   15711           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.phBatchPort, LIBNDR_FLAG_REF_ALLOC);
   15712           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.phBatchPort));
   15713           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_phBatchPort_0, LIBNDR_FLAG_REF_ALLOC);
   15714           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   15715           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   15716             :                 }
   15717           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   15718           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   15719           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   15720           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   15721           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   15722             :         }
   15723           0 :         return NDR_ERR_SUCCESS;
   15724             : }
   15725             : 
   15726           0 : _PUBLIC_ void ndr_print_clusapi_CreateBatchPort(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CreateBatchPort *r)
   15727             : {
   15728           0 :         ndr_print_struct(ndr, name, "clusapi_CreateBatchPort");
   15729           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   15730           0 :         ndr->depth++;
   15731           0 :         if (flags & NDR_SET_VALUES) {
   15732           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   15733             :         }
   15734           0 :         if (flags & NDR_IN) {
   15735           0 :                 ndr_print_struct(ndr, "in", "clusapi_CreateBatchPort");
   15736           0 :                 ndr->depth++;
   15737           0 :                 ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
   15738           0 :                 ndr->depth--;
   15739             :         }
   15740           0 :         if (flags & NDR_OUT) {
   15741           0 :                 ndr_print_struct(ndr, "out", "clusapi_CreateBatchPort");
   15742           0 :                 ndr->depth++;
   15743           0 :                 ndr_print_ptr(ndr, "phBatchPort", r->out.phBatchPort);
   15744           0 :                 ndr->depth++;
   15745           0 :                 ndr_print_policy_handle(ndr, "phBatchPort", r->out.phBatchPort);
   15746           0 :                 ndr->depth--;
   15747           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   15748           0 :                 ndr->depth++;
   15749           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   15750           0 :                 ndr->depth--;
   15751           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   15752           0 :                 ndr->depth--;
   15753             :         }
   15754           0 :         ndr->depth--;
   15755             : }
   15756             : 
   15757           0 : static enum ndr_err_code ndr_push_clusapi_GetBatchNotification(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_GetBatchNotification *r)
   15758             : {
   15759           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   15760           0 :         if (flags & NDR_IN) {
   15761           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hBatchNotify));
   15762             :         }
   15763           0 :         if (flags & NDR_OUT) {
   15764           0 :                 if (r->out.cbData == NULL) {
   15765           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   15766             :                 }
   15767           0 :                 if (r->out.lpData == NULL) {
   15768           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   15769             :                 }
   15770           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.cbData));
   15771           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lpData));
   15772           0 :                 if (*r->out.lpData) {
   15773           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.cbData));
   15774           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, *r->out.lpData, *r->out.cbData));
   15775             :                 }
   15776           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   15777             :         }
   15778           0 :         return NDR_ERR_SUCCESS;
   15779             : }
   15780             : 
   15781           0 : static enum ndr_err_code ndr_pull_clusapi_GetBatchNotification(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_GetBatchNotification *r)
   15782             : {
   15783           0 :         uint32_t _ptr_lpData;
   15784           0 :         uint32_t size_lpData_2 = 0;
   15785           0 :         TALLOC_CTX *_mem_save_cbData_0 = NULL;
   15786           0 :         TALLOC_CTX *_mem_save_lpData_0 = NULL;
   15787           0 :         TALLOC_CTX *_mem_save_lpData_1 = NULL;
   15788           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   15789           0 :         if (flags & NDR_IN) {
   15790           0 :                 NDR_ZERO_STRUCT(r->out);
   15791             : 
   15792           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hBatchNotify));
   15793           0 :                 NDR_PULL_ALLOC(ndr, r->out.cbData);
   15794           0 :                 NDR_ZERO_STRUCTP(r->out.cbData);
   15795           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpData);
   15796           0 :                 NDR_ZERO_STRUCTP(r->out.lpData);
   15797             :         }
   15798           0 :         if (flags & NDR_OUT) {
   15799             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   15800             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   15801           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   15802           0 :                         NDR_PULL_ALLOC(ndr, r->out.cbData);
   15803             :                 }
   15804           0 :                 _mem_save_cbData_0 = NDR_PULL_GET_MEM_CTX(ndr);
   15805           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.cbData, LIBNDR_FLAG_REF_ALLOC);
   15806           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.cbData));
   15807           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_cbData_0, LIBNDR_FLAG_REF_ALLOC);
   15808           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   15809           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpData);
   15810             :                 }
   15811           0 :                 _mem_save_lpData_0 = NDR_PULL_GET_MEM_CTX(ndr);
   15812           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpData, LIBNDR_FLAG_REF_ALLOC);
   15813           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpData));
   15814           0 :                 if (_ptr_lpData) {
   15815           0 :                         NDR_PULL_ALLOC(ndr, *r->out.lpData);
   15816             :                 } else {
   15817           0 :                         *r->out.lpData = NULL;
   15818             :                 }
   15819           0 :                 if (*r->out.lpData) {
   15820           0 :                         _mem_save_lpData_1 = NDR_PULL_GET_MEM_CTX(ndr);
   15821           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.lpData, 0);
   15822           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.lpData));
   15823           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)r->out.lpData, &size_lpData_2));
   15824           0 :                         NDR_PULL_ALLOC_N(ndr, *r->out.lpData, size_lpData_2);
   15825           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, *r->out.lpData, size_lpData_2));
   15826           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpData_1, 0);
   15827             :                 }
   15828           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpData_0, LIBNDR_FLAG_REF_ALLOC);
   15829           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   15830           0 :                 if (*r->out.lpData) {
   15831           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)r->out.lpData, *r->out.cbData));
   15832             :                 }
   15833             :         }
   15834           0 :         return NDR_ERR_SUCCESS;
   15835             : }
   15836             : 
   15837           0 : _PUBLIC_ void ndr_print_clusapi_GetBatchNotification(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_GetBatchNotification *r)
   15838             : {
   15839           0 :         ndr_print_struct(ndr, name, "clusapi_GetBatchNotification");
   15840           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   15841           0 :         ndr->depth++;
   15842           0 :         if (flags & NDR_SET_VALUES) {
   15843           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   15844             :         }
   15845           0 :         if (flags & NDR_IN) {
   15846           0 :                 ndr_print_struct(ndr, "in", "clusapi_GetBatchNotification");
   15847           0 :                 ndr->depth++;
   15848           0 :                 ndr_print_policy_handle(ndr, "hBatchNotify", &r->in.hBatchNotify);
   15849           0 :                 ndr->depth--;
   15850             :         }
   15851           0 :         if (flags & NDR_OUT) {
   15852           0 :                 ndr_print_struct(ndr, "out", "clusapi_GetBatchNotification");
   15853           0 :                 ndr->depth++;
   15854           0 :                 ndr_print_ptr(ndr, "cbData", r->out.cbData);
   15855           0 :                 ndr->depth++;
   15856           0 :                 ndr_print_uint32(ndr, "cbData", *r->out.cbData);
   15857           0 :                 ndr->depth--;
   15858           0 :                 ndr_print_ptr(ndr, "lpData", r->out.lpData);
   15859           0 :                 ndr->depth++;
   15860           0 :                 ndr_print_ptr(ndr, "lpData", *r->out.lpData);
   15861           0 :                 ndr->depth++;
   15862           0 :                 if (*r->out.lpData) {
   15863           0 :                         ndr_print_array_uint8(ndr, "lpData", *r->out.lpData, *r->out.cbData);
   15864             :                 }
   15865           0 :                 ndr->depth--;
   15866           0 :                 ndr->depth--;
   15867           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   15868           0 :                 ndr->depth--;
   15869             :         }
   15870           0 :         ndr->depth--;
   15871             : }
   15872             : 
   15873           0 : static enum ndr_err_code ndr_push_clusapi_CloseBatchPort(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CloseBatchPort *r)
   15874             : {
   15875           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   15876           0 :         if (flags & NDR_IN) {
   15877           0 :                 if (r->in.phBatchPort == NULL) {
   15878           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   15879             :                 }
   15880           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.phBatchPort));
   15881             :         }
   15882           0 :         if (flags & NDR_OUT) {
   15883           0 :                 if (r->out.phBatchPort == NULL) {
   15884           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   15885             :                 }
   15886           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.phBatchPort));
   15887           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   15888             :         }
   15889           0 :         return NDR_ERR_SUCCESS;
   15890             : }
   15891             : 
   15892           0 : static enum ndr_err_code ndr_pull_clusapi_CloseBatchPort(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CloseBatchPort *r)
   15893             : {
   15894           0 :         TALLOC_CTX *_mem_save_phBatchPort_0 = NULL;
   15895           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   15896           0 :         if (flags & NDR_IN) {
   15897           0 :                 NDR_ZERO_STRUCT(r->out);
   15898             : 
   15899           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   15900           0 :                         NDR_PULL_ALLOC(ndr, r->in.phBatchPort);
   15901             :                 }
   15902           0 :                 _mem_save_phBatchPort_0 = NDR_PULL_GET_MEM_CTX(ndr);
   15903           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.phBatchPort, LIBNDR_FLAG_REF_ALLOC);
   15904           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.phBatchPort));
   15905           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_phBatchPort_0, LIBNDR_FLAG_REF_ALLOC);
   15906           0 :                 NDR_PULL_ALLOC(ndr, r->out.phBatchPort);
   15907           0 :                 *r->out.phBatchPort = *r->in.phBatchPort;
   15908             :         }
   15909           0 :         if (flags & NDR_OUT) {
   15910             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   15911             :                 if (r->in.phBatchPort == NULL) {
   15912             :                         NDR_PULL_ALLOC(ndr, r->in.phBatchPort);
   15913             :                         NDR_ZERO_STRUCTP(r->in.phBatchPort);
   15914             :                 }
   15915             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   15916           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   15917           0 :                         NDR_PULL_ALLOC(ndr, r->out.phBatchPort);
   15918             :                 }
   15919           0 :                 _mem_save_phBatchPort_0 = NDR_PULL_GET_MEM_CTX(ndr);
   15920           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.phBatchPort, LIBNDR_FLAG_REF_ALLOC);
   15921           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.phBatchPort));
   15922           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_phBatchPort_0, LIBNDR_FLAG_REF_ALLOC);
   15923           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   15924             :         }
   15925           0 :         return NDR_ERR_SUCCESS;
   15926             : }
   15927             : 
   15928           0 : _PUBLIC_ void ndr_print_clusapi_CloseBatchPort(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CloseBatchPort *r)
   15929             : {
   15930           0 :         ndr_print_struct(ndr, name, "clusapi_CloseBatchPort");
   15931           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   15932           0 :         ndr->depth++;
   15933           0 :         if (flags & NDR_SET_VALUES) {
   15934           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   15935             :         }
   15936           0 :         if (flags & NDR_IN) {
   15937           0 :                 ndr_print_struct(ndr, "in", "clusapi_CloseBatchPort");
   15938           0 :                 ndr->depth++;
   15939           0 :                 ndr_print_ptr(ndr, "phBatchPort", r->in.phBatchPort);
   15940           0 :                 ndr->depth++;
   15941           0 :                 ndr_print_policy_handle(ndr, "phBatchPort", r->in.phBatchPort);
   15942           0 :                 ndr->depth--;
   15943           0 :                 ndr->depth--;
   15944             :         }
   15945           0 :         if (flags & NDR_OUT) {
   15946           0 :                 ndr_print_struct(ndr, "out", "clusapi_CloseBatchPort");
   15947           0 :                 ndr->depth++;
   15948           0 :                 ndr_print_ptr(ndr, "phBatchPort", r->out.phBatchPort);
   15949           0 :                 ndr->depth++;
   15950           0 :                 ndr_print_policy_handle(ndr, "phBatchPort", r->out.phBatchPort);
   15951           0 :                 ndr->depth--;
   15952           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   15953           0 :                 ndr->depth--;
   15954             :         }
   15955           0 :         ndr->depth--;
   15956             : }
   15957             : 
   15958           0 : static enum ndr_err_code ndr_push_clusapi_OpenClusterEx(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_OpenClusterEx *r)
   15959             : {
   15960           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   15961           0 :         if (flags & NDR_IN) {
   15962           0 :                 NDR_CHECK(ndr_push_clusapi_DesiredAccessMask(ndr, NDR_SCALARS, r->in.dwDesiredAccess));
   15963             :         }
   15964           0 :         if (flags & NDR_OUT) {
   15965           0 :                 if (r->out.lpdwGrantedAccess == NULL) {
   15966           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   15967             :                 }
   15968           0 :                 if (r->out.Status == NULL) {
   15969           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   15970             :                 }
   15971           0 :                 if (r->out.hCluster == NULL) {
   15972           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   15973             :                 }
   15974           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpdwGrantedAccess));
   15975           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
   15976           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hCluster));
   15977             :         }
   15978           0 :         return NDR_ERR_SUCCESS;
   15979             : }
   15980             : 
   15981           0 : static enum ndr_err_code ndr_pull_clusapi_OpenClusterEx(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_OpenClusterEx *r)
   15982             : {
   15983           0 :         TALLOC_CTX *_mem_save_lpdwGrantedAccess_0 = NULL;
   15984           0 :         TALLOC_CTX *_mem_save_Status_0 = NULL;
   15985           0 :         TALLOC_CTX *_mem_save_hCluster_0 = NULL;
   15986           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   15987           0 :         if (flags & NDR_IN) {
   15988           0 :                 NDR_ZERO_STRUCT(r->out);
   15989             : 
   15990           0 :                 NDR_CHECK(ndr_pull_clusapi_DesiredAccessMask(ndr, NDR_SCALARS, &r->in.dwDesiredAccess));
   15991           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpdwGrantedAccess);
   15992           0 :                 NDR_ZERO_STRUCTP(r->out.lpdwGrantedAccess);
   15993           0 :                 NDR_PULL_ALLOC(ndr, r->out.Status);
   15994           0 :                 NDR_ZERO_STRUCTP(r->out.Status);
   15995           0 :                 NDR_PULL_ALLOC(ndr, r->out.hCluster);
   15996           0 :                 NDR_ZERO_STRUCTP(r->out.hCluster);
   15997             :         }
   15998           0 :         if (flags & NDR_OUT) {
   15999             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   16000             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   16001           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16002           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpdwGrantedAccess);
   16003             :                 }
   16004           0 :                 _mem_save_lpdwGrantedAccess_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16005           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpdwGrantedAccess, LIBNDR_FLAG_REF_ALLOC);
   16006           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpdwGrantedAccess));
   16007           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpdwGrantedAccess_0, LIBNDR_FLAG_REF_ALLOC);
   16008           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16009           0 :                         NDR_PULL_ALLOC(ndr, r->out.Status);
   16010             :                 }
   16011           0 :                 _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16012           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
   16013           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
   16014           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
   16015           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16016           0 :                         NDR_PULL_ALLOC(ndr, r->out.hCluster);
   16017             :                 }
   16018           0 :                 _mem_save_hCluster_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16019           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.hCluster, LIBNDR_FLAG_REF_ALLOC);
   16020           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hCluster));
   16021           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hCluster_0, LIBNDR_FLAG_REF_ALLOC);
   16022             :         }
   16023           0 :         return NDR_ERR_SUCCESS;
   16024             : }
   16025             : 
   16026           0 : _PUBLIC_ void ndr_print_clusapi_OpenClusterEx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_OpenClusterEx *r)
   16027             : {
   16028           0 :         ndr_print_struct(ndr, name, "clusapi_OpenClusterEx");
   16029           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   16030           0 :         ndr->depth++;
   16031           0 :         if (flags & NDR_SET_VALUES) {
   16032           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   16033             :         }
   16034           0 :         if (flags & NDR_IN) {
   16035           0 :                 ndr_print_struct(ndr, "in", "clusapi_OpenClusterEx");
   16036           0 :                 ndr->depth++;
   16037           0 :                 ndr_print_clusapi_DesiredAccessMask(ndr, "dwDesiredAccess", r->in.dwDesiredAccess);
   16038           0 :                 ndr->depth--;
   16039             :         }
   16040           0 :         if (flags & NDR_OUT) {
   16041           0 :                 ndr_print_struct(ndr, "out", "clusapi_OpenClusterEx");
   16042           0 :                 ndr->depth++;
   16043           0 :                 ndr_print_ptr(ndr, "lpdwGrantedAccess", r->out.lpdwGrantedAccess);
   16044           0 :                 ndr->depth++;
   16045           0 :                 ndr_print_uint32(ndr, "lpdwGrantedAccess", *r->out.lpdwGrantedAccess);
   16046           0 :                 ndr->depth--;
   16047           0 :                 ndr_print_ptr(ndr, "Status", r->out.Status);
   16048           0 :                 ndr->depth++;
   16049           0 :                 ndr_print_WERROR(ndr, "Status", *r->out.Status);
   16050           0 :                 ndr->depth--;
   16051           0 :                 ndr_print_ptr(ndr, "hCluster", r->out.hCluster);
   16052           0 :                 ndr->depth++;
   16053           0 :                 ndr_print_policy_handle(ndr, "hCluster", r->out.hCluster);
   16054           0 :                 ndr->depth--;
   16055           0 :                 ndr->depth--;
   16056             :         }
   16057           0 :         ndr->depth--;
   16058             : }
   16059             : 
   16060           0 : static enum ndr_err_code ndr_push_clusapi_OpenNodeEx(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_OpenNodeEx *r)
   16061             : {
   16062           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   16063           0 :         if (flags & NDR_IN) {
   16064           0 :                 if (r->in.lpszNodeName == NULL) {
   16065           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16066             :                 }
   16067           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNodeName, CH_UTF16)));
   16068           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   16069           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNodeName, CH_UTF16)));
   16070           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszNodeName, ndr_charset_length(r->in.lpszNodeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   16071           0 :                 NDR_CHECK(ndr_push_clusapi_DesiredAccessMask(ndr, NDR_SCALARS, r->in.dwDesiredAccess));
   16072             :         }
   16073           0 :         if (flags & NDR_OUT) {
   16074           0 :                 if (r->out.lpdwGrantedAccess == NULL) {
   16075           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16076             :                 }
   16077           0 :                 if (r->out.Status == NULL) {
   16078           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16079             :                 }
   16080           0 :                 if (r->out.rpc_status == NULL) {
   16081           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16082             :                 }
   16083           0 :                 if (r->out.hNode == NULL) {
   16084           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16085             :                 }
   16086           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpdwGrantedAccess));
   16087           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
   16088           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   16089           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hNode));
   16090             :         }
   16091           0 :         return NDR_ERR_SUCCESS;
   16092             : }
   16093             : 
   16094           0 : static enum ndr_err_code ndr_pull_clusapi_OpenNodeEx(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_OpenNodeEx *r)
   16095             : {
   16096           0 :         uint32_t size_lpszNodeName_1 = 0;
   16097           0 :         uint32_t length_lpszNodeName_1 = 0;
   16098           0 :         TALLOC_CTX *_mem_save_lpdwGrantedAccess_0 = NULL;
   16099           0 :         TALLOC_CTX *_mem_save_Status_0 = NULL;
   16100           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   16101           0 :         TALLOC_CTX *_mem_save_hNode_0 = NULL;
   16102           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   16103           0 :         if (flags & NDR_IN) {
   16104           0 :                 NDR_ZERO_STRUCT(r->out);
   16105             : 
   16106           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszNodeName));
   16107           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszNodeName));
   16108           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszNodeName, &size_lpszNodeName_1));
   16109           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszNodeName, &length_lpszNodeName_1));
   16110           0 :                 if (length_lpszNodeName_1 > size_lpszNodeName_1) {
   16111           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszNodeName_1, length_lpszNodeName_1);
   16112             :                 }
   16113           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszNodeName_1, sizeof(uint16_t)));
   16114           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszNodeName, length_lpszNodeName_1, sizeof(uint16_t), CH_UTF16));
   16115           0 :                 NDR_CHECK(ndr_pull_clusapi_DesiredAccessMask(ndr, NDR_SCALARS, &r->in.dwDesiredAccess));
   16116           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpdwGrantedAccess);
   16117           0 :                 NDR_ZERO_STRUCTP(r->out.lpdwGrantedAccess);
   16118           0 :                 NDR_PULL_ALLOC(ndr, r->out.Status);
   16119           0 :                 NDR_ZERO_STRUCTP(r->out.Status);
   16120           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   16121           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   16122           0 :                 NDR_PULL_ALLOC(ndr, r->out.hNode);
   16123           0 :                 NDR_ZERO_STRUCTP(r->out.hNode);
   16124             :         }
   16125           0 :         if (flags & NDR_OUT) {
   16126             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   16127             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   16128           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16129           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpdwGrantedAccess);
   16130             :                 }
   16131           0 :                 _mem_save_lpdwGrantedAccess_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16132           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpdwGrantedAccess, LIBNDR_FLAG_REF_ALLOC);
   16133           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpdwGrantedAccess));
   16134           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpdwGrantedAccess_0, LIBNDR_FLAG_REF_ALLOC);
   16135           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16136           0 :                         NDR_PULL_ALLOC(ndr, r->out.Status);
   16137             :                 }
   16138           0 :                 _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16139           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
   16140           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
   16141           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
   16142           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16143           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   16144             :                 }
   16145           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16146           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   16147           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   16148           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   16149           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16150           0 :                         NDR_PULL_ALLOC(ndr, r->out.hNode);
   16151             :                 }
   16152           0 :                 _mem_save_hNode_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16153           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.hNode, LIBNDR_FLAG_REF_ALLOC);
   16154           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hNode));
   16155           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hNode_0, LIBNDR_FLAG_REF_ALLOC);
   16156             :         }
   16157           0 :         return NDR_ERR_SUCCESS;
   16158             : }
   16159             : 
   16160           0 : _PUBLIC_ void ndr_print_clusapi_OpenNodeEx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_OpenNodeEx *r)
   16161             : {
   16162           0 :         ndr_print_struct(ndr, name, "clusapi_OpenNodeEx");
   16163           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   16164           0 :         ndr->depth++;
   16165           0 :         if (flags & NDR_SET_VALUES) {
   16166           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   16167             :         }
   16168           0 :         if (flags & NDR_IN) {
   16169           0 :                 ndr_print_struct(ndr, "in", "clusapi_OpenNodeEx");
   16170           0 :                 ndr->depth++;
   16171           0 :                 ndr_print_ptr(ndr, "lpszNodeName", r->in.lpszNodeName);
   16172           0 :                 ndr->depth++;
   16173           0 :                 ndr_print_string(ndr, "lpszNodeName", r->in.lpszNodeName);
   16174           0 :                 ndr->depth--;
   16175           0 :                 ndr_print_clusapi_DesiredAccessMask(ndr, "dwDesiredAccess", r->in.dwDesiredAccess);
   16176           0 :                 ndr->depth--;
   16177             :         }
   16178           0 :         if (flags & NDR_OUT) {
   16179           0 :                 ndr_print_struct(ndr, "out", "clusapi_OpenNodeEx");
   16180           0 :                 ndr->depth++;
   16181           0 :                 ndr_print_ptr(ndr, "lpdwGrantedAccess", r->out.lpdwGrantedAccess);
   16182           0 :                 ndr->depth++;
   16183           0 :                 ndr_print_uint32(ndr, "lpdwGrantedAccess", *r->out.lpdwGrantedAccess);
   16184           0 :                 ndr->depth--;
   16185           0 :                 ndr_print_ptr(ndr, "Status", r->out.Status);
   16186           0 :                 ndr->depth++;
   16187           0 :                 ndr_print_WERROR(ndr, "Status", *r->out.Status);
   16188           0 :                 ndr->depth--;
   16189           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   16190           0 :                 ndr->depth++;
   16191           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   16192           0 :                 ndr->depth--;
   16193           0 :                 ndr_print_ptr(ndr, "hNode", r->out.hNode);
   16194           0 :                 ndr->depth++;
   16195           0 :                 ndr_print_policy_handle(ndr, "hNode", r->out.hNode);
   16196           0 :                 ndr->depth--;
   16197           0 :                 ndr->depth--;
   16198             :         }
   16199           0 :         ndr->depth--;
   16200             : }
   16201             : 
   16202           0 : static enum ndr_err_code ndr_push_clusapi_OpenGroupEx(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_OpenGroupEx *r)
   16203             : {
   16204           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   16205           0 :         if (flags & NDR_IN) {
   16206           0 :                 if (r->in.lpszGroupName == NULL) {
   16207           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16208             :                 }
   16209           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupName, CH_UTF16)));
   16210           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   16211           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupName, CH_UTF16)));
   16212           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszGroupName, ndr_charset_length(r->in.lpszGroupName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   16213           0 :                 NDR_CHECK(ndr_push_clusapi_DesiredAccessMask(ndr, NDR_SCALARS, r->in.dwDesiredAccess));
   16214             :         }
   16215           0 :         if (flags & NDR_OUT) {
   16216           0 :                 if (r->out.lpdwGrantedAccess == NULL) {
   16217           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16218             :                 }
   16219           0 :                 if (r->out.Status == NULL) {
   16220           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16221             :                 }
   16222           0 :                 if (r->out.rpc_status == NULL) {
   16223           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16224             :                 }
   16225           0 :                 if (r->out.hGroup == NULL) {
   16226           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16227             :                 }
   16228           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpdwGrantedAccess));
   16229           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
   16230           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   16231           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hGroup));
   16232             :         }
   16233           0 :         return NDR_ERR_SUCCESS;
   16234             : }
   16235             : 
   16236           0 : static enum ndr_err_code ndr_pull_clusapi_OpenGroupEx(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_OpenGroupEx *r)
   16237             : {
   16238           0 :         uint32_t size_lpszGroupName_1 = 0;
   16239           0 :         uint32_t length_lpszGroupName_1 = 0;
   16240           0 :         TALLOC_CTX *_mem_save_lpdwGrantedAccess_0 = NULL;
   16241           0 :         TALLOC_CTX *_mem_save_Status_0 = NULL;
   16242           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   16243           0 :         TALLOC_CTX *_mem_save_hGroup_0 = NULL;
   16244           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   16245           0 :         if (flags & NDR_IN) {
   16246           0 :                 NDR_ZERO_STRUCT(r->out);
   16247             : 
   16248           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszGroupName));
   16249           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszGroupName));
   16250           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszGroupName, &size_lpszGroupName_1));
   16251           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszGroupName, &length_lpszGroupName_1));
   16252           0 :                 if (length_lpszGroupName_1 > size_lpszGroupName_1) {
   16253           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszGroupName_1, length_lpszGroupName_1);
   16254             :                 }
   16255           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszGroupName_1, sizeof(uint16_t)));
   16256           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszGroupName, length_lpszGroupName_1, sizeof(uint16_t), CH_UTF16));
   16257           0 :                 NDR_CHECK(ndr_pull_clusapi_DesiredAccessMask(ndr, NDR_SCALARS, &r->in.dwDesiredAccess));
   16258           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpdwGrantedAccess);
   16259           0 :                 NDR_ZERO_STRUCTP(r->out.lpdwGrantedAccess);
   16260           0 :                 NDR_PULL_ALLOC(ndr, r->out.Status);
   16261           0 :                 NDR_ZERO_STRUCTP(r->out.Status);
   16262           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   16263           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   16264           0 :                 NDR_PULL_ALLOC(ndr, r->out.hGroup);
   16265           0 :                 NDR_ZERO_STRUCTP(r->out.hGroup);
   16266             :         }
   16267           0 :         if (flags & NDR_OUT) {
   16268             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   16269             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   16270           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16271           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpdwGrantedAccess);
   16272             :                 }
   16273           0 :                 _mem_save_lpdwGrantedAccess_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16274           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpdwGrantedAccess, LIBNDR_FLAG_REF_ALLOC);
   16275           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpdwGrantedAccess));
   16276           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpdwGrantedAccess_0, LIBNDR_FLAG_REF_ALLOC);
   16277           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16278           0 :                         NDR_PULL_ALLOC(ndr, r->out.Status);
   16279             :                 }
   16280           0 :                 _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16281           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
   16282           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
   16283           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
   16284           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16285           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   16286             :                 }
   16287           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16288           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   16289           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   16290           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   16291           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16292           0 :                         NDR_PULL_ALLOC(ndr, r->out.hGroup);
   16293             :                 }
   16294           0 :                 _mem_save_hGroup_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16295           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.hGroup, LIBNDR_FLAG_REF_ALLOC);
   16296           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hGroup));
   16297           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hGroup_0, LIBNDR_FLAG_REF_ALLOC);
   16298             :         }
   16299           0 :         return NDR_ERR_SUCCESS;
   16300             : }
   16301             : 
   16302           0 : _PUBLIC_ void ndr_print_clusapi_OpenGroupEx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_OpenGroupEx *r)
   16303             : {
   16304           0 :         ndr_print_struct(ndr, name, "clusapi_OpenGroupEx");
   16305           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   16306           0 :         ndr->depth++;
   16307           0 :         if (flags & NDR_SET_VALUES) {
   16308           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   16309             :         }
   16310           0 :         if (flags & NDR_IN) {
   16311           0 :                 ndr_print_struct(ndr, "in", "clusapi_OpenGroupEx");
   16312           0 :                 ndr->depth++;
   16313           0 :                 ndr_print_ptr(ndr, "lpszGroupName", r->in.lpszGroupName);
   16314           0 :                 ndr->depth++;
   16315           0 :                 ndr_print_string(ndr, "lpszGroupName", r->in.lpszGroupName);
   16316           0 :                 ndr->depth--;
   16317           0 :                 ndr_print_clusapi_DesiredAccessMask(ndr, "dwDesiredAccess", r->in.dwDesiredAccess);
   16318           0 :                 ndr->depth--;
   16319             :         }
   16320           0 :         if (flags & NDR_OUT) {
   16321           0 :                 ndr_print_struct(ndr, "out", "clusapi_OpenGroupEx");
   16322           0 :                 ndr->depth++;
   16323           0 :                 ndr_print_ptr(ndr, "lpdwGrantedAccess", r->out.lpdwGrantedAccess);
   16324           0 :                 ndr->depth++;
   16325           0 :                 ndr_print_uint32(ndr, "lpdwGrantedAccess", *r->out.lpdwGrantedAccess);
   16326           0 :                 ndr->depth--;
   16327           0 :                 ndr_print_ptr(ndr, "Status", r->out.Status);
   16328           0 :                 ndr->depth++;
   16329           0 :                 ndr_print_WERROR(ndr, "Status", *r->out.Status);
   16330           0 :                 ndr->depth--;
   16331           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   16332           0 :                 ndr->depth++;
   16333           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   16334           0 :                 ndr->depth--;
   16335           0 :                 ndr_print_ptr(ndr, "hGroup", r->out.hGroup);
   16336           0 :                 ndr->depth++;
   16337           0 :                 ndr_print_policy_handle(ndr, "hGroup", r->out.hGroup);
   16338           0 :                 ndr->depth--;
   16339           0 :                 ndr->depth--;
   16340             :         }
   16341           0 :         ndr->depth--;
   16342             : }
   16343             : 
   16344           0 : static enum ndr_err_code ndr_push_clusapi_OpenResourceEx(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_OpenResourceEx *r)
   16345             : {
   16346           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   16347           0 :         if (flags & NDR_IN) {
   16348           0 :                 if (r->in.lpszResourceName == NULL) {
   16349           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16350             :                 }
   16351           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceName, CH_UTF16)));
   16352           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   16353           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszResourceName, CH_UTF16)));
   16354           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszResourceName, ndr_charset_length(r->in.lpszResourceName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   16355           0 :                 NDR_CHECK(ndr_push_clusapi_DesiredAccessMask(ndr, NDR_SCALARS, r->in.dwDesiredAccess));
   16356             :         }
   16357           0 :         if (flags & NDR_OUT) {
   16358           0 :                 if (r->out.lpdwGrantedAccess == NULL) {
   16359           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16360             :                 }
   16361           0 :                 if (r->out.Status == NULL) {
   16362           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16363             :                 }
   16364           0 :                 if (r->out.rpc_status == NULL) {
   16365           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16366             :                 }
   16367           0 :                 if (r->out.hResource == NULL) {
   16368           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16369             :                 }
   16370           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpdwGrantedAccess));
   16371           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
   16372           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   16373           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hResource));
   16374             :         }
   16375           0 :         return NDR_ERR_SUCCESS;
   16376             : }
   16377             : 
   16378           0 : static enum ndr_err_code ndr_pull_clusapi_OpenResourceEx(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_OpenResourceEx *r)
   16379             : {
   16380           0 :         uint32_t size_lpszResourceName_1 = 0;
   16381           0 :         uint32_t length_lpszResourceName_1 = 0;
   16382           0 :         TALLOC_CTX *_mem_save_lpdwGrantedAccess_0 = NULL;
   16383           0 :         TALLOC_CTX *_mem_save_Status_0 = NULL;
   16384           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   16385           0 :         TALLOC_CTX *_mem_save_hResource_0 = NULL;
   16386           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   16387           0 :         if (flags & NDR_IN) {
   16388           0 :                 NDR_ZERO_STRUCT(r->out);
   16389             : 
   16390           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszResourceName));
   16391           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszResourceName));
   16392           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszResourceName, &size_lpszResourceName_1));
   16393           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszResourceName, &length_lpszResourceName_1));
   16394           0 :                 if (length_lpszResourceName_1 > size_lpszResourceName_1) {
   16395           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszResourceName_1, length_lpszResourceName_1);
   16396             :                 }
   16397           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszResourceName_1, sizeof(uint16_t)));
   16398           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszResourceName, length_lpszResourceName_1, sizeof(uint16_t), CH_UTF16));
   16399           0 :                 NDR_CHECK(ndr_pull_clusapi_DesiredAccessMask(ndr, NDR_SCALARS, &r->in.dwDesiredAccess));
   16400           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpdwGrantedAccess);
   16401           0 :                 NDR_ZERO_STRUCTP(r->out.lpdwGrantedAccess);
   16402           0 :                 NDR_PULL_ALLOC(ndr, r->out.Status);
   16403           0 :                 NDR_ZERO_STRUCTP(r->out.Status);
   16404           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   16405           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   16406           0 :                 NDR_PULL_ALLOC(ndr, r->out.hResource);
   16407           0 :                 NDR_ZERO_STRUCTP(r->out.hResource);
   16408             :         }
   16409           0 :         if (flags & NDR_OUT) {
   16410             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   16411             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   16412           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16413           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpdwGrantedAccess);
   16414             :                 }
   16415           0 :                 _mem_save_lpdwGrantedAccess_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16416           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpdwGrantedAccess, LIBNDR_FLAG_REF_ALLOC);
   16417           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpdwGrantedAccess));
   16418           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpdwGrantedAccess_0, LIBNDR_FLAG_REF_ALLOC);
   16419           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16420           0 :                         NDR_PULL_ALLOC(ndr, r->out.Status);
   16421             :                 }
   16422           0 :                 _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16423           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
   16424           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
   16425           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
   16426           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16427           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   16428             :                 }
   16429           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16430           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   16431           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   16432           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   16433           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16434           0 :                         NDR_PULL_ALLOC(ndr, r->out.hResource);
   16435             :                 }
   16436           0 :                 _mem_save_hResource_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16437           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.hResource, LIBNDR_FLAG_REF_ALLOC);
   16438           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hResource));
   16439           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hResource_0, LIBNDR_FLAG_REF_ALLOC);
   16440             :         }
   16441           0 :         return NDR_ERR_SUCCESS;
   16442             : }
   16443             : 
   16444           0 : _PUBLIC_ void ndr_print_clusapi_OpenResourceEx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_OpenResourceEx *r)
   16445             : {
   16446           0 :         ndr_print_struct(ndr, name, "clusapi_OpenResourceEx");
   16447           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   16448           0 :         ndr->depth++;
   16449           0 :         if (flags & NDR_SET_VALUES) {
   16450           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   16451             :         }
   16452           0 :         if (flags & NDR_IN) {
   16453           0 :                 ndr_print_struct(ndr, "in", "clusapi_OpenResourceEx");
   16454           0 :                 ndr->depth++;
   16455           0 :                 ndr_print_ptr(ndr, "lpszResourceName", r->in.lpszResourceName);
   16456           0 :                 ndr->depth++;
   16457           0 :                 ndr_print_string(ndr, "lpszResourceName", r->in.lpszResourceName);
   16458           0 :                 ndr->depth--;
   16459           0 :                 ndr_print_clusapi_DesiredAccessMask(ndr, "dwDesiredAccess", r->in.dwDesiredAccess);
   16460           0 :                 ndr->depth--;
   16461             :         }
   16462           0 :         if (flags & NDR_OUT) {
   16463           0 :                 ndr_print_struct(ndr, "out", "clusapi_OpenResourceEx");
   16464           0 :                 ndr->depth++;
   16465           0 :                 ndr_print_ptr(ndr, "lpdwGrantedAccess", r->out.lpdwGrantedAccess);
   16466           0 :                 ndr->depth++;
   16467           0 :                 ndr_print_uint32(ndr, "lpdwGrantedAccess", *r->out.lpdwGrantedAccess);
   16468           0 :                 ndr->depth--;
   16469           0 :                 ndr_print_ptr(ndr, "Status", r->out.Status);
   16470           0 :                 ndr->depth++;
   16471           0 :                 ndr_print_WERROR(ndr, "Status", *r->out.Status);
   16472           0 :                 ndr->depth--;
   16473           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   16474           0 :                 ndr->depth++;
   16475           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   16476           0 :                 ndr->depth--;
   16477           0 :                 ndr_print_ptr(ndr, "hResource", r->out.hResource);
   16478           0 :                 ndr->depth++;
   16479           0 :                 ndr_print_policy_handle(ndr, "hResource", r->out.hResource);
   16480           0 :                 ndr->depth--;
   16481           0 :                 ndr->depth--;
   16482             :         }
   16483           0 :         ndr->depth--;
   16484             : }
   16485             : 
   16486           0 : static enum ndr_err_code ndr_push_clusapi_OpenNetworkEx(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_OpenNetworkEx *r)
   16487             : {
   16488           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   16489           0 :         if (flags & NDR_IN) {
   16490           0 :                 if (r->in.lpszNetworkName == NULL) {
   16491           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16492             :                 }
   16493           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16)));
   16494           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   16495           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16)));
   16496           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszNetworkName, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   16497           0 :                 NDR_CHECK(ndr_push_clusapi_DesiredAccessMask(ndr, NDR_SCALARS, r->in.dwDesiredAccess));
   16498             :         }
   16499           0 :         if (flags & NDR_OUT) {
   16500           0 :                 if (r->out.lpdwGrantedAccess == NULL) {
   16501           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16502             :                 }
   16503           0 :                 if (r->out.Status == NULL) {
   16504           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16505             :                 }
   16506           0 :                 if (r->out.rpc_status == NULL) {
   16507           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16508             :                 }
   16509           0 :                 if (r->out.hNetwork == NULL) {
   16510           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16511             :                 }
   16512           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpdwGrantedAccess));
   16513           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
   16514           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   16515           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hNetwork));
   16516             :         }
   16517           0 :         return NDR_ERR_SUCCESS;
   16518             : }
   16519             : 
   16520           0 : static enum ndr_err_code ndr_pull_clusapi_OpenNetworkEx(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_OpenNetworkEx *r)
   16521             : {
   16522           0 :         uint32_t size_lpszNetworkName_1 = 0;
   16523           0 :         uint32_t length_lpszNetworkName_1 = 0;
   16524           0 :         TALLOC_CTX *_mem_save_lpdwGrantedAccess_0 = NULL;
   16525           0 :         TALLOC_CTX *_mem_save_Status_0 = NULL;
   16526           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   16527           0 :         TALLOC_CTX *_mem_save_hNetwork_0 = NULL;
   16528           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   16529           0 :         if (flags & NDR_IN) {
   16530           0 :                 NDR_ZERO_STRUCT(r->out);
   16531             : 
   16532           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszNetworkName));
   16533           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszNetworkName));
   16534           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszNetworkName, &size_lpszNetworkName_1));
   16535           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszNetworkName, &length_lpszNetworkName_1));
   16536           0 :                 if (length_lpszNetworkName_1 > size_lpszNetworkName_1) {
   16537           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszNetworkName_1, length_lpszNetworkName_1);
   16538             :                 }
   16539           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszNetworkName_1, sizeof(uint16_t)));
   16540           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszNetworkName, length_lpszNetworkName_1, sizeof(uint16_t), CH_UTF16));
   16541           0 :                 NDR_CHECK(ndr_pull_clusapi_DesiredAccessMask(ndr, NDR_SCALARS, &r->in.dwDesiredAccess));
   16542           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpdwGrantedAccess);
   16543           0 :                 NDR_ZERO_STRUCTP(r->out.lpdwGrantedAccess);
   16544           0 :                 NDR_PULL_ALLOC(ndr, r->out.Status);
   16545           0 :                 NDR_ZERO_STRUCTP(r->out.Status);
   16546           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   16547           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   16548           0 :                 NDR_PULL_ALLOC(ndr, r->out.hNetwork);
   16549           0 :                 NDR_ZERO_STRUCTP(r->out.hNetwork);
   16550             :         }
   16551           0 :         if (flags & NDR_OUT) {
   16552             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   16553             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   16554           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16555           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpdwGrantedAccess);
   16556             :                 }
   16557           0 :                 _mem_save_lpdwGrantedAccess_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16558           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpdwGrantedAccess, LIBNDR_FLAG_REF_ALLOC);
   16559           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpdwGrantedAccess));
   16560           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpdwGrantedAccess_0, LIBNDR_FLAG_REF_ALLOC);
   16561           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16562           0 :                         NDR_PULL_ALLOC(ndr, r->out.Status);
   16563             :                 }
   16564           0 :                 _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16565           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
   16566           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
   16567           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
   16568           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16569           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   16570             :                 }
   16571           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16572           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   16573           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   16574           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   16575           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16576           0 :                         NDR_PULL_ALLOC(ndr, r->out.hNetwork);
   16577             :                 }
   16578           0 :                 _mem_save_hNetwork_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16579           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.hNetwork, LIBNDR_FLAG_REF_ALLOC);
   16580           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hNetwork));
   16581           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hNetwork_0, LIBNDR_FLAG_REF_ALLOC);
   16582             :         }
   16583           0 :         return NDR_ERR_SUCCESS;
   16584             : }
   16585             : 
   16586           0 : _PUBLIC_ void ndr_print_clusapi_OpenNetworkEx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_OpenNetworkEx *r)
   16587             : {
   16588           0 :         ndr_print_struct(ndr, name, "clusapi_OpenNetworkEx");
   16589           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   16590           0 :         ndr->depth++;
   16591           0 :         if (flags & NDR_SET_VALUES) {
   16592           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   16593             :         }
   16594           0 :         if (flags & NDR_IN) {
   16595           0 :                 ndr_print_struct(ndr, "in", "clusapi_OpenNetworkEx");
   16596           0 :                 ndr->depth++;
   16597           0 :                 ndr_print_ptr(ndr, "lpszNetworkName", r->in.lpszNetworkName);
   16598           0 :                 ndr->depth++;
   16599           0 :                 ndr_print_string(ndr, "lpszNetworkName", r->in.lpszNetworkName);
   16600           0 :                 ndr->depth--;
   16601           0 :                 ndr_print_clusapi_DesiredAccessMask(ndr, "dwDesiredAccess", r->in.dwDesiredAccess);
   16602           0 :                 ndr->depth--;
   16603             :         }
   16604           0 :         if (flags & NDR_OUT) {
   16605           0 :                 ndr_print_struct(ndr, "out", "clusapi_OpenNetworkEx");
   16606           0 :                 ndr->depth++;
   16607           0 :                 ndr_print_ptr(ndr, "lpdwGrantedAccess", r->out.lpdwGrantedAccess);
   16608           0 :                 ndr->depth++;
   16609           0 :                 ndr_print_uint32(ndr, "lpdwGrantedAccess", *r->out.lpdwGrantedAccess);
   16610           0 :                 ndr->depth--;
   16611           0 :                 ndr_print_ptr(ndr, "Status", r->out.Status);
   16612           0 :                 ndr->depth++;
   16613           0 :                 ndr_print_WERROR(ndr, "Status", *r->out.Status);
   16614           0 :                 ndr->depth--;
   16615           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   16616           0 :                 ndr->depth++;
   16617           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   16618           0 :                 ndr->depth--;
   16619           0 :                 ndr_print_ptr(ndr, "hNetwork", r->out.hNetwork);
   16620           0 :                 ndr->depth++;
   16621           0 :                 ndr_print_policy_handle(ndr, "hNetwork", r->out.hNetwork);
   16622           0 :                 ndr->depth--;
   16623           0 :                 ndr->depth--;
   16624             :         }
   16625           0 :         ndr->depth--;
   16626             : }
   16627             : 
   16628           0 : static enum ndr_err_code ndr_push_clusapi_OpenNetInterfaceEx(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_OpenNetInterfaceEx *r)
   16629             : {
   16630           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   16631           0 :         if (flags & NDR_IN) {
   16632           0 :                 if (r->in.lpszNetInterfaceName == NULL) {
   16633           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16634             :                 }
   16635           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetInterfaceName, CH_UTF16)));
   16636           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   16637           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetInterfaceName, CH_UTF16)));
   16638           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszNetInterfaceName, ndr_charset_length(r->in.lpszNetInterfaceName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   16639           0 :                 NDR_CHECK(ndr_push_clusapi_DesiredAccessMask(ndr, NDR_SCALARS, r->in.dwDesiredAccess));
   16640             :         }
   16641           0 :         if (flags & NDR_OUT) {
   16642           0 :                 if (r->out.lpdwGrantedAccess == NULL) {
   16643           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16644             :                 }
   16645           0 :                 if (r->out.Status == NULL) {
   16646           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16647             :                 }
   16648           0 :                 if (r->out.rpc_status == NULL) {
   16649           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16650             :                 }
   16651           0 :                 if (r->out.hNetInterface == NULL) {
   16652           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16653             :                 }
   16654           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpdwGrantedAccess));
   16655           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
   16656           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   16657           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hNetInterface));
   16658             :         }
   16659           0 :         return NDR_ERR_SUCCESS;
   16660             : }
   16661             : 
   16662           0 : static enum ndr_err_code ndr_pull_clusapi_OpenNetInterfaceEx(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_OpenNetInterfaceEx *r)
   16663             : {
   16664           0 :         uint32_t size_lpszNetInterfaceName_1 = 0;
   16665           0 :         uint32_t length_lpszNetInterfaceName_1 = 0;
   16666           0 :         TALLOC_CTX *_mem_save_lpdwGrantedAccess_0 = NULL;
   16667           0 :         TALLOC_CTX *_mem_save_Status_0 = NULL;
   16668           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   16669           0 :         TALLOC_CTX *_mem_save_hNetInterface_0 = NULL;
   16670           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   16671           0 :         if (flags & NDR_IN) {
   16672           0 :                 NDR_ZERO_STRUCT(r->out);
   16673             : 
   16674           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszNetInterfaceName));
   16675           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszNetInterfaceName));
   16676           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszNetInterfaceName, &size_lpszNetInterfaceName_1));
   16677           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszNetInterfaceName, &length_lpszNetInterfaceName_1));
   16678           0 :                 if (length_lpszNetInterfaceName_1 > size_lpszNetInterfaceName_1) {
   16679           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszNetInterfaceName_1, length_lpszNetInterfaceName_1);
   16680             :                 }
   16681           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszNetInterfaceName_1, sizeof(uint16_t)));
   16682           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszNetInterfaceName, length_lpszNetInterfaceName_1, sizeof(uint16_t), CH_UTF16));
   16683           0 :                 NDR_CHECK(ndr_pull_clusapi_DesiredAccessMask(ndr, NDR_SCALARS, &r->in.dwDesiredAccess));
   16684           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpdwGrantedAccess);
   16685           0 :                 NDR_ZERO_STRUCTP(r->out.lpdwGrantedAccess);
   16686           0 :                 NDR_PULL_ALLOC(ndr, r->out.Status);
   16687           0 :                 NDR_ZERO_STRUCTP(r->out.Status);
   16688           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   16689           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   16690           0 :                 NDR_PULL_ALLOC(ndr, r->out.hNetInterface);
   16691           0 :                 NDR_ZERO_STRUCTP(r->out.hNetInterface);
   16692             :         }
   16693           0 :         if (flags & NDR_OUT) {
   16694             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   16695             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   16696           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16697           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpdwGrantedAccess);
   16698             :                 }
   16699           0 :                 _mem_save_lpdwGrantedAccess_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16700           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpdwGrantedAccess, LIBNDR_FLAG_REF_ALLOC);
   16701           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpdwGrantedAccess));
   16702           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpdwGrantedAccess_0, LIBNDR_FLAG_REF_ALLOC);
   16703           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16704           0 :                         NDR_PULL_ALLOC(ndr, r->out.Status);
   16705             :                 }
   16706           0 :                 _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16707           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
   16708           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
   16709           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
   16710           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16711           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   16712             :                 }
   16713           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16714           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   16715           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   16716           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   16717           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16718           0 :                         NDR_PULL_ALLOC(ndr, r->out.hNetInterface);
   16719             :                 }
   16720           0 :                 _mem_save_hNetInterface_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16721           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.hNetInterface, LIBNDR_FLAG_REF_ALLOC);
   16722           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hNetInterface));
   16723           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hNetInterface_0, LIBNDR_FLAG_REF_ALLOC);
   16724             :         }
   16725           0 :         return NDR_ERR_SUCCESS;
   16726             : }
   16727             : 
   16728           0 : _PUBLIC_ void ndr_print_clusapi_OpenNetInterfaceEx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_OpenNetInterfaceEx *r)
   16729             : {
   16730           0 :         ndr_print_struct(ndr, name, "clusapi_OpenNetInterfaceEx");
   16731           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   16732           0 :         ndr->depth++;
   16733           0 :         if (flags & NDR_SET_VALUES) {
   16734           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   16735             :         }
   16736           0 :         if (flags & NDR_IN) {
   16737           0 :                 ndr_print_struct(ndr, "in", "clusapi_OpenNetInterfaceEx");
   16738           0 :                 ndr->depth++;
   16739           0 :                 ndr_print_ptr(ndr, "lpszNetInterfaceName", r->in.lpszNetInterfaceName);
   16740           0 :                 ndr->depth++;
   16741           0 :                 ndr_print_string(ndr, "lpszNetInterfaceName", r->in.lpszNetInterfaceName);
   16742           0 :                 ndr->depth--;
   16743           0 :                 ndr_print_clusapi_DesiredAccessMask(ndr, "dwDesiredAccess", r->in.dwDesiredAccess);
   16744           0 :                 ndr->depth--;
   16745             :         }
   16746           0 :         if (flags & NDR_OUT) {
   16747           0 :                 ndr_print_struct(ndr, "out", "clusapi_OpenNetInterfaceEx");
   16748           0 :                 ndr->depth++;
   16749           0 :                 ndr_print_ptr(ndr, "lpdwGrantedAccess", r->out.lpdwGrantedAccess);
   16750           0 :                 ndr->depth++;
   16751           0 :                 ndr_print_uint32(ndr, "lpdwGrantedAccess", *r->out.lpdwGrantedAccess);
   16752           0 :                 ndr->depth--;
   16753           0 :                 ndr_print_ptr(ndr, "Status", r->out.Status);
   16754           0 :                 ndr->depth++;
   16755           0 :                 ndr_print_WERROR(ndr, "Status", *r->out.Status);
   16756           0 :                 ndr->depth--;
   16757           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   16758           0 :                 ndr->depth++;
   16759           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   16760           0 :                 ndr->depth--;
   16761           0 :                 ndr_print_ptr(ndr, "hNetInterface", r->out.hNetInterface);
   16762           0 :                 ndr->depth++;
   16763           0 :                 ndr_print_policy_handle(ndr, "hNetInterface", r->out.hNetInterface);
   16764           0 :                 ndr->depth--;
   16765           0 :                 ndr->depth--;
   16766             :         }
   16767           0 :         ndr->depth--;
   16768             : }
   16769             : 
   16770           0 : static enum ndr_err_code ndr_push_clusapi_ChangeCsvState(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_ChangeCsvState *r)
   16771             : {
   16772           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   16773           0 :         if (flags & NDR_IN) {
   16774           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
   16775           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwState));
   16776             :         }
   16777           0 :         if (flags & NDR_OUT) {
   16778           0 :                 if (r->out.rpc_status == NULL) {
   16779           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16780             :                 }
   16781           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   16782           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   16783             :         }
   16784           0 :         return NDR_ERR_SUCCESS;
   16785             : }
   16786             : 
   16787           0 : static enum ndr_err_code ndr_pull_clusapi_ChangeCsvState(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_ChangeCsvState *r)
   16788             : {
   16789           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   16790           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   16791           0 :         if (flags & NDR_IN) {
   16792           0 :                 NDR_ZERO_STRUCT(r->out);
   16793             : 
   16794           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
   16795           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwState));
   16796           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   16797           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   16798             :         }
   16799           0 :         if (flags & NDR_OUT) {
   16800             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   16801             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   16802           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16803           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   16804             :                 }
   16805           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16806           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   16807           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   16808           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   16809           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   16810             :         }
   16811           0 :         return NDR_ERR_SUCCESS;
   16812             : }
   16813             : 
   16814           0 : _PUBLIC_ void ndr_print_clusapi_ChangeCsvState(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_ChangeCsvState *r)
   16815             : {
   16816           0 :         ndr_print_struct(ndr, name, "clusapi_ChangeCsvState");
   16817           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   16818           0 :         ndr->depth++;
   16819           0 :         if (flags & NDR_SET_VALUES) {
   16820           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   16821             :         }
   16822           0 :         if (flags & NDR_IN) {
   16823           0 :                 ndr_print_struct(ndr, "in", "clusapi_ChangeCsvState");
   16824           0 :                 ndr->depth++;
   16825           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
   16826           0 :                 ndr_print_uint32(ndr, "dwState", r->in.dwState);
   16827           0 :                 ndr->depth--;
   16828             :         }
   16829           0 :         if (flags & NDR_OUT) {
   16830           0 :                 ndr_print_struct(ndr, "out", "clusapi_ChangeCsvState");
   16831           0 :                 ndr->depth++;
   16832           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   16833           0 :                 ndr->depth++;
   16834           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   16835           0 :                 ndr->depth--;
   16836           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   16837           0 :                 ndr->depth--;
   16838             :         }
   16839           0 :         ndr->depth--;
   16840             : }
   16841             : 
   16842           0 : static enum ndr_err_code ndr_push_clusapi_CreateNodeEnumEx(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CreateNodeEnumEx *r)
   16843             : {
   16844           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   16845           0 :         if (flags & NDR_IN) {
   16846           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   16847           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwType));
   16848           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwOptions));
   16849             :         }
   16850           0 :         if (flags & NDR_OUT) {
   16851           0 :                 if (r->out.ReturnIdEnum == NULL) {
   16852           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16853             :                 }
   16854           0 :                 if (r->out.ReturnNameEnum == NULL) {
   16855           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16856             :                 }
   16857           0 :                 if (r->out.rpc_status == NULL) {
   16858           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   16859             :                 }
   16860           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ReturnIdEnum));
   16861           0 :                 if (*r->out.ReturnIdEnum) {
   16862           0 :                         NDR_CHECK(ndr_push_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnIdEnum));
   16863             :                 }
   16864           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ReturnNameEnum));
   16865           0 :                 if (*r->out.ReturnNameEnum) {
   16866           0 :                         NDR_CHECK(ndr_push_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnNameEnum));
   16867             :                 }
   16868           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   16869           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   16870             :         }
   16871           0 :         return NDR_ERR_SUCCESS;
   16872             : }
   16873             : 
   16874           0 : static enum ndr_err_code ndr_pull_clusapi_CreateNodeEnumEx(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CreateNodeEnumEx *r)
   16875             : {
   16876           0 :         uint32_t _ptr_ReturnIdEnum;
   16877           0 :         uint32_t _ptr_ReturnNameEnum;
   16878           0 :         TALLOC_CTX *_mem_save_ReturnIdEnum_0 = NULL;
   16879           0 :         TALLOC_CTX *_mem_save_ReturnIdEnum_1 = NULL;
   16880           0 :         TALLOC_CTX *_mem_save_ReturnNameEnum_0 = NULL;
   16881           0 :         TALLOC_CTX *_mem_save_ReturnNameEnum_1 = NULL;
   16882           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   16883           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   16884           0 :         if (flags & NDR_IN) {
   16885           0 :                 NDR_ZERO_STRUCT(r->out);
   16886             : 
   16887           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   16888           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwType));
   16889           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwOptions));
   16890           0 :                 NDR_PULL_ALLOC(ndr, r->out.ReturnIdEnum);
   16891           0 :                 NDR_ZERO_STRUCTP(r->out.ReturnIdEnum);
   16892           0 :                 NDR_PULL_ALLOC(ndr, r->out.ReturnNameEnum);
   16893           0 :                 NDR_ZERO_STRUCTP(r->out.ReturnNameEnum);
   16894           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   16895           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   16896             :         }
   16897           0 :         if (flags & NDR_OUT) {
   16898             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   16899             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   16900           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16901           0 :                         NDR_PULL_ALLOC(ndr, r->out.ReturnIdEnum);
   16902             :                 }
   16903           0 :                 _mem_save_ReturnIdEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16904           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ReturnIdEnum, LIBNDR_FLAG_REF_ALLOC);
   16905           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ReturnIdEnum));
   16906           0 :                 if (_ptr_ReturnIdEnum) {
   16907           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ReturnIdEnum);
   16908             :                 } else {
   16909           0 :                         *r->out.ReturnIdEnum = NULL;
   16910             :                 }
   16911           0 :                 if (*r->out.ReturnIdEnum) {
   16912           0 :                         _mem_save_ReturnIdEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
   16913           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ReturnIdEnum, 0);
   16914           0 :                         NDR_CHECK(ndr_pull_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnIdEnum));
   16915           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnIdEnum_1, 0);
   16916             :                 }
   16917           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnIdEnum_0, LIBNDR_FLAG_REF_ALLOC);
   16918           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16919           0 :                         NDR_PULL_ALLOC(ndr, r->out.ReturnNameEnum);
   16920             :                 }
   16921           0 :                 _mem_save_ReturnNameEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16922           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ReturnNameEnum, LIBNDR_FLAG_REF_ALLOC);
   16923           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ReturnNameEnum));
   16924           0 :                 if (_ptr_ReturnNameEnum) {
   16925           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ReturnNameEnum);
   16926             :                 } else {
   16927           0 :                         *r->out.ReturnNameEnum = NULL;
   16928             :                 }
   16929           0 :                 if (*r->out.ReturnNameEnum) {
   16930           0 :                         _mem_save_ReturnNameEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
   16931           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ReturnNameEnum, 0);
   16932           0 :                         NDR_CHECK(ndr_pull_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnNameEnum));
   16933           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnNameEnum_1, 0);
   16934             :                 }
   16935           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnNameEnum_0, LIBNDR_FLAG_REF_ALLOC);
   16936           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   16937           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   16938             :                 }
   16939           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   16940           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   16941           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   16942           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   16943           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   16944             :         }
   16945           0 :         return NDR_ERR_SUCCESS;
   16946             : }
   16947             : 
   16948           0 : _PUBLIC_ void ndr_print_clusapi_CreateNodeEnumEx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CreateNodeEnumEx *r)
   16949             : {
   16950           0 :         ndr_print_struct(ndr, name, "clusapi_CreateNodeEnumEx");
   16951           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   16952           0 :         ndr->depth++;
   16953           0 :         if (flags & NDR_SET_VALUES) {
   16954           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   16955             :         }
   16956           0 :         if (flags & NDR_IN) {
   16957           0 :                 ndr_print_struct(ndr, "in", "clusapi_CreateNodeEnumEx");
   16958           0 :                 ndr->depth++;
   16959           0 :                 ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
   16960           0 :                 ndr_print_uint32(ndr, "dwType", r->in.dwType);
   16961           0 :                 ndr_print_uint32(ndr, "dwOptions", r->in.dwOptions);
   16962           0 :                 ndr->depth--;
   16963             :         }
   16964           0 :         if (flags & NDR_OUT) {
   16965           0 :                 ndr_print_struct(ndr, "out", "clusapi_CreateNodeEnumEx");
   16966           0 :                 ndr->depth++;
   16967           0 :                 ndr_print_ptr(ndr, "ReturnIdEnum", r->out.ReturnIdEnum);
   16968           0 :                 ndr->depth++;
   16969           0 :                 ndr_print_ptr(ndr, "ReturnIdEnum", *r->out.ReturnIdEnum);
   16970           0 :                 ndr->depth++;
   16971           0 :                 if (*r->out.ReturnIdEnum) {
   16972           0 :                         ndr_print_ENUM_LIST(ndr, "ReturnIdEnum", *r->out.ReturnIdEnum);
   16973             :                 }
   16974           0 :                 ndr->depth--;
   16975           0 :                 ndr->depth--;
   16976           0 :                 ndr_print_ptr(ndr, "ReturnNameEnum", r->out.ReturnNameEnum);
   16977           0 :                 ndr->depth++;
   16978           0 :                 ndr_print_ptr(ndr, "ReturnNameEnum", *r->out.ReturnNameEnum);
   16979           0 :                 ndr->depth++;
   16980           0 :                 if (*r->out.ReturnNameEnum) {
   16981           0 :                         ndr_print_ENUM_LIST(ndr, "ReturnNameEnum", *r->out.ReturnNameEnum);
   16982             :                 }
   16983           0 :                 ndr->depth--;
   16984           0 :                 ndr->depth--;
   16985           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   16986           0 :                 ndr->depth++;
   16987           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   16988           0 :                 ndr->depth--;
   16989           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   16990           0 :                 ndr->depth--;
   16991             :         }
   16992           0 :         ndr->depth--;
   16993             : }
   16994             : 
   16995           0 : static enum ndr_err_code ndr_push_clusapi_CreateEnumEx(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CreateEnumEx *r)
   16996             : {
   16997           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   16998           0 :         if (flags & NDR_IN) {
   16999           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
   17000           0 :                 NDR_CHECK(ndr_push_ClusterEnumType(ndr, NDR_SCALARS, r->in.dwType));
   17001           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwOptions));
   17002             :         }
   17003           0 :         if (flags & NDR_OUT) {
   17004           0 :                 if (r->out.ReturnIdEnum == NULL) {
   17005           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   17006             :                 }
   17007           0 :                 if (r->out.ReturnNameEnum == NULL) {
   17008           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   17009             :                 }
   17010           0 :                 if (r->out.rpc_status == NULL) {
   17011           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   17012             :                 }
   17013           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ReturnIdEnum));
   17014           0 :                 if (*r->out.ReturnIdEnum) {
   17015           0 :                         NDR_CHECK(ndr_push_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnIdEnum));
   17016             :                 }
   17017           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ReturnNameEnum));
   17018           0 :                 if (*r->out.ReturnNameEnum) {
   17019           0 :                         NDR_CHECK(ndr_push_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnNameEnum));
   17020             :                 }
   17021           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   17022           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   17023             :         }
   17024           0 :         return NDR_ERR_SUCCESS;
   17025             : }
   17026             : 
   17027           0 : static enum ndr_err_code ndr_pull_clusapi_CreateEnumEx(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CreateEnumEx *r)
   17028             : {
   17029           0 :         uint32_t _ptr_ReturnIdEnum;
   17030           0 :         uint32_t _ptr_ReturnNameEnum;
   17031           0 :         TALLOC_CTX *_mem_save_ReturnIdEnum_0 = NULL;
   17032           0 :         TALLOC_CTX *_mem_save_ReturnIdEnum_1 = NULL;
   17033           0 :         TALLOC_CTX *_mem_save_ReturnNameEnum_0 = NULL;
   17034           0 :         TALLOC_CTX *_mem_save_ReturnNameEnum_1 = NULL;
   17035           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   17036           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   17037           0 :         if (flags & NDR_IN) {
   17038           0 :                 NDR_ZERO_STRUCT(r->out);
   17039             : 
   17040           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
   17041           0 :                 NDR_CHECK(ndr_pull_ClusterEnumType(ndr, NDR_SCALARS, &r->in.dwType));
   17042           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwOptions));
   17043           0 :                 NDR_PULL_ALLOC(ndr, r->out.ReturnIdEnum);
   17044           0 :                 NDR_ZERO_STRUCTP(r->out.ReturnIdEnum);
   17045           0 :                 NDR_PULL_ALLOC(ndr, r->out.ReturnNameEnum);
   17046           0 :                 NDR_ZERO_STRUCTP(r->out.ReturnNameEnum);
   17047           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   17048           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   17049             :         }
   17050           0 :         if (flags & NDR_OUT) {
   17051             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   17052             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   17053           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   17054           0 :                         NDR_PULL_ALLOC(ndr, r->out.ReturnIdEnum);
   17055             :                 }
   17056           0 :                 _mem_save_ReturnIdEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
   17057           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ReturnIdEnum, LIBNDR_FLAG_REF_ALLOC);
   17058           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ReturnIdEnum));
   17059           0 :                 if (_ptr_ReturnIdEnum) {
   17060           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ReturnIdEnum);
   17061             :                 } else {
   17062           0 :                         *r->out.ReturnIdEnum = NULL;
   17063             :                 }
   17064           0 :                 if (*r->out.ReturnIdEnum) {
   17065           0 :                         _mem_save_ReturnIdEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
   17066           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ReturnIdEnum, 0);
   17067           0 :                         NDR_CHECK(ndr_pull_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnIdEnum));
   17068           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnIdEnum_1, 0);
   17069             :                 }
   17070           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnIdEnum_0, LIBNDR_FLAG_REF_ALLOC);
   17071           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   17072           0 :                         NDR_PULL_ALLOC(ndr, r->out.ReturnNameEnum);
   17073             :                 }
   17074           0 :                 _mem_save_ReturnNameEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
   17075           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ReturnNameEnum, LIBNDR_FLAG_REF_ALLOC);
   17076           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ReturnNameEnum));
   17077           0 :                 if (_ptr_ReturnNameEnum) {
   17078           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ReturnNameEnum);
   17079             :                 } else {
   17080           0 :                         *r->out.ReturnNameEnum = NULL;
   17081             :                 }
   17082           0 :                 if (*r->out.ReturnNameEnum) {
   17083           0 :                         _mem_save_ReturnNameEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
   17084           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ReturnNameEnum, 0);
   17085           0 :                         NDR_CHECK(ndr_pull_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnNameEnum));
   17086           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnNameEnum_1, 0);
   17087             :                 }
   17088           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnNameEnum_0, LIBNDR_FLAG_REF_ALLOC);
   17089           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   17090           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   17091             :                 }
   17092           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   17093           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   17094           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   17095           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   17096           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   17097             :         }
   17098           0 :         return NDR_ERR_SUCCESS;
   17099             : }
   17100             : 
   17101           0 : _PUBLIC_ void ndr_print_clusapi_CreateEnumEx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CreateEnumEx *r)
   17102             : {
   17103           0 :         ndr_print_struct(ndr, name, "clusapi_CreateEnumEx");
   17104           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   17105           0 :         ndr->depth++;
   17106           0 :         if (flags & NDR_SET_VALUES) {
   17107           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   17108             :         }
   17109           0 :         if (flags & NDR_IN) {
   17110           0 :                 ndr_print_struct(ndr, "in", "clusapi_CreateEnumEx");
   17111           0 :                 ndr->depth++;
   17112           0 :                 ndr_print_policy_handle(ndr, "hCluster", &r->in.hCluster);
   17113           0 :                 ndr_print_ClusterEnumType(ndr, "dwType", r->in.dwType);
   17114           0 :                 ndr_print_uint32(ndr, "dwOptions", r->in.dwOptions);
   17115           0 :                 ndr->depth--;
   17116             :         }
   17117           0 :         if (flags & NDR_OUT) {
   17118           0 :                 ndr_print_struct(ndr, "out", "clusapi_CreateEnumEx");
   17119           0 :                 ndr->depth++;
   17120           0 :                 ndr_print_ptr(ndr, "ReturnIdEnum", r->out.ReturnIdEnum);
   17121           0 :                 ndr->depth++;
   17122           0 :                 ndr_print_ptr(ndr, "ReturnIdEnum", *r->out.ReturnIdEnum);
   17123           0 :                 ndr->depth++;
   17124           0 :                 if (*r->out.ReturnIdEnum) {
   17125           0 :                         ndr_print_ENUM_LIST(ndr, "ReturnIdEnum", *r->out.ReturnIdEnum);
   17126             :                 }
   17127           0 :                 ndr->depth--;
   17128           0 :                 ndr->depth--;
   17129           0 :                 ndr_print_ptr(ndr, "ReturnNameEnum", r->out.ReturnNameEnum);
   17130           0 :                 ndr->depth++;
   17131           0 :                 ndr_print_ptr(ndr, "ReturnNameEnum", *r->out.ReturnNameEnum);
   17132           0 :                 ndr->depth++;
   17133           0 :                 if (*r->out.ReturnNameEnum) {
   17134           0 :                         ndr_print_ENUM_LIST(ndr, "ReturnNameEnum", *r->out.ReturnNameEnum);
   17135             :                 }
   17136           0 :                 ndr->depth--;
   17137           0 :                 ndr->depth--;
   17138           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   17139           0 :                 ndr->depth++;
   17140           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   17141           0 :                 ndr->depth--;
   17142           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   17143           0 :                 ndr->depth--;
   17144             :         }
   17145           0 :         ndr->depth--;
   17146             : }
   17147             : 
   17148           0 : static enum ndr_err_code ndr_push_clusapi_PauseNodeEx(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_PauseNodeEx *r)
   17149             : {
   17150           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   17151           0 :         if (flags & NDR_IN) {
   17152           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   17153           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->in.bDrainNode));
   17154           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwPauseFlags));
   17155             :         }
   17156           0 :         if (flags & NDR_OUT) {
   17157           0 :                 if (r->out.rpc_status == NULL) {
   17158           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   17159             :                 }
   17160           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   17161           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   17162             :         }
   17163           0 :         return NDR_ERR_SUCCESS;
   17164             : }
   17165             : 
   17166           0 : static enum ndr_err_code ndr_pull_clusapi_PauseNodeEx(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_PauseNodeEx *r)
   17167             : {
   17168           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   17169           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   17170           0 :         if (flags & NDR_IN) {
   17171           0 :                 NDR_ZERO_STRUCT(r->out);
   17172             : 
   17173           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   17174           0 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->in.bDrainNode));
   17175           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwPauseFlags));
   17176           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   17177           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   17178             :         }
   17179           0 :         if (flags & NDR_OUT) {
   17180             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   17181             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   17182           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   17183           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   17184             :                 }
   17185           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   17186           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   17187           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   17188           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   17189           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   17190             :         }
   17191           0 :         return NDR_ERR_SUCCESS;
   17192             : }
   17193             : 
   17194           0 : _PUBLIC_ void ndr_print_clusapi_PauseNodeEx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_PauseNodeEx *r)
   17195             : {
   17196           0 :         ndr_print_struct(ndr, name, "clusapi_PauseNodeEx");
   17197           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   17198           0 :         ndr->depth++;
   17199           0 :         if (flags & NDR_SET_VALUES) {
   17200           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   17201             :         }
   17202           0 :         if (flags & NDR_IN) {
   17203           0 :                 ndr_print_struct(ndr, "in", "clusapi_PauseNodeEx");
   17204           0 :                 ndr->depth++;
   17205           0 :                 ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
   17206           0 :                 ndr_print_uint8(ndr, "bDrainNode", r->in.bDrainNode);
   17207           0 :                 ndr_print_uint32(ndr, "dwPauseFlags", r->in.dwPauseFlags);
   17208           0 :                 ndr->depth--;
   17209             :         }
   17210           0 :         if (flags & NDR_OUT) {
   17211           0 :                 ndr_print_struct(ndr, "out", "clusapi_PauseNodeEx");
   17212           0 :                 ndr->depth++;
   17213           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   17214           0 :                 ndr->depth++;
   17215           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   17216           0 :                 ndr->depth--;
   17217           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   17218           0 :                 ndr->depth--;
   17219             :         }
   17220           0 :         ndr->depth--;
   17221             : }
   17222             : 
   17223           0 : static enum ndr_err_code ndr_push_clusapi_PauseNodeWithDrainTarget(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_PauseNodeWithDrainTarget *r)
   17224             : {
   17225           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   17226           0 :         if (flags & NDR_IN) {
   17227           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   17228           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwPauseFlags));
   17229           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNodeDrainTarget));
   17230             :         }
   17231           0 :         if (flags & NDR_OUT) {
   17232           0 :                 if (r->out.rpc_status == NULL) {
   17233           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   17234             :                 }
   17235           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   17236           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   17237             :         }
   17238           0 :         return NDR_ERR_SUCCESS;
   17239             : }
   17240             : 
   17241           0 : static enum ndr_err_code ndr_pull_clusapi_PauseNodeWithDrainTarget(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_PauseNodeWithDrainTarget *r)
   17242             : {
   17243           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   17244           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   17245           0 :         if (flags & NDR_IN) {
   17246           0 :                 NDR_ZERO_STRUCT(r->out);
   17247             : 
   17248           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   17249           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwPauseFlags));
   17250           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNodeDrainTarget));
   17251           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   17252           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   17253             :         }
   17254           0 :         if (flags & NDR_OUT) {
   17255             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   17256             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   17257           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   17258           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   17259             :                 }
   17260           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   17261           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   17262           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   17263           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   17264           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   17265             :         }
   17266           0 :         return NDR_ERR_SUCCESS;
   17267             : }
   17268             : 
   17269           0 : _PUBLIC_ void ndr_print_clusapi_PauseNodeWithDrainTarget(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_PauseNodeWithDrainTarget *r)
   17270             : {
   17271           0 :         ndr_print_struct(ndr, name, "clusapi_PauseNodeWithDrainTarget");
   17272           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   17273           0 :         ndr->depth++;
   17274           0 :         if (flags & NDR_SET_VALUES) {
   17275           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   17276             :         }
   17277           0 :         if (flags & NDR_IN) {
   17278           0 :                 ndr_print_struct(ndr, "in", "clusapi_PauseNodeWithDrainTarget");
   17279           0 :                 ndr->depth++;
   17280           0 :                 ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
   17281           0 :                 ndr_print_uint32(ndr, "dwPauseFlags", r->in.dwPauseFlags);
   17282           0 :                 ndr_print_policy_handle(ndr, "hNodeDrainTarget", &r->in.hNodeDrainTarget);
   17283           0 :                 ndr->depth--;
   17284             :         }
   17285           0 :         if (flags & NDR_OUT) {
   17286           0 :                 ndr_print_struct(ndr, "out", "clusapi_PauseNodeWithDrainTarget");
   17287           0 :                 ndr->depth++;
   17288           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   17289           0 :                 ndr->depth++;
   17290           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   17291           0 :                 ndr->depth--;
   17292           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   17293           0 :                 ndr->depth--;
   17294             :         }
   17295           0 :         ndr->depth--;
   17296             : }
   17297             : 
   17298           0 : static enum ndr_err_code ndr_push_clusapi_ResumeNodeEx(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_ResumeNodeEx *r)
   17299             : {
   17300           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   17301           0 :         if (flags & NDR_IN) {
   17302           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   17303           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwResumeFailbackType));
   17304           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwResumeFlagsReserved));
   17305             :         }
   17306           0 :         if (flags & NDR_OUT) {
   17307           0 :                 if (r->out.rpc_status == NULL) {
   17308           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   17309             :                 }
   17310           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   17311           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   17312             :         }
   17313           0 :         return NDR_ERR_SUCCESS;
   17314             : }
   17315             : 
   17316           0 : static enum ndr_err_code ndr_pull_clusapi_ResumeNodeEx(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_ResumeNodeEx *r)
   17317             : {
   17318           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   17319           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   17320           0 :         if (flags & NDR_IN) {
   17321           0 :                 NDR_ZERO_STRUCT(r->out);
   17322             : 
   17323           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   17324           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwResumeFailbackType));
   17325           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwResumeFlagsReserved));
   17326           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   17327           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   17328             :         }
   17329           0 :         if (flags & NDR_OUT) {
   17330             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   17331             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   17332           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   17333           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   17334             :                 }
   17335           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   17336           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   17337           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   17338           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   17339           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   17340             :         }
   17341           0 :         return NDR_ERR_SUCCESS;
   17342             : }
   17343             : 
   17344           0 : _PUBLIC_ void ndr_print_clusapi_ResumeNodeEx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_ResumeNodeEx *r)
   17345             : {
   17346           0 :         ndr_print_struct(ndr, name, "clusapi_ResumeNodeEx");
   17347           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   17348           0 :         ndr->depth++;
   17349           0 :         if (flags & NDR_SET_VALUES) {
   17350           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   17351             :         }
   17352           0 :         if (flags & NDR_IN) {
   17353           0 :                 ndr_print_struct(ndr, "in", "clusapi_ResumeNodeEx");
   17354           0 :                 ndr->depth++;
   17355           0 :                 ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
   17356           0 :                 ndr_print_uint32(ndr, "dwResumeFailbackType", r->in.dwResumeFailbackType);
   17357           0 :                 ndr_print_uint32(ndr, "dwResumeFlagsReserved", r->in.dwResumeFlagsReserved);
   17358           0 :                 ndr->depth--;
   17359             :         }
   17360           0 :         if (flags & NDR_OUT) {
   17361           0 :                 ndr_print_struct(ndr, "out", "clusapi_ResumeNodeEx");
   17362           0 :                 ndr->depth++;
   17363           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   17364           0 :                 ndr->depth++;
   17365           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   17366           0 :                 ndr->depth--;
   17367           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   17368           0 :                 ndr->depth--;
   17369             :         }
   17370           0 :         ndr->depth--;
   17371             : }
   17372             : 
   17373           0 : static enum ndr_err_code ndr_push_clusapi_CreateGroupEx(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CreateGroupEx *r)
   17374             : {
   17375           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   17376           0 :         if (flags & NDR_IN) {
   17377           0 :                 if (r->in.lpszGroupName == NULL) {
   17378           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   17379             :                 }
   17380           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupName, CH_UTF16)));
   17381           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   17382           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupName, CH_UTF16)));
   17383           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszGroupName, ndr_charset_length(r->in.lpszGroupName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   17384           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pGroupInfo));
   17385           0 :                 if (r->in.pGroupInfo) {
   17386           0 :                         NDR_CHECK(ndr_push_CLUSTER_CREATE_GROUP_INFO_RPC(ndr, NDR_SCALARS, r->in.pGroupInfo));
   17387             :                 }
   17388             :         }
   17389           0 :         if (flags & NDR_OUT) {
   17390           0 :                 if (r->out.Status == NULL) {
   17391           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   17392             :                 }
   17393           0 :                 if (r->out.rpc_status == NULL) {
   17394           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   17395             :                 }
   17396           0 :                 if (r->out.hGroup == NULL) {
   17397           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   17398             :                 }
   17399           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
   17400           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   17401           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hGroup));
   17402             :         }
   17403           0 :         return NDR_ERR_SUCCESS;
   17404             : }
   17405             : 
   17406           0 : static enum ndr_err_code ndr_pull_clusapi_CreateGroupEx(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CreateGroupEx *r)
   17407             : {
   17408           0 :         uint32_t size_lpszGroupName_1 = 0;
   17409           0 :         uint32_t length_lpszGroupName_1 = 0;
   17410           0 :         uint32_t _ptr_pGroupInfo;
   17411           0 :         TALLOC_CTX *_mem_save_pGroupInfo_0 = NULL;
   17412           0 :         TALLOC_CTX *_mem_save_Status_0 = NULL;
   17413           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   17414           0 :         TALLOC_CTX *_mem_save_hGroup_0 = NULL;
   17415           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   17416           0 :         if (flags & NDR_IN) {
   17417           0 :                 NDR_ZERO_STRUCT(r->out);
   17418             : 
   17419           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszGroupName));
   17420           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszGroupName));
   17421           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszGroupName, &size_lpszGroupName_1));
   17422           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszGroupName, &length_lpszGroupName_1));
   17423           0 :                 if (length_lpszGroupName_1 > size_lpszGroupName_1) {
   17424           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszGroupName_1, length_lpszGroupName_1);
   17425             :                 }
   17426           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszGroupName_1, sizeof(uint16_t)));
   17427           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszGroupName, length_lpszGroupName_1, sizeof(uint16_t), CH_UTF16));
   17428           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pGroupInfo));
   17429           0 :                 if (_ptr_pGroupInfo) {
   17430           0 :                         NDR_PULL_ALLOC(ndr, r->in.pGroupInfo);
   17431             :                 } else {
   17432           0 :                         r->in.pGroupInfo = NULL;
   17433             :                 }
   17434           0 :                 if (r->in.pGroupInfo) {
   17435           0 :                         _mem_save_pGroupInfo_0 = NDR_PULL_GET_MEM_CTX(ndr);
   17436           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.pGroupInfo, 0);
   17437           0 :                         NDR_CHECK(ndr_pull_CLUSTER_CREATE_GROUP_INFO_RPC(ndr, NDR_SCALARS, r->in.pGroupInfo));
   17438           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pGroupInfo_0, 0);
   17439             :                 }
   17440           0 :                 NDR_PULL_ALLOC(ndr, r->out.Status);
   17441           0 :                 NDR_ZERO_STRUCTP(r->out.Status);
   17442           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   17443           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   17444           0 :                 NDR_PULL_ALLOC(ndr, r->out.hGroup);
   17445           0 :                 NDR_ZERO_STRUCTP(r->out.hGroup);
   17446             :         }
   17447           0 :         if (flags & NDR_OUT) {
   17448             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   17449             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   17450           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   17451           0 :                         NDR_PULL_ALLOC(ndr, r->out.Status);
   17452             :                 }
   17453           0 :                 _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   17454           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
   17455           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
   17456           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
   17457           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   17458           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   17459             :                 }
   17460           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   17461           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   17462           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   17463           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   17464           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   17465           0 :                         NDR_PULL_ALLOC(ndr, r->out.hGroup);
   17466             :                 }
   17467           0 :                 _mem_save_hGroup_0 = NDR_PULL_GET_MEM_CTX(ndr);
   17468           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.hGroup, LIBNDR_FLAG_REF_ALLOC);
   17469           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hGroup));
   17470           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hGroup_0, LIBNDR_FLAG_REF_ALLOC);
   17471             :         }
   17472           0 :         return NDR_ERR_SUCCESS;
   17473             : }
   17474             : 
   17475           0 : _PUBLIC_ void ndr_print_clusapi_CreateGroupEx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CreateGroupEx *r)
   17476             : {
   17477           0 :         ndr_print_struct(ndr, name, "clusapi_CreateGroupEx");
   17478           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   17479           0 :         ndr->depth++;
   17480           0 :         if (flags & NDR_SET_VALUES) {
   17481           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   17482             :         }
   17483           0 :         if (flags & NDR_IN) {
   17484           0 :                 ndr_print_struct(ndr, "in", "clusapi_CreateGroupEx");
   17485           0 :                 ndr->depth++;
   17486           0 :                 ndr_print_ptr(ndr, "lpszGroupName", r->in.lpszGroupName);
   17487           0 :                 ndr->depth++;
   17488           0 :                 ndr_print_string(ndr, "lpszGroupName", r->in.lpszGroupName);
   17489           0 :                 ndr->depth--;
   17490           0 :                 ndr_print_ptr(ndr, "pGroupInfo", r->in.pGroupInfo);
   17491           0 :                 ndr->depth++;
   17492           0 :                 if (r->in.pGroupInfo) {
   17493           0 :                         ndr_print_CLUSTER_CREATE_GROUP_INFO_RPC(ndr, "pGroupInfo", r->in.pGroupInfo);
   17494             :                 }
   17495           0 :                 ndr->depth--;
   17496           0 :                 ndr->depth--;
   17497             :         }
   17498           0 :         if (flags & NDR_OUT) {
   17499           0 :                 ndr_print_struct(ndr, "out", "clusapi_CreateGroupEx");
   17500           0 :                 ndr->depth++;
   17501           0 :                 ndr_print_ptr(ndr, "Status", r->out.Status);
   17502           0 :                 ndr->depth++;
   17503           0 :                 ndr_print_WERROR(ndr, "Status", *r->out.Status);
   17504           0 :                 ndr->depth--;
   17505           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   17506           0 :                 ndr->depth++;
   17507           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   17508           0 :                 ndr->depth--;
   17509           0 :                 ndr_print_ptr(ndr, "hGroup", r->out.hGroup);
   17510           0 :                 ndr->depth++;
   17511           0 :                 ndr_print_policy_handle(ndr, "hGroup", r->out.hGroup);
   17512           0 :                 ndr->depth--;
   17513           0 :                 ndr->depth--;
   17514             :         }
   17515           0 :         ndr->depth--;
   17516             : }
   17517             : 
   17518           0 : static enum ndr_err_code ndr_push_clusapi_OnlineGroupEx(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_OnlineGroupEx *r)
   17519             : {
   17520           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   17521           0 :         if (flags & NDR_IN) {
   17522           0 :                 if (r->in.lpInBuffer == NULL) {
   17523           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   17524             :                 }
   17525           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
   17526           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwOnlineFlags));
   17527           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbInBufferSize));
   17528           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.cbInBufferSize));
   17529           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbInBufferSize));
   17530             :         }
   17531           0 :         if (flags & NDR_OUT) {
   17532           0 :                 if (r->out.rpc_status == NULL) {
   17533           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   17534             :                 }
   17535           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   17536           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   17537             :         }
   17538           0 :         return NDR_ERR_SUCCESS;
   17539             : }
   17540             : 
   17541           0 : static enum ndr_err_code ndr_pull_clusapi_OnlineGroupEx(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_OnlineGroupEx *r)
   17542             : {
   17543           0 :         uint32_t size_lpInBuffer_1 = 0;
   17544           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   17545           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   17546           0 :         if (flags & NDR_IN) {
   17547           0 :                 NDR_ZERO_STRUCT(r->out);
   17548             : 
   17549           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
   17550           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwOnlineFlags));
   17551           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
   17552           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
   17553           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   17554           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
   17555             :                 }
   17556           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
   17557           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbInBufferSize));
   17558           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   17559           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   17560           0 :                 if (r->in.lpInBuffer) {
   17561           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.cbInBufferSize));
   17562             :                 }
   17563             :         }
   17564           0 :         if (flags & NDR_OUT) {
   17565             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   17566             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   17567           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   17568           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   17569             :                 }
   17570           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   17571           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   17572           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   17573           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   17574           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   17575             :         }
   17576           0 :         return NDR_ERR_SUCCESS;
   17577             : }
   17578             : 
   17579           0 : _PUBLIC_ void ndr_print_clusapi_OnlineGroupEx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_OnlineGroupEx *r)
   17580             : {
   17581           0 :         ndr_print_struct(ndr, name, "clusapi_OnlineGroupEx");
   17582           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   17583           0 :         ndr->depth++;
   17584           0 :         if (flags & NDR_SET_VALUES) {
   17585           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   17586             :         }
   17587           0 :         if (flags & NDR_IN) {
   17588           0 :                 ndr_print_struct(ndr, "in", "clusapi_OnlineGroupEx");
   17589           0 :                 ndr->depth++;
   17590           0 :                 ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
   17591           0 :                 ndr_print_uint32(ndr, "dwOnlineFlags", r->in.dwOnlineFlags);
   17592           0 :                 ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
   17593           0 :                 ndr->depth++;
   17594           0 :                 ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.cbInBufferSize);
   17595           0 :                 ndr->depth--;
   17596           0 :                 ndr_print_uint32(ndr, "cbInBufferSize", r->in.cbInBufferSize);
   17597           0 :                 ndr->depth--;
   17598             :         }
   17599           0 :         if (flags & NDR_OUT) {
   17600           0 :                 ndr_print_struct(ndr, "out", "clusapi_OnlineGroupEx");
   17601           0 :                 ndr->depth++;
   17602           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   17603           0 :                 ndr->depth++;
   17604           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   17605           0 :                 ndr->depth--;
   17606           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   17607           0 :                 ndr->depth--;
   17608             :         }
   17609           0 :         ndr->depth--;
   17610             : }
   17611             : 
   17612           0 : static enum ndr_err_code ndr_push_clusapi_OfflineGroupEx(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_OfflineGroupEx *r)
   17613             : {
   17614           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   17615           0 :         if (flags & NDR_IN) {
   17616           0 :                 if (r->in.lpInBuffer == NULL) {
   17617           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   17618             :                 }
   17619           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
   17620           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwOfflineFlags));
   17621           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbInBufferSize));
   17622           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.cbInBufferSize));
   17623           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbInBufferSize));
   17624             :         }
   17625           0 :         if (flags & NDR_OUT) {
   17626           0 :                 if (r->out.rpc_status == NULL) {
   17627           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   17628             :                 }
   17629           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   17630           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   17631             :         }
   17632           0 :         return NDR_ERR_SUCCESS;
   17633             : }
   17634             : 
   17635           0 : static enum ndr_err_code ndr_pull_clusapi_OfflineGroupEx(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_OfflineGroupEx *r)
   17636             : {
   17637           0 :         uint32_t size_lpInBuffer_1 = 0;
   17638           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   17639           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   17640           0 :         if (flags & NDR_IN) {
   17641           0 :                 NDR_ZERO_STRUCT(r->out);
   17642             : 
   17643           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
   17644           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwOfflineFlags));
   17645           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
   17646           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
   17647           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   17648           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
   17649             :                 }
   17650           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
   17651           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbInBufferSize));
   17652           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   17653           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   17654           0 :                 if (r->in.lpInBuffer) {
   17655           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.cbInBufferSize));
   17656             :                 }
   17657             :         }
   17658           0 :         if (flags & NDR_OUT) {
   17659             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   17660             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   17661           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   17662           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   17663             :                 }
   17664           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   17665           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   17666           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   17667           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   17668           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   17669             :         }
   17670           0 :         return NDR_ERR_SUCCESS;
   17671             : }
   17672             : 
   17673           0 : _PUBLIC_ void ndr_print_clusapi_OfflineGroupEx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_OfflineGroupEx *r)
   17674             : {
   17675           0 :         ndr_print_struct(ndr, name, "clusapi_OfflineGroupEx");
   17676           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   17677           0 :         ndr->depth++;
   17678           0 :         if (flags & NDR_SET_VALUES) {
   17679           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   17680             :         }
   17681           0 :         if (flags & NDR_IN) {
   17682           0 :                 ndr_print_struct(ndr, "in", "clusapi_OfflineGroupEx");
   17683           0 :                 ndr->depth++;
   17684           0 :                 ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
   17685           0 :                 ndr_print_uint32(ndr, "dwOfflineFlags", r->in.dwOfflineFlags);
   17686           0 :                 ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
   17687           0 :                 ndr->depth++;
   17688           0 :                 ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.cbInBufferSize);
   17689           0 :                 ndr->depth--;
   17690           0 :                 ndr_print_uint32(ndr, "cbInBufferSize", r->in.cbInBufferSize);
   17691           0 :                 ndr->depth--;
   17692             :         }
   17693           0 :         if (flags & NDR_OUT) {
   17694           0 :                 ndr_print_struct(ndr, "out", "clusapi_OfflineGroupEx");
   17695           0 :                 ndr->depth++;
   17696           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   17697           0 :                 ndr->depth++;
   17698           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   17699           0 :                 ndr->depth--;
   17700           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   17701           0 :                 ndr->depth--;
   17702             :         }
   17703           0 :         ndr->depth--;
   17704             : }
   17705             : 
   17706           0 : static enum ndr_err_code ndr_push_clusapi_MoveGroupEx(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_MoveGroupEx *r)
   17707             : {
   17708           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   17709           0 :         if (flags & NDR_IN) {
   17710           0 :                 if (r->in.lpInBuffer == NULL) {
   17711           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   17712             :                 }
   17713           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
   17714           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwMoveFlags));
   17715           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbInBufferSize));
   17716           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.cbInBufferSize));
   17717           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbInBufferSize));
   17718             :         }
   17719           0 :         if (flags & NDR_OUT) {
   17720           0 :                 if (r->out.rpc_status == NULL) {
   17721           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   17722             :                 }
   17723           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   17724           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   17725             :         }
   17726           0 :         return NDR_ERR_SUCCESS;
   17727             : }
   17728             : 
   17729           0 : static enum ndr_err_code ndr_pull_clusapi_MoveGroupEx(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_MoveGroupEx *r)
   17730             : {
   17731           0 :         uint32_t size_lpInBuffer_1 = 0;
   17732           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   17733           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   17734           0 :         if (flags & NDR_IN) {
   17735           0 :                 NDR_ZERO_STRUCT(r->out);
   17736             : 
   17737           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
   17738           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwMoveFlags));
   17739           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
   17740           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
   17741           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   17742           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
   17743             :                 }
   17744           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
   17745           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbInBufferSize));
   17746           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   17747           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   17748           0 :                 if (r->in.lpInBuffer) {
   17749           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.cbInBufferSize));
   17750             :                 }
   17751             :         }
   17752           0 :         if (flags & NDR_OUT) {
   17753             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   17754             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   17755           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   17756           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   17757             :                 }
   17758           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   17759           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   17760           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   17761           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   17762           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   17763             :         }
   17764           0 :         return NDR_ERR_SUCCESS;
   17765             : }
   17766             : 
   17767           0 : _PUBLIC_ void ndr_print_clusapi_MoveGroupEx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_MoveGroupEx *r)
   17768             : {
   17769           0 :         ndr_print_struct(ndr, name, "clusapi_MoveGroupEx");
   17770           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   17771           0 :         ndr->depth++;
   17772           0 :         if (flags & NDR_SET_VALUES) {
   17773           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   17774             :         }
   17775           0 :         if (flags & NDR_IN) {
   17776           0 :                 ndr_print_struct(ndr, "in", "clusapi_MoveGroupEx");
   17777           0 :                 ndr->depth++;
   17778           0 :                 ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
   17779           0 :                 ndr_print_uint32(ndr, "dwMoveFlags", r->in.dwMoveFlags);
   17780           0 :                 ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
   17781           0 :                 ndr->depth++;
   17782           0 :                 ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.cbInBufferSize);
   17783           0 :                 ndr->depth--;
   17784           0 :                 ndr_print_uint32(ndr, "cbInBufferSize", r->in.cbInBufferSize);
   17785           0 :                 ndr->depth--;
   17786             :         }
   17787           0 :         if (flags & NDR_OUT) {
   17788           0 :                 ndr_print_struct(ndr, "out", "clusapi_MoveGroupEx");
   17789           0 :                 ndr->depth++;
   17790           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   17791           0 :                 ndr->depth++;
   17792           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   17793           0 :                 ndr->depth--;
   17794           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   17795           0 :                 ndr->depth--;
   17796             :         }
   17797           0 :         ndr->depth--;
   17798             : }
   17799             : 
   17800           0 : static enum ndr_err_code ndr_push_clusapi_MoveGroupToNodeEx(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_MoveGroupToNodeEx *r)
   17801             : {
   17802           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   17803           0 :         if (flags & NDR_IN) {
   17804           0 :                 if (r->in.lpInBuffer == NULL) {
   17805           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   17806             :                 }
   17807           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
   17808           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   17809           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwMoveFlags));
   17810           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbInBufferSize));
   17811           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.cbInBufferSize));
   17812           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbInBufferSize));
   17813             :         }
   17814           0 :         if (flags & NDR_OUT) {
   17815           0 :                 if (r->out.rpc_status == NULL) {
   17816           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   17817             :                 }
   17818           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   17819           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   17820             :         }
   17821           0 :         return NDR_ERR_SUCCESS;
   17822             : }
   17823             : 
   17824           0 : static enum ndr_err_code ndr_pull_clusapi_MoveGroupToNodeEx(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_MoveGroupToNodeEx *r)
   17825             : {
   17826           0 :         uint32_t size_lpInBuffer_1 = 0;
   17827           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   17828           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   17829           0 :         if (flags & NDR_IN) {
   17830           0 :                 NDR_ZERO_STRUCT(r->out);
   17831             : 
   17832           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
   17833           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   17834           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwMoveFlags));
   17835           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
   17836           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
   17837           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   17838           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
   17839             :                 }
   17840           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
   17841           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbInBufferSize));
   17842           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   17843           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   17844           0 :                 if (r->in.lpInBuffer) {
   17845           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.cbInBufferSize));
   17846             :                 }
   17847             :         }
   17848           0 :         if (flags & NDR_OUT) {
   17849             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   17850             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   17851           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   17852           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   17853             :                 }
   17854           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   17855           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   17856           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   17857           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   17858           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   17859             :         }
   17860           0 :         return NDR_ERR_SUCCESS;
   17861             : }
   17862             : 
   17863           0 : _PUBLIC_ void ndr_print_clusapi_MoveGroupToNodeEx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_MoveGroupToNodeEx *r)
   17864             : {
   17865           0 :         ndr_print_struct(ndr, name, "clusapi_MoveGroupToNodeEx");
   17866           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   17867           0 :         ndr->depth++;
   17868           0 :         if (flags & NDR_SET_VALUES) {
   17869           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   17870             :         }
   17871           0 :         if (flags & NDR_IN) {
   17872           0 :                 ndr_print_struct(ndr, "in", "clusapi_MoveGroupToNodeEx");
   17873           0 :                 ndr->depth++;
   17874           0 :                 ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
   17875           0 :                 ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
   17876           0 :                 ndr_print_uint32(ndr, "dwMoveFlags", r->in.dwMoveFlags);
   17877           0 :                 ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
   17878           0 :                 ndr->depth++;
   17879           0 :                 ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.cbInBufferSize);
   17880           0 :                 ndr->depth--;
   17881           0 :                 ndr_print_uint32(ndr, "cbInBufferSize", r->in.cbInBufferSize);
   17882           0 :                 ndr->depth--;
   17883             :         }
   17884           0 :         if (flags & NDR_OUT) {
   17885           0 :                 ndr_print_struct(ndr, "out", "clusapi_MoveGroupToNodeEx");
   17886           0 :                 ndr->depth++;
   17887           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   17888           0 :                 ndr->depth++;
   17889           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   17890           0 :                 ndr->depth--;
   17891           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   17892           0 :                 ndr->depth--;
   17893             :         }
   17894           0 :         ndr->depth--;
   17895             : }
   17896             : 
   17897           0 : static enum ndr_err_code ndr_push_clusapi_CancelClusterGroupOperation(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CancelClusterGroupOperation *r)
   17898             : {
   17899           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   17900           0 :         if (flags & NDR_IN) {
   17901           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
   17902           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwCancelFlags));
   17903             :         }
   17904           0 :         if (flags & NDR_OUT) {
   17905           0 :                 if (r->out.rpc_status == NULL) {
   17906           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   17907             :                 }
   17908           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   17909           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   17910             :         }
   17911           0 :         return NDR_ERR_SUCCESS;
   17912             : }
   17913             : 
   17914           0 : static enum ndr_err_code ndr_pull_clusapi_CancelClusterGroupOperation(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CancelClusterGroupOperation *r)
   17915             : {
   17916           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   17917           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   17918           0 :         if (flags & NDR_IN) {
   17919           0 :                 NDR_ZERO_STRUCT(r->out);
   17920             : 
   17921           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
   17922           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwCancelFlags));
   17923           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   17924           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   17925             :         }
   17926           0 :         if (flags & NDR_OUT) {
   17927             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   17928             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   17929           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   17930           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   17931             :                 }
   17932           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   17933           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   17934           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   17935           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   17936           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   17937             :         }
   17938           0 :         return NDR_ERR_SUCCESS;
   17939             : }
   17940             : 
   17941           0 : _PUBLIC_ void ndr_print_clusapi_CancelClusterGroupOperation(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CancelClusterGroupOperation *r)
   17942             : {
   17943           0 :         ndr_print_struct(ndr, name, "clusapi_CancelClusterGroupOperation");
   17944           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   17945           0 :         ndr->depth++;
   17946           0 :         if (flags & NDR_SET_VALUES) {
   17947           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   17948             :         }
   17949           0 :         if (flags & NDR_IN) {
   17950           0 :                 ndr_print_struct(ndr, "in", "clusapi_CancelClusterGroupOperation");
   17951           0 :                 ndr->depth++;
   17952           0 :                 ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
   17953           0 :                 ndr_print_uint32(ndr, "dwCancelFlags", r->in.dwCancelFlags);
   17954           0 :                 ndr->depth--;
   17955             :         }
   17956           0 :         if (flags & NDR_OUT) {
   17957           0 :                 ndr_print_struct(ndr, "out", "clusapi_CancelClusterGroupOperation");
   17958           0 :                 ndr->depth++;
   17959           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   17960           0 :                 ndr->depth++;
   17961           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   17962           0 :                 ndr->depth--;
   17963           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   17964           0 :                 ndr->depth--;
   17965             :         }
   17966           0 :         ndr->depth--;
   17967             : }
   17968             : 
   17969           0 : static enum ndr_err_code ndr_push_clusapi_OnlineResourceEx(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_OnlineResourceEx *r)
   17970             : {
   17971           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   17972           0 :         if (flags & NDR_IN) {
   17973           0 :                 if (r->in.lpInBuffer == NULL) {
   17974           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   17975             :                 }
   17976           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
   17977           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwOnlineFlags));
   17978           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbInBufferSize));
   17979           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.cbInBufferSize));
   17980           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbInBufferSize));
   17981             :         }
   17982           0 :         if (flags & NDR_OUT) {
   17983           0 :                 if (r->out.rpc_status == NULL) {
   17984           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   17985             :                 }
   17986           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   17987           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   17988             :         }
   17989           0 :         return NDR_ERR_SUCCESS;
   17990             : }
   17991             : 
   17992           0 : static enum ndr_err_code ndr_pull_clusapi_OnlineResourceEx(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_OnlineResourceEx *r)
   17993             : {
   17994           0 :         uint32_t size_lpInBuffer_1 = 0;
   17995           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   17996           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   17997           0 :         if (flags & NDR_IN) {
   17998           0 :                 NDR_ZERO_STRUCT(r->out);
   17999             : 
   18000           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
   18001           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwOnlineFlags));
   18002           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
   18003           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
   18004           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   18005           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
   18006             :                 }
   18007           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
   18008           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbInBufferSize));
   18009           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   18010           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   18011           0 :                 if (r->in.lpInBuffer) {
   18012           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.cbInBufferSize));
   18013             :                 }
   18014             :         }
   18015           0 :         if (flags & NDR_OUT) {
   18016             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   18017             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   18018           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   18019           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   18020             :                 }
   18021           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   18022           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   18023           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   18024           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   18025           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   18026             :         }
   18027           0 :         return NDR_ERR_SUCCESS;
   18028             : }
   18029             : 
   18030           0 : _PUBLIC_ void ndr_print_clusapi_OnlineResourceEx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_OnlineResourceEx *r)
   18031             : {
   18032           0 :         ndr_print_struct(ndr, name, "clusapi_OnlineResourceEx");
   18033           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   18034           0 :         ndr->depth++;
   18035           0 :         if (flags & NDR_SET_VALUES) {
   18036           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   18037             :         }
   18038           0 :         if (flags & NDR_IN) {
   18039           0 :                 ndr_print_struct(ndr, "in", "clusapi_OnlineResourceEx");
   18040           0 :                 ndr->depth++;
   18041           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
   18042           0 :                 ndr_print_uint32(ndr, "dwOnlineFlags", r->in.dwOnlineFlags);
   18043           0 :                 ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
   18044           0 :                 ndr->depth++;
   18045           0 :                 ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.cbInBufferSize);
   18046           0 :                 ndr->depth--;
   18047           0 :                 ndr_print_uint32(ndr, "cbInBufferSize", r->in.cbInBufferSize);
   18048           0 :                 ndr->depth--;
   18049             :         }
   18050           0 :         if (flags & NDR_OUT) {
   18051           0 :                 ndr_print_struct(ndr, "out", "clusapi_OnlineResourceEx");
   18052           0 :                 ndr->depth++;
   18053           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   18054           0 :                 ndr->depth++;
   18055           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   18056           0 :                 ndr->depth--;
   18057           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   18058           0 :                 ndr->depth--;
   18059             :         }
   18060           0 :         ndr->depth--;
   18061             : }
   18062             : 
   18063           0 : static enum ndr_err_code ndr_push_clusapi_OfflineResourceEx(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_OfflineResourceEx *r)
   18064             : {
   18065           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   18066           0 :         if (flags & NDR_IN) {
   18067           0 :                 if (r->in.lpInBuffer == NULL) {
   18068           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   18069             :                 }
   18070           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
   18071           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwOfflineFlags));
   18072           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbInBufferSize));
   18073           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.cbInBufferSize));
   18074           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbInBufferSize));
   18075             :         }
   18076           0 :         if (flags & NDR_OUT) {
   18077           0 :                 if (r->out.rpc_status == NULL) {
   18078           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   18079             :                 }
   18080           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   18081           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   18082             :         }
   18083           0 :         return NDR_ERR_SUCCESS;
   18084             : }
   18085             : 
   18086           0 : static enum ndr_err_code ndr_pull_clusapi_OfflineResourceEx(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_OfflineResourceEx *r)
   18087             : {
   18088           0 :         uint32_t size_lpInBuffer_1 = 0;
   18089           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   18090           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   18091           0 :         if (flags & NDR_IN) {
   18092           0 :                 NDR_ZERO_STRUCT(r->out);
   18093             : 
   18094           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
   18095           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwOfflineFlags));
   18096           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
   18097           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
   18098           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   18099           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
   18100             :                 }
   18101           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
   18102           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbInBufferSize));
   18103           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   18104           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   18105           0 :                 if (r->in.lpInBuffer) {
   18106           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.cbInBufferSize));
   18107             :                 }
   18108             :         }
   18109           0 :         if (flags & NDR_OUT) {
   18110             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   18111             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   18112           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   18113           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   18114             :                 }
   18115           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   18116           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   18117           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   18118           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   18119           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   18120             :         }
   18121           0 :         return NDR_ERR_SUCCESS;
   18122             : }
   18123             : 
   18124           0 : _PUBLIC_ void ndr_print_clusapi_OfflineResourceEx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_OfflineResourceEx *r)
   18125             : {
   18126           0 :         ndr_print_struct(ndr, name, "clusapi_OfflineResourceEx");
   18127           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   18128           0 :         ndr->depth++;
   18129           0 :         if (flags & NDR_SET_VALUES) {
   18130           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   18131             :         }
   18132           0 :         if (flags & NDR_IN) {
   18133           0 :                 ndr_print_struct(ndr, "in", "clusapi_OfflineResourceEx");
   18134           0 :                 ndr->depth++;
   18135           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
   18136           0 :                 ndr_print_uint32(ndr, "dwOfflineFlags", r->in.dwOfflineFlags);
   18137           0 :                 ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
   18138           0 :                 ndr->depth++;
   18139           0 :                 ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.cbInBufferSize);
   18140           0 :                 ndr->depth--;
   18141           0 :                 ndr_print_uint32(ndr, "cbInBufferSize", r->in.cbInBufferSize);
   18142           0 :                 ndr->depth--;
   18143             :         }
   18144           0 :         if (flags & NDR_OUT) {
   18145           0 :                 ndr_print_struct(ndr, "out", "clusapi_OfflineResourceEx");
   18146           0 :                 ndr->depth++;
   18147           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   18148           0 :                 ndr->depth++;
   18149           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   18150           0 :                 ndr->depth--;
   18151           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   18152           0 :                 ndr->depth--;
   18153             :         }
   18154           0 :         ndr->depth--;
   18155             : }
   18156             : 
   18157           0 : static enum ndr_err_code ndr_push_clusapi_CreateNotifyV2(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CreateNotifyV2 *r)
   18158             : {
   18159           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   18160           0 :         if (flags & NDR_IN) {
   18161           0 :         }
   18162           0 :         if (flags & NDR_OUT) {
   18163           0 :                 if (r->out.rpc_error == NULL) {
   18164           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   18165             :                 }
   18166           0 :                 if (r->out.rpc_status == NULL) {
   18167           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   18168             :                 }
   18169           0 :                 if (r->out.hNotify == NULL) {
   18170           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   18171             :                 }
   18172           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_error));
   18173           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   18174           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hNotify));
   18175             :         }
   18176           0 :         return NDR_ERR_SUCCESS;
   18177             : }
   18178             : 
   18179           0 : static enum ndr_err_code ndr_pull_clusapi_CreateNotifyV2(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CreateNotifyV2 *r)
   18180             : {
   18181           0 :         TALLOC_CTX *_mem_save_rpc_error_0 = NULL;
   18182           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   18183           0 :         TALLOC_CTX *_mem_save_hNotify_0 = NULL;
   18184           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   18185           0 :         if (flags & NDR_IN) {
   18186           0 :                 NDR_ZERO_STRUCT(r->out);
   18187             : 
   18188           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_error);
   18189           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_error);
   18190           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   18191           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   18192           0 :                 NDR_PULL_ALLOC(ndr, r->out.hNotify);
   18193           0 :                 NDR_ZERO_STRUCTP(r->out.hNotify);
   18194             :         }
   18195           0 :         if (flags & NDR_OUT) {
   18196             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   18197             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   18198           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   18199           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_error);
   18200             :                 }
   18201           0 :                 _mem_save_rpc_error_0 = NDR_PULL_GET_MEM_CTX(ndr);
   18202           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_error, LIBNDR_FLAG_REF_ALLOC);
   18203           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_error));
   18204           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_error_0, LIBNDR_FLAG_REF_ALLOC);
   18205           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   18206           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   18207             :                 }
   18208           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   18209           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   18210           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   18211           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   18212           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   18213           0 :                         NDR_PULL_ALLOC(ndr, r->out.hNotify);
   18214             :                 }
   18215           0 :                 _mem_save_hNotify_0 = NDR_PULL_GET_MEM_CTX(ndr);
   18216           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.hNotify, LIBNDR_FLAG_REF_ALLOC);
   18217           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hNotify));
   18218           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hNotify_0, LIBNDR_FLAG_REF_ALLOC);
   18219             :         }
   18220           0 :         return NDR_ERR_SUCCESS;
   18221             : }
   18222             : 
   18223           0 : _PUBLIC_ void ndr_print_clusapi_CreateNotifyV2(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CreateNotifyV2 *r)
   18224             : {
   18225           0 :         ndr_print_struct(ndr, name, "clusapi_CreateNotifyV2");
   18226           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   18227           0 :         ndr->depth++;
   18228           0 :         if (flags & NDR_SET_VALUES) {
   18229           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   18230             :         }
   18231           0 :         if (flags & NDR_IN) {
   18232           0 :                 ndr_print_struct(ndr, "in", "clusapi_CreateNotifyV2");
   18233           0 :                 ndr->depth++;
   18234           0 :                 ndr->depth--;
   18235             :         }
   18236           0 :         if (flags & NDR_OUT) {
   18237           0 :                 ndr_print_struct(ndr, "out", "clusapi_CreateNotifyV2");
   18238           0 :                 ndr->depth++;
   18239           0 :                 ndr_print_ptr(ndr, "rpc_error", r->out.rpc_error);
   18240           0 :                 ndr->depth++;
   18241           0 :                 ndr_print_WERROR(ndr, "rpc_error", *r->out.rpc_error);
   18242           0 :                 ndr->depth--;
   18243           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   18244           0 :                 ndr->depth++;
   18245           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   18246           0 :                 ndr->depth--;
   18247           0 :                 ndr_print_ptr(ndr, "hNotify", r->out.hNotify);
   18248           0 :                 ndr->depth++;
   18249           0 :                 ndr_print_policy_handle(ndr, "hNotify", r->out.hNotify);
   18250           0 :                 ndr->depth--;
   18251           0 :                 ndr->depth--;
   18252             :         }
   18253           0 :         ndr->depth--;
   18254             : }
   18255             : 
   18256           0 : static enum ndr_err_code ndr_push_clusapi_AddNotifyV2(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_AddNotifyV2 *r)
   18257             : {
   18258           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   18259           0 :         if (flags & NDR_IN) {
   18260           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
   18261           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hObject));
   18262           0 :                 NDR_CHECK(ndr_push_NOTIFY_FILTER_AND_TYPE_RPC(ndr, NDR_SCALARS, &r->in.filter));
   18263           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
   18264           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwVersion));
   18265           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->in.isTargetedAtObject));
   18266             :         }
   18267           0 :         if (flags & NDR_OUT) {
   18268           0 :                 if (r->out.rpc_status == NULL) {
   18269           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   18270             :                 }
   18271           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   18272           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   18273             :         }
   18274           0 :         return NDR_ERR_SUCCESS;
   18275             : }
   18276             : 
   18277           0 : static enum ndr_err_code ndr_pull_clusapi_AddNotifyV2(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_AddNotifyV2 *r)
   18278             : {
   18279           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   18280           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   18281           0 :         if (flags & NDR_IN) {
   18282           0 :                 NDR_ZERO_STRUCT(r->out);
   18283             : 
   18284           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
   18285           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hObject));
   18286           0 :                 NDR_CHECK(ndr_pull_NOTIFY_FILTER_AND_TYPE_RPC(ndr, NDR_SCALARS, &r->in.filter));
   18287           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
   18288           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwVersion));
   18289           0 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->in.isTargetedAtObject));
   18290           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   18291           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   18292             :         }
   18293           0 :         if (flags & NDR_OUT) {
   18294             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   18295             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   18296           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   18297           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   18298             :                 }
   18299           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   18300           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   18301           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   18302           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   18303           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   18304             :         }
   18305           0 :         return NDR_ERR_SUCCESS;
   18306             : }
   18307             : 
   18308           0 : _PUBLIC_ void ndr_print_clusapi_AddNotifyV2(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_AddNotifyV2 *r)
   18309             : {
   18310           0 :         ndr_print_struct(ndr, name, "clusapi_AddNotifyV2");
   18311           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   18312           0 :         ndr->depth++;
   18313           0 :         if (flags & NDR_SET_VALUES) {
   18314           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   18315             :         }
   18316           0 :         if (flags & NDR_IN) {
   18317           0 :                 ndr_print_struct(ndr, "in", "clusapi_AddNotifyV2");
   18318           0 :                 ndr->depth++;
   18319           0 :                 ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
   18320           0 :                 ndr_print_policy_handle(ndr, "hObject", &r->in.hObject);
   18321           0 :                 ndr_print_NOTIFY_FILTER_AND_TYPE_RPC(ndr, "filter", &r->in.filter);
   18322           0 :                 ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
   18323           0 :                 ndr_print_uint32(ndr, "dwVersion", r->in.dwVersion);
   18324           0 :                 ndr_print_uint8(ndr, "isTargetedAtObject", r->in.isTargetedAtObject);
   18325           0 :                 ndr->depth--;
   18326             :         }
   18327           0 :         if (flags & NDR_OUT) {
   18328           0 :                 ndr_print_struct(ndr, "out", "clusapi_AddNotifyV2");
   18329           0 :                 ndr->depth++;
   18330           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   18331           0 :                 ndr->depth++;
   18332           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   18333           0 :                 ndr->depth--;
   18334           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   18335           0 :                 ndr->depth--;
   18336             :         }
   18337           0 :         ndr->depth--;
   18338             : }
   18339             : 
   18340           0 : static enum ndr_err_code ndr_push_clusapi_GetNotifyV2(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_GetNotifyV2 *r)
   18341             : {
   18342           0 :         uint32_t cntr_Notifications_2;
   18343           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   18344           0 :         if (flags & NDR_IN) {
   18345           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
   18346             :         }
   18347           0 :         if (flags & NDR_OUT) {
   18348           0 :                 if (r->out.Notifications == NULL) {
   18349           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   18350             :                 }
   18351           0 :                 if (r->out.dwNumNotifications == NULL) {
   18352           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   18353             :                 }
   18354           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.Notifications));
   18355           0 :                 if (*r->out.Notifications) {
   18356           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.dwNumNotifications));
   18357           0 :                         for (cntr_Notifications_2 = 0; cntr_Notifications_2 < (*r->out.dwNumNotifications); cntr_Notifications_2++) {
   18358           0 :                                 NDR_CHECK(ndr_push_NOTIFICATION_RPC(ndr, NDR_SCALARS, &(*r->out.Notifications)[cntr_Notifications_2]));
   18359             :                         }
   18360           0 :                         for (cntr_Notifications_2 = 0; cntr_Notifications_2 < (*r->out.dwNumNotifications); cntr_Notifications_2++) {
   18361           0 :                                 NDR_CHECK(ndr_push_NOTIFICATION_RPC(ndr, NDR_BUFFERS, &(*r->out.Notifications)[cntr_Notifications_2]));
   18362             :                         }
   18363             :                 }
   18364           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.dwNumNotifications));
   18365           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   18366             :         }
   18367           0 :         return NDR_ERR_SUCCESS;
   18368             : }
   18369             : 
   18370           0 : static enum ndr_err_code ndr_pull_clusapi_GetNotifyV2(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_GetNotifyV2 *r)
   18371             : {
   18372           0 :         uint32_t _ptr_Notifications;
   18373           0 :         uint32_t size_Notifications_2 = 0;
   18374           0 :         uint32_t cntr_Notifications_2;
   18375           0 :         TALLOC_CTX *_mem_save_Notifications_0 = NULL;
   18376           0 :         TALLOC_CTX *_mem_save_Notifications_1 = NULL;
   18377           0 :         TALLOC_CTX *_mem_save_Notifications_2 = NULL;
   18378           0 :         TALLOC_CTX *_mem_save_dwNumNotifications_0 = NULL;
   18379           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   18380           0 :         if (flags & NDR_IN) {
   18381           0 :                 NDR_ZERO_STRUCT(r->out);
   18382             : 
   18383           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
   18384           0 :                 NDR_PULL_ALLOC(ndr, r->out.Notifications);
   18385           0 :                 NDR_ZERO_STRUCTP(r->out.Notifications);
   18386           0 :                 NDR_PULL_ALLOC(ndr, r->out.dwNumNotifications);
   18387           0 :                 NDR_ZERO_STRUCTP(r->out.dwNumNotifications);
   18388             :         }
   18389           0 :         if (flags & NDR_OUT) {
   18390             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   18391             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   18392           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   18393           0 :                         NDR_PULL_ALLOC(ndr, r->out.Notifications);
   18394             :                 }
   18395           0 :                 _mem_save_Notifications_0 = NDR_PULL_GET_MEM_CTX(ndr);
   18396           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Notifications, LIBNDR_FLAG_REF_ALLOC);
   18397           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Notifications));
   18398           0 :                 if (_ptr_Notifications) {
   18399           0 :                         NDR_PULL_ALLOC(ndr, *r->out.Notifications);
   18400             :                 } else {
   18401           0 :                         *r->out.Notifications = NULL;
   18402             :                 }
   18403           0 :                 if (*r->out.Notifications) {
   18404           0 :                         _mem_save_Notifications_1 = NDR_PULL_GET_MEM_CTX(ndr);
   18405           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.Notifications, 0);
   18406           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.Notifications));
   18407           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)r->out.Notifications, &size_Notifications_2));
   18408           0 :                         NDR_PULL_ALLOC_N(ndr, *r->out.Notifications, size_Notifications_2);
   18409           0 :                         _mem_save_Notifications_2 = NDR_PULL_GET_MEM_CTX(ndr);
   18410           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.Notifications, 0);
   18411           0 :                         for (cntr_Notifications_2 = 0; cntr_Notifications_2 < (size_Notifications_2); cntr_Notifications_2++) {
   18412           0 :                                 NDR_CHECK(ndr_pull_NOTIFICATION_RPC(ndr, NDR_SCALARS, &(*r->out.Notifications)[cntr_Notifications_2]));
   18413             :                         }
   18414           0 :                         for (cntr_Notifications_2 = 0; cntr_Notifications_2 < (size_Notifications_2); cntr_Notifications_2++) {
   18415           0 :                                 NDR_CHECK(ndr_pull_NOTIFICATION_RPC(ndr, NDR_BUFFERS, &(*r->out.Notifications)[cntr_Notifications_2]));
   18416             :                         }
   18417           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Notifications_2, 0);
   18418           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Notifications_1, 0);
   18419             :                 }
   18420           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Notifications_0, LIBNDR_FLAG_REF_ALLOC);
   18421           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   18422           0 :                         NDR_PULL_ALLOC(ndr, r->out.dwNumNotifications);
   18423             :                 }
   18424           0 :                 _mem_save_dwNumNotifications_0 = NDR_PULL_GET_MEM_CTX(ndr);
   18425           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.dwNumNotifications, LIBNDR_FLAG_REF_ALLOC);
   18426           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.dwNumNotifications));
   18427           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dwNumNotifications_0, LIBNDR_FLAG_REF_ALLOC);
   18428           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   18429           0 :                 if (*r->out.Notifications) {
   18430           0 :                         NDR_CHECK(ndr_check_array_size(ndr, (void*)r->out.Notifications, *r->out.dwNumNotifications));
   18431             :                 }
   18432           0 :                 for (cntr_Notifications_2 = 0; cntr_Notifications_2 < (size_Notifications_2); cntr_Notifications_2++) {
   18433           0 :                 }
   18434             :         }
   18435           0 :         return NDR_ERR_SUCCESS;
   18436             : }
   18437             : 
   18438           0 : _PUBLIC_ void ndr_print_clusapi_GetNotifyV2(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_GetNotifyV2 *r)
   18439             : {
   18440           0 :         uint32_t cntr_Notifications_2;
   18441           0 :         ndr_print_struct(ndr, name, "clusapi_GetNotifyV2");
   18442           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   18443           0 :         ndr->depth++;
   18444           0 :         if (flags & NDR_SET_VALUES) {
   18445           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   18446             :         }
   18447           0 :         if (flags & NDR_IN) {
   18448           0 :                 ndr_print_struct(ndr, "in", "clusapi_GetNotifyV2");
   18449           0 :                 ndr->depth++;
   18450           0 :                 ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
   18451           0 :                 ndr->depth--;
   18452             :         }
   18453           0 :         if (flags & NDR_OUT) {
   18454           0 :                 ndr_print_struct(ndr, "out", "clusapi_GetNotifyV2");
   18455           0 :                 ndr->depth++;
   18456           0 :                 ndr_print_ptr(ndr, "Notifications", r->out.Notifications);
   18457           0 :                 ndr->depth++;
   18458           0 :                 ndr_print_ptr(ndr, "Notifications", *r->out.Notifications);
   18459           0 :                 ndr->depth++;
   18460           0 :                 if (*r->out.Notifications) {
   18461           0 :                         ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "Notifications", (uint32_t)(*r->out.dwNumNotifications));
   18462           0 :                         ndr->depth++;
   18463           0 :                         for (cntr_Notifications_2 = 0; cntr_Notifications_2 < (*r->out.dwNumNotifications); cntr_Notifications_2++) {
   18464           0 :                                 ndr_print_NOTIFICATION_RPC(ndr, "Notifications", &(*r->out.Notifications)[cntr_Notifications_2]);
   18465             :                         }
   18466           0 :                         ndr->depth--;
   18467             :                 }
   18468           0 :                 ndr->depth--;
   18469           0 :                 ndr->depth--;
   18470           0 :                 ndr_print_ptr(ndr, "dwNumNotifications", r->out.dwNumNotifications);
   18471           0 :                 ndr->depth++;
   18472           0 :                 ndr_print_uint32(ndr, "dwNumNotifications", *r->out.dwNumNotifications);
   18473           0 :                 ndr->depth--;
   18474           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   18475           0 :                 ndr->depth--;
   18476             :         }
   18477           0 :         ndr->depth--;
   18478             : }
   18479             : 
   18480           0 : static enum ndr_err_code ndr_push_clusapi_QueryAllValues(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_QueryAllValues *r)
   18481             : {
   18482           0 :         uint32_t cntr_ppData_1;
   18483           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   18484           0 :         if (flags & NDR_IN) {
   18485           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
   18486             :         }
   18487           0 :         if (flags & NDR_OUT) {
   18488           0 :                 if (r->out.pcbData == NULL) {
   18489           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   18490             :                 }
   18491           0 :                 if (r->out.ppData == NULL) {
   18492           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   18493             :                 }
   18494           0 :                 if (r->out.rpc_status == NULL) {
   18495           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   18496             :                 }
   18497           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.pcbData));
   18498           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 1));
   18499           0 :                 for (cntr_ppData_1 = 0; cntr_ppData_1 < (1); cntr_ppData_1++) {
   18500           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.ppData[cntr_ppData_1]));
   18501             :                 }
   18502           0 :                 for (cntr_ppData_1 = 0; cntr_ppData_1 < (1); cntr_ppData_1++) {
   18503           0 :                         if (r->out.ppData[cntr_ppData_1]) {
   18504           0 :                                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.pcbData));
   18505           0 :                                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.ppData[cntr_ppData_1], *r->out.pcbData));
   18506             :                         }
   18507             :                 }
   18508           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   18509           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   18510             :         }
   18511           0 :         return NDR_ERR_SUCCESS;
   18512             : }
   18513             : 
   18514           1 : static enum ndr_err_code ndr_pull_clusapi_QueryAllValues(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_QueryAllValues *r)
   18515             : {
   18516           1 :         uint32_t _ptr_ppData;
   18517           1 :         uint32_t size_ppData_1 = 0;
   18518           1 :         uint32_t cntr_ppData_1;
   18519           1 :         uint32_t size_ppData_3 = 0;
   18520           1 :         TALLOC_CTX *_mem_save_pcbData_0 = NULL;
   18521           1 :         TALLOC_CTX *_mem_save_ppData_1 = NULL;
   18522           1 :         TALLOC_CTX *_mem_save_ppData_2 = NULL;
   18523           1 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   18524           1 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   18525           1 :         if (flags & NDR_IN) {
   18526           0 :                 NDR_ZERO_STRUCT(r->out);
   18527             : 
   18528           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
   18529           0 :                 NDR_PULL_ALLOC(ndr, r->out.pcbData);
   18530           0 :                 NDR_ZERO_STRUCTP(r->out.pcbData);
   18531           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.ppData, 1);
   18532           0 :                 memset(r->out.ppData, 0, (1) * sizeof(*r->out.ppData));
   18533           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   18534           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   18535             :         }
   18536           1 :         if (flags & NDR_OUT) {
   18537             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   18538             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   18539           1 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   18540           1 :                         NDR_PULL_ALLOC(ndr, r->out.pcbData);
   18541             :                 }
   18542           1 :                 _mem_save_pcbData_0 = NDR_PULL_GET_MEM_CTX(ndr);
   18543           1 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.pcbData, LIBNDR_FLAG_REF_ALLOC);
   18544           1 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.pcbData));
   18545           1 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pcbData_0, LIBNDR_FLAG_REF_ALLOC);
   18546           1 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.ppData));
   18547           1 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.ppData, &size_ppData_1));
   18548           1 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   18549           1 :                         NDR_PULL_ALLOC_N(ndr, r->out.ppData, size_ppData_1);
   18550             :                 }
   18551           1 :                 _mem_save_ppData_1 = NDR_PULL_GET_MEM_CTX(ndr);
   18552           1 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ppData, 0);
   18553           2 :                 for (cntr_ppData_1 = 0; cntr_ppData_1 < (size_ppData_1); cntr_ppData_1++) {
   18554           1 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppData));
   18555           1 :                         if (_ptr_ppData) {
   18556           0 :                                 NDR_PULL_ALLOC(ndr, r->out.ppData[cntr_ppData_1]);
   18557             :                         } else {
   18558           1 :                                 r->out.ppData[cntr_ppData_1] = NULL;
   18559             :                         }
   18560             :                 }
   18561           2 :                 for (cntr_ppData_1 = 0; cntr_ppData_1 < (size_ppData_1); cntr_ppData_1++) {
   18562           1 :                         if (r->out.ppData[cntr_ppData_1]) {
   18563           0 :                                 _mem_save_ppData_2 = NDR_PULL_GET_MEM_CTX(ndr);
   18564           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ppData[cntr_ppData_1], 0);
   18565           0 :                                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.ppData[cntr_ppData_1]));
   18566           0 :                                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.ppData[cntr_ppData_1], &size_ppData_3));
   18567           0 :                                 NDR_PULL_ALLOC_N(ndr, r->out.ppData[cntr_ppData_1], size_ppData_3);
   18568           0 :                                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.ppData[cntr_ppData_1], size_ppData_3));
   18569           1 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppData_2, 0);
   18570             :                         }
   18571             :                 }
   18572           1 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppData_1, 0);
   18573           1 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   18574           1 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   18575             :                 }
   18576           1 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   18577           1 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   18578           1 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   18579           1 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   18580           1 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   18581           1 :                 if (r->out.ppData) {
   18582           1 :                         NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->out.ppData, 1));
   18583             :                 }
   18584           2 :                 for (cntr_ppData_1 = 0; cntr_ppData_1 < (size_ppData_1); cntr_ppData_1++) {
   18585           1 :                         if (r->out.ppData[cntr_ppData_1]) {
   18586           1 :                                 NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.ppData[cntr_ppData_1], *r->out.pcbData));
   18587             :                         }
   18588             :                 }
   18589             :         }
   18590           0 :         return NDR_ERR_SUCCESS;
   18591             : }
   18592             : 
   18593           1 : _PUBLIC_ void ndr_print_clusapi_QueryAllValues(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_QueryAllValues *r)
   18594             : {
   18595           1 :         uint32_t cntr_ppData_1;
   18596           1 :         ndr_print_struct(ndr, name, "clusapi_QueryAllValues");
   18597           1 :         if (r == NULL) { ndr_print_null(ndr); return; }
   18598           1 :         ndr->depth++;
   18599           1 :         if (flags & NDR_SET_VALUES) {
   18600           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   18601             :         }
   18602           1 :         if (flags & NDR_IN) {
   18603           0 :                 ndr_print_struct(ndr, "in", "clusapi_QueryAllValues");
   18604           0 :                 ndr->depth++;
   18605           0 :                 ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
   18606           0 :                 ndr->depth--;
   18607             :         }
   18608           1 :         if (flags & NDR_OUT) {
   18609           1 :                 ndr_print_struct(ndr, "out", "clusapi_QueryAllValues");
   18610           1 :                 ndr->depth++;
   18611           1 :                 ndr_print_ptr(ndr, "pcbData", r->out.pcbData);
   18612           1 :                 ndr->depth++;
   18613           1 :                 ndr_print_uint32(ndr, "pcbData", *r->out.pcbData);
   18614           1 :                 ndr->depth--;
   18615           1 :                 ndr_print_ptr(ndr, "ppData", r->out.ppData);
   18616           1 :                 ndr->depth++;
   18617           1 :                 ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "ppData", (uint32_t)(1));
   18618           1 :                 ndr->depth++;
   18619           2 :                 for (cntr_ppData_1 = 0; cntr_ppData_1 < (1); cntr_ppData_1++) {
   18620           1 :                         ndr_print_ptr(ndr, "ppData", r->out.ppData[cntr_ppData_1]);
   18621           1 :                         ndr->depth++;
   18622           1 :                         if (r->out.ppData[cntr_ppData_1]) {
   18623           0 :                                 ndr_print_array_uint8(ndr, "ppData", r->out.ppData[cntr_ppData_1], *r->out.pcbData);
   18624             :                         }
   18625           1 :                         ndr->depth--;
   18626             :                 }
   18627           1 :                 ndr->depth--;
   18628           1 :                 ndr->depth--;
   18629           1 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   18630           1 :                 ndr->depth++;
   18631           1 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   18632           1 :                 ndr->depth--;
   18633           1 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   18634           1 :                 ndr->depth--;
   18635             :         }
   18636           1 :         ndr->depth--;
   18637             : }
   18638             : 
   18639           0 : static enum ndr_err_code ndr_push_clusapi_StmFindDisk(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_StmFindDisk *r)
   18640             : {
   18641           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   18642           0 :         if (flags & NDR_IN) {
   18643           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
   18644           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwFlags));
   18645           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pDiskId));
   18646           0 :                 if (r->in.pDiskId) {
   18647           0 :                         NDR_CHECK(ndr_push_CLUSTER_DISKID(ndr, NDR_SCALARS, r->in.pDiskId));
   18648             :                 }
   18649           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pUniqueId));
   18650           0 :                 if (r->in.pUniqueId) {
   18651           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.uniqueIdSize));
   18652           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.pUniqueId, r->in.uniqueIdSize));
   18653             :                 }
   18654           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.uniqueIdSize));
   18655             :         }
   18656           0 :         if (flags & NDR_OUT) {
   18657           0 :                 if (r->out.ppszDeviceName == NULL) {
   18658           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   18659             :                 }
   18660           0 :                 if (r->out.rpc_status == NULL) {
   18661           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   18662             :                 }
   18663           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.pDiskId));
   18664           0 :                 if (r->out.pDiskId) {
   18665           0 :                         NDR_CHECK(ndr_push_CLUSTER_DISKID(ndr, NDR_SCALARS, r->out.pDiskId));
   18666             :                 }
   18667           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppszDeviceName));
   18668           0 :                 if (*r->out.ppszDeviceName) {
   18669           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.ppszDeviceName, CH_UTF16)));
   18670           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   18671           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(*r->out.ppszDeviceName, CH_UTF16)));
   18672           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, *r->out.ppszDeviceName, ndr_charset_length(*r->out.ppszDeviceName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   18673             :                 }
   18674           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   18675           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   18676             :         }
   18677           0 :         return NDR_ERR_SUCCESS;
   18678             : }
   18679             : 
   18680           0 : static enum ndr_err_code ndr_pull_clusapi_StmFindDisk(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_StmFindDisk *r)
   18681             : {
   18682           0 :         uint32_t _ptr_pDiskId;
   18683           0 :         uint32_t _ptr_pUniqueId;
   18684           0 :         uint32_t size_pUniqueId_1 = 0;
   18685           0 :         uint32_t _ptr_ppszDeviceName;
   18686           0 :         uint32_t size_ppszDeviceName_2 = 0;
   18687           0 :         uint32_t length_ppszDeviceName_2 = 0;
   18688           0 :         TALLOC_CTX *_mem_save_pDiskId_0 = NULL;
   18689           0 :         TALLOC_CTX *_mem_save_pUniqueId_0 = NULL;
   18690           0 :         TALLOC_CTX *_mem_save_ppszDeviceName_0 = NULL;
   18691           0 :         TALLOC_CTX *_mem_save_ppszDeviceName_1 = NULL;
   18692           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   18693           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   18694           0 :         if (flags & NDR_IN) {
   18695           0 :                 NDR_ZERO_STRUCT(r->out);
   18696             : 
   18697           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
   18698           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwFlags));
   18699           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pDiskId));
   18700           0 :                 if (_ptr_pDiskId) {
   18701           0 :                         NDR_PULL_ALLOC(ndr, r->in.pDiskId);
   18702             :                 } else {
   18703           0 :                         r->in.pDiskId = NULL;
   18704             :                 }
   18705           0 :                 if (r->in.pDiskId) {
   18706           0 :                         _mem_save_pDiskId_0 = NDR_PULL_GET_MEM_CTX(ndr);
   18707           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.pDiskId, 0);
   18708           0 :                         NDR_CHECK(ndr_pull_CLUSTER_DISKID(ndr, NDR_SCALARS, r->in.pDiskId));
   18709           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pDiskId_0, 0);
   18710             :                 }
   18711           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pUniqueId));
   18712           0 :                 if (_ptr_pUniqueId) {
   18713           0 :                         NDR_PULL_ALLOC(ndr, r->in.pUniqueId);
   18714             :                 } else {
   18715           0 :                         r->in.pUniqueId = NULL;
   18716             :                 }
   18717           0 :                 if (r->in.pUniqueId) {
   18718           0 :                         _mem_save_pUniqueId_0 = NDR_PULL_GET_MEM_CTX(ndr);
   18719           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.pUniqueId, 0);
   18720           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.pUniqueId));
   18721           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.pUniqueId, &size_pUniqueId_1));
   18722           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.pUniqueId, size_pUniqueId_1);
   18723           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.pUniqueId, size_pUniqueId_1));
   18724           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pUniqueId_0, 0);
   18725             :                 }
   18726           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.uniqueIdSize));
   18727           0 :                 NDR_PULL_ALLOC(ndr, r->out.ppszDeviceName);
   18728           0 :                 NDR_ZERO_STRUCTP(r->out.ppszDeviceName);
   18729           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   18730           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   18731           0 :                 if (r->in.pUniqueId) {
   18732           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.pUniqueId, r->in.uniqueIdSize));
   18733             :                 }
   18734             :         }
   18735           0 :         if (flags & NDR_OUT) {
   18736             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   18737             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   18738           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pDiskId));
   18739           0 :                 if (_ptr_pDiskId) {
   18740           0 :                         NDR_PULL_ALLOC(ndr, r->out.pDiskId);
   18741             :                 } else {
   18742           0 :                         r->out.pDiskId = NULL;
   18743             :                 }
   18744           0 :                 if (r->out.pDiskId) {
   18745           0 :                         _mem_save_pDiskId_0 = NDR_PULL_GET_MEM_CTX(ndr);
   18746           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->out.pDiskId, 0);
   18747           0 :                         NDR_CHECK(ndr_pull_CLUSTER_DISKID(ndr, NDR_SCALARS, r->out.pDiskId));
   18748           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pDiskId_0, 0);
   18749             :                 }
   18750           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   18751           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppszDeviceName);
   18752             :                 }
   18753           0 :                 _mem_save_ppszDeviceName_0 = NDR_PULL_GET_MEM_CTX(ndr);
   18754           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ppszDeviceName, LIBNDR_FLAG_REF_ALLOC);
   18755           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppszDeviceName));
   18756           0 :                 if (_ptr_ppszDeviceName) {
   18757           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ppszDeviceName);
   18758             :                 } else {
   18759           0 :                         *r->out.ppszDeviceName = NULL;
   18760             :                 }
   18761           0 :                 if (*r->out.ppszDeviceName) {
   18762           0 :                         _mem_save_ppszDeviceName_1 = NDR_PULL_GET_MEM_CTX(ndr);
   18763           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppszDeviceName, 0);
   18764           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.ppszDeviceName));
   18765           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, r->out.ppszDeviceName));
   18766           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)r->out.ppszDeviceName, &size_ppszDeviceName_2));
   18767           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)r->out.ppszDeviceName, &length_ppszDeviceName_2));
   18768           0 :                         if (length_ppszDeviceName_2 > size_ppszDeviceName_2) {
   18769           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_ppszDeviceName_2, length_ppszDeviceName_2);
   18770             :                         }
   18771           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_ppszDeviceName_2, sizeof(uint16_t)));
   18772           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, r->out.ppszDeviceName, length_ppszDeviceName_2, sizeof(uint16_t), CH_UTF16));
   18773           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppszDeviceName_1, 0);
   18774             :                 }
   18775           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppszDeviceName_0, LIBNDR_FLAG_REF_ALLOC);
   18776           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   18777           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   18778             :                 }
   18779           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   18780           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   18781           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   18782           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   18783           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   18784             :         }
   18785           0 :         return NDR_ERR_SUCCESS;
   18786             : }
   18787             : 
   18788           0 : _PUBLIC_ void ndr_print_clusapi_StmFindDisk(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_StmFindDisk *r)
   18789             : {
   18790           0 :         ndr_print_struct(ndr, name, "clusapi_StmFindDisk");
   18791           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   18792           0 :         ndr->depth++;
   18793           0 :         if (flags & NDR_SET_VALUES) {
   18794           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   18795             :         }
   18796           0 :         if (flags & NDR_IN) {
   18797           0 :                 ndr_print_struct(ndr, "in", "clusapi_StmFindDisk");
   18798           0 :                 ndr->depth++;
   18799           0 :                 ndr_print_policy_handle(ndr, "hCluster", &r->in.hCluster);
   18800           0 :                 ndr_print_uint32(ndr, "dwFlags", r->in.dwFlags);
   18801           0 :                 ndr_print_ptr(ndr, "pDiskId", r->in.pDiskId);
   18802           0 :                 ndr->depth++;
   18803           0 :                 if (r->in.pDiskId) {
   18804           0 :                         ndr_print_CLUSTER_DISKID(ndr, "pDiskId", r->in.pDiskId);
   18805             :                 }
   18806           0 :                 ndr->depth--;
   18807           0 :                 ndr_print_ptr(ndr, "pUniqueId", r->in.pUniqueId);
   18808           0 :                 ndr->depth++;
   18809           0 :                 if (r->in.pUniqueId) {
   18810           0 :                         ndr_print_array_uint8(ndr, "pUniqueId", r->in.pUniqueId, r->in.uniqueIdSize);
   18811             :                 }
   18812           0 :                 ndr->depth--;
   18813           0 :                 ndr_print_uint32(ndr, "uniqueIdSize", r->in.uniqueIdSize);
   18814           0 :                 ndr->depth--;
   18815             :         }
   18816           0 :         if (flags & NDR_OUT) {
   18817           0 :                 ndr_print_struct(ndr, "out", "clusapi_StmFindDisk");
   18818           0 :                 ndr->depth++;
   18819           0 :                 ndr_print_ptr(ndr, "pDiskId", r->out.pDiskId);
   18820           0 :                 ndr->depth++;
   18821           0 :                 if (r->out.pDiskId) {
   18822           0 :                         ndr_print_CLUSTER_DISKID(ndr, "pDiskId", r->out.pDiskId);
   18823             :                 }
   18824           0 :                 ndr->depth--;
   18825           0 :                 ndr_print_ptr(ndr, "ppszDeviceName", r->out.ppszDeviceName);
   18826           0 :                 ndr->depth++;
   18827           0 :                 ndr_print_ptr(ndr, "ppszDeviceName", *r->out.ppszDeviceName);
   18828           0 :                 ndr->depth++;
   18829           0 :                 if (*r->out.ppszDeviceName) {
   18830           0 :                         ndr_print_string(ndr, "ppszDeviceName", *r->out.ppszDeviceName);
   18831             :                 }
   18832           0 :                 ndr->depth--;
   18833           0 :                 ndr->depth--;
   18834           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   18835           0 :                 ndr->depth++;
   18836           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   18837           0 :                 ndr->depth--;
   18838           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   18839           0 :                 ndr->depth--;
   18840             :         }
   18841           0 :         ndr->depth--;
   18842             : }
   18843             : 
   18844           0 : static enum ndr_err_code ndr_push_clusapi_ClusterMrr(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_ClusterMrr *r)
   18845             : {
   18846           0 :         uint32_t cntr_ppInfo_1;
   18847           0 :         uint32_t cntr_ppInfo_3;
   18848           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   18849           0 :         if (flags & NDR_IN) {
   18850           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
   18851           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->in.fExcludeSelf));
   18852           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->in.nodeSet));
   18853           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwTimeout));
   18854           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwComponent));
   18855           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwControlCode));
   18856           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.inSize));
   18857           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pInData));
   18858           0 :                 if (r->in.pInData) {
   18859           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.inSize));
   18860           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.pInData, r->in.inSize));
   18861             :                 }
   18862             :         }
   18863           0 :         if (flags & NDR_OUT) {
   18864           0 :                 if (r->out.ppInfo == NULL) {
   18865           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   18866             :                 }
   18867           0 :                 if (r->out.rpc_status == NULL) {
   18868           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   18869             :                 }
   18870           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 1));
   18871           0 :                 for (cntr_ppInfo_1 = 0; cntr_ppInfo_1 < (1); cntr_ppInfo_1++) {
   18872           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, r->out.ppInfo[cntr_ppInfo_1]));
   18873             :                 }
   18874           0 :                 for (cntr_ppInfo_1 = 0; cntr_ppInfo_1 < (1); cntr_ppInfo_1++) {
   18875           0 :                         if (r->out.ppInfo[cntr_ppInfo_1]) {
   18876           0 :                                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 1));
   18877           0 :                                 for (cntr_ppInfo_3 = 0; cntr_ppInfo_3 < (1); cntr_ppInfo_3++) {
   18878           0 :                                         NDR_CHECK(ndr_push_CLUSTER_MRR_RESPONSE(ndr, NDR_SCALARS, &r->out.ppInfo[cntr_ppInfo_1][cntr_ppInfo_3]));
   18879             :                                 }
   18880           0 :                                 for (cntr_ppInfo_3 = 0; cntr_ppInfo_3 < (1); cntr_ppInfo_3++) {
   18881           0 :                                         NDR_CHECK(ndr_push_CLUSTER_MRR_RESPONSE(ndr, NDR_BUFFERS, &r->out.ppInfo[cntr_ppInfo_1][cntr_ppInfo_3]));
   18882             :                                 }
   18883             :                         }
   18884             :                 }
   18885           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   18886           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   18887             :         }
   18888           0 :         return NDR_ERR_SUCCESS;
   18889             : }
   18890             : 
   18891           0 : static enum ndr_err_code ndr_pull_clusapi_ClusterMrr(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_ClusterMrr *r)
   18892             : {
   18893           0 :         uint32_t _ptr_pInData;
   18894           0 :         uint32_t size_pInData_1 = 0;
   18895           0 :         uint32_t _ptr_ppInfo;
   18896           0 :         uint32_t size_ppInfo_1 = 0;
   18897           0 :         uint32_t cntr_ppInfo_1;
   18898           0 :         uint32_t size_ppInfo_3 = 0;
   18899           0 :         uint32_t cntr_ppInfo_3;
   18900           0 :         TALLOC_CTX *_mem_save_pInData_0 = NULL;
   18901           0 :         TALLOC_CTX *_mem_save_ppInfo_1 = NULL;
   18902           0 :         TALLOC_CTX *_mem_save_ppInfo_2 = NULL;
   18903           0 :         TALLOC_CTX *_mem_save_ppInfo_3 = NULL;
   18904           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   18905           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   18906           0 :         if (flags & NDR_IN) {
   18907           0 :                 NDR_ZERO_STRUCT(r->out);
   18908             : 
   18909           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
   18910           0 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->in.fExcludeSelf));
   18911           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->in.nodeSet));
   18912           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwTimeout));
   18913           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwComponent));
   18914           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwControlCode));
   18915           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.inSize));
   18916           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pInData));
   18917           0 :                 if (_ptr_pInData) {
   18918           0 :                         NDR_PULL_ALLOC(ndr, r->in.pInData);
   18919             :                 } else {
   18920           0 :                         r->in.pInData = NULL;
   18921             :                 }
   18922           0 :                 if (r->in.pInData) {
   18923           0 :                         _mem_save_pInData_0 = NDR_PULL_GET_MEM_CTX(ndr);
   18924           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.pInData, 0);
   18925           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.pInData));
   18926           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.pInData, &size_pInData_1));
   18927           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.pInData, size_pInData_1);
   18928           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.pInData, size_pInData_1));
   18929           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pInData_0, 0);
   18930             :                 }
   18931           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.ppInfo, 1);
   18932           0 :                 memset(r->out.ppInfo, 0, (1) * sizeof(*r->out.ppInfo));
   18933           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   18934           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   18935           0 :                 if (r->in.pInData) {
   18936           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.pInData, r->in.inSize));
   18937             :                 }
   18938             :         }
   18939           0 :         if (flags & NDR_OUT) {
   18940             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   18941             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   18942           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.ppInfo));
   18943           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.ppInfo, &size_ppInfo_1));
   18944           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   18945           0 :                         NDR_PULL_ALLOC_N(ndr, r->out.ppInfo, size_ppInfo_1);
   18946             :                 }
   18947           0 :                 _mem_save_ppInfo_1 = NDR_PULL_GET_MEM_CTX(ndr);
   18948           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ppInfo, 0);
   18949           0 :                 for (cntr_ppInfo_1 = 0; cntr_ppInfo_1 < (size_ppInfo_1); cntr_ppInfo_1++) {
   18950           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppInfo));
   18951           0 :                         if (_ptr_ppInfo) {
   18952           0 :                                 NDR_PULL_ALLOC(ndr, r->out.ppInfo[cntr_ppInfo_1]);
   18953             :                         } else {
   18954           0 :                                 r->out.ppInfo[cntr_ppInfo_1] = NULL;
   18955             :                         }
   18956             :                 }
   18957           0 :                 for (cntr_ppInfo_1 = 0; cntr_ppInfo_1 < (size_ppInfo_1); cntr_ppInfo_1++) {
   18958           0 :                         if (r->out.ppInfo[cntr_ppInfo_1]) {
   18959           0 :                                 _mem_save_ppInfo_2 = NDR_PULL_GET_MEM_CTX(ndr);
   18960           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ppInfo[cntr_ppInfo_1], 0);
   18961           0 :                                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.ppInfo[cntr_ppInfo_1]));
   18962           0 :                                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.ppInfo[cntr_ppInfo_1], &size_ppInfo_3));
   18963           0 :                                 NDR_PULL_ALLOC_N(ndr, r->out.ppInfo[cntr_ppInfo_1], size_ppInfo_3);
   18964           0 :                                 _mem_save_ppInfo_3 = NDR_PULL_GET_MEM_CTX(ndr);
   18965           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ppInfo[cntr_ppInfo_1], 0);
   18966           0 :                                 for (cntr_ppInfo_3 = 0; cntr_ppInfo_3 < (size_ppInfo_3); cntr_ppInfo_3++) {
   18967           0 :                                         NDR_CHECK(ndr_pull_CLUSTER_MRR_RESPONSE(ndr, NDR_SCALARS, &r->out.ppInfo[cntr_ppInfo_1][cntr_ppInfo_3]));
   18968             :                                 }
   18969           0 :                                 for (cntr_ppInfo_3 = 0; cntr_ppInfo_3 < (size_ppInfo_3); cntr_ppInfo_3++) {
   18970           0 :                                         NDR_CHECK(ndr_pull_CLUSTER_MRR_RESPONSE(ndr, NDR_BUFFERS, &r->out.ppInfo[cntr_ppInfo_1][cntr_ppInfo_3]));
   18971             :                                 }
   18972           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppInfo_3, 0);
   18973           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppInfo_2, 0);
   18974             :                         }
   18975             :                 }
   18976           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppInfo_1, 0);
   18977           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   18978           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   18979             :                 }
   18980           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   18981           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   18982           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   18983           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   18984           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   18985           0 :                 if (r->out.ppInfo) {
   18986           0 :                         NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->out.ppInfo, 1));
   18987             :                 }
   18988           0 :                 for (cntr_ppInfo_1 = 0; cntr_ppInfo_1 < (size_ppInfo_1); cntr_ppInfo_1++) {
   18989           0 :                         if (r->out.ppInfo[cntr_ppInfo_1]) {
   18990           0 :                                 NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->out.ppInfo[cntr_ppInfo_1], 1));
   18991             :                         }
   18992           0 :                         for (cntr_ppInfo_3 = 0; cntr_ppInfo_3 < (size_ppInfo_3); cntr_ppInfo_3++) {
   18993           0 :                         }
   18994             :                 }
   18995             :         }
   18996           0 :         return NDR_ERR_SUCCESS;
   18997             : }
   18998             : 
   18999           0 : _PUBLIC_ void ndr_print_clusapi_ClusterMrr(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_ClusterMrr *r)
   19000             : {
   19001           0 :         uint32_t cntr_ppInfo_1;
   19002           0 :         uint32_t cntr_ppInfo_3;
   19003           0 :         ndr_print_struct(ndr, name, "clusapi_ClusterMrr");
   19004           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   19005           0 :         ndr->depth++;
   19006           0 :         if (flags & NDR_SET_VALUES) {
   19007           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   19008             :         }
   19009           0 :         if (flags & NDR_IN) {
   19010           0 :                 ndr_print_struct(ndr, "in", "clusapi_ClusterMrr");
   19011           0 :                 ndr->depth++;
   19012           0 :                 ndr_print_policy_handle(ndr, "hCluster", &r->in.hCluster);
   19013           0 :                 ndr_print_uint8(ndr, "fExcludeSelf", r->in.fExcludeSelf);
   19014           0 :                 ndr_print_hyper(ndr, "nodeSet", r->in.nodeSet);
   19015           0 :                 ndr_print_uint32(ndr, "dwTimeout", r->in.dwTimeout);
   19016           0 :                 ndr_print_uint32(ndr, "dwComponent", r->in.dwComponent);
   19017           0 :                 ndr_print_uint32(ndr, "dwControlCode", r->in.dwControlCode);
   19018           0 :                 ndr_print_uint32(ndr, "inSize", r->in.inSize);
   19019           0 :                 ndr_print_ptr(ndr, "pInData", r->in.pInData);
   19020           0 :                 ndr->depth++;
   19021           0 :                 if (r->in.pInData) {
   19022           0 :                         ndr_print_array_uint8(ndr, "pInData", r->in.pInData, r->in.inSize);
   19023             :                 }
   19024           0 :                 ndr->depth--;
   19025           0 :                 ndr->depth--;
   19026             :         }
   19027           0 :         if (flags & NDR_OUT) {
   19028           0 :                 ndr_print_struct(ndr, "out", "clusapi_ClusterMrr");
   19029           0 :                 ndr->depth++;
   19030           0 :                 ndr_print_ptr(ndr, "ppInfo", r->out.ppInfo);
   19031           0 :                 ndr->depth++;
   19032           0 :                 ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "ppInfo", (uint32_t)(1));
   19033           0 :                 ndr->depth++;
   19034           0 :                 for (cntr_ppInfo_1 = 0; cntr_ppInfo_1 < (1); cntr_ppInfo_1++) {
   19035           0 :                         ndr_print_ptr(ndr, "ppInfo", r->out.ppInfo[cntr_ppInfo_1]);
   19036           0 :                         ndr->depth++;
   19037           0 :                         if (r->out.ppInfo[cntr_ppInfo_1]) {
   19038           0 :                                 ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "ppInfo", (uint32_t)(1));
   19039           0 :                                 ndr->depth++;
   19040           0 :                                 for (cntr_ppInfo_3 = 0; cntr_ppInfo_3 < (1); cntr_ppInfo_3++) {
   19041           0 :                                         ndr_print_CLUSTER_MRR_RESPONSE(ndr, "ppInfo", &r->out.ppInfo[cntr_ppInfo_1][cntr_ppInfo_3]);
   19042             :                                 }
   19043           0 :                                 ndr->depth--;
   19044             :                         }
   19045           0 :                         ndr->depth--;
   19046             :                 }
   19047           0 :                 ndr->depth--;
   19048           0 :                 ndr->depth--;
   19049           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   19050           0 :                 ndr->depth++;
   19051           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   19052           0 :                 ndr->depth--;
   19053           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   19054           0 :                 ndr->depth--;
   19055             :         }
   19056           0 :         ndr->depth--;
   19057             : }
   19058             : 
   19059           0 : static enum ndr_err_code ndr_push_clusapi_CreateGroupEnum(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CreateGroupEnum *r)
   19060             : {
   19061           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   19062           0 :         if (flags & NDR_IN) {
   19063           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
   19064           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pProperties));
   19065           0 :                 if (r->in.pProperties) {
   19066           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbProperties));
   19067           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.pProperties, r->in.cbProperties));
   19068             :                 }
   19069           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbProperties));
   19070           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pRoProperties));
   19071           0 :                 if (r->in.pRoProperties) {
   19072           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbRoProperties));
   19073           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.pRoProperties, r->in.cbRoProperties));
   19074             :                 }
   19075           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbRoProperties));
   19076             :         }
   19077           0 :         if (flags & NDR_OUT) {
   19078           0 :                 if (r->out.ppResultList == NULL) {
   19079           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   19080             :                 }
   19081           0 :                 if (r->out.rpc_status == NULL) {
   19082           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   19083             :                 }
   19084           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppResultList));
   19085           0 :                 if (*r->out.ppResultList) {
   19086           0 :                         NDR_CHECK(ndr_push_GROUP_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppResultList));
   19087             :                 }
   19088           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   19089           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   19090             :         }
   19091           0 :         return NDR_ERR_SUCCESS;
   19092             : }
   19093             : 
   19094           0 : static enum ndr_err_code ndr_pull_clusapi_CreateGroupEnum(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CreateGroupEnum *r)
   19095             : {
   19096           0 :         uint32_t _ptr_pProperties;
   19097           0 :         uint32_t size_pProperties_1 = 0;
   19098           0 :         uint32_t _ptr_pRoProperties;
   19099           0 :         uint32_t size_pRoProperties_1 = 0;
   19100           0 :         uint32_t _ptr_ppResultList;
   19101           0 :         TALLOC_CTX *_mem_save_pProperties_0 = NULL;
   19102           0 :         TALLOC_CTX *_mem_save_pRoProperties_0 = NULL;
   19103           0 :         TALLOC_CTX *_mem_save_ppResultList_0 = NULL;
   19104           0 :         TALLOC_CTX *_mem_save_ppResultList_1 = NULL;
   19105           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   19106           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   19107           0 :         if (flags & NDR_IN) {
   19108           0 :                 NDR_ZERO_STRUCT(r->out);
   19109             : 
   19110           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
   19111           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pProperties));
   19112           0 :                 if (_ptr_pProperties) {
   19113           0 :                         NDR_PULL_ALLOC(ndr, r->in.pProperties);
   19114             :                 } else {
   19115           0 :                         r->in.pProperties = NULL;
   19116             :                 }
   19117           0 :                 if (r->in.pProperties) {
   19118           0 :                         _mem_save_pProperties_0 = NDR_PULL_GET_MEM_CTX(ndr);
   19119           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.pProperties, 0);
   19120           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.pProperties));
   19121           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.pProperties, &size_pProperties_1));
   19122           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.pProperties, size_pProperties_1);
   19123           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.pProperties, size_pProperties_1));
   19124           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pProperties_0, 0);
   19125             :                 }
   19126           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbProperties));
   19127           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pRoProperties));
   19128           0 :                 if (_ptr_pRoProperties) {
   19129           0 :                         NDR_PULL_ALLOC(ndr, r->in.pRoProperties);
   19130             :                 } else {
   19131           0 :                         r->in.pRoProperties = NULL;
   19132             :                 }
   19133           0 :                 if (r->in.pRoProperties) {
   19134           0 :                         _mem_save_pRoProperties_0 = NDR_PULL_GET_MEM_CTX(ndr);
   19135           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.pRoProperties, 0);
   19136           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.pRoProperties));
   19137           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.pRoProperties, &size_pRoProperties_1));
   19138           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.pRoProperties, size_pRoProperties_1);
   19139           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.pRoProperties, size_pRoProperties_1));
   19140           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pRoProperties_0, 0);
   19141             :                 }
   19142           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbRoProperties));
   19143           0 :                 NDR_PULL_ALLOC(ndr, r->out.ppResultList);
   19144           0 :                 NDR_ZERO_STRUCTP(r->out.ppResultList);
   19145           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   19146           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   19147           0 :                 if (r->in.pProperties) {
   19148           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.pProperties, r->in.cbProperties));
   19149             :                 }
   19150           0 :                 if (r->in.pRoProperties) {
   19151           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.pRoProperties, r->in.cbRoProperties));
   19152             :                 }
   19153             :         }
   19154           0 :         if (flags & NDR_OUT) {
   19155             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   19156             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   19157           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   19158           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppResultList);
   19159             :                 }
   19160           0 :                 _mem_save_ppResultList_0 = NDR_PULL_GET_MEM_CTX(ndr);
   19161           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ppResultList, LIBNDR_FLAG_REF_ALLOC);
   19162           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppResultList));
   19163           0 :                 if (_ptr_ppResultList) {
   19164           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ppResultList);
   19165             :                 } else {
   19166           0 :                         *r->out.ppResultList = NULL;
   19167             :                 }
   19168           0 :                 if (*r->out.ppResultList) {
   19169           0 :                         _mem_save_ppResultList_1 = NDR_PULL_GET_MEM_CTX(ndr);
   19170           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppResultList, 0);
   19171           0 :                         NDR_CHECK(ndr_pull_GROUP_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppResultList));
   19172           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppResultList_1, 0);
   19173             :                 }
   19174           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppResultList_0, LIBNDR_FLAG_REF_ALLOC);
   19175           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   19176           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   19177             :                 }
   19178           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   19179           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   19180           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   19181           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   19182           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   19183             :         }
   19184           0 :         return NDR_ERR_SUCCESS;
   19185             : }
   19186             : 
   19187           0 : _PUBLIC_ void ndr_print_clusapi_CreateGroupEnum(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CreateGroupEnum *r)
   19188             : {
   19189           0 :         ndr_print_struct(ndr, name, "clusapi_CreateGroupEnum");
   19190           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   19191           0 :         ndr->depth++;
   19192           0 :         if (flags & NDR_SET_VALUES) {
   19193           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   19194             :         }
   19195           0 :         if (flags & NDR_IN) {
   19196           0 :                 ndr_print_struct(ndr, "in", "clusapi_CreateGroupEnum");
   19197           0 :                 ndr->depth++;
   19198           0 :                 ndr_print_policy_handle(ndr, "hCluster", &r->in.hCluster);
   19199           0 :                 ndr_print_ptr(ndr, "pProperties", r->in.pProperties);
   19200           0 :                 ndr->depth++;
   19201           0 :                 if (r->in.pProperties) {
   19202           0 :                         ndr_print_array_uint8(ndr, "pProperties", r->in.pProperties, r->in.cbProperties);
   19203             :                 }
   19204           0 :                 ndr->depth--;
   19205           0 :                 ndr_print_uint32(ndr, "cbProperties", r->in.cbProperties);
   19206           0 :                 ndr_print_ptr(ndr, "pRoProperties", r->in.pRoProperties);
   19207           0 :                 ndr->depth++;
   19208           0 :                 if (r->in.pRoProperties) {
   19209           0 :                         ndr_print_array_uint8(ndr, "pRoProperties", r->in.pRoProperties, r->in.cbRoProperties);
   19210             :                 }
   19211           0 :                 ndr->depth--;
   19212           0 :                 ndr_print_uint32(ndr, "cbRoProperties", r->in.cbRoProperties);
   19213           0 :                 ndr->depth--;
   19214             :         }
   19215           0 :         if (flags & NDR_OUT) {
   19216           0 :                 ndr_print_struct(ndr, "out", "clusapi_CreateGroupEnum");
   19217           0 :                 ndr->depth++;
   19218           0 :                 ndr_print_ptr(ndr, "ppResultList", r->out.ppResultList);
   19219           0 :                 ndr->depth++;
   19220           0 :                 ndr_print_ptr(ndr, "ppResultList", *r->out.ppResultList);
   19221           0 :                 ndr->depth++;
   19222           0 :                 if (*r->out.ppResultList) {
   19223           0 :                         ndr_print_GROUP_ENUM_LIST(ndr, "ppResultList", *r->out.ppResultList);
   19224             :                 }
   19225           0 :                 ndr->depth--;
   19226           0 :                 ndr->depth--;
   19227           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   19228           0 :                 ndr->depth++;
   19229           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   19230           0 :                 ndr->depth--;
   19231           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   19232           0 :                 ndr->depth--;
   19233             :         }
   19234           0 :         ndr->depth--;
   19235             : }
   19236             : 
   19237           0 : static enum ndr_err_code ndr_push_clusapi_CreateResourceEnum(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CreateResourceEnum *r)
   19238             : {
   19239           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   19240           0 :         if (flags & NDR_IN) {
   19241           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
   19242           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pProperties));
   19243           0 :                 if (r->in.pProperties) {
   19244           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbProperties));
   19245           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.pProperties, r->in.cbProperties));
   19246             :                 }
   19247           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbProperties));
   19248           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.pRoProperties));
   19249           0 :                 if (r->in.pRoProperties) {
   19250           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbRoProperties));
   19251           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.pRoProperties, r->in.cbRoProperties));
   19252             :                 }
   19253           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbRoProperties));
   19254             :         }
   19255           0 :         if (flags & NDR_OUT) {
   19256           0 :                 if (r->out.ppResultList == NULL) {
   19257           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   19258             :                 }
   19259           0 :                 if (r->out.rpc_status == NULL) {
   19260           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   19261             :                 }
   19262           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ppResultList));
   19263           0 :                 if (*r->out.ppResultList) {
   19264           0 :                         NDR_CHECK(ndr_push_RESOURCE_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppResultList));
   19265             :                 }
   19266           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   19267           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   19268             :         }
   19269           0 :         return NDR_ERR_SUCCESS;
   19270             : }
   19271             : 
   19272           0 : static enum ndr_err_code ndr_pull_clusapi_CreateResourceEnum(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CreateResourceEnum *r)
   19273             : {
   19274           0 :         uint32_t _ptr_pProperties;
   19275           0 :         uint32_t size_pProperties_1 = 0;
   19276           0 :         uint32_t _ptr_pRoProperties;
   19277           0 :         uint32_t size_pRoProperties_1 = 0;
   19278           0 :         uint32_t _ptr_ppResultList;
   19279           0 :         TALLOC_CTX *_mem_save_pProperties_0 = NULL;
   19280           0 :         TALLOC_CTX *_mem_save_pRoProperties_0 = NULL;
   19281           0 :         TALLOC_CTX *_mem_save_ppResultList_0 = NULL;
   19282           0 :         TALLOC_CTX *_mem_save_ppResultList_1 = NULL;
   19283           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   19284           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   19285           0 :         if (flags & NDR_IN) {
   19286           0 :                 NDR_ZERO_STRUCT(r->out);
   19287             : 
   19288           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
   19289           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pProperties));
   19290           0 :                 if (_ptr_pProperties) {
   19291           0 :                         NDR_PULL_ALLOC(ndr, r->in.pProperties);
   19292             :                 } else {
   19293           0 :                         r->in.pProperties = NULL;
   19294             :                 }
   19295           0 :                 if (r->in.pProperties) {
   19296           0 :                         _mem_save_pProperties_0 = NDR_PULL_GET_MEM_CTX(ndr);
   19297           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.pProperties, 0);
   19298           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.pProperties));
   19299           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.pProperties, &size_pProperties_1));
   19300           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.pProperties, size_pProperties_1);
   19301           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.pProperties, size_pProperties_1));
   19302           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pProperties_0, 0);
   19303             :                 }
   19304           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbProperties));
   19305           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pRoProperties));
   19306           0 :                 if (_ptr_pRoProperties) {
   19307           0 :                         NDR_PULL_ALLOC(ndr, r->in.pRoProperties);
   19308             :                 } else {
   19309           0 :                         r->in.pRoProperties = NULL;
   19310             :                 }
   19311           0 :                 if (r->in.pRoProperties) {
   19312           0 :                         _mem_save_pRoProperties_0 = NDR_PULL_GET_MEM_CTX(ndr);
   19313           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.pRoProperties, 0);
   19314           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.pRoProperties));
   19315           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.pRoProperties, &size_pRoProperties_1));
   19316           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.pRoProperties, size_pRoProperties_1);
   19317           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.pRoProperties, size_pRoProperties_1));
   19318           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pRoProperties_0, 0);
   19319             :                 }
   19320           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbRoProperties));
   19321           0 :                 NDR_PULL_ALLOC(ndr, r->out.ppResultList);
   19322           0 :                 NDR_ZERO_STRUCTP(r->out.ppResultList);
   19323           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   19324           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   19325           0 :                 if (r->in.pProperties) {
   19326           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.pProperties, r->in.cbProperties));
   19327             :                 }
   19328           0 :                 if (r->in.pRoProperties) {
   19329           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.pRoProperties, r->in.cbRoProperties));
   19330             :                 }
   19331             :         }
   19332           0 :         if (flags & NDR_OUT) {
   19333             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   19334             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   19335           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   19336           0 :                         NDR_PULL_ALLOC(ndr, r->out.ppResultList);
   19337             :                 }
   19338           0 :                 _mem_save_ppResultList_0 = NDR_PULL_GET_MEM_CTX(ndr);
   19339           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ppResultList, LIBNDR_FLAG_REF_ALLOC);
   19340           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ppResultList));
   19341           0 :                 if (_ptr_ppResultList) {
   19342           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ppResultList);
   19343             :                 } else {
   19344           0 :                         *r->out.ppResultList = NULL;
   19345             :                 }
   19346           0 :                 if (*r->out.ppResultList) {
   19347           0 :                         _mem_save_ppResultList_1 = NDR_PULL_GET_MEM_CTX(ndr);
   19348           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ppResultList, 0);
   19349           0 :                         NDR_CHECK(ndr_pull_RESOURCE_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ppResultList));
   19350           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppResultList_1, 0);
   19351             :                 }
   19352           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ppResultList_0, LIBNDR_FLAG_REF_ALLOC);
   19353           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   19354           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   19355             :                 }
   19356           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   19357           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   19358           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   19359           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   19360           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   19361             :         }
   19362           0 :         return NDR_ERR_SUCCESS;
   19363             : }
   19364             : 
   19365           0 : _PUBLIC_ void ndr_print_clusapi_CreateResourceEnum(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CreateResourceEnum *r)
   19366             : {
   19367           0 :         ndr_print_struct(ndr, name, "clusapi_CreateResourceEnum");
   19368           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   19369           0 :         ndr->depth++;
   19370           0 :         if (flags & NDR_SET_VALUES) {
   19371           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   19372             :         }
   19373           0 :         if (flags & NDR_IN) {
   19374           0 :                 ndr_print_struct(ndr, "in", "clusapi_CreateResourceEnum");
   19375           0 :                 ndr->depth++;
   19376           0 :                 ndr_print_policy_handle(ndr, "hCluster", &r->in.hCluster);
   19377           0 :                 ndr_print_ptr(ndr, "pProperties", r->in.pProperties);
   19378           0 :                 ndr->depth++;
   19379           0 :                 if (r->in.pProperties) {
   19380           0 :                         ndr_print_array_uint8(ndr, "pProperties", r->in.pProperties, r->in.cbProperties);
   19381             :                 }
   19382           0 :                 ndr->depth--;
   19383           0 :                 ndr_print_uint32(ndr, "cbProperties", r->in.cbProperties);
   19384           0 :                 ndr_print_ptr(ndr, "pRoProperties", r->in.pRoProperties);
   19385           0 :                 ndr->depth++;
   19386           0 :                 if (r->in.pRoProperties) {
   19387           0 :                         ndr_print_array_uint8(ndr, "pRoProperties", r->in.pRoProperties, r->in.cbRoProperties);
   19388             :                 }
   19389           0 :                 ndr->depth--;
   19390           0 :                 ndr_print_uint32(ndr, "cbRoProperties", r->in.cbRoProperties);
   19391           0 :                 ndr->depth--;
   19392             :         }
   19393           0 :         if (flags & NDR_OUT) {
   19394           0 :                 ndr_print_struct(ndr, "out", "clusapi_CreateResourceEnum");
   19395           0 :                 ndr->depth++;
   19396           0 :                 ndr_print_ptr(ndr, "ppResultList", r->out.ppResultList);
   19397           0 :                 ndr->depth++;
   19398           0 :                 ndr_print_ptr(ndr, "ppResultList", *r->out.ppResultList);
   19399           0 :                 ndr->depth++;
   19400           0 :                 if (*r->out.ppResultList) {
   19401           0 :                         ndr_print_RESOURCE_ENUM_LIST(ndr, "ppResultList", *r->out.ppResultList);
   19402             :                 }
   19403           0 :                 ndr->depth--;
   19404           0 :                 ndr->depth--;
   19405           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   19406           0 :                 ndr->depth++;
   19407           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   19408           0 :                 ndr->depth--;
   19409           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   19410           0 :                 ndr->depth--;
   19411             :         }
   19412           0 :         ndr->depth--;
   19413             : }
   19414             : 
   19415           0 : static enum ndr_err_code ndr_push_clusapi_ExecuteReadBatch(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_ExecuteReadBatch *r)
   19416             : {
   19417           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   19418           0 :         if (flags & NDR_IN) {
   19419           0 :                 if (r->in.lpInData == NULL) {
   19420           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   19421             :                 }
   19422           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
   19423           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbInData));
   19424           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbInData));
   19425           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInData, r->in.cbInData));
   19426             :         }
   19427           0 :         if (flags & NDR_OUT) {
   19428           0 :                 if (r->out.cbOutData == NULL) {
   19429           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   19430             :                 }
   19431           0 :                 if (r->out.lpOutData == NULL) {
   19432           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   19433             :                 }
   19434           0 :                 if (r->out.rpc_status == NULL) {
   19435           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   19436             :                 }
   19437           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.cbOutData));
   19438           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lpOutData));
   19439           0 :                 if (*r->out.lpOutData) {
   19440           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.cbOutData));
   19441           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, *r->out.lpOutData, *r->out.cbOutData));
   19442             :                 }
   19443           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   19444           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   19445             :         }
   19446           0 :         return NDR_ERR_SUCCESS;
   19447             : }
   19448             : 
   19449           0 : static enum ndr_err_code ndr_pull_clusapi_ExecuteReadBatch(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_ExecuteReadBatch *r)
   19450             : {
   19451           0 :         uint32_t size_lpInData_1 = 0;
   19452           0 :         uint32_t _ptr_lpOutData;
   19453           0 :         uint32_t size_lpOutData_2 = 0;
   19454           0 :         TALLOC_CTX *_mem_save_cbOutData_0 = NULL;
   19455           0 :         TALLOC_CTX *_mem_save_lpOutData_0 = NULL;
   19456           0 :         TALLOC_CTX *_mem_save_lpOutData_1 = NULL;
   19457           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   19458           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   19459           0 :         if (flags & NDR_IN) {
   19460           0 :                 NDR_ZERO_STRUCT(r->out);
   19461             : 
   19462           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
   19463           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbInData));
   19464           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInData));
   19465           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInData, &size_lpInData_1));
   19466           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   19467           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.lpInData, size_lpInData_1);
   19468             :                 }
   19469           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInData, size_lpInData_1));
   19470           0 :                 NDR_PULL_ALLOC(ndr, r->out.cbOutData);
   19471           0 :                 NDR_ZERO_STRUCTP(r->out.cbOutData);
   19472           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpOutData);
   19473           0 :                 NDR_ZERO_STRUCTP(r->out.lpOutData);
   19474           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   19475           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   19476           0 :                 if (r->in.lpInData) {
   19477           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInData, r->in.cbInData));
   19478             :                 }
   19479             :         }
   19480           0 :         if (flags & NDR_OUT) {
   19481             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   19482             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   19483           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   19484           0 :                         NDR_PULL_ALLOC(ndr, r->out.cbOutData);
   19485             :                 }
   19486           0 :                 _mem_save_cbOutData_0 = NDR_PULL_GET_MEM_CTX(ndr);
   19487           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.cbOutData, LIBNDR_FLAG_REF_ALLOC);
   19488           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.cbOutData));
   19489           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_cbOutData_0, LIBNDR_FLAG_REF_ALLOC);
   19490           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   19491           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpOutData);
   19492             :                 }
   19493           0 :                 _mem_save_lpOutData_0 = NDR_PULL_GET_MEM_CTX(ndr);
   19494           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpOutData, LIBNDR_FLAG_REF_ALLOC);
   19495           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpOutData));
   19496           0 :                 if (_ptr_lpOutData) {
   19497           0 :                         NDR_PULL_ALLOC(ndr, *r->out.lpOutData);
   19498             :                 } else {
   19499           0 :                         *r->out.lpOutData = NULL;
   19500             :                 }
   19501           0 :                 if (*r->out.lpOutData) {
   19502           0 :                         _mem_save_lpOutData_1 = NDR_PULL_GET_MEM_CTX(ndr);
   19503           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.lpOutData, 0);
   19504           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.lpOutData));
   19505           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)r->out.lpOutData, &size_lpOutData_2));
   19506           0 :                         NDR_PULL_ALLOC_N(ndr, *r->out.lpOutData, size_lpOutData_2);
   19507           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, *r->out.lpOutData, size_lpOutData_2));
   19508           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpOutData_1, 0);
   19509             :                 }
   19510           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpOutData_0, LIBNDR_FLAG_REF_ALLOC);
   19511           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   19512           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   19513             :                 }
   19514           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   19515           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   19516           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   19517           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   19518           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   19519           0 :                 if (*r->out.lpOutData) {
   19520           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)r->out.lpOutData, *r->out.cbOutData));
   19521             :                 }
   19522             :         }
   19523           0 :         return NDR_ERR_SUCCESS;
   19524             : }
   19525             : 
   19526           0 : _PUBLIC_ void ndr_print_clusapi_ExecuteReadBatch(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_ExecuteReadBatch *r)
   19527             : {
   19528           0 :         ndr_print_struct(ndr, name, "clusapi_ExecuteReadBatch");
   19529           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   19530           0 :         ndr->depth++;
   19531           0 :         if (flags & NDR_SET_VALUES) {
   19532           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   19533             :         }
   19534           0 :         if (flags & NDR_IN) {
   19535           0 :                 ndr_print_struct(ndr, "in", "clusapi_ExecuteReadBatch");
   19536           0 :                 ndr->depth++;
   19537           0 :                 ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
   19538           0 :                 ndr_print_uint32(ndr, "cbInData", r->in.cbInData);
   19539           0 :                 ndr_print_ptr(ndr, "lpInData", r->in.lpInData);
   19540           0 :                 ndr->depth++;
   19541           0 :                 ndr_print_array_uint8(ndr, "lpInData", r->in.lpInData, r->in.cbInData);
   19542           0 :                 ndr->depth--;
   19543           0 :                 ndr->depth--;
   19544             :         }
   19545           0 :         if (flags & NDR_OUT) {
   19546           0 :                 ndr_print_struct(ndr, "out", "clusapi_ExecuteReadBatch");
   19547           0 :                 ndr->depth++;
   19548           0 :                 ndr_print_ptr(ndr, "cbOutData", r->out.cbOutData);
   19549           0 :                 ndr->depth++;
   19550           0 :                 ndr_print_uint32(ndr, "cbOutData", *r->out.cbOutData);
   19551           0 :                 ndr->depth--;
   19552           0 :                 ndr_print_ptr(ndr, "lpOutData", r->out.lpOutData);
   19553           0 :                 ndr->depth++;
   19554           0 :                 ndr_print_ptr(ndr, "lpOutData", *r->out.lpOutData);
   19555           0 :                 ndr->depth++;
   19556           0 :                 if (*r->out.lpOutData) {
   19557           0 :                         ndr_print_array_uint8(ndr, "lpOutData", *r->out.lpOutData, *r->out.cbOutData);
   19558             :                 }
   19559           0 :                 ndr->depth--;
   19560           0 :                 ndr->depth--;
   19561           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   19562           0 :                 ndr->depth++;
   19563           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   19564           0 :                 ndr->depth--;
   19565           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   19566           0 :                 ndr->depth--;
   19567             :         }
   19568           0 :         ndr->depth--;
   19569             : }
   19570             : 
   19571           0 : static enum ndr_err_code ndr_push_clusapi_RestartResource(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_RestartResource *r)
   19572             : {
   19573           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   19574           0 :         if (flags & NDR_IN) {
   19575           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
   19576           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwFlags));
   19577             :         }
   19578           0 :         if (flags & NDR_OUT) {
   19579           0 :                 if (r->out.rpc_status == NULL) {
   19580           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   19581             :                 }
   19582           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   19583           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   19584             :         }
   19585           0 :         return NDR_ERR_SUCCESS;
   19586             : }
   19587             : 
   19588           0 : static enum ndr_err_code ndr_pull_clusapi_RestartResource(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_RestartResource *r)
   19589             : {
   19590           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   19591           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   19592           0 :         if (flags & NDR_IN) {
   19593           0 :                 NDR_ZERO_STRUCT(r->out);
   19594             : 
   19595           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
   19596           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwFlags));
   19597           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   19598           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   19599             :         }
   19600           0 :         if (flags & NDR_OUT) {
   19601             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   19602             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   19603           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   19604           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   19605             :                 }
   19606           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   19607           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   19608           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   19609           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   19610           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   19611             :         }
   19612           0 :         return NDR_ERR_SUCCESS;
   19613             : }
   19614             : 
   19615           0 : _PUBLIC_ void ndr_print_clusapi_RestartResource(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_RestartResource *r)
   19616             : {
   19617           0 :         ndr_print_struct(ndr, name, "clusapi_RestartResource");
   19618           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   19619           0 :         ndr->depth++;
   19620           0 :         if (flags & NDR_SET_VALUES) {
   19621           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   19622             :         }
   19623           0 :         if (flags & NDR_IN) {
   19624           0 :                 ndr_print_struct(ndr, "in", "clusapi_RestartResource");
   19625           0 :                 ndr->depth++;
   19626           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
   19627           0 :                 ndr_print_uint32(ndr, "dwFlags", r->in.dwFlags);
   19628           0 :                 ndr->depth--;
   19629             :         }
   19630           0 :         if (flags & NDR_OUT) {
   19631           0 :                 ndr_print_struct(ndr, "out", "clusapi_RestartResource");
   19632           0 :                 ndr->depth++;
   19633           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   19634           0 :                 ndr->depth++;
   19635           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   19636           0 :                 ndr->depth--;
   19637           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   19638           0 :                 ndr->depth--;
   19639             :         }
   19640           0 :         ndr->depth--;
   19641             : }
   19642             : 
   19643           0 : static enum ndr_err_code ndr_push_clusapi_GetNotifyAsync(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_GetNotifyAsync *r)
   19644             : {
   19645           0 :         uint32_t cntr_Notifications_2;
   19646           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   19647           0 :         if (flags & NDR_IN) {
   19648           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
   19649             :         }
   19650           0 :         if (flags & NDR_OUT) {
   19651           0 :                 if (r->out.Notifications == NULL) {
   19652           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   19653             :                 }
   19654           0 :                 if (r->out.dwNumNotifications == NULL) {
   19655           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   19656             :                 }
   19657           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.Notifications));
   19658           0 :                 if (*r->out.Notifications) {
   19659           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.dwNumNotifications));
   19660           0 :                         for (cntr_Notifications_2 = 0; cntr_Notifications_2 < (*r->out.dwNumNotifications); cntr_Notifications_2++) {
   19661           0 :                                 NDR_CHECK(ndr_push_NOTIFICATION_DATA_ASYNC_RPC(ndr, NDR_SCALARS, &(*r->out.Notifications)[cntr_Notifications_2]));
   19662             :                         }
   19663           0 :                         for (cntr_Notifications_2 = 0; cntr_Notifications_2 < (*r->out.dwNumNotifications); cntr_Notifications_2++) {
   19664           0 :                                 NDR_CHECK(ndr_push_NOTIFICATION_DATA_ASYNC_RPC(ndr, NDR_BUFFERS, &(*r->out.Notifications)[cntr_Notifications_2]));
   19665             :                         }
   19666             :                 }
   19667           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.dwNumNotifications));
   19668           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   19669             :         }
   19670           0 :         return NDR_ERR_SUCCESS;
   19671             : }
   19672             : 
   19673           0 : static enum ndr_err_code ndr_pull_clusapi_GetNotifyAsync(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_GetNotifyAsync *r)
   19674             : {
   19675           0 :         uint32_t _ptr_Notifications;
   19676           0 :         uint32_t size_Notifications_2 = 0;
   19677           0 :         uint32_t cntr_Notifications_2;
   19678           0 :         TALLOC_CTX *_mem_save_Notifications_0 = NULL;
   19679           0 :         TALLOC_CTX *_mem_save_Notifications_1 = NULL;
   19680           0 :         TALLOC_CTX *_mem_save_Notifications_2 = NULL;
   19681           0 :         TALLOC_CTX *_mem_save_dwNumNotifications_0 = NULL;
   19682           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   19683           0 :         if (flags & NDR_IN) {
   19684           0 :                 NDR_ZERO_STRUCT(r->out);
   19685             : 
   19686           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
   19687           0 :                 NDR_PULL_ALLOC(ndr, r->out.Notifications);
   19688           0 :                 NDR_ZERO_STRUCTP(r->out.Notifications);
   19689           0 :                 NDR_PULL_ALLOC(ndr, r->out.dwNumNotifications);
   19690           0 :                 NDR_ZERO_STRUCTP(r->out.dwNumNotifications);
   19691             :         }
   19692           0 :         if (flags & NDR_OUT) {
   19693             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   19694             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   19695           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   19696           0 :                         NDR_PULL_ALLOC(ndr, r->out.Notifications);
   19697             :                 }
   19698           0 :                 _mem_save_Notifications_0 = NDR_PULL_GET_MEM_CTX(ndr);
   19699           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Notifications, LIBNDR_FLAG_REF_ALLOC);
   19700           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_Notifications));
   19701           0 :                 if (_ptr_Notifications) {
   19702           0 :                         NDR_PULL_ALLOC(ndr, *r->out.Notifications);
   19703             :                 } else {
   19704           0 :                         *r->out.Notifications = NULL;
   19705             :                 }
   19706           0 :                 if (*r->out.Notifications) {
   19707           0 :                         _mem_save_Notifications_1 = NDR_PULL_GET_MEM_CTX(ndr);
   19708           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.Notifications, 0);
   19709           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.Notifications));
   19710           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)r->out.Notifications, &size_Notifications_2));
   19711           0 :                         NDR_PULL_ALLOC_N(ndr, *r->out.Notifications, size_Notifications_2);
   19712           0 :                         _mem_save_Notifications_2 = NDR_PULL_GET_MEM_CTX(ndr);
   19713           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.Notifications, 0);
   19714           0 :                         for (cntr_Notifications_2 = 0; cntr_Notifications_2 < (size_Notifications_2); cntr_Notifications_2++) {
   19715           0 :                                 NDR_CHECK(ndr_pull_NOTIFICATION_DATA_ASYNC_RPC(ndr, NDR_SCALARS, &(*r->out.Notifications)[cntr_Notifications_2]));
   19716             :                         }
   19717           0 :                         for (cntr_Notifications_2 = 0; cntr_Notifications_2 < (size_Notifications_2); cntr_Notifications_2++) {
   19718           0 :                                 NDR_CHECK(ndr_pull_NOTIFICATION_DATA_ASYNC_RPC(ndr, NDR_BUFFERS, &(*r->out.Notifications)[cntr_Notifications_2]));
   19719             :                         }
   19720           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Notifications_2, 0);
   19721           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Notifications_1, 0);
   19722             :                 }
   19723           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Notifications_0, LIBNDR_FLAG_REF_ALLOC);
   19724           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   19725           0 :                         NDR_PULL_ALLOC(ndr, r->out.dwNumNotifications);
   19726             :                 }
   19727           0 :                 _mem_save_dwNumNotifications_0 = NDR_PULL_GET_MEM_CTX(ndr);
   19728           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.dwNumNotifications, LIBNDR_FLAG_REF_ALLOC);
   19729           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.dwNumNotifications));
   19730           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_dwNumNotifications_0, LIBNDR_FLAG_REF_ALLOC);
   19731           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   19732           0 :                 if (*r->out.Notifications) {
   19733           0 :                         NDR_CHECK(ndr_check_array_size(ndr, (void*)r->out.Notifications, *r->out.dwNumNotifications));
   19734             :                 }
   19735           0 :                 for (cntr_Notifications_2 = 0; cntr_Notifications_2 < (size_Notifications_2); cntr_Notifications_2++) {
   19736           0 :                 }
   19737             :         }
   19738           0 :         return NDR_ERR_SUCCESS;
   19739             : }
   19740             : 
   19741           0 : _PUBLIC_ void ndr_print_clusapi_GetNotifyAsync(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_GetNotifyAsync *r)
   19742             : {
   19743           0 :         uint32_t cntr_Notifications_2;
   19744           0 :         ndr_print_struct(ndr, name, "clusapi_GetNotifyAsync");
   19745           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   19746           0 :         ndr->depth++;
   19747           0 :         if (flags & NDR_SET_VALUES) {
   19748           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   19749             :         }
   19750           0 :         if (flags & NDR_IN) {
   19751           0 :                 ndr_print_struct(ndr, "in", "clusapi_GetNotifyAsync");
   19752           0 :                 ndr->depth++;
   19753           0 :                 ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
   19754           0 :                 ndr->depth--;
   19755             :         }
   19756           0 :         if (flags & NDR_OUT) {
   19757           0 :                 ndr_print_struct(ndr, "out", "clusapi_GetNotifyAsync");
   19758           0 :                 ndr->depth++;
   19759           0 :                 ndr_print_ptr(ndr, "Notifications", r->out.Notifications);
   19760           0 :                 ndr->depth++;
   19761           0 :                 ndr_print_ptr(ndr, "Notifications", *r->out.Notifications);
   19762           0 :                 ndr->depth++;
   19763           0 :                 if (*r->out.Notifications) {
   19764           0 :                         ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "Notifications", (uint32_t)(*r->out.dwNumNotifications));
   19765           0 :                         ndr->depth++;
   19766           0 :                         for (cntr_Notifications_2 = 0; cntr_Notifications_2 < (*r->out.dwNumNotifications); cntr_Notifications_2++) {
   19767           0 :                                 ndr_print_NOTIFICATION_DATA_ASYNC_RPC(ndr, "Notifications", &(*r->out.Notifications)[cntr_Notifications_2]);
   19768             :                         }
   19769           0 :                         ndr->depth--;
   19770             :                 }
   19771           0 :                 ndr->depth--;
   19772           0 :                 ndr->depth--;
   19773           0 :                 ndr_print_ptr(ndr, "dwNumNotifications", r->out.dwNumNotifications);
   19774           0 :                 ndr->depth++;
   19775           0 :                 ndr_print_uint32(ndr, "dwNumNotifications", *r->out.dwNumNotifications);
   19776           0 :                 ndr->depth--;
   19777           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   19778           0 :                 ndr->depth--;
   19779             :         }
   19780           0 :         ndr->depth--;
   19781             : }
   19782             : 
   19783           0 : static enum ndr_err_code ndr_push_Opnum148NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct Opnum148NotUsedOnWire *r)
   19784             : {
   19785           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   19786           0 :         if (flags & NDR_IN) {
   19787           0 :         }
   19788           0 :         if (flags & NDR_OUT) {
   19789           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   19790             :         }
   19791           0 :         return NDR_ERR_SUCCESS;
   19792             : }
   19793             : 
   19794           0 : static enum ndr_err_code ndr_pull_Opnum148NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct Opnum148NotUsedOnWire *r)
   19795             : {
   19796           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   19797           0 :         if (flags & NDR_IN) {
   19798           0 :         }
   19799           0 :         if (flags & NDR_OUT) {
   19800             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   19801             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   19802           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   19803             :         }
   19804           0 :         return NDR_ERR_SUCCESS;
   19805             : }
   19806             : 
   19807           0 : _PUBLIC_ void ndr_print_Opnum148NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct Opnum148NotUsedOnWire *r)
   19808             : {
   19809           0 :         ndr_print_struct(ndr, name, "Opnum148NotUsedOnWire");
   19810           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   19811           0 :         ndr->depth++;
   19812           0 :         if (flags & NDR_SET_VALUES) {
   19813           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   19814             :         }
   19815           0 :         if (flags & NDR_IN) {
   19816           0 :                 ndr_print_struct(ndr, "in", "Opnum148NotUsedOnWire");
   19817           0 :                 ndr->depth++;
   19818           0 :                 ndr->depth--;
   19819             :         }
   19820           0 :         if (flags & NDR_OUT) {
   19821           0 :                 ndr_print_struct(ndr, "out", "Opnum148NotUsedOnWire");
   19822           0 :                 ndr->depth++;
   19823           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   19824           0 :                 ndr->depth--;
   19825             :         }
   19826           0 :         ndr->depth--;
   19827             : }
   19828             : 
   19829           0 : static enum ndr_err_code ndr_push_Opnum149otUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct Opnum149otUsedOnWire *r)
   19830             : {
   19831           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   19832           0 :         if (flags & NDR_IN) {
   19833           0 :         }
   19834           0 :         if (flags & NDR_OUT) {
   19835           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   19836             :         }
   19837           0 :         return NDR_ERR_SUCCESS;
   19838             : }
   19839             : 
   19840           0 : static enum ndr_err_code ndr_pull_Opnum149otUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct Opnum149otUsedOnWire *r)
   19841             : {
   19842           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   19843           0 :         if (flags & NDR_IN) {
   19844           0 :         }
   19845           0 :         if (flags & NDR_OUT) {
   19846             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   19847             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   19848           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   19849             :         }
   19850           0 :         return NDR_ERR_SUCCESS;
   19851             : }
   19852             : 
   19853           0 : _PUBLIC_ void ndr_print_Opnum149otUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct Opnum149otUsedOnWire *r)
   19854             : {
   19855           0 :         ndr_print_struct(ndr, name, "Opnum149otUsedOnWire");
   19856           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   19857           0 :         ndr->depth++;
   19858           0 :         if (flags & NDR_SET_VALUES) {
   19859           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   19860             :         }
   19861           0 :         if (flags & NDR_IN) {
   19862           0 :                 ndr_print_struct(ndr, "in", "Opnum149otUsedOnWire");
   19863           0 :                 ndr->depth++;
   19864           0 :                 ndr->depth--;
   19865             :         }
   19866           0 :         if (flags & NDR_OUT) {
   19867           0 :                 ndr_print_struct(ndr, "out", "Opnum149otUsedOnWire");
   19868           0 :                 ndr->depth++;
   19869           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   19870           0 :                 ndr->depth--;
   19871             :         }
   19872           0 :         ndr->depth--;
   19873             : }
   19874             : 
   19875           0 : static enum ndr_err_code ndr_push_Opnum150NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct Opnum150NotUsedOnWire *r)
   19876             : {
   19877           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   19878           0 :         if (flags & NDR_IN) {
   19879           0 :         }
   19880           0 :         if (flags & NDR_OUT) {
   19881           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   19882             :         }
   19883           0 :         return NDR_ERR_SUCCESS;
   19884             : }
   19885             : 
   19886           0 : static enum ndr_err_code ndr_pull_Opnum150NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct Opnum150NotUsedOnWire *r)
   19887             : {
   19888           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   19889           0 :         if (flags & NDR_IN) {
   19890           0 :         }
   19891           0 :         if (flags & NDR_OUT) {
   19892             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   19893             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   19894           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   19895             :         }
   19896           0 :         return NDR_ERR_SUCCESS;
   19897             : }
   19898             : 
   19899           0 : _PUBLIC_ void ndr_print_Opnum150NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct Opnum150NotUsedOnWire *r)
   19900             : {
   19901           0 :         ndr_print_struct(ndr, name, "Opnum150NotUsedOnWire");
   19902           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   19903           0 :         ndr->depth++;
   19904           0 :         if (flags & NDR_SET_VALUES) {
   19905           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   19906             :         }
   19907           0 :         if (flags & NDR_IN) {
   19908           0 :                 ndr_print_struct(ndr, "in", "Opnum150NotUsedOnWire");
   19909           0 :                 ndr->depth++;
   19910           0 :                 ndr->depth--;
   19911             :         }
   19912           0 :         if (flags & NDR_OUT) {
   19913           0 :                 ndr_print_struct(ndr, "out", "Opnum150NotUsedOnWire");
   19914           0 :                 ndr->depth++;
   19915           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   19916           0 :                 ndr->depth--;
   19917             :         }
   19918           0 :         ndr->depth--;
   19919             : }
   19920             : 
   19921           0 : static enum ndr_err_code ndr_push_Opnum151NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct Opnum151NotUsedOnWire *r)
   19922             : {
   19923           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   19924           0 :         if (flags & NDR_IN) {
   19925           0 :         }
   19926           0 :         if (flags & NDR_OUT) {
   19927           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   19928             :         }
   19929           0 :         return NDR_ERR_SUCCESS;
   19930             : }
   19931             : 
   19932           0 : static enum ndr_err_code ndr_pull_Opnum151NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct Opnum151NotUsedOnWire *r)
   19933             : {
   19934           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   19935           0 :         if (flags & NDR_IN) {
   19936           0 :         }
   19937           0 :         if (flags & NDR_OUT) {
   19938             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   19939             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   19940           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   19941             :         }
   19942           0 :         return NDR_ERR_SUCCESS;
   19943             : }
   19944             : 
   19945           0 : _PUBLIC_ void ndr_print_Opnum151NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct Opnum151NotUsedOnWire *r)
   19946             : {
   19947           0 :         ndr_print_struct(ndr, name, "Opnum151NotUsedOnWire");
   19948           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   19949           0 :         ndr->depth++;
   19950           0 :         if (flags & NDR_SET_VALUES) {
   19951           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   19952             :         }
   19953           0 :         if (flags & NDR_IN) {
   19954           0 :                 ndr_print_struct(ndr, "in", "Opnum151NotUsedOnWire");
   19955           0 :                 ndr->depth++;
   19956           0 :                 ndr->depth--;
   19957             :         }
   19958           0 :         if (flags & NDR_OUT) {
   19959           0 :                 ndr_print_struct(ndr, "out", "Opnum151NotUsedOnWire");
   19960           0 :                 ndr->depth++;
   19961           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   19962           0 :                 ndr->depth--;
   19963             :         }
   19964           0 :         ndr->depth--;
   19965             : }
   19966             : 
   19967           0 : static enum ndr_err_code ndr_push_Opnum152NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct Opnum152NotUsedOnWire *r)
   19968             : {
   19969           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   19970           0 :         if (flags & NDR_IN) {
   19971           0 :         }
   19972           0 :         if (flags & NDR_OUT) {
   19973           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   19974             :         }
   19975           0 :         return NDR_ERR_SUCCESS;
   19976             : }
   19977             : 
   19978           0 : static enum ndr_err_code ndr_pull_Opnum152NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct Opnum152NotUsedOnWire *r)
   19979             : {
   19980           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   19981           0 :         if (flags & NDR_IN) {
   19982           0 :         }
   19983           0 :         if (flags & NDR_OUT) {
   19984             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   19985             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   19986           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   19987             :         }
   19988           0 :         return NDR_ERR_SUCCESS;
   19989             : }
   19990             : 
   19991           0 : _PUBLIC_ void ndr_print_Opnum152NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct Opnum152NotUsedOnWire *r)
   19992             : {
   19993           0 :         ndr_print_struct(ndr, name, "Opnum152NotUsedOnWire");
   19994           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   19995           0 :         ndr->depth++;
   19996           0 :         if (flags & NDR_SET_VALUES) {
   19997           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   19998             :         }
   19999           0 :         if (flags & NDR_IN) {
   20000           0 :                 ndr_print_struct(ndr, "in", "Opnum152NotUsedOnWire");
   20001           0 :                 ndr->depth++;
   20002           0 :                 ndr->depth--;
   20003             :         }
   20004           0 :         if (flags & NDR_OUT) {
   20005           0 :                 ndr_print_struct(ndr, "out", "Opnum152NotUsedOnWire");
   20006           0 :                 ndr->depth++;
   20007           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   20008           0 :                 ndr->depth--;
   20009             :         }
   20010           0 :         ndr->depth--;
   20011             : }
   20012             : 
   20013           0 : static enum ndr_err_code ndr_push_Opnum153NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct Opnum153NotUsedOnWire *r)
   20014             : {
   20015           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   20016           0 :         if (flags & NDR_IN) {
   20017           0 :         }
   20018           0 :         if (flags & NDR_OUT) {
   20019           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   20020             :         }
   20021           0 :         return NDR_ERR_SUCCESS;
   20022             : }
   20023             : 
   20024           0 : static enum ndr_err_code ndr_pull_Opnum153NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct Opnum153NotUsedOnWire *r)
   20025             : {
   20026           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   20027           0 :         if (flags & NDR_IN) {
   20028           0 :         }
   20029           0 :         if (flags & NDR_OUT) {
   20030             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   20031             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   20032           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   20033             :         }
   20034           0 :         return NDR_ERR_SUCCESS;
   20035             : }
   20036             : 
   20037           0 : _PUBLIC_ void ndr_print_Opnum153NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct Opnum153NotUsedOnWire *r)
   20038             : {
   20039           0 :         ndr_print_struct(ndr, name, "Opnum153NotUsedOnWire");
   20040           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   20041           0 :         ndr->depth++;
   20042           0 :         if (flags & NDR_SET_VALUES) {
   20043           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   20044             :         }
   20045           0 :         if (flags & NDR_IN) {
   20046           0 :                 ndr_print_struct(ndr, "in", "Opnum153NotUsedOnWire");
   20047           0 :                 ndr->depth++;
   20048           0 :                 ndr->depth--;
   20049             :         }
   20050           0 :         if (flags & NDR_OUT) {
   20051           0 :                 ndr_print_struct(ndr, "out", "Opnum153NotUsedOnWire");
   20052           0 :                 ndr->depth++;
   20053           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   20054           0 :                 ndr->depth--;
   20055             :         }
   20056           0 :         ndr->depth--;
   20057             : }
   20058             : 
   20059           0 : static enum ndr_err_code ndr_push_Opnum154NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct Opnum154NotUsedOnWire *r)
   20060             : {
   20061           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   20062           0 :         if (flags & NDR_IN) {
   20063           0 :         }
   20064           0 :         if (flags & NDR_OUT) {
   20065           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   20066             :         }
   20067           0 :         return NDR_ERR_SUCCESS;
   20068             : }
   20069             : 
   20070           0 : static enum ndr_err_code ndr_pull_Opnum154NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct Opnum154NotUsedOnWire *r)
   20071             : {
   20072           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   20073           0 :         if (flags & NDR_IN) {
   20074           0 :         }
   20075           0 :         if (flags & NDR_OUT) {
   20076             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   20077             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   20078           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   20079             :         }
   20080           0 :         return NDR_ERR_SUCCESS;
   20081             : }
   20082             : 
   20083           0 : _PUBLIC_ void ndr_print_Opnum154NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct Opnum154NotUsedOnWire *r)
   20084             : {
   20085           0 :         ndr_print_struct(ndr, name, "Opnum154NotUsedOnWire");
   20086           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   20087           0 :         ndr->depth++;
   20088           0 :         if (flags & NDR_SET_VALUES) {
   20089           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   20090             :         }
   20091           0 :         if (flags & NDR_IN) {
   20092           0 :                 ndr_print_struct(ndr, "in", "Opnum154NotUsedOnWire");
   20093           0 :                 ndr->depth++;
   20094           0 :                 ndr->depth--;
   20095             :         }
   20096           0 :         if (flags & NDR_OUT) {
   20097           0 :                 ndr_print_struct(ndr, "out", "Opnum154NotUsedOnWire");
   20098           0 :                 ndr->depth++;
   20099           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   20100           0 :                 ndr->depth--;
   20101             :         }
   20102           0 :         ndr->depth--;
   20103             : }
   20104             : 
   20105           0 : static enum ndr_err_code ndr_push_clusapi_AddNotifyResourceTypeV2(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_AddNotifyResourceTypeV2 *r)
   20106             : {
   20107           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   20108           0 :         if (flags & NDR_IN) {
   20109           0 :                 if (r->in.resTypeName == NULL) {
   20110           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   20111             :                 }
   20112           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
   20113           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->in.filter));
   20114           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwNotifyKey));
   20115           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.resTypeName, CH_UTF16)));
   20116           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   20117           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.resTypeName, CH_UTF16)));
   20118           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.resTypeName, ndr_charset_length(r->in.resTypeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   20119           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwVersion));
   20120             :         }
   20121           0 :         if (flags & NDR_OUT) {
   20122           0 :                 if (r->out.rpc_status == NULL) {
   20123           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   20124             :                 }
   20125           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   20126           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   20127             :         }
   20128           0 :         return NDR_ERR_SUCCESS;
   20129             : }
   20130             : 
   20131           0 : static enum ndr_err_code ndr_pull_clusapi_AddNotifyResourceTypeV2(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_AddNotifyResourceTypeV2 *r)
   20132             : {
   20133           0 :         uint32_t size_resTypeName_1 = 0;
   20134           0 :         uint32_t length_resTypeName_1 = 0;
   20135           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   20136           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   20137           0 :         if (flags & NDR_IN) {
   20138           0 :                 NDR_ZERO_STRUCT(r->out);
   20139             : 
   20140           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNotify));
   20141           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->in.filter));
   20142           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwNotifyKey));
   20143           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.resTypeName));
   20144           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.resTypeName));
   20145           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.resTypeName, &size_resTypeName_1));
   20146           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.resTypeName, &length_resTypeName_1));
   20147           0 :                 if (length_resTypeName_1 > size_resTypeName_1) {
   20148           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_resTypeName_1, length_resTypeName_1);
   20149             :                 }
   20150           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_resTypeName_1, sizeof(uint16_t)));
   20151           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.resTypeName, length_resTypeName_1, sizeof(uint16_t), CH_UTF16));
   20152           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwVersion));
   20153           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   20154           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   20155             :         }
   20156           0 :         if (flags & NDR_OUT) {
   20157             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   20158             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   20159           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   20160           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   20161             :                 }
   20162           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   20163           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   20164           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   20165           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   20166           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   20167             :         }
   20168           0 :         return NDR_ERR_SUCCESS;
   20169             : }
   20170             : 
   20171           0 : _PUBLIC_ void ndr_print_clusapi_AddNotifyResourceTypeV2(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_AddNotifyResourceTypeV2 *r)
   20172             : {
   20173           0 :         ndr_print_struct(ndr, name, "clusapi_AddNotifyResourceTypeV2");
   20174           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   20175           0 :         ndr->depth++;
   20176           0 :         if (flags & NDR_SET_VALUES) {
   20177           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   20178             :         }
   20179           0 :         if (flags & NDR_IN) {
   20180           0 :                 ndr_print_struct(ndr, "in", "clusapi_AddNotifyResourceTypeV2");
   20181           0 :                 ndr->depth++;
   20182           0 :                 ndr_print_policy_handle(ndr, "hNotify", &r->in.hNotify);
   20183           0 :                 ndr_print_hyper(ndr, "filter", r->in.filter);
   20184           0 :                 ndr_print_uint32(ndr, "dwNotifyKey", r->in.dwNotifyKey);
   20185           0 :                 ndr_print_ptr(ndr, "resTypeName", r->in.resTypeName);
   20186           0 :                 ndr->depth++;
   20187           0 :                 ndr_print_string(ndr, "resTypeName", r->in.resTypeName);
   20188           0 :                 ndr->depth--;
   20189           0 :                 ndr_print_uint32(ndr, "dwVersion", r->in.dwVersion);
   20190           0 :                 ndr->depth--;
   20191             :         }
   20192           0 :         if (flags & NDR_OUT) {
   20193           0 :                 ndr_print_struct(ndr, "out", "clusapi_AddNotifyResourceTypeV2");
   20194           0 :                 ndr->depth++;
   20195           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   20196           0 :                 ndr->depth++;
   20197           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   20198           0 :                 ndr->depth--;
   20199           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   20200           0 :                 ndr->depth--;
   20201             :         }
   20202           0 :         ndr->depth--;
   20203             : }
   20204             : 
   20205           0 : static enum ndr_err_code ndr_push_Opnum156NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct Opnum156NotUsedOnWire *r)
   20206             : {
   20207           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   20208           0 :         if (flags & NDR_IN) {
   20209           0 :         }
   20210           0 :         if (flags & NDR_OUT) {
   20211           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   20212             :         }
   20213           0 :         return NDR_ERR_SUCCESS;
   20214             : }
   20215             : 
   20216           0 : static enum ndr_err_code ndr_pull_Opnum156NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct Opnum156NotUsedOnWire *r)
   20217             : {
   20218           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   20219           0 :         if (flags & NDR_IN) {
   20220           0 :         }
   20221           0 :         if (flags & NDR_OUT) {
   20222             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   20223             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   20224           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   20225             :         }
   20226           0 :         return NDR_ERR_SUCCESS;
   20227             : }
   20228             : 
   20229           0 : _PUBLIC_ void ndr_print_Opnum156NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct Opnum156NotUsedOnWire *r)
   20230             : {
   20231           0 :         ndr_print_struct(ndr, name, "Opnum156NotUsedOnWire");
   20232           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   20233           0 :         ndr->depth++;
   20234           0 :         if (flags & NDR_SET_VALUES) {
   20235           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   20236             :         }
   20237           0 :         if (flags & NDR_IN) {
   20238           0 :                 ndr_print_struct(ndr, "in", "Opnum156NotUsedOnWire");
   20239           0 :                 ndr->depth++;
   20240           0 :                 ndr->depth--;
   20241             :         }
   20242           0 :         if (flags & NDR_OUT) {
   20243           0 :                 ndr_print_struct(ndr, "out", "Opnum156NotUsedOnWire");
   20244           0 :                 ndr->depth++;
   20245           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   20246           0 :                 ndr->depth--;
   20247             :         }
   20248           0 :         ndr->depth--;
   20249             : }
   20250             : 
   20251           0 : static enum ndr_err_code ndr_push_clusapi_ExecuteReadBatchEx(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_ExecuteReadBatchEx *r)
   20252             : {
   20253           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   20254           0 :         if (flags & NDR_IN) {
   20255           0 :                 if (r->in.lpInData == NULL) {
   20256           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   20257             :                 }
   20258           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
   20259           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.cbInData));
   20260           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.cbInData));
   20261           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInData, r->in.cbInData));
   20262           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.flags));
   20263             :         }
   20264           0 :         if (flags & NDR_OUT) {
   20265           0 :                 if (r->out.cbOutData == NULL) {
   20266           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   20267             :                 }
   20268           0 :                 if (r->out.lpOutData == NULL) {
   20269           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   20270             :                 }
   20271           0 :                 if (r->out.rpc_status == NULL) {
   20272           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   20273             :                 }
   20274           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.cbOutData));
   20275           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.lpOutData));
   20276           0 :                 if (*r->out.lpOutData) {
   20277           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.cbOutData));
   20278           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, *r->out.lpOutData, *r->out.cbOutData));
   20279             :                 }
   20280           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   20281           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   20282             :         }
   20283           0 :         return NDR_ERR_SUCCESS;
   20284             : }
   20285             : 
   20286           0 : static enum ndr_err_code ndr_pull_clusapi_ExecuteReadBatchEx(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_ExecuteReadBatchEx *r)
   20287             : {
   20288           0 :         uint32_t size_lpInData_1 = 0;
   20289           0 :         uint32_t _ptr_lpOutData;
   20290           0 :         uint32_t size_lpOutData_2 = 0;
   20291           0 :         TALLOC_CTX *_mem_save_cbOutData_0 = NULL;
   20292           0 :         TALLOC_CTX *_mem_save_lpOutData_0 = NULL;
   20293           0 :         TALLOC_CTX *_mem_save_lpOutData_1 = NULL;
   20294           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   20295           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   20296           0 :         if (flags & NDR_IN) {
   20297           0 :                 NDR_ZERO_STRUCT(r->out);
   20298             : 
   20299           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hKey));
   20300           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.cbInData));
   20301           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInData));
   20302           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInData, &size_lpInData_1));
   20303           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   20304           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.lpInData, size_lpInData_1);
   20305             :                 }
   20306           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInData, size_lpInData_1));
   20307           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.flags));
   20308           0 :                 NDR_PULL_ALLOC(ndr, r->out.cbOutData);
   20309           0 :                 NDR_ZERO_STRUCTP(r->out.cbOutData);
   20310           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpOutData);
   20311           0 :                 NDR_ZERO_STRUCTP(r->out.lpOutData);
   20312           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   20313           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   20314           0 :                 if (r->in.lpInData) {
   20315           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInData, r->in.cbInData));
   20316             :                 }
   20317             :         }
   20318           0 :         if (flags & NDR_OUT) {
   20319             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   20320             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   20321           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   20322           0 :                         NDR_PULL_ALLOC(ndr, r->out.cbOutData);
   20323             :                 }
   20324           0 :                 _mem_save_cbOutData_0 = NDR_PULL_GET_MEM_CTX(ndr);
   20325           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.cbOutData, LIBNDR_FLAG_REF_ALLOC);
   20326           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.cbOutData));
   20327           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_cbOutData_0, LIBNDR_FLAG_REF_ALLOC);
   20328           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   20329           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpOutData);
   20330             :                 }
   20331           0 :                 _mem_save_lpOutData_0 = NDR_PULL_GET_MEM_CTX(ndr);
   20332           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpOutData, LIBNDR_FLAG_REF_ALLOC);
   20333           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpOutData));
   20334           0 :                 if (_ptr_lpOutData) {
   20335           0 :                         NDR_PULL_ALLOC(ndr, *r->out.lpOutData);
   20336             :                 } else {
   20337           0 :                         *r->out.lpOutData = NULL;
   20338             :                 }
   20339           0 :                 if (*r->out.lpOutData) {
   20340           0 :                         _mem_save_lpOutData_1 = NDR_PULL_GET_MEM_CTX(ndr);
   20341           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.lpOutData, 0);
   20342           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, r->out.lpOutData));
   20343           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)r->out.lpOutData, &size_lpOutData_2));
   20344           0 :                         NDR_PULL_ALLOC_N(ndr, *r->out.lpOutData, size_lpOutData_2);
   20345           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, *r->out.lpOutData, size_lpOutData_2));
   20346           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpOutData_1, 0);
   20347             :                 }
   20348           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpOutData_0, LIBNDR_FLAG_REF_ALLOC);
   20349           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   20350           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   20351             :                 }
   20352           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   20353           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   20354           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   20355           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   20356           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   20357           0 :                 if (*r->out.lpOutData) {
   20358           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)r->out.lpOutData, *r->out.cbOutData));
   20359             :                 }
   20360             :         }
   20361           0 :         return NDR_ERR_SUCCESS;
   20362             : }
   20363             : 
   20364           0 : _PUBLIC_ void ndr_print_clusapi_ExecuteReadBatchEx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_ExecuteReadBatchEx *r)
   20365             : {
   20366           0 :         ndr_print_struct(ndr, name, "clusapi_ExecuteReadBatchEx");
   20367           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   20368           0 :         ndr->depth++;
   20369           0 :         if (flags & NDR_SET_VALUES) {
   20370           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   20371             :         }
   20372           0 :         if (flags & NDR_IN) {
   20373           0 :                 ndr_print_struct(ndr, "in", "clusapi_ExecuteReadBatchEx");
   20374           0 :                 ndr->depth++;
   20375           0 :                 ndr_print_policy_handle(ndr, "hKey", &r->in.hKey);
   20376           0 :                 ndr_print_uint32(ndr, "cbInData", r->in.cbInData);
   20377           0 :                 ndr_print_ptr(ndr, "lpInData", r->in.lpInData);
   20378           0 :                 ndr->depth++;
   20379           0 :                 ndr_print_array_uint8(ndr, "lpInData", r->in.lpInData, r->in.cbInData);
   20380           0 :                 ndr->depth--;
   20381           0 :                 ndr_print_uint32(ndr, "flags", r->in.flags);
   20382           0 :                 ndr->depth--;
   20383             :         }
   20384           0 :         if (flags & NDR_OUT) {
   20385           0 :                 ndr_print_struct(ndr, "out", "clusapi_ExecuteReadBatchEx");
   20386           0 :                 ndr->depth++;
   20387           0 :                 ndr_print_ptr(ndr, "cbOutData", r->out.cbOutData);
   20388           0 :                 ndr->depth++;
   20389           0 :                 ndr_print_uint32(ndr, "cbOutData", *r->out.cbOutData);
   20390           0 :                 ndr->depth--;
   20391           0 :                 ndr_print_ptr(ndr, "lpOutData", r->out.lpOutData);
   20392           0 :                 ndr->depth++;
   20393           0 :                 ndr_print_ptr(ndr, "lpOutData", *r->out.lpOutData);
   20394           0 :                 ndr->depth++;
   20395           0 :                 if (*r->out.lpOutData) {
   20396           0 :                         ndr_print_array_uint8(ndr, "lpOutData", *r->out.lpOutData, *r->out.cbOutData);
   20397             :                 }
   20398           0 :                 ndr->depth--;
   20399           0 :                 ndr->depth--;
   20400           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   20401           0 :                 ndr->depth++;
   20402           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   20403           0 :                 ndr->depth--;
   20404           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   20405           0 :                 ndr->depth--;
   20406             :         }
   20407           0 :         ndr->depth--;
   20408             : }
   20409             : 
   20410           0 : static enum ndr_err_code ndr_push_Opnum158NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct Opnum158NotUsedOnWire *r)
   20411             : {
   20412           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   20413           0 :         if (flags & NDR_IN) {
   20414           0 :         }
   20415           0 :         if (flags & NDR_OUT) {
   20416           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   20417             :         }
   20418           0 :         return NDR_ERR_SUCCESS;
   20419             : }
   20420             : 
   20421           0 : static enum ndr_err_code ndr_pull_Opnum158NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct Opnum158NotUsedOnWire *r)
   20422             : {
   20423           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   20424           0 :         if (flags & NDR_IN) {
   20425           0 :         }
   20426           0 :         if (flags & NDR_OUT) {
   20427             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   20428             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   20429           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   20430             :         }
   20431           0 :         return NDR_ERR_SUCCESS;
   20432             : }
   20433             : 
   20434           0 : _PUBLIC_ void ndr_print_Opnum158NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct Opnum158NotUsedOnWire *r)
   20435             : {
   20436           0 :         ndr_print_struct(ndr, name, "Opnum158NotUsedOnWire");
   20437           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   20438           0 :         ndr->depth++;
   20439           0 :         if (flags & NDR_SET_VALUES) {
   20440           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   20441             :         }
   20442           0 :         if (flags & NDR_IN) {
   20443           0 :                 ndr_print_struct(ndr, "in", "Opnum158NotUsedOnWire");
   20444           0 :                 ndr->depth++;
   20445           0 :                 ndr->depth--;
   20446             :         }
   20447           0 :         if (flags & NDR_OUT) {
   20448           0 :                 ndr_print_struct(ndr, "out", "Opnum158NotUsedOnWire");
   20449           0 :                 ndr->depth++;
   20450           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   20451           0 :                 ndr->depth--;
   20452             :         }
   20453           0 :         ndr->depth--;
   20454             : }
   20455             : 
   20456           0 : static enum ndr_err_code ndr_push_Opnum159NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct Opnum159NotUsedOnWire *r)
   20457             : {
   20458           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   20459           0 :         if (flags & NDR_IN) {
   20460           0 :         }
   20461           0 :         if (flags & NDR_OUT) {
   20462           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   20463             :         }
   20464           0 :         return NDR_ERR_SUCCESS;
   20465             : }
   20466             : 
   20467           0 : static enum ndr_err_code ndr_pull_Opnum159NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct Opnum159NotUsedOnWire *r)
   20468             : {
   20469           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   20470           0 :         if (flags & NDR_IN) {
   20471           0 :         }
   20472           0 :         if (flags & NDR_OUT) {
   20473             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   20474             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   20475           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   20476             :         }
   20477           0 :         return NDR_ERR_SUCCESS;
   20478             : }
   20479             : 
   20480           0 : _PUBLIC_ void ndr_print_Opnum159NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct Opnum159NotUsedOnWire *r)
   20481             : {
   20482           0 :         ndr_print_struct(ndr, name, "Opnum159NotUsedOnWire");
   20483           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   20484           0 :         ndr->depth++;
   20485           0 :         if (flags & NDR_SET_VALUES) {
   20486           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   20487             :         }
   20488           0 :         if (flags & NDR_IN) {
   20489           0 :                 ndr_print_struct(ndr, "in", "Opnum159NotUsedOnWire");
   20490           0 :                 ndr->depth++;
   20491           0 :                 ndr->depth--;
   20492             :         }
   20493           0 :         if (flags & NDR_OUT) {
   20494           0 :                 ndr_print_struct(ndr, "out", "Opnum159NotUsedOnWire");
   20495           0 :                 ndr->depth++;
   20496           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   20497           0 :                 ndr->depth--;
   20498             :         }
   20499           0 :         ndr->depth--;
   20500             : }
   20501             : 
   20502           0 : static enum ndr_err_code ndr_push_Opnum160NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct Opnum160NotUsedOnWire *r)
   20503             : {
   20504           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   20505           0 :         if (flags & NDR_IN) {
   20506           0 :         }
   20507           0 :         if (flags & NDR_OUT) {
   20508           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   20509             :         }
   20510           0 :         return NDR_ERR_SUCCESS;
   20511             : }
   20512             : 
   20513           0 : static enum ndr_err_code ndr_pull_Opnum160NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct Opnum160NotUsedOnWire *r)
   20514             : {
   20515           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   20516           0 :         if (flags & NDR_IN) {
   20517           0 :         }
   20518           0 :         if (flags & NDR_OUT) {
   20519             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   20520             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   20521           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   20522             :         }
   20523           0 :         return NDR_ERR_SUCCESS;
   20524             : }
   20525             : 
   20526           0 : _PUBLIC_ void ndr_print_Opnum160NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct Opnum160NotUsedOnWire *r)
   20527             : {
   20528           0 :         ndr_print_struct(ndr, name, "Opnum160NotUsedOnWire");
   20529           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   20530           0 :         ndr->depth++;
   20531           0 :         if (flags & NDR_SET_VALUES) {
   20532           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   20533             :         }
   20534           0 :         if (flags & NDR_IN) {
   20535           0 :                 ndr_print_struct(ndr, "in", "Opnum160NotUsedOnWire");
   20536           0 :                 ndr->depth++;
   20537           0 :                 ndr->depth--;
   20538             :         }
   20539           0 :         if (flags & NDR_OUT) {
   20540           0 :                 ndr_print_struct(ndr, "out", "Opnum160NotUsedOnWire");
   20541           0 :                 ndr->depth++;
   20542           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   20543           0 :                 ndr->depth--;
   20544             :         }
   20545           0 :         ndr->depth--;
   20546             : }
   20547             : 
   20548           0 : static enum ndr_err_code ndr_push_Opnum161NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct Opnum161NotUsedOnWire *r)
   20549             : {
   20550           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   20551           0 :         if (flags & NDR_IN) {
   20552           0 :         }
   20553           0 :         if (flags & NDR_OUT) {
   20554           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   20555             :         }
   20556           0 :         return NDR_ERR_SUCCESS;
   20557             : }
   20558             : 
   20559           0 : static enum ndr_err_code ndr_pull_Opnum161NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct Opnum161NotUsedOnWire *r)
   20560             : {
   20561           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   20562           0 :         if (flags & NDR_IN) {
   20563           0 :         }
   20564           0 :         if (flags & NDR_OUT) {
   20565             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   20566             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   20567           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   20568             :         }
   20569           0 :         return NDR_ERR_SUCCESS;
   20570             : }
   20571             : 
   20572           0 : _PUBLIC_ void ndr_print_Opnum161NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct Opnum161NotUsedOnWire *r)
   20573             : {
   20574           0 :         ndr_print_struct(ndr, name, "Opnum161NotUsedOnWire");
   20575           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   20576           0 :         ndr->depth++;
   20577           0 :         if (flags & NDR_SET_VALUES) {
   20578           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   20579             :         }
   20580           0 :         if (flags & NDR_IN) {
   20581           0 :                 ndr_print_struct(ndr, "in", "Opnum161NotUsedOnWire");
   20582           0 :                 ndr->depth++;
   20583           0 :                 ndr->depth--;
   20584             :         }
   20585           0 :         if (flags & NDR_OUT) {
   20586           0 :                 ndr_print_struct(ndr, "out", "Opnum161NotUsedOnWire");
   20587           0 :                 ndr->depth++;
   20588           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   20589           0 :                 ndr->depth--;
   20590             :         }
   20591           0 :         ndr->depth--;
   20592             : }
   20593             : 
   20594           0 : static enum ndr_err_code ndr_push_Opnum162NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct Opnum162NotUsedOnWire *r)
   20595             : {
   20596           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   20597           0 :         if (flags & NDR_IN) {
   20598           0 :         }
   20599           0 :         if (flags & NDR_OUT) {
   20600           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   20601             :         }
   20602           0 :         return NDR_ERR_SUCCESS;
   20603             : }
   20604             : 
   20605           0 : static enum ndr_err_code ndr_pull_Opnum162NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct Opnum162NotUsedOnWire *r)
   20606             : {
   20607           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   20608           0 :         if (flags & NDR_IN) {
   20609           0 :         }
   20610           0 :         if (flags & NDR_OUT) {
   20611             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   20612             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   20613           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   20614             :         }
   20615           0 :         return NDR_ERR_SUCCESS;
   20616             : }
   20617             : 
   20618           0 : _PUBLIC_ void ndr_print_Opnum162NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct Opnum162NotUsedOnWire *r)
   20619             : {
   20620           0 :         ndr_print_struct(ndr, name, "Opnum162NotUsedOnWire");
   20621           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   20622           0 :         ndr->depth++;
   20623           0 :         if (flags & NDR_SET_VALUES) {
   20624           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   20625             :         }
   20626           0 :         if (flags & NDR_IN) {
   20627           0 :                 ndr_print_struct(ndr, "in", "Opnum162NotUsedOnWire");
   20628           0 :                 ndr->depth++;
   20629           0 :                 ndr->depth--;
   20630             :         }
   20631           0 :         if (flags & NDR_OUT) {
   20632           0 :                 ndr_print_struct(ndr, "out", "Opnum162NotUsedOnWire");
   20633           0 :                 ndr->depth++;
   20634           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   20635           0 :                 ndr->depth--;
   20636             :         }
   20637           0 :         ndr->depth--;
   20638             : }
   20639             : 
   20640           0 : static enum ndr_err_code ndr_push_clusapi_CreateGroupSet(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CreateGroupSet *r)
   20641             : {
   20642           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   20643           0 :         if (flags & NDR_IN) {
   20644           0 :                 if (r->in.lpszGroupSetName == NULL) {
   20645           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   20646             :                 }
   20647           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupSetName, CH_UTF16)));
   20648           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   20649           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupSetName, CH_UTF16)));
   20650           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszGroupSetName, ndr_charset_length(r->in.lpszGroupSetName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   20651             :         }
   20652           0 :         if (flags & NDR_OUT) {
   20653           0 :                 if (r->out.Status == NULL) {
   20654           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   20655             :                 }
   20656           0 :                 if (r->out.rpc_status == NULL) {
   20657           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   20658             :                 }
   20659           0 :                 if (r->out.hGroupSet == NULL) {
   20660           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   20661             :                 }
   20662           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
   20663           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   20664           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hGroupSet));
   20665             :         }
   20666           0 :         return NDR_ERR_SUCCESS;
   20667             : }
   20668             : 
   20669           0 : static enum ndr_err_code ndr_pull_clusapi_CreateGroupSet(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CreateGroupSet *r)
   20670             : {
   20671           0 :         uint32_t size_lpszGroupSetName_1 = 0;
   20672           0 :         uint32_t length_lpszGroupSetName_1 = 0;
   20673           0 :         TALLOC_CTX *_mem_save_Status_0 = NULL;
   20674           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   20675           0 :         TALLOC_CTX *_mem_save_hGroupSet_0 = NULL;
   20676           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   20677           0 :         if (flags & NDR_IN) {
   20678           0 :                 NDR_ZERO_STRUCT(r->out);
   20679             : 
   20680           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszGroupSetName));
   20681           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszGroupSetName));
   20682           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszGroupSetName, &size_lpszGroupSetName_1));
   20683           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszGroupSetName, &length_lpszGroupSetName_1));
   20684           0 :                 if (length_lpszGroupSetName_1 > size_lpszGroupSetName_1) {
   20685           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszGroupSetName_1, length_lpszGroupSetName_1);
   20686             :                 }
   20687           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszGroupSetName_1, sizeof(uint16_t)));
   20688           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszGroupSetName, length_lpszGroupSetName_1, sizeof(uint16_t), CH_UTF16));
   20689           0 :                 NDR_PULL_ALLOC(ndr, r->out.Status);
   20690           0 :                 NDR_ZERO_STRUCTP(r->out.Status);
   20691           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   20692           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   20693           0 :                 NDR_PULL_ALLOC(ndr, r->out.hGroupSet);
   20694           0 :                 NDR_ZERO_STRUCTP(r->out.hGroupSet);
   20695             :         }
   20696           0 :         if (flags & NDR_OUT) {
   20697             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   20698             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   20699           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   20700           0 :                         NDR_PULL_ALLOC(ndr, r->out.Status);
   20701             :                 }
   20702           0 :                 _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   20703           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
   20704           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
   20705           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
   20706           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   20707           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   20708             :                 }
   20709           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   20710           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   20711           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   20712           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   20713           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   20714           0 :                         NDR_PULL_ALLOC(ndr, r->out.hGroupSet);
   20715             :                 }
   20716           0 :                 _mem_save_hGroupSet_0 = NDR_PULL_GET_MEM_CTX(ndr);
   20717           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.hGroupSet, LIBNDR_FLAG_REF_ALLOC);
   20718           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hGroupSet));
   20719           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hGroupSet_0, LIBNDR_FLAG_REF_ALLOC);
   20720             :         }
   20721           0 :         return NDR_ERR_SUCCESS;
   20722             : }
   20723             : 
   20724           0 : _PUBLIC_ void ndr_print_clusapi_CreateGroupSet(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CreateGroupSet *r)
   20725             : {
   20726           0 :         ndr_print_struct(ndr, name, "clusapi_CreateGroupSet");
   20727           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   20728           0 :         ndr->depth++;
   20729           0 :         if (flags & NDR_SET_VALUES) {
   20730           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   20731             :         }
   20732           0 :         if (flags & NDR_IN) {
   20733           0 :                 ndr_print_struct(ndr, "in", "clusapi_CreateGroupSet");
   20734           0 :                 ndr->depth++;
   20735           0 :                 ndr_print_ptr(ndr, "lpszGroupSetName", r->in.lpszGroupSetName);
   20736           0 :                 ndr->depth++;
   20737           0 :                 ndr_print_string(ndr, "lpszGroupSetName", r->in.lpszGroupSetName);
   20738           0 :                 ndr->depth--;
   20739           0 :                 ndr->depth--;
   20740             :         }
   20741           0 :         if (flags & NDR_OUT) {
   20742           0 :                 ndr_print_struct(ndr, "out", "clusapi_CreateGroupSet");
   20743           0 :                 ndr->depth++;
   20744           0 :                 ndr_print_ptr(ndr, "Status", r->out.Status);
   20745           0 :                 ndr->depth++;
   20746           0 :                 ndr_print_WERROR(ndr, "Status", *r->out.Status);
   20747           0 :                 ndr->depth--;
   20748           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   20749           0 :                 ndr->depth++;
   20750           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   20751           0 :                 ndr->depth--;
   20752           0 :                 ndr_print_ptr(ndr, "hGroupSet", r->out.hGroupSet);
   20753           0 :                 ndr->depth++;
   20754           0 :                 ndr_print_policy_handle(ndr, "hGroupSet", r->out.hGroupSet);
   20755           0 :                 ndr->depth--;
   20756           0 :                 ndr->depth--;
   20757             :         }
   20758           0 :         ndr->depth--;
   20759             : }
   20760             : 
   20761           0 : static enum ndr_err_code ndr_push_clusapi_OpenGroupSet(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_OpenGroupSet *r)
   20762             : {
   20763           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   20764           0 :         if (flags & NDR_IN) {
   20765           0 :                 if (r->in.lpszGroupSetName == NULL) {
   20766           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   20767             :                 }
   20768           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupSetName, CH_UTF16)));
   20769           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   20770           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszGroupSetName, CH_UTF16)));
   20771           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszGroupSetName, ndr_charset_length(r->in.lpszGroupSetName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   20772             :         }
   20773           0 :         if (flags & NDR_OUT) {
   20774           0 :                 if (r->out.Status == NULL) {
   20775           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   20776             :                 }
   20777           0 :                 if (r->out.rpc_status == NULL) {
   20778           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   20779             :                 }
   20780           0 :                 if (r->out.hGroupSet == NULL) {
   20781           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   20782             :                 }
   20783           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.Status));
   20784           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   20785           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.hGroupSet));
   20786             :         }
   20787           0 :         return NDR_ERR_SUCCESS;
   20788             : }
   20789             : 
   20790           0 : static enum ndr_err_code ndr_pull_clusapi_OpenGroupSet(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_OpenGroupSet *r)
   20791             : {
   20792           0 :         uint32_t size_lpszGroupSetName_1 = 0;
   20793           0 :         uint32_t length_lpszGroupSetName_1 = 0;
   20794           0 :         TALLOC_CTX *_mem_save_Status_0 = NULL;
   20795           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   20796           0 :         TALLOC_CTX *_mem_save_hGroupSet_0 = NULL;
   20797           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   20798           0 :         if (flags & NDR_IN) {
   20799           0 :                 NDR_ZERO_STRUCT(r->out);
   20800             : 
   20801           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszGroupSetName));
   20802           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszGroupSetName));
   20803           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszGroupSetName, &size_lpszGroupSetName_1));
   20804           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszGroupSetName, &length_lpszGroupSetName_1));
   20805           0 :                 if (length_lpszGroupSetName_1 > size_lpszGroupSetName_1) {
   20806           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszGroupSetName_1, length_lpszGroupSetName_1);
   20807             :                 }
   20808           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszGroupSetName_1, sizeof(uint16_t)));
   20809           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszGroupSetName, length_lpszGroupSetName_1, sizeof(uint16_t), CH_UTF16));
   20810           0 :                 NDR_PULL_ALLOC(ndr, r->out.Status);
   20811           0 :                 NDR_ZERO_STRUCTP(r->out.Status);
   20812           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   20813           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   20814           0 :                 NDR_PULL_ALLOC(ndr, r->out.hGroupSet);
   20815           0 :                 NDR_ZERO_STRUCTP(r->out.hGroupSet);
   20816             :         }
   20817           0 :         if (flags & NDR_OUT) {
   20818             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   20819             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   20820           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   20821           0 :                         NDR_PULL_ALLOC(ndr, r->out.Status);
   20822             :                 }
   20823           0 :                 _mem_save_Status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   20824           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.Status, LIBNDR_FLAG_REF_ALLOC);
   20825           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.Status));
   20826           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Status_0, LIBNDR_FLAG_REF_ALLOC);
   20827           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   20828           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   20829             :                 }
   20830           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   20831           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   20832           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   20833           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   20834           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   20835           0 :                         NDR_PULL_ALLOC(ndr, r->out.hGroupSet);
   20836             :                 }
   20837           0 :                 _mem_save_hGroupSet_0 = NDR_PULL_GET_MEM_CTX(ndr);
   20838           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.hGroupSet, LIBNDR_FLAG_REF_ALLOC);
   20839           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.hGroupSet));
   20840           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_hGroupSet_0, LIBNDR_FLAG_REF_ALLOC);
   20841             :         }
   20842           0 :         return NDR_ERR_SUCCESS;
   20843             : }
   20844             : 
   20845           0 : _PUBLIC_ void ndr_print_clusapi_OpenGroupSet(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_OpenGroupSet *r)
   20846             : {
   20847           0 :         ndr_print_struct(ndr, name, "clusapi_OpenGroupSet");
   20848           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   20849           0 :         ndr->depth++;
   20850           0 :         if (flags & NDR_SET_VALUES) {
   20851           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   20852             :         }
   20853           0 :         if (flags & NDR_IN) {
   20854           0 :                 ndr_print_struct(ndr, "in", "clusapi_OpenGroupSet");
   20855           0 :                 ndr->depth++;
   20856           0 :                 ndr_print_ptr(ndr, "lpszGroupSetName", r->in.lpszGroupSetName);
   20857           0 :                 ndr->depth++;
   20858           0 :                 ndr_print_string(ndr, "lpszGroupSetName", r->in.lpszGroupSetName);
   20859           0 :                 ndr->depth--;
   20860           0 :                 ndr->depth--;
   20861             :         }
   20862           0 :         if (flags & NDR_OUT) {
   20863           0 :                 ndr_print_struct(ndr, "out", "clusapi_OpenGroupSet");
   20864           0 :                 ndr->depth++;
   20865           0 :                 ndr_print_ptr(ndr, "Status", r->out.Status);
   20866           0 :                 ndr->depth++;
   20867           0 :                 ndr_print_WERROR(ndr, "Status", *r->out.Status);
   20868           0 :                 ndr->depth--;
   20869           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   20870           0 :                 ndr->depth++;
   20871           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   20872           0 :                 ndr->depth--;
   20873           0 :                 ndr_print_ptr(ndr, "hGroupSet", r->out.hGroupSet);
   20874           0 :                 ndr->depth++;
   20875           0 :                 ndr_print_policy_handle(ndr, "hGroupSet", r->out.hGroupSet);
   20876           0 :                 ndr->depth--;
   20877           0 :                 ndr->depth--;
   20878             :         }
   20879           0 :         ndr->depth--;
   20880             : }
   20881             : 
   20882           0 : static enum ndr_err_code ndr_push_clusapi_CloseGroupSet(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CloseGroupSet *r)
   20883             : {
   20884           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   20885           0 :         if (flags & NDR_IN) {
   20886           0 :                 if (r->in.GroupSet == NULL) {
   20887           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   20888             :                 }
   20889           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->in.GroupSet));
   20890             :         }
   20891           0 :         if (flags & NDR_OUT) {
   20892           0 :                 if (r->out.GroupSet == NULL) {
   20893           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   20894             :                 }
   20895           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, r->out.GroupSet));
   20896           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   20897             :         }
   20898           0 :         return NDR_ERR_SUCCESS;
   20899             : }
   20900             : 
   20901           0 : static enum ndr_err_code ndr_pull_clusapi_CloseGroupSet(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CloseGroupSet *r)
   20902             : {
   20903           0 :         TALLOC_CTX *_mem_save_GroupSet_0 = NULL;
   20904           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   20905           0 :         if (flags & NDR_IN) {
   20906           0 :                 NDR_ZERO_STRUCT(r->out);
   20907             : 
   20908           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   20909           0 :                         NDR_PULL_ALLOC(ndr, r->in.GroupSet);
   20910             :                 }
   20911           0 :                 _mem_save_GroupSet_0 = NDR_PULL_GET_MEM_CTX(ndr);
   20912           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.GroupSet, LIBNDR_FLAG_REF_ALLOC);
   20913           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->in.GroupSet));
   20914           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_GroupSet_0, LIBNDR_FLAG_REF_ALLOC);
   20915           0 :                 NDR_PULL_ALLOC(ndr, r->out.GroupSet);
   20916           0 :                 *r->out.GroupSet = *r->in.GroupSet;
   20917             :         }
   20918           0 :         if (flags & NDR_OUT) {
   20919             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   20920             :                 if (r->in.GroupSet == NULL) {
   20921             :                         NDR_PULL_ALLOC(ndr, r->in.GroupSet);
   20922             :                         NDR_ZERO_STRUCTP(r->in.GroupSet);
   20923             :                 }
   20924             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   20925           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   20926           0 :                         NDR_PULL_ALLOC(ndr, r->out.GroupSet);
   20927             :                 }
   20928           0 :                 _mem_save_GroupSet_0 = NDR_PULL_GET_MEM_CTX(ndr);
   20929           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.GroupSet, LIBNDR_FLAG_REF_ALLOC);
   20930           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, r->out.GroupSet));
   20931           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_GroupSet_0, LIBNDR_FLAG_REF_ALLOC);
   20932           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   20933             :         }
   20934           0 :         return NDR_ERR_SUCCESS;
   20935             : }
   20936             : 
   20937           0 : _PUBLIC_ void ndr_print_clusapi_CloseGroupSet(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CloseGroupSet *r)
   20938             : {
   20939           0 :         ndr_print_struct(ndr, name, "clusapi_CloseGroupSet");
   20940           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   20941           0 :         ndr->depth++;
   20942           0 :         if (flags & NDR_SET_VALUES) {
   20943           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   20944             :         }
   20945           0 :         if (flags & NDR_IN) {
   20946           0 :                 ndr_print_struct(ndr, "in", "clusapi_CloseGroupSet");
   20947           0 :                 ndr->depth++;
   20948           0 :                 ndr_print_ptr(ndr, "GroupSet", r->in.GroupSet);
   20949           0 :                 ndr->depth++;
   20950           0 :                 ndr_print_policy_handle(ndr, "GroupSet", r->in.GroupSet);
   20951           0 :                 ndr->depth--;
   20952           0 :                 ndr->depth--;
   20953             :         }
   20954           0 :         if (flags & NDR_OUT) {
   20955           0 :                 ndr_print_struct(ndr, "out", "clusapi_CloseGroupSet");
   20956           0 :                 ndr->depth++;
   20957           0 :                 ndr_print_ptr(ndr, "GroupSet", r->out.GroupSet);
   20958           0 :                 ndr->depth++;
   20959           0 :                 ndr_print_policy_handle(ndr, "GroupSet", r->out.GroupSet);
   20960           0 :                 ndr->depth--;
   20961           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   20962           0 :                 ndr->depth--;
   20963             :         }
   20964           0 :         ndr->depth--;
   20965             : }
   20966             : 
   20967           0 : static enum ndr_err_code ndr_push_clusapi_DeleteGroupSet(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_DeleteGroupSet *r)
   20968             : {
   20969           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   20970           0 :         if (flags & NDR_IN) {
   20971           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.GroupSet));
   20972             :         }
   20973           0 :         if (flags & NDR_OUT) {
   20974           0 :                 if (r->out.rpc_status == NULL) {
   20975           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   20976             :                 }
   20977           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   20978           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   20979             :         }
   20980           0 :         return NDR_ERR_SUCCESS;
   20981             : }
   20982             : 
   20983           0 : static enum ndr_err_code ndr_pull_clusapi_DeleteGroupSet(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_DeleteGroupSet *r)
   20984             : {
   20985           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   20986           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   20987           0 :         if (flags & NDR_IN) {
   20988           0 :                 NDR_ZERO_STRUCT(r->out);
   20989             : 
   20990           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.GroupSet));
   20991           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   20992           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   20993             :         }
   20994           0 :         if (flags & NDR_OUT) {
   20995             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   20996             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   20997           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   20998           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   20999             :                 }
   21000           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   21001           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   21002           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   21003           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   21004           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   21005             :         }
   21006           0 :         return NDR_ERR_SUCCESS;
   21007             : }
   21008             : 
   21009           0 : _PUBLIC_ void ndr_print_clusapi_DeleteGroupSet(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_DeleteGroupSet *r)
   21010             : {
   21011           0 :         ndr_print_struct(ndr, name, "clusapi_DeleteGroupSet");
   21012           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   21013           0 :         ndr->depth++;
   21014           0 :         if (flags & NDR_SET_VALUES) {
   21015           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   21016             :         }
   21017           0 :         if (flags & NDR_IN) {
   21018           0 :                 ndr_print_struct(ndr, "in", "clusapi_DeleteGroupSet");
   21019           0 :                 ndr->depth++;
   21020           0 :                 ndr_print_policy_handle(ndr, "GroupSet", &r->in.GroupSet);
   21021           0 :                 ndr->depth--;
   21022             :         }
   21023           0 :         if (flags & NDR_OUT) {
   21024           0 :                 ndr_print_struct(ndr, "out", "clusapi_DeleteGroupSet");
   21025           0 :                 ndr->depth++;
   21026           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   21027           0 :                 ndr->depth++;
   21028           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   21029           0 :                 ndr->depth--;
   21030           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   21031           0 :                 ndr->depth--;
   21032             :         }
   21033           0 :         ndr->depth--;
   21034             : }
   21035             : 
   21036           0 : static enum ndr_err_code ndr_push_clusapi_AddGroupToGroupSet(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_AddGroupToGroupSet *r)
   21037             : {
   21038           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   21039           0 :         if (flags & NDR_IN) {
   21040           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.GroupSet));
   21041           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.Group));
   21042             :         }
   21043           0 :         if (flags & NDR_OUT) {
   21044           0 :                 if (r->out.rpc_status == NULL) {
   21045           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   21046             :                 }
   21047           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   21048           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   21049             :         }
   21050           0 :         return NDR_ERR_SUCCESS;
   21051             : }
   21052             : 
   21053           0 : static enum ndr_err_code ndr_pull_clusapi_AddGroupToGroupSet(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_AddGroupToGroupSet *r)
   21054             : {
   21055           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   21056           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   21057           0 :         if (flags & NDR_IN) {
   21058           0 :                 NDR_ZERO_STRUCT(r->out);
   21059             : 
   21060           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.GroupSet));
   21061           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.Group));
   21062           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   21063           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   21064             :         }
   21065           0 :         if (flags & NDR_OUT) {
   21066             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   21067             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   21068           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   21069           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   21070             :                 }
   21071           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   21072           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   21073           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   21074           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   21075           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   21076             :         }
   21077           0 :         return NDR_ERR_SUCCESS;
   21078             : }
   21079             : 
   21080           0 : _PUBLIC_ void ndr_print_clusapi_AddGroupToGroupSet(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_AddGroupToGroupSet *r)
   21081             : {
   21082           0 :         ndr_print_struct(ndr, name, "clusapi_AddGroupToGroupSet");
   21083           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   21084           0 :         ndr->depth++;
   21085           0 :         if (flags & NDR_SET_VALUES) {
   21086           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   21087             :         }
   21088           0 :         if (flags & NDR_IN) {
   21089           0 :                 ndr_print_struct(ndr, "in", "clusapi_AddGroupToGroupSet");
   21090           0 :                 ndr->depth++;
   21091           0 :                 ndr_print_policy_handle(ndr, "GroupSet", &r->in.GroupSet);
   21092           0 :                 ndr_print_policy_handle(ndr, "Group", &r->in.Group);
   21093           0 :                 ndr->depth--;
   21094             :         }
   21095           0 :         if (flags & NDR_OUT) {
   21096           0 :                 ndr_print_struct(ndr, "out", "clusapi_AddGroupToGroupSet");
   21097           0 :                 ndr->depth++;
   21098           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   21099           0 :                 ndr->depth++;
   21100           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   21101           0 :                 ndr->depth--;
   21102           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   21103           0 :                 ndr->depth--;
   21104             :         }
   21105           0 :         ndr->depth--;
   21106             : }
   21107             : 
   21108           0 : static enum ndr_err_code ndr_push_clusapi_RemoveGroupFromGroupSet(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_RemoveGroupFromGroupSet *r)
   21109             : {
   21110           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   21111           0 :         if (flags & NDR_IN) {
   21112           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.Group));
   21113             :         }
   21114           0 :         if (flags & NDR_OUT) {
   21115           0 :                 if (r->out.rpc_status == NULL) {
   21116           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   21117             :                 }
   21118           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   21119           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   21120             :         }
   21121           0 :         return NDR_ERR_SUCCESS;
   21122             : }
   21123             : 
   21124           0 : static enum ndr_err_code ndr_pull_clusapi_RemoveGroupFromGroupSet(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_RemoveGroupFromGroupSet *r)
   21125             : {
   21126           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   21127           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   21128           0 :         if (flags & NDR_IN) {
   21129           0 :                 NDR_ZERO_STRUCT(r->out);
   21130             : 
   21131           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.Group));
   21132           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   21133           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   21134             :         }
   21135           0 :         if (flags & NDR_OUT) {
   21136             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   21137             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   21138           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   21139           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   21140             :                 }
   21141           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   21142           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   21143           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   21144           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   21145           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   21146             :         }
   21147           0 :         return NDR_ERR_SUCCESS;
   21148             : }
   21149             : 
   21150           0 : _PUBLIC_ void ndr_print_clusapi_RemoveGroupFromGroupSet(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_RemoveGroupFromGroupSet *r)
   21151             : {
   21152           0 :         ndr_print_struct(ndr, name, "clusapi_RemoveGroupFromGroupSet");
   21153           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   21154           0 :         ndr->depth++;
   21155           0 :         if (flags & NDR_SET_VALUES) {
   21156           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   21157             :         }
   21158           0 :         if (flags & NDR_IN) {
   21159           0 :                 ndr_print_struct(ndr, "in", "clusapi_RemoveGroupFromGroupSet");
   21160           0 :                 ndr->depth++;
   21161           0 :                 ndr_print_policy_handle(ndr, "Group", &r->in.Group);
   21162           0 :                 ndr->depth--;
   21163             :         }
   21164           0 :         if (flags & NDR_OUT) {
   21165           0 :                 ndr_print_struct(ndr, "out", "clusapi_RemoveGroupFromGroupSet");
   21166           0 :                 ndr->depth++;
   21167           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   21168           0 :                 ndr->depth++;
   21169           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   21170           0 :                 ndr->depth--;
   21171           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   21172           0 :                 ndr->depth--;
   21173             :         }
   21174           0 :         ndr->depth--;
   21175             : }
   21176             : 
   21177           0 : static enum ndr_err_code ndr_push_clusapi_MoveGroupToGroupSet(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_MoveGroupToGroupSet *r)
   21178             : {
   21179           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   21180           0 :         if (flags & NDR_IN) {
   21181           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.GroupSet));
   21182           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.Group));
   21183             :         }
   21184           0 :         if (flags & NDR_OUT) {
   21185           0 :                 if (r->out.rpc_status == NULL) {
   21186           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   21187             :                 }
   21188           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   21189           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   21190             :         }
   21191           0 :         return NDR_ERR_SUCCESS;
   21192             : }
   21193             : 
   21194           0 : static enum ndr_err_code ndr_pull_clusapi_MoveGroupToGroupSet(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_MoveGroupToGroupSet *r)
   21195             : {
   21196           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   21197           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   21198           0 :         if (flags & NDR_IN) {
   21199           0 :                 NDR_ZERO_STRUCT(r->out);
   21200             : 
   21201           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.GroupSet));
   21202           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.Group));
   21203           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   21204           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   21205             :         }
   21206           0 :         if (flags & NDR_OUT) {
   21207             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   21208             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   21209           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   21210           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   21211             :                 }
   21212           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   21213           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   21214           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   21215           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   21216           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   21217             :         }
   21218           0 :         return NDR_ERR_SUCCESS;
   21219             : }
   21220             : 
   21221           0 : _PUBLIC_ void ndr_print_clusapi_MoveGroupToGroupSet(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_MoveGroupToGroupSet *r)
   21222             : {
   21223           0 :         ndr_print_struct(ndr, name, "clusapi_MoveGroupToGroupSet");
   21224           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   21225           0 :         ndr->depth++;
   21226           0 :         if (flags & NDR_SET_VALUES) {
   21227           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   21228             :         }
   21229           0 :         if (flags & NDR_IN) {
   21230           0 :                 ndr_print_struct(ndr, "in", "clusapi_MoveGroupToGroupSet");
   21231           0 :                 ndr->depth++;
   21232           0 :                 ndr_print_policy_handle(ndr, "GroupSet", &r->in.GroupSet);
   21233           0 :                 ndr_print_policy_handle(ndr, "Group", &r->in.Group);
   21234           0 :                 ndr->depth--;
   21235             :         }
   21236           0 :         if (flags & NDR_OUT) {
   21237           0 :                 ndr_print_struct(ndr, "out", "clusapi_MoveGroupToGroupSet");
   21238           0 :                 ndr->depth++;
   21239           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   21240           0 :                 ndr->depth++;
   21241           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   21242           0 :                 ndr->depth--;
   21243           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   21244           0 :                 ndr->depth--;
   21245             :         }
   21246           0 :         ndr->depth--;
   21247             : }
   21248             : 
   21249           0 : static enum ndr_err_code ndr_push_Opnum170NotUsedOnWire(struct ndr_push *ndr, ndr_flags_type flags, const struct Opnum170NotUsedOnWire *r)
   21250             : {
   21251           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   21252           0 :         if (flags & NDR_IN) {
   21253           0 :         }
   21254           0 :         if (flags & NDR_OUT) {
   21255           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   21256             :         }
   21257           0 :         return NDR_ERR_SUCCESS;
   21258             : }
   21259             : 
   21260           0 : static enum ndr_err_code ndr_pull_Opnum170NotUsedOnWire(struct ndr_pull *ndr, ndr_flags_type flags, struct Opnum170NotUsedOnWire *r)
   21261             : {
   21262           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   21263           0 :         if (flags & NDR_IN) {
   21264           0 :         }
   21265           0 :         if (flags & NDR_OUT) {
   21266             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   21267             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   21268           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   21269             :         }
   21270           0 :         return NDR_ERR_SUCCESS;
   21271             : }
   21272             : 
   21273           0 : _PUBLIC_ void ndr_print_Opnum170NotUsedOnWire(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct Opnum170NotUsedOnWire *r)
   21274             : {
   21275           0 :         ndr_print_struct(ndr, name, "Opnum170NotUsedOnWire");
   21276           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   21277           0 :         ndr->depth++;
   21278           0 :         if (flags & NDR_SET_VALUES) {
   21279           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   21280             :         }
   21281           0 :         if (flags & NDR_IN) {
   21282           0 :                 ndr_print_struct(ndr, "in", "Opnum170NotUsedOnWire");
   21283           0 :                 ndr->depth++;
   21284           0 :                 ndr->depth--;
   21285             :         }
   21286           0 :         if (flags & NDR_OUT) {
   21287           0 :                 ndr_print_struct(ndr, "out", "Opnum170NotUsedOnWire");
   21288           0 :                 ndr->depth++;
   21289           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   21290           0 :                 ndr->depth--;
   21291             :         }
   21292           0 :         ndr->depth--;
   21293             : }
   21294             : 
   21295           0 : static enum ndr_err_code ndr_push_clusapi_AddGroupSetDependency(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_AddGroupSetDependency *r)
   21296             : {
   21297           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   21298           0 :         if (flags & NDR_IN) {
   21299           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.DependentGroupSet));
   21300           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.ProviderGroupSet));
   21301             :         }
   21302           0 :         if (flags & NDR_OUT) {
   21303           0 :                 if (r->out.rpc_status == NULL) {
   21304           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   21305             :                 }
   21306           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   21307           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   21308             :         }
   21309           0 :         return NDR_ERR_SUCCESS;
   21310             : }
   21311             : 
   21312           0 : static enum ndr_err_code ndr_pull_clusapi_AddGroupSetDependency(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_AddGroupSetDependency *r)
   21313             : {
   21314           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   21315           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   21316           0 :         if (flags & NDR_IN) {
   21317           0 :                 NDR_ZERO_STRUCT(r->out);
   21318             : 
   21319           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.DependentGroupSet));
   21320           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.ProviderGroupSet));
   21321           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   21322           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   21323             :         }
   21324           0 :         if (flags & NDR_OUT) {
   21325             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   21326             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   21327           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   21328           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   21329             :                 }
   21330           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   21331           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   21332           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   21333           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   21334           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   21335             :         }
   21336           0 :         return NDR_ERR_SUCCESS;
   21337             : }
   21338             : 
   21339           0 : _PUBLIC_ void ndr_print_clusapi_AddGroupSetDependency(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_AddGroupSetDependency *r)
   21340             : {
   21341           0 :         ndr_print_struct(ndr, name, "clusapi_AddGroupSetDependency");
   21342           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   21343           0 :         ndr->depth++;
   21344           0 :         if (flags & NDR_SET_VALUES) {
   21345           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   21346             :         }
   21347           0 :         if (flags & NDR_IN) {
   21348           0 :                 ndr_print_struct(ndr, "in", "clusapi_AddGroupSetDependency");
   21349           0 :                 ndr->depth++;
   21350           0 :                 ndr_print_policy_handle(ndr, "DependentGroupSet", &r->in.DependentGroupSet);
   21351           0 :                 ndr_print_policy_handle(ndr, "ProviderGroupSet", &r->in.ProviderGroupSet);
   21352           0 :                 ndr->depth--;
   21353             :         }
   21354           0 :         if (flags & NDR_OUT) {
   21355           0 :                 ndr_print_struct(ndr, "out", "clusapi_AddGroupSetDependency");
   21356           0 :                 ndr->depth++;
   21357           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   21358           0 :                 ndr->depth++;
   21359           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   21360           0 :                 ndr->depth--;
   21361           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   21362           0 :                 ndr->depth--;
   21363             :         }
   21364           0 :         ndr->depth--;
   21365             : }
   21366             : 
   21367           0 : static enum ndr_err_code ndr_push_clusapi_AddGroupToGroupSetDependency(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_AddGroupToGroupSetDependency *r)
   21368             : {
   21369           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   21370           0 :         if (flags & NDR_IN) {
   21371           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.DependentGroup));
   21372           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.ProviderGroupSet));
   21373             :         }
   21374           0 :         if (flags & NDR_OUT) {
   21375           0 :                 if (r->out.rpc_status == NULL) {
   21376           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   21377             :                 }
   21378           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   21379           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   21380             :         }
   21381           0 :         return NDR_ERR_SUCCESS;
   21382             : }
   21383             : 
   21384           0 : static enum ndr_err_code ndr_pull_clusapi_AddGroupToGroupSetDependency(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_AddGroupToGroupSetDependency *r)
   21385             : {
   21386           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   21387           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   21388           0 :         if (flags & NDR_IN) {
   21389           0 :                 NDR_ZERO_STRUCT(r->out);
   21390             : 
   21391           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.DependentGroup));
   21392           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.ProviderGroupSet));
   21393           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   21394           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   21395             :         }
   21396           0 :         if (flags & NDR_OUT) {
   21397             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   21398             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   21399           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   21400           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   21401             :                 }
   21402           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   21403           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   21404           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   21405           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   21406           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   21407             :         }
   21408           0 :         return NDR_ERR_SUCCESS;
   21409             : }
   21410             : 
   21411           0 : _PUBLIC_ void ndr_print_clusapi_AddGroupToGroupSetDependency(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_AddGroupToGroupSetDependency *r)
   21412             : {
   21413           0 :         ndr_print_struct(ndr, name, "clusapi_AddGroupToGroupSetDependency");
   21414           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   21415           0 :         ndr->depth++;
   21416           0 :         if (flags & NDR_SET_VALUES) {
   21417           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   21418             :         }
   21419           0 :         if (flags & NDR_IN) {
   21420           0 :                 ndr_print_struct(ndr, "in", "clusapi_AddGroupToGroupSetDependency");
   21421           0 :                 ndr->depth++;
   21422           0 :                 ndr_print_policy_handle(ndr, "DependentGroup", &r->in.DependentGroup);
   21423           0 :                 ndr_print_policy_handle(ndr, "ProviderGroupSet", &r->in.ProviderGroupSet);
   21424           0 :                 ndr->depth--;
   21425             :         }
   21426           0 :         if (flags & NDR_OUT) {
   21427           0 :                 ndr_print_struct(ndr, "out", "clusapi_AddGroupToGroupSetDependency");
   21428           0 :                 ndr->depth++;
   21429           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   21430           0 :                 ndr->depth++;
   21431           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   21432           0 :                 ndr->depth--;
   21433           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   21434           0 :                 ndr->depth--;
   21435             :         }
   21436           0 :         ndr->depth--;
   21437             : }
   21438             : 
   21439           0 : static enum ndr_err_code ndr_push_clusapi_NodeGroupSetControl(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_NodeGroupSetControl *r)
   21440             : {
   21441           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   21442           0 :         if (flags & NDR_IN) {
   21443           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroupSet));
   21444           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   21445           0 :                 NDR_CHECK(ndr_push_clusapi_GroupSetControlCode(ndr, NDR_SCALARS, r->in.dwControlCode));
   21446           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
   21447           0 :                 if (r->in.lpInBuffer) {
   21448           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
   21449           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
   21450             :                 }
   21451           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
   21452           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   21453             :         }
   21454           0 :         if (flags & NDR_OUT) {
   21455           0 :                 if (r->out.lpOutBuffer == NULL) {
   21456           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   21457             :                 }
   21458           0 :                 if (r->out.lpBytesReturned == NULL) {
   21459           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   21460             :                 }
   21461           0 :                 if (r->out.lpcbRequired == NULL) {
   21462           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   21463             :                 }
   21464           0 :                 if (r->out.rpc_status == NULL) {
   21465           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   21466             :                 }
   21467           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   21468           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   21469           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   21470           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
   21471           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   21472           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
   21473           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   21474           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   21475             :         }
   21476           0 :         return NDR_ERR_SUCCESS;
   21477             : }
   21478             : 
   21479           0 : static enum ndr_err_code ndr_pull_clusapi_NodeGroupSetControl(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_NodeGroupSetControl *r)
   21480             : {
   21481           0 :         uint32_t _ptr_lpInBuffer;
   21482           0 :         uint32_t size_lpInBuffer_1 = 0;
   21483           0 :         uint32_t size_lpOutBuffer_1 = 0;
   21484           0 :         uint32_t length_lpOutBuffer_1 = 0;
   21485           0 :         TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
   21486           0 :         TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
   21487           0 :         TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
   21488           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   21489           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   21490           0 :         if (flags & NDR_IN) {
   21491           0 :                 NDR_ZERO_STRUCT(r->out);
   21492             : 
   21493           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroupSet));
   21494           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hNode));
   21495           0 :                 NDR_CHECK(ndr_pull_clusapi_GroupSetControlCode(ndr, NDR_SCALARS, &r->in.dwControlCode));
   21496           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
   21497           0 :                 if (_ptr_lpInBuffer) {
   21498           0 :                         NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
   21499             :                 } else {
   21500           0 :                         r->in.lpInBuffer = NULL;
   21501             :                 }
   21502           0 :                 if (r->in.lpInBuffer) {
   21503           0 :                         _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
   21504           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
   21505           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
   21506           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
   21507           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
   21508           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
   21509           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
   21510             :                 }
   21511           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
   21512           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
   21513           0 :                 if (r->in.nOutBufferSize > 2147483647) {
   21514           0 :                         return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->in.nOutBufferSize), (uint32_t)(0), (uint32_t)(2147483647));
   21515             :                 }
   21516           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
   21517           0 :                 memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
   21518           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   21519           0 :                 NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
   21520           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   21521           0 :                 NDR_ZERO_STRUCTP(r->out.lpcbRequired);
   21522           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   21523           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   21524           0 :                 if (r->in.lpInBuffer) {
   21525           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
   21526             :                 }
   21527             :         }
   21528           0 :         if (flags & NDR_OUT) {
   21529             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   21530             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   21531           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
   21532           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
   21533           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
   21534           0 :                 NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
   21535           0 :                 if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
   21536           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpOutBuffer_1, length_lpOutBuffer_1);
   21537             :                 }
   21538           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   21539           0 :                         NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
   21540             :                 }
   21541           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
   21542           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   21543           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   21544             :                 }
   21545           0 :                 _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
   21546           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
   21547           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
   21548           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
   21549           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   21550           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   21551             :                 }
   21552           0 :                 _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
   21553           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
   21554           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
   21555           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
   21556           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   21557           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   21558             :                 }
   21559           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   21560           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   21561           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   21562           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   21563           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   21564           0 :                 if (r->out.lpOutBuffer) {
   21565           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
   21566             :                 }
   21567           0 :                 if (r->out.lpOutBuffer) {
   21568           0 :                         NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
   21569             :                 }
   21570             :         }
   21571           0 :         return NDR_ERR_SUCCESS;
   21572             : }
   21573             : 
   21574           0 : _PUBLIC_ void ndr_print_clusapi_NodeGroupSetControl(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_NodeGroupSetControl *r)
   21575             : {
   21576           0 :         ndr_print_struct(ndr, name, "clusapi_NodeGroupSetControl");
   21577           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   21578           0 :         ndr->depth++;
   21579           0 :         if (flags & NDR_SET_VALUES) {
   21580           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   21581             :         }
   21582           0 :         if (flags & NDR_IN) {
   21583           0 :                 ndr_print_struct(ndr, "in", "clusapi_NodeGroupSetControl");
   21584           0 :                 ndr->depth++;
   21585           0 :                 ndr_print_policy_handle(ndr, "hGroupSet", &r->in.hGroupSet);
   21586           0 :                 ndr_print_policy_handle(ndr, "hNode", &r->in.hNode);
   21587           0 :                 ndr_print_clusapi_GroupSetControlCode(ndr, "dwControlCode", r->in.dwControlCode);
   21588           0 :                 ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
   21589           0 :                 ndr->depth++;
   21590           0 :                 if (r->in.lpInBuffer) {
   21591           0 :                         ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
   21592             :                 }
   21593           0 :                 ndr->depth--;
   21594           0 :                 ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
   21595           0 :                 ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
   21596           0 :                 ndr->depth--;
   21597             :         }
   21598           0 :         if (flags & NDR_OUT) {
   21599           0 :                 ndr_print_struct(ndr, "out", "clusapi_NodeGroupSetControl");
   21600           0 :                 ndr->depth++;
   21601           0 :                 ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
   21602           0 :                 ndr->depth++;
   21603           0 :                 ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
   21604           0 :                 ndr->depth--;
   21605           0 :                 ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
   21606           0 :                 ndr->depth++;
   21607           0 :                 ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
   21608           0 :                 ndr->depth--;
   21609           0 :                 ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
   21610           0 :                 ndr->depth++;
   21611           0 :                 ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
   21612           0 :                 ndr->depth--;
   21613           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   21614           0 :                 ndr->depth++;
   21615           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   21616           0 :                 ndr->depth--;
   21617           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   21618           0 :                 ndr->depth--;
   21619             :         }
   21620           0 :         ndr->depth--;
   21621             : }
   21622             : 
   21623           0 : static enum ndr_err_code ndr_push_clusapi_GroupSetControl(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_GroupSetControl *r)
   21624             : {
   21625           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   21626           0 :         if (flags & NDR_IN) {
   21627           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroupSet));
   21628           0 :                 NDR_CHECK(ndr_push_clusapi_GroupSetControlCode(ndr, NDR_SCALARS, r->in.dwControlCode));
   21629           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.lpInBuffer));
   21630           0 :                 if (r->in.lpInBuffer) {
   21631           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nInBufferSize));
   21632           0 :                         NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, r->in.nInBufferSize));
   21633             :                 }
   21634           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nInBufferSize));
   21635           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   21636             :         }
   21637           0 :         if (flags & NDR_OUT) {
   21638           0 :                 if (r->out.lpOutBuffer == NULL) {
   21639           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   21640             :                 }
   21641           0 :                 if (r->out.lpBytesReturned == NULL) {
   21642           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   21643             :                 }
   21644           0 :                 if (r->out.lpcbRequired == NULL) {
   21645           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   21646             :                 }
   21647           0 :                 if (r->out.rpc_status == NULL) {
   21648           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   21649             :                 }
   21650           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->in.nOutBufferSize));
   21651           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   21652           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   21653           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, *r->out.lpBytesReturned));
   21654           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpBytesReturned));
   21655           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.lpcbRequired));
   21656           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   21657           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   21658             :         }
   21659           0 :         return NDR_ERR_SUCCESS;
   21660             : }
   21661             : 
   21662           0 : static enum ndr_err_code ndr_pull_clusapi_GroupSetControl(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_GroupSetControl *r)
   21663             : {
   21664           0 :         uint32_t _ptr_lpInBuffer;
   21665           0 :         uint32_t size_lpInBuffer_1 = 0;
   21666           0 :         uint32_t size_lpOutBuffer_1 = 0;
   21667           0 :         uint32_t length_lpOutBuffer_1 = 0;
   21668           0 :         TALLOC_CTX *_mem_save_lpInBuffer_0 = NULL;
   21669           0 :         TALLOC_CTX *_mem_save_lpBytesReturned_0 = NULL;
   21670           0 :         TALLOC_CTX *_mem_save_lpcbRequired_0 = NULL;
   21671           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   21672           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   21673           0 :         if (flags & NDR_IN) {
   21674           0 :                 NDR_ZERO_STRUCT(r->out);
   21675             : 
   21676           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroupSet));
   21677           0 :                 NDR_CHECK(ndr_pull_clusapi_GroupSetControlCode(ndr, NDR_SCALARS, &r->in.dwControlCode));
   21678           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_lpInBuffer));
   21679           0 :                 if (_ptr_lpInBuffer) {
   21680           0 :                         NDR_PULL_ALLOC(ndr, r->in.lpInBuffer);
   21681             :                 } else {
   21682           0 :                         r->in.lpInBuffer = NULL;
   21683             :                 }
   21684           0 :                 if (r->in.lpInBuffer) {
   21685           0 :                         _mem_save_lpInBuffer_0 = NDR_PULL_GET_MEM_CTX(ndr);
   21686           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.lpInBuffer, 0);
   21687           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpInBuffer));
   21688           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->in.lpInBuffer, &size_lpInBuffer_1));
   21689           0 :                         NDR_PULL_ALLOC_N(ndr, r->in.lpInBuffer, size_lpInBuffer_1);
   21690           0 :                         NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.lpInBuffer, size_lpInBuffer_1));
   21691           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpInBuffer_0, 0);
   21692             :                 }
   21693           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nInBufferSize));
   21694           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.nOutBufferSize));
   21695           0 :                 if (r->in.nOutBufferSize > 2147483647) {
   21696           0 :                         return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->in.nOutBufferSize), (uint32_t)(0), (uint32_t)(2147483647));
   21697             :                 }
   21698           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, r->in.nOutBufferSize);
   21699           0 :                 memset(r->out.lpOutBuffer, 0, (r->in.nOutBufferSize) * sizeof(*r->out.lpOutBuffer));
   21700           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   21701           0 :                 NDR_ZERO_STRUCTP(r->out.lpBytesReturned);
   21702           0 :                 NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   21703           0 :                 NDR_ZERO_STRUCTP(r->out.lpcbRequired);
   21704           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   21705           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   21706           0 :                 if (r->in.lpInBuffer) {
   21707           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->in.lpInBuffer, r->in.nInBufferSize));
   21708             :                 }
   21709             :         }
   21710           0 :         if (flags & NDR_OUT) {
   21711             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   21712             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   21713           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.lpOutBuffer));
   21714           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->out.lpOutBuffer));
   21715           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.lpOutBuffer, &size_lpOutBuffer_1));
   21716           0 :                 NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.lpOutBuffer, &length_lpOutBuffer_1));
   21717           0 :                 if (length_lpOutBuffer_1 > size_lpOutBuffer_1) {
   21718           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpOutBuffer_1, length_lpOutBuffer_1);
   21719             :                 }
   21720           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   21721           0 :                         NDR_PULL_ALLOC_N(ndr, r->out.lpOutBuffer, size_lpOutBuffer_1);
   21722             :                 }
   21723           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->out.lpOutBuffer, length_lpOutBuffer_1));
   21724           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   21725           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpBytesReturned);
   21726             :                 }
   21727           0 :                 _mem_save_lpBytesReturned_0 = NDR_PULL_GET_MEM_CTX(ndr);
   21728           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpBytesReturned, LIBNDR_FLAG_REF_ALLOC);
   21729           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpBytesReturned));
   21730           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpBytesReturned_0, LIBNDR_FLAG_REF_ALLOC);
   21731           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   21732           0 :                         NDR_PULL_ALLOC(ndr, r->out.lpcbRequired);
   21733             :                 }
   21734           0 :                 _mem_save_lpcbRequired_0 = NDR_PULL_GET_MEM_CTX(ndr);
   21735           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.lpcbRequired, LIBNDR_FLAG_REF_ALLOC);
   21736           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.lpcbRequired));
   21737           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_lpcbRequired_0, LIBNDR_FLAG_REF_ALLOC);
   21738           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   21739           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   21740             :                 }
   21741           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   21742           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   21743           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   21744           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   21745           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   21746           0 :                 if (r->out.lpOutBuffer) {
   21747           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.lpOutBuffer, r->in.nOutBufferSize));
   21748             :                 }
   21749           0 :                 if (r->out.lpOutBuffer) {
   21750           0 :                         NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.lpOutBuffer, *r->out.lpBytesReturned));
   21751             :                 }
   21752             :         }
   21753           0 :         return NDR_ERR_SUCCESS;
   21754             : }
   21755             : 
   21756           0 : _PUBLIC_ void ndr_print_clusapi_GroupSetControl(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_GroupSetControl *r)
   21757             : {
   21758           0 :         ndr_print_struct(ndr, name, "clusapi_GroupSetControl");
   21759           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   21760           0 :         ndr->depth++;
   21761           0 :         if (flags & NDR_SET_VALUES) {
   21762           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   21763             :         }
   21764           0 :         if (flags & NDR_IN) {
   21765           0 :                 ndr_print_struct(ndr, "in", "clusapi_GroupSetControl");
   21766           0 :                 ndr->depth++;
   21767           0 :                 ndr_print_policy_handle(ndr, "hGroupSet", &r->in.hGroupSet);
   21768           0 :                 ndr_print_clusapi_GroupSetControlCode(ndr, "dwControlCode", r->in.dwControlCode);
   21769           0 :                 ndr_print_ptr(ndr, "lpInBuffer", r->in.lpInBuffer);
   21770           0 :                 ndr->depth++;
   21771           0 :                 if (r->in.lpInBuffer) {
   21772           0 :                         ndr_print_array_uint8(ndr, "lpInBuffer", r->in.lpInBuffer, r->in.nInBufferSize);
   21773             :                 }
   21774           0 :                 ndr->depth--;
   21775           0 :                 ndr_print_uint32(ndr, "nInBufferSize", r->in.nInBufferSize);
   21776           0 :                 ndr_print_uint32(ndr, "nOutBufferSize", r->in.nOutBufferSize);
   21777           0 :                 ndr->depth--;
   21778             :         }
   21779           0 :         if (flags & NDR_OUT) {
   21780           0 :                 ndr_print_struct(ndr, "out", "clusapi_GroupSetControl");
   21781           0 :                 ndr->depth++;
   21782           0 :                 ndr_print_ptr(ndr, "lpOutBuffer", r->out.lpOutBuffer);
   21783           0 :                 ndr->depth++;
   21784           0 :                 ndr_print_array_uint8(ndr, "lpOutBuffer", r->out.lpOutBuffer, *r->out.lpBytesReturned);
   21785           0 :                 ndr->depth--;
   21786           0 :                 ndr_print_ptr(ndr, "lpBytesReturned", r->out.lpBytesReturned);
   21787           0 :                 ndr->depth++;
   21788           0 :                 ndr_print_uint32(ndr, "lpBytesReturned", *r->out.lpBytesReturned);
   21789           0 :                 ndr->depth--;
   21790           0 :                 ndr_print_ptr(ndr, "lpcbRequired", r->out.lpcbRequired);
   21791           0 :                 ndr->depth++;
   21792           0 :                 ndr_print_uint32(ndr, "lpcbRequired", *r->out.lpcbRequired);
   21793           0 :                 ndr->depth--;
   21794           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   21795           0 :                 ndr->depth++;
   21796           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   21797           0 :                 ndr->depth--;
   21798           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   21799           0 :                 ndr->depth--;
   21800             :         }
   21801           0 :         ndr->depth--;
   21802             : }
   21803             : 
   21804           0 : static enum ndr_err_code ndr_push_clusapi_SetGroupDependencyExpression(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_SetGroupDependencyExpression *r)
   21805             : {
   21806           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   21807           0 :         if (flags & NDR_IN) {
   21808           0 :                 if (r->in.lpszDependencyExpression == NULL) {
   21809           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   21810             :                 }
   21811           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
   21812           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszDependencyExpression, CH_UTF16)));
   21813           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   21814           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszDependencyExpression, CH_UTF16)));
   21815           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszDependencyExpression, ndr_charset_length(r->in.lpszDependencyExpression, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   21816             :         }
   21817           0 :         if (flags & NDR_OUT) {
   21818           0 :                 if (r->out.rpc_status == NULL) {
   21819           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   21820             :                 }
   21821           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   21822           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   21823             :         }
   21824           0 :         return NDR_ERR_SUCCESS;
   21825             : }
   21826             : 
   21827           0 : static enum ndr_err_code ndr_pull_clusapi_SetGroupDependencyExpression(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_SetGroupDependencyExpression *r)
   21828             : {
   21829           0 :         uint32_t size_lpszDependencyExpression_1 = 0;
   21830           0 :         uint32_t length_lpszDependencyExpression_1 = 0;
   21831           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   21832           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   21833           0 :         if (flags & NDR_IN) {
   21834           0 :                 NDR_ZERO_STRUCT(r->out);
   21835             : 
   21836           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
   21837           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszDependencyExpression));
   21838           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszDependencyExpression));
   21839           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszDependencyExpression, &size_lpszDependencyExpression_1));
   21840           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszDependencyExpression, &length_lpszDependencyExpression_1));
   21841           0 :                 if (length_lpszDependencyExpression_1 > size_lpszDependencyExpression_1) {
   21842           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszDependencyExpression_1, length_lpszDependencyExpression_1);
   21843             :                 }
   21844           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszDependencyExpression_1, sizeof(uint16_t)));
   21845           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszDependencyExpression, length_lpszDependencyExpression_1, sizeof(uint16_t), CH_UTF16));
   21846           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   21847           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   21848             :         }
   21849           0 :         if (flags & NDR_OUT) {
   21850             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   21851             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   21852           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   21853           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   21854             :                 }
   21855           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   21856           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   21857           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   21858           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   21859           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   21860             :         }
   21861           0 :         return NDR_ERR_SUCCESS;
   21862             : }
   21863             : 
   21864           0 : _PUBLIC_ void ndr_print_clusapi_SetGroupDependencyExpression(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_SetGroupDependencyExpression *r)
   21865             : {
   21866           0 :         ndr_print_struct(ndr, name, "clusapi_SetGroupDependencyExpression");
   21867           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   21868           0 :         ndr->depth++;
   21869           0 :         if (flags & NDR_SET_VALUES) {
   21870           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   21871             :         }
   21872           0 :         if (flags & NDR_IN) {
   21873           0 :                 ndr_print_struct(ndr, "in", "clusapi_SetGroupDependencyExpression");
   21874           0 :                 ndr->depth++;
   21875           0 :                 ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
   21876           0 :                 ndr_print_ptr(ndr, "lpszDependencyExpression", r->in.lpszDependencyExpression);
   21877           0 :                 ndr->depth++;
   21878           0 :                 ndr_print_string(ndr, "lpszDependencyExpression", r->in.lpszDependencyExpression);
   21879           0 :                 ndr->depth--;
   21880           0 :                 ndr->depth--;
   21881             :         }
   21882           0 :         if (flags & NDR_OUT) {
   21883           0 :                 ndr_print_struct(ndr, "out", "clusapi_SetGroupDependencyExpression");
   21884           0 :                 ndr->depth++;
   21885           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   21886           0 :                 ndr->depth++;
   21887           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   21888           0 :                 ndr->depth--;
   21889           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   21890           0 :                 ndr->depth--;
   21891             :         }
   21892           0 :         ndr->depth--;
   21893             : }
   21894             : 
   21895           0 : static enum ndr_err_code ndr_push_clusapi_RemoveClusterGroupDependency(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_RemoveClusterGroupDependency *r)
   21896             : {
   21897           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   21898           0 :         if (flags & NDR_IN) {
   21899           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
   21900           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hDependsOn));
   21901             :         }
   21902           0 :         if (flags & NDR_OUT) {
   21903           0 :                 if (r->out.rpc_status == NULL) {
   21904           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   21905             :                 }
   21906           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   21907           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   21908             :         }
   21909           0 :         return NDR_ERR_SUCCESS;
   21910             : }
   21911             : 
   21912           0 : static enum ndr_err_code ndr_pull_clusapi_RemoveClusterGroupDependency(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_RemoveClusterGroupDependency *r)
   21913             : {
   21914           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   21915           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   21916           0 :         if (flags & NDR_IN) {
   21917           0 :                 NDR_ZERO_STRUCT(r->out);
   21918             : 
   21919           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
   21920           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hDependsOn));
   21921           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   21922           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   21923             :         }
   21924           0 :         if (flags & NDR_OUT) {
   21925             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   21926             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   21927           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   21928           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   21929             :                 }
   21930           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   21931           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   21932           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   21933           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   21934           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   21935             :         }
   21936           0 :         return NDR_ERR_SUCCESS;
   21937             : }
   21938             : 
   21939           0 : _PUBLIC_ void ndr_print_clusapi_RemoveClusterGroupDependency(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_RemoveClusterGroupDependency *r)
   21940             : {
   21941           0 :         ndr_print_struct(ndr, name, "clusapi_RemoveClusterGroupDependency");
   21942           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   21943           0 :         ndr->depth++;
   21944           0 :         if (flags & NDR_SET_VALUES) {
   21945           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   21946             :         }
   21947           0 :         if (flags & NDR_IN) {
   21948           0 :                 ndr_print_struct(ndr, "in", "clusapi_RemoveClusterGroupDependency");
   21949           0 :                 ndr->depth++;
   21950           0 :                 ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
   21951           0 :                 ndr_print_policy_handle(ndr, "hDependsOn", &r->in.hDependsOn);
   21952           0 :                 ndr->depth--;
   21953             :         }
   21954           0 :         if (flags & NDR_OUT) {
   21955           0 :                 ndr_print_struct(ndr, "out", "clusapi_RemoveClusterGroupDependency");
   21956           0 :                 ndr->depth++;
   21957           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   21958           0 :                 ndr->depth++;
   21959           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   21960           0 :                 ndr->depth--;
   21961           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   21962           0 :                 ndr->depth--;
   21963             :         }
   21964           0 :         ndr->depth--;
   21965             : }
   21966             : 
   21967           0 : static enum ndr_err_code ndr_push_clusapi_SetGroupSetDependencyExpression(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_SetGroupSetDependencyExpression *r)
   21968             : {
   21969           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   21970           0 :         if (flags & NDR_IN) {
   21971           0 :                 if (r->in.lpszDependencyExpression == NULL) {
   21972           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   21973             :                 }
   21974           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroupSet));
   21975           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszDependencyExpression, CH_UTF16)));
   21976           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   21977           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszDependencyExpression, CH_UTF16)));
   21978           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszDependencyExpression, ndr_charset_length(r->in.lpszDependencyExpression, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   21979             :         }
   21980           0 :         if (flags & NDR_OUT) {
   21981           0 :                 if (r->out.rpc_status == NULL) {
   21982           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   21983             :                 }
   21984           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   21985           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   21986             :         }
   21987           0 :         return NDR_ERR_SUCCESS;
   21988             : }
   21989             : 
   21990           0 : static enum ndr_err_code ndr_pull_clusapi_SetGroupSetDependencyExpression(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_SetGroupSetDependencyExpression *r)
   21991             : {
   21992           0 :         uint32_t size_lpszDependencyExpression_1 = 0;
   21993           0 :         uint32_t length_lpszDependencyExpression_1 = 0;
   21994           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   21995           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   21996           0 :         if (flags & NDR_IN) {
   21997           0 :                 NDR_ZERO_STRUCT(r->out);
   21998             : 
   21999           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroupSet));
   22000           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszDependencyExpression));
   22001           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszDependencyExpression));
   22002           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszDependencyExpression, &size_lpszDependencyExpression_1));
   22003           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszDependencyExpression, &length_lpszDependencyExpression_1));
   22004           0 :                 if (length_lpszDependencyExpression_1 > size_lpszDependencyExpression_1) {
   22005           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszDependencyExpression_1, length_lpszDependencyExpression_1);
   22006             :                 }
   22007           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszDependencyExpression_1, sizeof(uint16_t)));
   22008           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszDependencyExpression, length_lpszDependencyExpression_1, sizeof(uint16_t), CH_UTF16));
   22009           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   22010           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   22011             :         }
   22012           0 :         if (flags & NDR_OUT) {
   22013             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   22014             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   22015           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   22016           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   22017             :                 }
   22018           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   22019           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   22020           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   22021           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   22022           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   22023             :         }
   22024           0 :         return NDR_ERR_SUCCESS;
   22025             : }
   22026             : 
   22027           0 : _PUBLIC_ void ndr_print_clusapi_SetGroupSetDependencyExpression(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_SetGroupSetDependencyExpression *r)
   22028             : {
   22029           0 :         ndr_print_struct(ndr, name, "clusapi_SetGroupSetDependencyExpression");
   22030           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   22031           0 :         ndr->depth++;
   22032           0 :         if (flags & NDR_SET_VALUES) {
   22033           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   22034             :         }
   22035           0 :         if (flags & NDR_IN) {
   22036           0 :                 ndr_print_struct(ndr, "in", "clusapi_SetGroupSetDependencyExpression");
   22037           0 :                 ndr->depth++;
   22038           0 :                 ndr_print_policy_handle(ndr, "hGroupSet", &r->in.hGroupSet);
   22039           0 :                 ndr_print_ptr(ndr, "lpszDependencyExpression", r->in.lpszDependencyExpression);
   22040           0 :                 ndr->depth++;
   22041           0 :                 ndr_print_string(ndr, "lpszDependencyExpression", r->in.lpszDependencyExpression);
   22042           0 :                 ndr->depth--;
   22043           0 :                 ndr->depth--;
   22044             :         }
   22045           0 :         if (flags & NDR_OUT) {
   22046           0 :                 ndr_print_struct(ndr, "out", "clusapi_SetGroupSetDependencyExpression");
   22047           0 :                 ndr->depth++;
   22048           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   22049           0 :                 ndr->depth++;
   22050           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   22051           0 :                 ndr->depth--;
   22052           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   22053           0 :                 ndr->depth--;
   22054             :         }
   22055           0 :         ndr->depth--;
   22056             : }
   22057             : 
   22058           0 : static enum ndr_err_code ndr_push_clusapi_RemoveGroupSetDependency(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_RemoveGroupSetDependency *r)
   22059             : {
   22060           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   22061           0 :         if (flags & NDR_IN) {
   22062           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroupSet));
   22063           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hDependsOn));
   22064             :         }
   22065           0 :         if (flags & NDR_OUT) {
   22066           0 :                 if (r->out.rpc_status == NULL) {
   22067           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   22068             :                 }
   22069           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   22070           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   22071             :         }
   22072           0 :         return NDR_ERR_SUCCESS;
   22073             : }
   22074             : 
   22075           0 : static enum ndr_err_code ndr_pull_clusapi_RemoveGroupSetDependency(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_RemoveGroupSetDependency *r)
   22076             : {
   22077           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   22078           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   22079           0 :         if (flags & NDR_IN) {
   22080           0 :                 NDR_ZERO_STRUCT(r->out);
   22081             : 
   22082           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroupSet));
   22083           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hDependsOn));
   22084           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   22085           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   22086             :         }
   22087           0 :         if (flags & NDR_OUT) {
   22088             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   22089             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   22090           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   22091           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   22092             :                 }
   22093           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   22094           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   22095           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   22096           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   22097           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   22098             :         }
   22099           0 :         return NDR_ERR_SUCCESS;
   22100             : }
   22101             : 
   22102           0 : _PUBLIC_ void ndr_print_clusapi_RemoveGroupSetDependency(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_RemoveGroupSetDependency *r)
   22103             : {
   22104           0 :         ndr_print_struct(ndr, name, "clusapi_RemoveGroupSetDependency");
   22105           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   22106           0 :         ndr->depth++;
   22107           0 :         if (flags & NDR_SET_VALUES) {
   22108           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   22109             :         }
   22110           0 :         if (flags & NDR_IN) {
   22111           0 :                 ndr_print_struct(ndr, "in", "clusapi_RemoveGroupSetDependency");
   22112           0 :                 ndr->depth++;
   22113           0 :                 ndr_print_policy_handle(ndr, "hGroupSet", &r->in.hGroupSet);
   22114           0 :                 ndr_print_policy_handle(ndr, "hDependsOn", &r->in.hDependsOn);
   22115           0 :                 ndr->depth--;
   22116             :         }
   22117           0 :         if (flags & NDR_OUT) {
   22118           0 :                 ndr_print_struct(ndr, "out", "clusapi_RemoveGroupSetDependency");
   22119           0 :                 ndr->depth++;
   22120           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   22121           0 :                 ndr->depth++;
   22122           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   22123           0 :                 ndr->depth--;
   22124           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   22125           0 :                 ndr->depth--;
   22126             :         }
   22127           0 :         ndr->depth--;
   22128             : }
   22129             : 
   22130           0 : static enum ndr_err_code ndr_push_clusapi_RemoveClusterGroupToGroupSetDependency(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_RemoveClusterGroupToGroupSetDependency *r)
   22131             : {
   22132           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   22133           0 :         if (flags & NDR_IN) {
   22134           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
   22135           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hDependsOn));
   22136             :         }
   22137           0 :         if (flags & NDR_OUT) {
   22138           0 :                 if (r->out.rpc_status == NULL) {
   22139           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   22140             :                 }
   22141           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   22142           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   22143             :         }
   22144           0 :         return NDR_ERR_SUCCESS;
   22145             : }
   22146             : 
   22147           0 : static enum ndr_err_code ndr_pull_clusapi_RemoveClusterGroupToGroupSetDependency(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_RemoveClusterGroupToGroupSetDependency *r)
   22148             : {
   22149           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   22150           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   22151           0 :         if (flags & NDR_IN) {
   22152           0 :                 NDR_ZERO_STRUCT(r->out);
   22153             : 
   22154           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hGroup));
   22155           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hDependsOn));
   22156           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   22157           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   22158             :         }
   22159           0 :         if (flags & NDR_OUT) {
   22160             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   22161             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   22162           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   22163           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   22164             :                 }
   22165           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   22166           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   22167           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   22168           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   22169           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   22170             :         }
   22171           0 :         return NDR_ERR_SUCCESS;
   22172             : }
   22173             : 
   22174           0 : _PUBLIC_ void ndr_print_clusapi_RemoveClusterGroupToGroupSetDependency(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_RemoveClusterGroupToGroupSetDependency *r)
   22175             : {
   22176           0 :         ndr_print_struct(ndr, name, "clusapi_RemoveClusterGroupToGroupSetDependency");
   22177           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   22178           0 :         ndr->depth++;
   22179           0 :         if (flags & NDR_SET_VALUES) {
   22180           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   22181             :         }
   22182           0 :         if (flags & NDR_IN) {
   22183           0 :                 ndr_print_struct(ndr, "in", "clusapi_RemoveClusterGroupToGroupSetDependency");
   22184           0 :                 ndr->depth++;
   22185           0 :                 ndr_print_policy_handle(ndr, "hGroup", &r->in.hGroup);
   22186           0 :                 ndr_print_policy_handle(ndr, "hDependsOn", &r->in.hDependsOn);
   22187           0 :                 ndr->depth--;
   22188             :         }
   22189           0 :         if (flags & NDR_OUT) {
   22190           0 :                 ndr_print_struct(ndr, "out", "clusapi_RemoveClusterGroupToGroupSetDependency");
   22191           0 :                 ndr->depth++;
   22192           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   22193           0 :                 ndr->depth++;
   22194           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   22195           0 :                 ndr->depth--;
   22196           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   22197           0 :                 ndr->depth--;
   22198             :         }
   22199           0 :         ndr->depth--;
   22200             : }
   22201             : 
   22202           0 : static enum ndr_err_code ndr_push_clusapi_CreateGroupSetEnum(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CreateGroupSetEnum *r)
   22203             : {
   22204           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   22205           0 :         if (flags & NDR_IN) {
   22206           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
   22207             :         }
   22208           0 :         if (flags & NDR_OUT) {
   22209           0 :                 if (r->out.ReturnEnum == NULL) {
   22210           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   22211             :                 }
   22212           0 :                 if (r->out.rpc_status == NULL) {
   22213           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   22214             :                 }
   22215           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ReturnEnum));
   22216           0 :                 if (*r->out.ReturnEnum) {
   22217           0 :                         NDR_CHECK(ndr_push_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
   22218             :                 }
   22219           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   22220           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   22221             :         }
   22222           0 :         return NDR_ERR_SUCCESS;
   22223             : }
   22224             : 
   22225           0 : static enum ndr_err_code ndr_pull_clusapi_CreateGroupSetEnum(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CreateGroupSetEnum *r)
   22226             : {
   22227           0 :         uint32_t _ptr_ReturnEnum;
   22228           0 :         TALLOC_CTX *_mem_save_ReturnEnum_0 = NULL;
   22229           0 :         TALLOC_CTX *_mem_save_ReturnEnum_1 = NULL;
   22230           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   22231           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   22232           0 :         if (flags & NDR_IN) {
   22233           0 :                 NDR_ZERO_STRUCT(r->out);
   22234             : 
   22235           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
   22236           0 :                 NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
   22237           0 :                 NDR_ZERO_STRUCTP(r->out.ReturnEnum);
   22238           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   22239           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   22240             :         }
   22241           0 :         if (flags & NDR_OUT) {
   22242             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   22243             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   22244           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   22245           0 :                         NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
   22246             :                 }
   22247           0 :                 _mem_save_ReturnEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
   22248           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ReturnEnum, LIBNDR_FLAG_REF_ALLOC);
   22249           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ReturnEnum));
   22250           0 :                 if (_ptr_ReturnEnum) {
   22251           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ReturnEnum);
   22252             :                 } else {
   22253           0 :                         *r->out.ReturnEnum = NULL;
   22254             :                 }
   22255           0 :                 if (*r->out.ReturnEnum) {
   22256           0 :                         _mem_save_ReturnEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
   22257           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ReturnEnum, 0);
   22258           0 :                         NDR_CHECK(ndr_pull_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
   22259           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_1, 0);
   22260             :                 }
   22261           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_0, LIBNDR_FLAG_REF_ALLOC);
   22262           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   22263           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   22264             :                 }
   22265           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   22266           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   22267           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   22268           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   22269           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   22270             :         }
   22271           0 :         return NDR_ERR_SUCCESS;
   22272             : }
   22273             : 
   22274           0 : _PUBLIC_ void ndr_print_clusapi_CreateGroupSetEnum(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CreateGroupSetEnum *r)
   22275             : {
   22276           0 :         ndr_print_struct(ndr, name, "clusapi_CreateGroupSetEnum");
   22277           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   22278           0 :         ndr->depth++;
   22279           0 :         if (flags & NDR_SET_VALUES) {
   22280           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   22281             :         }
   22282           0 :         if (flags & NDR_IN) {
   22283           0 :                 ndr_print_struct(ndr, "in", "clusapi_CreateGroupSetEnum");
   22284           0 :                 ndr->depth++;
   22285           0 :                 ndr_print_policy_handle(ndr, "hCluster", &r->in.hCluster);
   22286           0 :                 ndr->depth--;
   22287             :         }
   22288           0 :         if (flags & NDR_OUT) {
   22289           0 :                 ndr_print_struct(ndr, "out", "clusapi_CreateGroupSetEnum");
   22290           0 :                 ndr->depth++;
   22291           0 :                 ndr_print_ptr(ndr, "ReturnEnum", r->out.ReturnEnum);
   22292           0 :                 ndr->depth++;
   22293           0 :                 ndr_print_ptr(ndr, "ReturnEnum", *r->out.ReturnEnum);
   22294           0 :                 ndr->depth++;
   22295           0 :                 if (*r->out.ReturnEnum) {
   22296           0 :                         ndr_print_ENUM_LIST(ndr, "ReturnEnum", *r->out.ReturnEnum);
   22297             :                 }
   22298           0 :                 ndr->depth--;
   22299           0 :                 ndr->depth--;
   22300           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   22301           0 :                 ndr->depth++;
   22302           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   22303           0 :                 ndr->depth--;
   22304           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   22305           0 :                 ndr->depth--;
   22306             :         }
   22307           0 :         ndr->depth--;
   22308             : }
   22309             : 
   22310           0 : static enum ndr_err_code ndr_push_clusapi_CreateNetInterfaceEnum(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_CreateNetInterfaceEnum *r)
   22311             : {
   22312           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   22313           0 :         if (flags & NDR_IN) {
   22314           0 :                 if (r->in.lpszNodeName == NULL) {
   22315           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   22316             :                 }
   22317           0 :                 if (r->in.lpszNetworkName == NULL) {
   22318           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   22319             :                 }
   22320           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
   22321           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNodeName, CH_UTF16)));
   22322           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   22323           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNodeName, CH_UTF16)));
   22324           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszNodeName, ndr_charset_length(r->in.lpszNodeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   22325           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16)));
   22326           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   22327           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16)));
   22328           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszNetworkName, ndr_charset_length(r->in.lpszNetworkName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   22329             :         }
   22330           0 :         if (flags & NDR_OUT) {
   22331           0 :                 if (r->out.ReturnEnum == NULL) {
   22332           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   22333             :                 }
   22334           0 :                 if (r->out.rpc_status == NULL) {
   22335           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   22336             :                 }
   22337           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.ReturnEnum));
   22338           0 :                 if (*r->out.ReturnEnum) {
   22339           0 :                         NDR_CHECK(ndr_push_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
   22340             :                 }
   22341           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   22342           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   22343             :         }
   22344           0 :         return NDR_ERR_SUCCESS;
   22345             : }
   22346             : 
   22347           0 : static enum ndr_err_code ndr_pull_clusapi_CreateNetInterfaceEnum(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_CreateNetInterfaceEnum *r)
   22348             : {
   22349           0 :         uint32_t size_lpszNodeName_1 = 0;
   22350           0 :         uint32_t length_lpszNodeName_1 = 0;
   22351           0 :         uint32_t size_lpszNetworkName_1 = 0;
   22352           0 :         uint32_t length_lpszNetworkName_1 = 0;
   22353           0 :         uint32_t _ptr_ReturnEnum;
   22354           0 :         TALLOC_CTX *_mem_save_ReturnEnum_0 = NULL;
   22355           0 :         TALLOC_CTX *_mem_save_ReturnEnum_1 = NULL;
   22356           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   22357           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   22358           0 :         if (flags & NDR_IN) {
   22359           0 :                 NDR_ZERO_STRUCT(r->out);
   22360             : 
   22361           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hCluster));
   22362           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszNodeName));
   22363           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszNodeName));
   22364           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszNodeName, &size_lpszNodeName_1));
   22365           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszNodeName, &length_lpszNodeName_1));
   22366           0 :                 if (length_lpszNodeName_1 > size_lpszNodeName_1) {
   22367           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszNodeName_1, length_lpszNodeName_1);
   22368             :                 }
   22369           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszNodeName_1, sizeof(uint16_t)));
   22370           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszNodeName, length_lpszNodeName_1, sizeof(uint16_t), CH_UTF16));
   22371           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszNetworkName));
   22372           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszNetworkName));
   22373           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszNetworkName, &size_lpszNetworkName_1));
   22374           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszNetworkName, &length_lpszNetworkName_1));
   22375           0 :                 if (length_lpszNetworkName_1 > size_lpszNetworkName_1) {
   22376           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszNetworkName_1, length_lpszNetworkName_1);
   22377             :                 }
   22378           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszNetworkName_1, sizeof(uint16_t)));
   22379           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszNetworkName, length_lpszNetworkName_1, sizeof(uint16_t), CH_UTF16));
   22380           0 :                 NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
   22381           0 :                 NDR_ZERO_STRUCTP(r->out.ReturnEnum);
   22382           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   22383           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   22384             :         }
   22385           0 :         if (flags & NDR_OUT) {
   22386             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   22387             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   22388           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   22389           0 :                         NDR_PULL_ALLOC(ndr, r->out.ReturnEnum);
   22390             :                 }
   22391           0 :                 _mem_save_ReturnEnum_0 = NDR_PULL_GET_MEM_CTX(ndr);
   22392           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ReturnEnum, LIBNDR_FLAG_REF_ALLOC);
   22393           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_ReturnEnum));
   22394           0 :                 if (_ptr_ReturnEnum) {
   22395           0 :                         NDR_PULL_ALLOC(ndr, *r->out.ReturnEnum);
   22396             :                 } else {
   22397           0 :                         *r->out.ReturnEnum = NULL;
   22398             :                 }
   22399           0 :                 if (*r->out.ReturnEnum) {
   22400           0 :                         _mem_save_ReturnEnum_1 = NDR_PULL_GET_MEM_CTX(ndr);
   22401           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.ReturnEnum, 0);
   22402           0 :                         NDR_CHECK(ndr_pull_ENUM_LIST(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.ReturnEnum));
   22403           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_1, 0);
   22404             :                 }
   22405           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ReturnEnum_0, LIBNDR_FLAG_REF_ALLOC);
   22406           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   22407           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   22408             :                 }
   22409           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   22410           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   22411           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   22412           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   22413           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   22414             :         }
   22415           0 :         return NDR_ERR_SUCCESS;
   22416             : }
   22417             : 
   22418           0 : _PUBLIC_ void ndr_print_clusapi_CreateNetInterfaceEnum(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_CreateNetInterfaceEnum *r)
   22419             : {
   22420           0 :         ndr_print_struct(ndr, name, "clusapi_CreateNetInterfaceEnum");
   22421           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   22422           0 :         ndr->depth++;
   22423           0 :         if (flags & NDR_SET_VALUES) {
   22424           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   22425             :         }
   22426           0 :         if (flags & NDR_IN) {
   22427           0 :                 ndr_print_struct(ndr, "in", "clusapi_CreateNetInterfaceEnum");
   22428           0 :                 ndr->depth++;
   22429           0 :                 ndr_print_policy_handle(ndr, "hCluster", &r->in.hCluster);
   22430           0 :                 ndr_print_ptr(ndr, "lpszNodeName", r->in.lpszNodeName);
   22431           0 :                 ndr->depth++;
   22432           0 :                 ndr_print_string(ndr, "lpszNodeName", r->in.lpszNodeName);
   22433           0 :                 ndr->depth--;
   22434           0 :                 ndr_print_ptr(ndr, "lpszNetworkName", r->in.lpszNetworkName);
   22435           0 :                 ndr->depth++;
   22436           0 :                 ndr_print_string(ndr, "lpszNetworkName", r->in.lpszNetworkName);
   22437           0 :                 ndr->depth--;
   22438           0 :                 ndr->depth--;
   22439             :         }
   22440           0 :         if (flags & NDR_OUT) {
   22441           0 :                 ndr_print_struct(ndr, "out", "clusapi_CreateNetInterfaceEnum");
   22442           0 :                 ndr->depth++;
   22443           0 :                 ndr_print_ptr(ndr, "ReturnEnum", r->out.ReturnEnum);
   22444           0 :                 ndr->depth++;
   22445           0 :                 ndr_print_ptr(ndr, "ReturnEnum", *r->out.ReturnEnum);
   22446           0 :                 ndr->depth++;
   22447           0 :                 if (*r->out.ReturnEnum) {
   22448           0 :                         ndr_print_ENUM_LIST(ndr, "ReturnEnum", *r->out.ReturnEnum);
   22449             :                 }
   22450           0 :                 ndr->depth--;
   22451           0 :                 ndr->depth--;
   22452           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   22453           0 :                 ndr->depth++;
   22454           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   22455           0 :                 ndr->depth--;
   22456           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   22457           0 :                 ndr->depth--;
   22458             :         }
   22459           0 :         ndr->depth--;
   22460             : }
   22461             : 
   22462           0 : static enum ndr_err_code ndr_push_clusapi_ChangeCsvStateEx(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_ChangeCsvStateEx *r)
   22463             : {
   22464           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   22465           0 :         if (flags & NDR_IN) {
   22466           0 :                 if (r->in.lpszVolumeName == NULL) {
   22467           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   22468             :                 }
   22469           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
   22470           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.dwState));
   22471           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszVolumeName, CH_UTF16)));
   22472           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
   22473           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.lpszVolumeName, CH_UTF16)));
   22474           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.lpszVolumeName, ndr_charset_length(r->in.lpszVolumeName, CH_UTF16), sizeof(uint16_t), CH_UTF16));
   22475             :         }
   22476           0 :         if (flags & NDR_OUT) {
   22477           0 :                 if (r->out.rpc_status == NULL) {
   22478           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   22479             :                 }
   22480           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   22481           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   22482             :         }
   22483           0 :         return NDR_ERR_SUCCESS;
   22484             : }
   22485             : 
   22486           0 : static enum ndr_err_code ndr_pull_clusapi_ChangeCsvStateEx(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_ChangeCsvStateEx *r)
   22487             : {
   22488           0 :         uint32_t size_lpszVolumeName_1 = 0;
   22489           0 :         uint32_t length_lpszVolumeName_1 = 0;
   22490           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   22491           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   22492           0 :         if (flags & NDR_IN) {
   22493           0 :                 NDR_ZERO_STRUCT(r->out);
   22494             : 
   22495           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.hResource));
   22496           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.dwState));
   22497           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.lpszVolumeName));
   22498           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.lpszVolumeName));
   22499           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.lpszVolumeName, &size_lpszVolumeName_1));
   22500           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.lpszVolumeName, &length_lpszVolumeName_1));
   22501           0 :                 if (length_lpszVolumeName_1 > size_lpszVolumeName_1) {
   22502           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_lpszVolumeName_1, length_lpszVolumeName_1);
   22503             :                 }
   22504           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_lpszVolumeName_1, sizeof(uint16_t)));
   22505           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.lpszVolumeName, length_lpszVolumeName_1, sizeof(uint16_t), CH_UTF16));
   22506           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   22507           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   22508             :         }
   22509           0 :         if (flags & NDR_OUT) {
   22510             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   22511             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   22512           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   22513           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   22514             :                 }
   22515           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   22516           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   22517           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   22518           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   22519           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   22520             :         }
   22521           0 :         return NDR_ERR_SUCCESS;
   22522             : }
   22523             : 
   22524           0 : _PUBLIC_ void ndr_print_clusapi_ChangeCsvStateEx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_ChangeCsvStateEx *r)
   22525             : {
   22526           0 :         ndr_print_struct(ndr, name, "clusapi_ChangeCsvStateEx");
   22527           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   22528           0 :         ndr->depth++;
   22529           0 :         if (flags & NDR_SET_VALUES) {
   22530           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   22531             :         }
   22532           0 :         if (flags & NDR_IN) {
   22533           0 :                 ndr_print_struct(ndr, "in", "clusapi_ChangeCsvStateEx");
   22534           0 :                 ndr->depth++;
   22535           0 :                 ndr_print_policy_handle(ndr, "hResource", &r->in.hResource);
   22536           0 :                 ndr_print_uint32(ndr, "dwState", r->in.dwState);
   22537           0 :                 ndr_print_ptr(ndr, "lpszVolumeName", r->in.lpszVolumeName);
   22538           0 :                 ndr->depth++;
   22539           0 :                 ndr_print_string(ndr, "lpszVolumeName", r->in.lpszVolumeName);
   22540           0 :                 ndr->depth--;
   22541           0 :                 ndr->depth--;
   22542             :         }
   22543           0 :         if (flags & NDR_OUT) {
   22544           0 :                 ndr_print_struct(ndr, "out", "clusapi_ChangeCsvStateEx");
   22545           0 :                 ndr->depth++;
   22546           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   22547           0 :                 ndr->depth++;
   22548           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   22549           0 :                 ndr->depth--;
   22550           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   22551           0 :                 ndr->depth--;
   22552             :         }
   22553           0 :         ndr->depth--;
   22554             : }
   22555             : 
   22556           0 : static enum ndr_err_code ndr_push_clusapi_AddGroupToGroupSetEx(struct ndr_push *ndr, ndr_flags_type flags, const struct clusapi_AddGroupToGroupSetEx *r)
   22557             : {
   22558           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
   22559           0 :         if (flags & NDR_IN) {
   22560           0 :                 if (r->in.Reserved == NULL) {
   22561           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   22562             :                 }
   22563           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.GroupSet));
   22564           0 :                 NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS, &r->in.Group));
   22565           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.FaultDomain));
   22566           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.UpdateDomain));
   22567           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->in.UseDomains));
   22568           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.Reserved));
   22569             :         }
   22570           0 :         if (flags & NDR_OUT) {
   22571           0 :                 if (r->out.rpc_status == NULL) {
   22572           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
   22573             :                 }
   22574           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, *r->out.rpc_status));
   22575           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
   22576             :         }
   22577           0 :         return NDR_ERR_SUCCESS;
   22578             : }
   22579             : 
   22580           0 : static enum ndr_err_code ndr_pull_clusapi_AddGroupToGroupSetEx(struct ndr_pull *ndr, ndr_flags_type flags, struct clusapi_AddGroupToGroupSetEx *r)
   22581             : {
   22582           0 :         TALLOC_CTX *_mem_save_Reserved_0 = NULL;
   22583           0 :         TALLOC_CTX *_mem_save_rpc_status_0 = NULL;
   22584           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
   22585           0 :         if (flags & NDR_IN) {
   22586           0 :                 NDR_ZERO_STRUCT(r->out);
   22587             : 
   22588           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.GroupSet));
   22589           0 :                 NDR_CHECK(ndr_pull_policy_handle(ndr, NDR_SCALARS, &r->in.Group));
   22590           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.FaultDomain));
   22591           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.UpdateDomain));
   22592           0 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->in.UseDomains));
   22593           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   22594           0 :                         NDR_PULL_ALLOC(ndr, r->in.Reserved);
   22595             :                 }
   22596           0 :                 _mem_save_Reserved_0 = NDR_PULL_GET_MEM_CTX(ndr);
   22597           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.Reserved, LIBNDR_FLAG_REF_ALLOC);
   22598           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.Reserved));
   22599           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Reserved_0, LIBNDR_FLAG_REF_ALLOC);
   22600           0 :                 NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   22601           0 :                 NDR_ZERO_STRUCTP(r->out.rpc_status);
   22602             :         }
   22603           0 :         if (flags & NDR_OUT) {
   22604             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
   22605             :                 if (r->in.Reserved == NULL) {
   22606             :                         NDR_PULL_ALLOC(ndr, r->in.Reserved);
   22607             :                         NDR_ZERO_STRUCTP(r->in.Reserved);
   22608             :                 }
   22609             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
   22610           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
   22611           0 :                         NDR_PULL_ALLOC(ndr, r->out.rpc_status);
   22612             :                 }
   22613           0 :                 _mem_save_rpc_status_0 = NDR_PULL_GET_MEM_CTX(ndr);
   22614           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rpc_status, LIBNDR_FLAG_REF_ALLOC);
   22615           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, r->out.rpc_status));
   22616           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rpc_status_0, LIBNDR_FLAG_REF_ALLOC);
   22617           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
   22618             :         }
   22619           0 :         return NDR_ERR_SUCCESS;
   22620             : }
   22621             : 
   22622           0 : _PUBLIC_ void ndr_print_clusapi_AddGroupToGroupSetEx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct clusapi_AddGroupToGroupSetEx *r)
   22623             : {
   22624           0 :         ndr_print_struct(ndr, name, "clusapi_AddGroupToGroupSetEx");
   22625           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
   22626           0 :         ndr->depth++;
   22627           0 :         if (flags & NDR_SET_VALUES) {
   22628           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
   22629             :         }
   22630           0 :         if (flags & NDR_IN) {
   22631           0 :                 ndr_print_struct(ndr, "in", "clusapi_AddGroupToGroupSetEx");
   22632           0 :                 ndr->depth++;
   22633           0 :                 ndr_print_policy_handle(ndr, "GroupSet", &r->in.GroupSet);
   22634           0 :                 ndr_print_policy_handle(ndr, "Group", &r->in.Group);
   22635           0 :                 ndr_print_uint32(ndr, "FaultDomain", r->in.FaultDomain);
   22636           0 :                 ndr_print_uint32(ndr, "UpdateDomain", r->in.UpdateDomain);
   22637           0 :                 ndr_print_uint8(ndr, "UseDomains", r->in.UseDomains);
   22638           0 :                 ndr_print_ptr(ndr, "Reserved", r->in.Reserved);
   22639           0 :                 ndr->depth++;
   22640           0 :                 ndr_print_uint32(ndr, "Reserved", *r->in.Reserved);
   22641           0 :                 ndr->depth--;
   22642           0 :                 ndr->depth--;
   22643             :         }
   22644           0 :         if (flags & NDR_OUT) {
   22645           0 :                 ndr_print_struct(ndr, "out", "clusapi_AddGroupToGroupSetEx");
   22646           0 :                 ndr->depth++;
   22647           0 :                 ndr_print_ptr(ndr, "rpc_status", r->out.rpc_status);
   22648           0 :                 ndr->depth++;
   22649           0 :                 ndr_print_WERROR(ndr, "rpc_status", *r->out.rpc_status);
   22650           0 :                 ndr->depth--;
   22651           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
   22652           0 :                 ndr->depth--;
   22653             :         }
   22654           0 :         ndr->depth--;
   22655             : }
   22656             : 
   22657             : #ifndef SKIP_NDR_TABLE_clusapi
   22658             : static const struct ndr_interface_public_struct clusapi_public_structs[] = {
   22659             :         {
   22660             :                 .name = "CLUS_RESOURCE_CLASS_INFO",
   22661             :                 .struct_size = sizeof(struct CLUS_RESOURCE_CLASS_INFO ),
   22662             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_CLUS_RESOURCE_CLASS_INFO,
   22663             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_CLUS_RESOURCE_CLASS_INFO,
   22664             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_CLUS_RESOURCE_CLASS_INFO,
   22665             :         },
   22666             :         {
   22667             :                 .name = "clusapi_PROPERTY_LIST",
   22668             :                 .struct_size = sizeof(struct clusapi_PROPERTY_LIST ),
   22669             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_clusapi_PROPERTY_LIST,
   22670             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_clusapi_PROPERTY_LIST,
   22671             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_clusapi_PROPERTY_LIST,
   22672             :         },
   22673             :         { .name = NULL }
   22674             : };
   22675             : 
   22676             : static const struct ndr_interface_call clusapi_calls[] = {
   22677             :         {
   22678             :                 "clusapi_OpenCluster",
   22679             :                 sizeof(struct clusapi_OpenCluster),
   22680             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_OpenCluster,
   22681             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenCluster,
   22682             :                 (ndr_print_function_t) ndr_print_clusapi_OpenCluster,
   22683             :                 { 0, NULL },
   22684             :                 { 0, NULL },
   22685             :         },
   22686             :         {
   22687             :                 "clusapi_CloseCluster",
   22688             :                 sizeof(struct clusapi_CloseCluster),
   22689             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CloseCluster,
   22690             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CloseCluster,
   22691             :                 (ndr_print_function_t) ndr_print_clusapi_CloseCluster,
   22692             :                 { 0, NULL },
   22693             :                 { 0, NULL },
   22694             :         },
   22695             :         {
   22696             :                 "clusapi_SetClusterName",
   22697             :                 sizeof(struct clusapi_SetClusterName),
   22698             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_SetClusterName,
   22699             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_SetClusterName,
   22700             :                 (ndr_print_function_t) ndr_print_clusapi_SetClusterName,
   22701             :                 { 0, NULL },
   22702             :                 { 0, NULL },
   22703             :         },
   22704             :         {
   22705             :                 "clusapi_GetClusterName",
   22706             :                 sizeof(struct clusapi_GetClusterName),
   22707             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_GetClusterName,
   22708             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetClusterName,
   22709             :                 (ndr_print_function_t) ndr_print_clusapi_GetClusterName,
   22710             :                 { 0, NULL },
   22711             :                 { 0, NULL },
   22712             :         },
   22713             :         {
   22714             :                 "clusapi_GetClusterVersion",
   22715             :                 sizeof(struct clusapi_GetClusterVersion),
   22716             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_GetClusterVersion,
   22717             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetClusterVersion,
   22718             :                 (ndr_print_function_t) ndr_print_clusapi_GetClusterVersion,
   22719             :                 { 0, NULL },
   22720             :                 { 0, NULL },
   22721             :         },
   22722             :         {
   22723             :                 "clusapi_GetQuorumResource",
   22724             :                 sizeof(struct clusapi_GetQuorumResource),
   22725             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_GetQuorumResource,
   22726             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetQuorumResource,
   22727             :                 (ndr_print_function_t) ndr_print_clusapi_GetQuorumResource,
   22728             :                 { 0, NULL },
   22729             :                 { 0, NULL },
   22730             :         },
   22731             :         {
   22732             :                 "clusapi_SetQuorumResource",
   22733             :                 sizeof(struct clusapi_SetQuorumResource),
   22734             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_SetQuorumResource,
   22735             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_SetQuorumResource,
   22736             :                 (ndr_print_function_t) ndr_print_clusapi_SetQuorumResource,
   22737             :                 { 0, NULL },
   22738             :                 { 0, NULL },
   22739             :         },
   22740             :         {
   22741             :                 "clusapi_CreateEnum",
   22742             :                 sizeof(struct clusapi_CreateEnum),
   22743             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CreateEnum,
   22744             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateEnum,
   22745             :                 (ndr_print_function_t) ndr_print_clusapi_CreateEnum,
   22746             :                 { 0, NULL },
   22747             :                 { 0, NULL },
   22748             :         },
   22749             :         {
   22750             :                 "clusapi_OpenResource",
   22751             :                 sizeof(struct clusapi_OpenResource),
   22752             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_OpenResource,
   22753             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenResource,
   22754             :                 (ndr_print_function_t) ndr_print_clusapi_OpenResource,
   22755             :                 { 0, NULL },
   22756             :                 { 0, NULL },
   22757             :         },
   22758             :         {
   22759             :                 "clusapi_CreateResource",
   22760             :                 sizeof(struct clusapi_CreateResource),
   22761             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CreateResource,
   22762             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateResource,
   22763             :                 (ndr_print_function_t) ndr_print_clusapi_CreateResource,
   22764             :                 { 0, NULL },
   22765             :                 { 0, NULL },
   22766             :         },
   22767             :         {
   22768             :                 "clusapi_DeleteResource",
   22769             :                 sizeof(struct clusapi_DeleteResource),
   22770             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_DeleteResource,
   22771             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_DeleteResource,
   22772             :                 (ndr_print_function_t) ndr_print_clusapi_DeleteResource,
   22773             :                 { 0, NULL },
   22774             :                 { 0, NULL },
   22775             :         },
   22776             :         {
   22777             :                 "clusapi_CloseResource",
   22778             :                 sizeof(struct clusapi_CloseResource),
   22779             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CloseResource,
   22780             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CloseResource,
   22781             :                 (ndr_print_function_t) ndr_print_clusapi_CloseResource,
   22782             :                 { 0, NULL },
   22783             :                 { 0, NULL },
   22784             :         },
   22785             :         {
   22786             :                 "clusapi_GetResourceState",
   22787             :                 sizeof(struct clusapi_GetResourceState),
   22788             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_GetResourceState,
   22789             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetResourceState,
   22790             :                 (ndr_print_function_t) ndr_print_clusapi_GetResourceState,
   22791             :                 { 0, NULL },
   22792             :                 { 0, NULL },
   22793             :         },
   22794             :         {
   22795             :                 "clusapi_SetResourceName",
   22796             :                 sizeof(struct clusapi_SetResourceName),
   22797             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_SetResourceName,
   22798             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_SetResourceName,
   22799             :                 (ndr_print_function_t) ndr_print_clusapi_SetResourceName,
   22800             :                 { 0, NULL },
   22801             :                 { 0, NULL },
   22802             :         },
   22803             :         {
   22804             :                 "clusapi_GetResourceId",
   22805             :                 sizeof(struct clusapi_GetResourceId),
   22806             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_GetResourceId,
   22807             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetResourceId,
   22808             :                 (ndr_print_function_t) ndr_print_clusapi_GetResourceId,
   22809             :                 { 0, NULL },
   22810             :                 { 0, NULL },
   22811             :         },
   22812             :         {
   22813             :                 "clusapi_GetResourceType",
   22814             :                 sizeof(struct clusapi_GetResourceType),
   22815             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_GetResourceType,
   22816             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetResourceType,
   22817             :                 (ndr_print_function_t) ndr_print_clusapi_GetResourceType,
   22818             :                 { 0, NULL },
   22819             :                 { 0, NULL },
   22820             :         },
   22821             :         {
   22822             :                 "clusapi_FailResource",
   22823             :                 sizeof(struct clusapi_FailResource),
   22824             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_FailResource,
   22825             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_FailResource,
   22826             :                 (ndr_print_function_t) ndr_print_clusapi_FailResource,
   22827             :                 { 0, NULL },
   22828             :                 { 0, NULL },
   22829             :         },
   22830             :         {
   22831             :                 "clusapi_OnlineResource",
   22832             :                 sizeof(struct clusapi_OnlineResource),
   22833             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_OnlineResource,
   22834             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_OnlineResource,
   22835             :                 (ndr_print_function_t) ndr_print_clusapi_OnlineResource,
   22836             :                 { 0, NULL },
   22837             :                 { 0, NULL },
   22838             :         },
   22839             :         {
   22840             :                 "clusapi_OfflineResource",
   22841             :                 sizeof(struct clusapi_OfflineResource),
   22842             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_OfflineResource,
   22843             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_OfflineResource,
   22844             :                 (ndr_print_function_t) ndr_print_clusapi_OfflineResource,
   22845             :                 { 0, NULL },
   22846             :                 { 0, NULL },
   22847             :         },
   22848             :         {
   22849             :                 "clusapi_AddResourceDependency",
   22850             :                 sizeof(struct clusapi_AddResourceDependency),
   22851             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_AddResourceDependency,
   22852             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddResourceDependency,
   22853             :                 (ndr_print_function_t) ndr_print_clusapi_AddResourceDependency,
   22854             :                 { 0, NULL },
   22855             :                 { 0, NULL },
   22856             :         },
   22857             :         {
   22858             :                 "clusapi_RemoveResourceDependency",
   22859             :                 sizeof(struct clusapi_RemoveResourceDependency),
   22860             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_RemoveResourceDependency,
   22861             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_RemoveResourceDependency,
   22862             :                 (ndr_print_function_t) ndr_print_clusapi_RemoveResourceDependency,
   22863             :                 { 0, NULL },
   22864             :                 { 0, NULL },
   22865             :         },
   22866             :         {
   22867             :                 "clusapi_CanResourceBeDependent",
   22868             :                 sizeof(struct clusapi_CanResourceBeDependent),
   22869             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CanResourceBeDependent,
   22870             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CanResourceBeDependent,
   22871             :                 (ndr_print_function_t) ndr_print_clusapi_CanResourceBeDependent,
   22872             :                 { 0, NULL },
   22873             :                 { 0, NULL },
   22874             :         },
   22875             :         {
   22876             :                 "clusapi_CreateResEnum",
   22877             :                 sizeof(struct clusapi_CreateResEnum),
   22878             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CreateResEnum,
   22879             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateResEnum,
   22880             :                 (ndr_print_function_t) ndr_print_clusapi_CreateResEnum,
   22881             :                 { 0, NULL },
   22882             :                 { 0, NULL },
   22883             :         },
   22884             :         {
   22885             :                 "clusapi_AddResourceNode",
   22886             :                 sizeof(struct clusapi_AddResourceNode),
   22887             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_AddResourceNode,
   22888             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddResourceNode,
   22889             :                 (ndr_print_function_t) ndr_print_clusapi_AddResourceNode,
   22890             :                 { 0, NULL },
   22891             :                 { 0, NULL },
   22892             :         },
   22893             :         {
   22894             :                 "clusapi_RemoveResourceNode",
   22895             :                 sizeof(struct clusapi_RemoveResourceNode),
   22896             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_RemoveResourceNode,
   22897             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_RemoveResourceNode,
   22898             :                 (ndr_print_function_t) ndr_print_clusapi_RemoveResourceNode,
   22899             :                 { 0, NULL },
   22900             :                 { 0, NULL },
   22901             :         },
   22902             :         {
   22903             :                 "clusapi_ChangeResourceGroup",
   22904             :                 sizeof(struct clusapi_ChangeResourceGroup),
   22905             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_ChangeResourceGroup,
   22906             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_ChangeResourceGroup,
   22907             :                 (ndr_print_function_t) ndr_print_clusapi_ChangeResourceGroup,
   22908             :                 { 0, NULL },
   22909             :                 { 0, NULL },
   22910             :         },
   22911             :         {
   22912             :                 "clusapi_CreateResourceType",
   22913             :                 sizeof(struct clusapi_CreateResourceType),
   22914             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CreateResourceType,
   22915             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateResourceType,
   22916             :                 (ndr_print_function_t) ndr_print_clusapi_CreateResourceType,
   22917             :                 { 0, NULL },
   22918             :                 { 0, NULL },
   22919             :         },
   22920             :         {
   22921             :                 "clusapi_DeleteResourceType",
   22922             :                 sizeof(struct clusapi_DeleteResourceType),
   22923             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_DeleteResourceType,
   22924             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_DeleteResourceType,
   22925             :                 (ndr_print_function_t) ndr_print_clusapi_DeleteResourceType,
   22926             :                 { 0, NULL },
   22927             :                 { 0, NULL },
   22928             :         },
   22929             :         {
   22930             :                 "clusapi_GetRootKey",
   22931             :                 sizeof(struct clusapi_GetRootKey),
   22932             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_GetRootKey,
   22933             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetRootKey,
   22934             :                 (ndr_print_function_t) ndr_print_clusapi_GetRootKey,
   22935             :                 { 0, NULL },
   22936             :                 { 0, NULL },
   22937             :         },
   22938             :         {
   22939             :                 "clusapi_CreateKey",
   22940             :                 sizeof(struct clusapi_CreateKey),
   22941             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CreateKey,
   22942             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateKey,
   22943             :                 (ndr_print_function_t) ndr_print_clusapi_CreateKey,
   22944             :                 { 0, NULL },
   22945             :                 { 0, NULL },
   22946             :         },
   22947             :         {
   22948             :                 "clusapi_OpenKey",
   22949             :                 sizeof(struct clusapi_OpenKey),
   22950             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_OpenKey,
   22951             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenKey,
   22952             :                 (ndr_print_function_t) ndr_print_clusapi_OpenKey,
   22953             :                 { 0, NULL },
   22954             :                 { 0, NULL },
   22955             :         },
   22956             :         {
   22957             :                 "clusapi_EnumKey",
   22958             :                 sizeof(struct clusapi_EnumKey),
   22959             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_EnumKey,
   22960             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_EnumKey,
   22961             :                 (ndr_print_function_t) ndr_print_clusapi_EnumKey,
   22962             :                 { 0, NULL },
   22963             :                 { 0, NULL },
   22964             :         },
   22965             :         {
   22966             :                 "clusapi_SetValue",
   22967             :                 sizeof(struct clusapi_SetValue),
   22968             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_SetValue,
   22969             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_SetValue,
   22970             :                 (ndr_print_function_t) ndr_print_clusapi_SetValue,
   22971             :                 { 0, NULL },
   22972             :                 { 0, NULL },
   22973             :         },
   22974             :         {
   22975             :                 "clusapi_DeleteValue",
   22976             :                 sizeof(struct clusapi_DeleteValue),
   22977             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_DeleteValue,
   22978             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_DeleteValue,
   22979             :                 (ndr_print_function_t) ndr_print_clusapi_DeleteValue,
   22980             :                 { 0, NULL },
   22981             :                 { 0, NULL },
   22982             :         },
   22983             :         {
   22984             :                 "clusapi_QueryValue",
   22985             :                 sizeof(struct clusapi_QueryValue),
   22986             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_QueryValue,
   22987             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_QueryValue,
   22988             :                 (ndr_print_function_t) ndr_print_clusapi_QueryValue,
   22989             :                 { 0, NULL },
   22990             :                 { 0, NULL },
   22991             :         },
   22992             :         {
   22993             :                 "clusapi_DeleteKey",
   22994             :                 sizeof(struct clusapi_DeleteKey),
   22995             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_DeleteKey,
   22996             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_DeleteKey,
   22997             :                 (ndr_print_function_t) ndr_print_clusapi_DeleteKey,
   22998             :                 { 0, NULL },
   22999             :                 { 0, NULL },
   23000             :         },
   23001             :         {
   23002             :                 "clusapi_EnumValue",
   23003             :                 sizeof(struct clusapi_EnumValue),
   23004             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_EnumValue,
   23005             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_EnumValue,
   23006             :                 (ndr_print_function_t) ndr_print_clusapi_EnumValue,
   23007             :                 { 0, NULL },
   23008             :                 { 0, NULL },
   23009             :         },
   23010             :         {
   23011             :                 "clusapi_CloseKey",
   23012             :                 sizeof(struct clusapi_CloseKey),
   23013             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CloseKey,
   23014             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CloseKey,
   23015             :                 (ndr_print_function_t) ndr_print_clusapi_CloseKey,
   23016             :                 { 0, NULL },
   23017             :                 { 0, NULL },
   23018             :         },
   23019             :         {
   23020             :                 "clusapi_QueryInfoKey",
   23021             :                 sizeof(struct clusapi_QueryInfoKey),
   23022             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_QueryInfoKey,
   23023             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_QueryInfoKey,
   23024             :                 (ndr_print_function_t) ndr_print_clusapi_QueryInfoKey,
   23025             :                 { 0, NULL },
   23026             :                 { 0, NULL },
   23027             :         },
   23028             :         {
   23029             :                 "clusapi_SetKeySecurity",
   23030             :                 sizeof(struct clusapi_SetKeySecurity),
   23031             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_SetKeySecurity,
   23032             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_SetKeySecurity,
   23033             :                 (ndr_print_function_t) ndr_print_clusapi_SetKeySecurity,
   23034             :                 { 0, NULL },
   23035             :                 { 0, NULL },
   23036             :         },
   23037             :         {
   23038             :                 "clusapi_GetKeySecurity",
   23039             :                 sizeof(struct clusapi_GetKeySecurity),
   23040             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_GetKeySecurity,
   23041             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetKeySecurity,
   23042             :                 (ndr_print_function_t) ndr_print_clusapi_GetKeySecurity,
   23043             :                 { 0, NULL },
   23044             :                 { 0, NULL },
   23045             :         },
   23046             :         {
   23047             :                 "clusapi_OpenGroup",
   23048             :                 sizeof(struct clusapi_OpenGroup),
   23049             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_OpenGroup,
   23050             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenGroup,
   23051             :                 (ndr_print_function_t) ndr_print_clusapi_OpenGroup,
   23052             :                 { 0, NULL },
   23053             :                 { 0, NULL },
   23054             :         },
   23055             :         {
   23056             :                 "clusapi_CreateGroup",
   23057             :                 sizeof(struct clusapi_CreateGroup),
   23058             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CreateGroup,
   23059             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateGroup,
   23060             :                 (ndr_print_function_t) ndr_print_clusapi_CreateGroup,
   23061             :                 { 0, NULL },
   23062             :                 { 0, NULL },
   23063             :         },
   23064             :         {
   23065             :                 "clusapi_DeleteGroup",
   23066             :                 sizeof(struct clusapi_DeleteGroup),
   23067             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_DeleteGroup,
   23068             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_DeleteGroup,
   23069             :                 (ndr_print_function_t) ndr_print_clusapi_DeleteGroup,
   23070             :                 { 0, NULL },
   23071             :                 { 0, NULL },
   23072             :         },
   23073             :         {
   23074             :                 "clusapi_CloseGroup",
   23075             :                 sizeof(struct clusapi_CloseGroup),
   23076             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CloseGroup,
   23077             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CloseGroup,
   23078             :                 (ndr_print_function_t) ndr_print_clusapi_CloseGroup,
   23079             :                 { 0, NULL },
   23080             :                 { 0, NULL },
   23081             :         },
   23082             :         {
   23083             :                 "clusapi_GetGroupState",
   23084             :                 sizeof(struct clusapi_GetGroupState),
   23085             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_GetGroupState,
   23086             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetGroupState,
   23087             :                 (ndr_print_function_t) ndr_print_clusapi_GetGroupState,
   23088             :                 { 0, NULL },
   23089             :                 { 0, NULL },
   23090             :         },
   23091             :         {
   23092             :                 "clusapi_SetGroupName",
   23093             :                 sizeof(struct clusapi_SetGroupName),
   23094             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_SetGroupName,
   23095             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_SetGroupName,
   23096             :                 (ndr_print_function_t) ndr_print_clusapi_SetGroupName,
   23097             :                 { 0, NULL },
   23098             :                 { 0, NULL },
   23099             :         },
   23100             :         {
   23101             :                 "clusapi_GetGroupId",
   23102             :                 sizeof(struct clusapi_GetGroupId),
   23103             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_GetGroupId,
   23104             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetGroupId,
   23105             :                 (ndr_print_function_t) ndr_print_clusapi_GetGroupId,
   23106             :                 { 0, NULL },
   23107             :                 { 0, NULL },
   23108             :         },
   23109             :         {
   23110             :                 "clusapi_GetNodeId",
   23111             :                 sizeof(struct clusapi_GetNodeId),
   23112             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_GetNodeId,
   23113             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetNodeId,
   23114             :                 (ndr_print_function_t) ndr_print_clusapi_GetNodeId,
   23115             :                 { 0, NULL },
   23116             :                 { 0, NULL },
   23117             :         },
   23118             :         {
   23119             :                 "clusapi_OnlineGroup",
   23120             :                 sizeof(struct clusapi_OnlineGroup),
   23121             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_OnlineGroup,
   23122             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_OnlineGroup,
   23123             :                 (ndr_print_function_t) ndr_print_clusapi_OnlineGroup,
   23124             :                 { 0, NULL },
   23125             :                 { 0, NULL },
   23126             :         },
   23127             :         {
   23128             :                 "clusapi_OfflineGroup",
   23129             :                 sizeof(struct clusapi_OfflineGroup),
   23130             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_OfflineGroup,
   23131             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_OfflineGroup,
   23132             :                 (ndr_print_function_t) ndr_print_clusapi_OfflineGroup,
   23133             :                 { 0, NULL },
   23134             :                 { 0, NULL },
   23135             :         },
   23136             :         {
   23137             :                 "clusapi_MoveGroup",
   23138             :                 sizeof(struct clusapi_MoveGroup),
   23139             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_MoveGroup,
   23140             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_MoveGroup,
   23141             :                 (ndr_print_function_t) ndr_print_clusapi_MoveGroup,
   23142             :                 { 0, NULL },
   23143             :                 { 0, NULL },
   23144             :         },
   23145             :         {
   23146             :                 "clusapi_MoveGroupToNode",
   23147             :                 sizeof(struct clusapi_MoveGroupToNode),
   23148             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_MoveGroupToNode,
   23149             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_MoveGroupToNode,
   23150             :                 (ndr_print_function_t) ndr_print_clusapi_MoveGroupToNode,
   23151             :                 { 0, NULL },
   23152             :                 { 0, NULL },
   23153             :         },
   23154             :         {
   23155             :                 "clusapi_CreateGroupResourceEnum",
   23156             :                 sizeof(struct clusapi_CreateGroupResourceEnum),
   23157             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CreateGroupResourceEnum,
   23158             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateGroupResourceEnum,
   23159             :                 (ndr_print_function_t) ndr_print_clusapi_CreateGroupResourceEnum,
   23160             :                 { 0, NULL },
   23161             :                 { 0, NULL },
   23162             :         },
   23163             :         {
   23164             :                 "clusapi_SetGroupNodeList",
   23165             :                 sizeof(struct clusapi_SetGroupNodeList),
   23166             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_SetGroupNodeList,
   23167             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_SetGroupNodeList,
   23168             :                 (ndr_print_function_t) ndr_print_clusapi_SetGroupNodeList,
   23169             :                 { 0, NULL },
   23170             :                 { 0, NULL },
   23171             :         },
   23172             :         {
   23173             :                 "clusapi_CreateNotify",
   23174             :                 sizeof(struct clusapi_CreateNotify),
   23175             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CreateNotify,
   23176             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateNotify,
   23177             :                 (ndr_print_function_t) ndr_print_clusapi_CreateNotify,
   23178             :                 { 0, NULL },
   23179             :                 { 0, NULL },
   23180             :         },
   23181             :         {
   23182             :                 "clusapi_CloseNotify",
   23183             :                 sizeof(struct clusapi_CloseNotify),
   23184             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CloseNotify,
   23185             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CloseNotify,
   23186             :                 (ndr_print_function_t) ndr_print_clusapi_CloseNotify,
   23187             :                 { 0, NULL },
   23188             :                 { 0, NULL },
   23189             :         },
   23190             :         {
   23191             :                 "clusapi_AddNotifyCluster",
   23192             :                 sizeof(struct clusapi_AddNotifyCluster),
   23193             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_AddNotifyCluster,
   23194             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddNotifyCluster,
   23195             :                 (ndr_print_function_t) ndr_print_clusapi_AddNotifyCluster,
   23196             :                 { 0, NULL },
   23197             :                 { 0, NULL },
   23198             :         },
   23199             :         {
   23200             :                 "clusapi_AddNotifyNode",
   23201             :                 sizeof(struct clusapi_AddNotifyNode),
   23202             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_AddNotifyNode,
   23203             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddNotifyNode,
   23204             :                 (ndr_print_function_t) ndr_print_clusapi_AddNotifyNode,
   23205             :                 { 0, NULL },
   23206             :                 { 0, NULL },
   23207             :         },
   23208             :         {
   23209             :                 "clusapi_AddNotifyGroup",
   23210             :                 sizeof(struct clusapi_AddNotifyGroup),
   23211             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_AddNotifyGroup,
   23212             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddNotifyGroup,
   23213             :                 (ndr_print_function_t) ndr_print_clusapi_AddNotifyGroup,
   23214             :                 { 0, NULL },
   23215             :                 { 0, NULL },
   23216             :         },
   23217             :         {
   23218             :                 "clusapi_AddNotifyResource",
   23219             :                 sizeof(struct clusapi_AddNotifyResource),
   23220             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_AddNotifyResource,
   23221             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddNotifyResource,
   23222             :                 (ndr_print_function_t) ndr_print_clusapi_AddNotifyResource,
   23223             :                 { 0, NULL },
   23224             :                 { 0, NULL },
   23225             :         },
   23226             :         {
   23227             :                 "clusapi_AddNotifyKey",
   23228             :                 sizeof(struct clusapi_AddNotifyKey),
   23229             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_AddNotifyKey,
   23230             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddNotifyKey,
   23231             :                 (ndr_print_function_t) ndr_print_clusapi_AddNotifyKey,
   23232             :                 { 0, NULL },
   23233             :                 { 0, NULL },
   23234             :         },
   23235             :         {
   23236             :                 "clusapi_ReAddNotifyNode",
   23237             :                 sizeof(struct clusapi_ReAddNotifyNode),
   23238             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_ReAddNotifyNode,
   23239             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_ReAddNotifyNode,
   23240             :                 (ndr_print_function_t) ndr_print_clusapi_ReAddNotifyNode,
   23241             :                 { 0, NULL },
   23242             :                 { 0, NULL },
   23243             :         },
   23244             :         {
   23245             :                 "clusapi_ReAddNotifyGroup",
   23246             :                 sizeof(struct clusapi_ReAddNotifyGroup),
   23247             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_ReAddNotifyGroup,
   23248             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_ReAddNotifyGroup,
   23249             :                 (ndr_print_function_t) ndr_print_clusapi_ReAddNotifyGroup,
   23250             :                 { 0, NULL },
   23251             :                 { 0, NULL },
   23252             :         },
   23253             :         {
   23254             :                 "clusapi_ReAddNotifyResource",
   23255             :                 sizeof(struct clusapi_ReAddNotifyResource),
   23256             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_ReAddNotifyResource,
   23257             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_ReAddNotifyResource,
   23258             :                 (ndr_print_function_t) ndr_print_clusapi_ReAddNotifyResource,
   23259             :                 { 0, NULL },
   23260             :                 { 0, NULL },
   23261             :         },
   23262             :         {
   23263             :                 "clusapi_GetNotify",
   23264             :                 sizeof(struct clusapi_GetNotify),
   23265             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_GetNotify,
   23266             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetNotify,
   23267             :                 (ndr_print_function_t) ndr_print_clusapi_GetNotify,
   23268             :                 { 0, NULL },
   23269             :                 { 0, NULL },
   23270             :         },
   23271             :         {
   23272             :                 "clusapi_OpenNode",
   23273             :                 sizeof(struct clusapi_OpenNode),
   23274             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_OpenNode,
   23275             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenNode,
   23276             :                 (ndr_print_function_t) ndr_print_clusapi_OpenNode,
   23277             :                 { 0, NULL },
   23278             :                 { 0, NULL },
   23279             :         },
   23280             :         {
   23281             :                 "clusapi_CloseNode",
   23282             :                 sizeof(struct clusapi_CloseNode),
   23283             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CloseNode,
   23284             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CloseNode,
   23285             :                 (ndr_print_function_t) ndr_print_clusapi_CloseNode,
   23286             :                 { 0, NULL },
   23287             :                 { 0, NULL },
   23288             :         },
   23289             :         {
   23290             :                 "clusapi_GetNodeState",
   23291             :                 sizeof(struct clusapi_GetNodeState),
   23292             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_GetNodeState,
   23293             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetNodeState,
   23294             :                 (ndr_print_function_t) ndr_print_clusapi_GetNodeState,
   23295             :                 { 0, NULL },
   23296             :                 { 0, NULL },
   23297             :         },
   23298             :         {
   23299             :                 "clusapi_PauseNode",
   23300             :                 sizeof(struct clusapi_PauseNode),
   23301             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_PauseNode,
   23302             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_PauseNode,
   23303             :                 (ndr_print_function_t) ndr_print_clusapi_PauseNode,
   23304             :                 { 0, NULL },
   23305             :                 { 0, NULL },
   23306             :         },
   23307             :         {
   23308             :                 "clusapi_ResumeNode",
   23309             :                 sizeof(struct clusapi_ResumeNode),
   23310             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_ResumeNode,
   23311             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_ResumeNode,
   23312             :                 (ndr_print_function_t) ndr_print_clusapi_ResumeNode,
   23313             :                 { 0, NULL },
   23314             :                 { 0, NULL },
   23315             :         },
   23316             :         {
   23317             :                 "clusapi_EvictNode",
   23318             :                 sizeof(struct clusapi_EvictNode),
   23319             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_EvictNode,
   23320             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_EvictNode,
   23321             :                 (ndr_print_function_t) ndr_print_clusapi_EvictNode,
   23322             :                 { 0, NULL },
   23323             :                 { 0, NULL },
   23324             :         },
   23325             :         {
   23326             :                 "clusapi_NodeResourceControl",
   23327             :                 sizeof(struct clusapi_NodeResourceControl),
   23328             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_NodeResourceControl,
   23329             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_NodeResourceControl,
   23330             :                 (ndr_print_function_t) ndr_print_clusapi_NodeResourceControl,
   23331             :                 { 0, NULL },
   23332             :                 { 0, NULL },
   23333             :         },
   23334             :         {
   23335             :                 "clusapi_ResourceControl",
   23336             :                 sizeof(struct clusapi_ResourceControl),
   23337             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_ResourceControl,
   23338             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_ResourceControl,
   23339             :                 (ndr_print_function_t) ndr_print_clusapi_ResourceControl,
   23340             :                 { 0, NULL },
   23341             :                 { 0, NULL },
   23342             :         },
   23343             :         {
   23344             :                 "clusapi_NodeResourceTypeControl",
   23345             :                 sizeof(struct clusapi_NodeResourceTypeControl),
   23346             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_NodeResourceTypeControl,
   23347             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_NodeResourceTypeControl,
   23348             :                 (ndr_print_function_t) ndr_print_clusapi_NodeResourceTypeControl,
   23349             :                 { 0, NULL },
   23350             :                 { 0, NULL },
   23351             :         },
   23352             :         {
   23353             :                 "clusapi_ResourceTypeControl",
   23354             :                 sizeof(struct clusapi_ResourceTypeControl),
   23355             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_ResourceTypeControl,
   23356             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_ResourceTypeControl,
   23357             :                 (ndr_print_function_t) ndr_print_clusapi_ResourceTypeControl,
   23358             :                 { 0, NULL },
   23359             :                 { 0, NULL },
   23360             :         },
   23361             :         {
   23362             :                 "clusapi_NodeGroupControl",
   23363             :                 sizeof(struct clusapi_NodeGroupControl),
   23364             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_NodeGroupControl,
   23365             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_NodeGroupControl,
   23366             :                 (ndr_print_function_t) ndr_print_clusapi_NodeGroupControl,
   23367             :                 { 0, NULL },
   23368             :                 { 0, NULL },
   23369             :         },
   23370             :         {
   23371             :                 "clusapi_GroupControl",
   23372             :                 sizeof(struct clusapi_GroupControl),
   23373             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_GroupControl,
   23374             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_GroupControl,
   23375             :                 (ndr_print_function_t) ndr_print_clusapi_GroupControl,
   23376             :                 { 0, NULL },
   23377             :                 { 0, NULL },
   23378             :         },
   23379             :         {
   23380             :                 "clusapi_NodeNodeControl",
   23381             :                 sizeof(struct clusapi_NodeNodeControl),
   23382             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_NodeNodeControl,
   23383             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_NodeNodeControl,
   23384             :                 (ndr_print_function_t) ndr_print_clusapi_NodeNodeControl,
   23385             :                 { 0, NULL },
   23386             :                 { 0, NULL },
   23387             :         },
   23388             :         {
   23389             :                 "clusapi_NodeControl",
   23390             :                 sizeof(struct clusapi_NodeControl),
   23391             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_NodeControl,
   23392             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_NodeControl,
   23393             :                 (ndr_print_function_t) ndr_print_clusapi_NodeControl,
   23394             :                 { 0, NULL },
   23395             :                 { 0, NULL },
   23396             :         },
   23397             :         {
   23398             :                 "Opnum80NotUsedOnWire",
   23399             :                 sizeof(struct Opnum80NotUsedOnWire),
   23400             :                 (ndr_push_flags_fn_t) ndr_push_Opnum80NotUsedOnWire,
   23401             :                 (ndr_pull_flags_fn_t) ndr_pull_Opnum80NotUsedOnWire,
   23402             :                 (ndr_print_function_t) ndr_print_Opnum80NotUsedOnWire,
   23403             :                 { 0, NULL },
   23404             :                 { 0, NULL },
   23405             :         },
   23406             :         {
   23407             :                 "clusapi_OpenNetwork",
   23408             :                 sizeof(struct clusapi_OpenNetwork),
   23409             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_OpenNetwork,
   23410             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenNetwork,
   23411             :                 (ndr_print_function_t) ndr_print_clusapi_OpenNetwork,
   23412             :                 { 0, NULL },
   23413             :                 { 0, NULL },
   23414             :         },
   23415             :         {
   23416             :                 "clusapi_CloseNetwork",
   23417             :                 sizeof(struct clusapi_CloseNetwork),
   23418             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CloseNetwork,
   23419             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CloseNetwork,
   23420             :                 (ndr_print_function_t) ndr_print_clusapi_CloseNetwork,
   23421             :                 { 0, NULL },
   23422             :                 { 0, NULL },
   23423             :         },
   23424             :         {
   23425             :                 "clusapi_GetNetworkState",
   23426             :                 sizeof(struct clusapi_GetNetworkState),
   23427             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_GetNetworkState,
   23428             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetNetworkState,
   23429             :                 (ndr_print_function_t) ndr_print_clusapi_GetNetworkState,
   23430             :                 { 0, NULL },
   23431             :                 { 0, NULL },
   23432             :         },
   23433             :         {
   23434             :                 "clusapi_SetNetworkName",
   23435             :                 sizeof(struct clusapi_SetNetworkName),
   23436             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_SetNetworkName,
   23437             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_SetNetworkName,
   23438             :                 (ndr_print_function_t) ndr_print_clusapi_SetNetworkName,
   23439             :                 { 0, NULL },
   23440             :                 { 0, NULL },
   23441             :         },
   23442             :         {
   23443             :                 "clusapi_CreateNetworkEnum",
   23444             :                 sizeof(struct clusapi_CreateNetworkEnum),
   23445             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CreateNetworkEnum,
   23446             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateNetworkEnum,
   23447             :                 (ndr_print_function_t) ndr_print_clusapi_CreateNetworkEnum,
   23448             :                 { 0, NULL },
   23449             :                 { 0, NULL },
   23450             :         },
   23451             :         {
   23452             :                 "clusapi_GetNetworkId",
   23453             :                 sizeof(struct clusapi_GetNetworkId),
   23454             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_GetNetworkId,
   23455             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetNetworkId,
   23456             :                 (ndr_print_function_t) ndr_print_clusapi_GetNetworkId,
   23457             :                 { 0, NULL },
   23458             :                 { 0, NULL },
   23459             :         },
   23460             :         {
   23461             :                 "clusapi_SetNetworkPriorityOrder",
   23462             :                 sizeof(struct clusapi_SetNetworkPriorityOrder),
   23463             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_SetNetworkPriorityOrder,
   23464             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_SetNetworkPriorityOrder,
   23465             :                 (ndr_print_function_t) ndr_print_clusapi_SetNetworkPriorityOrder,
   23466             :                 { 0, NULL },
   23467             :                 { 0, NULL },
   23468             :         },
   23469             :         {
   23470             :                 "clusapi_NodeNetworkControl",
   23471             :                 sizeof(struct clusapi_NodeNetworkControl),
   23472             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_NodeNetworkControl,
   23473             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_NodeNetworkControl,
   23474             :                 (ndr_print_function_t) ndr_print_clusapi_NodeNetworkControl,
   23475             :                 { 0, NULL },
   23476             :                 { 0, NULL },
   23477             :         },
   23478             :         {
   23479             :                 "clusapi_NetworkControl",
   23480             :                 sizeof(struct clusapi_NetworkControl),
   23481             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_NetworkControl,
   23482             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_NetworkControl,
   23483             :                 (ndr_print_function_t) ndr_print_clusapi_NetworkControl,
   23484             :                 { 0, NULL },
   23485             :                 { 0, NULL },
   23486             :         },
   23487             :         {
   23488             :                 "clusapi_AddNotifyNetwork",
   23489             :                 sizeof(struct clusapi_AddNotifyNetwork),
   23490             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_AddNotifyNetwork,
   23491             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddNotifyNetwork,
   23492             :                 (ndr_print_function_t) ndr_print_clusapi_AddNotifyNetwork,
   23493             :                 { 0, NULL },
   23494             :                 { 0, NULL },
   23495             :         },
   23496             :         {
   23497             :                 "clusapi_ReAddNotifyNetwork",
   23498             :                 sizeof(struct clusapi_ReAddNotifyNetwork),
   23499             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_ReAddNotifyNetwork,
   23500             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_ReAddNotifyNetwork,
   23501             :                 (ndr_print_function_t) ndr_print_clusapi_ReAddNotifyNetwork,
   23502             :                 { 0, NULL },
   23503             :                 { 0, NULL },
   23504             :         },
   23505             :         {
   23506             :                 "clusapi_OpenNetInterface",
   23507             :                 sizeof(struct clusapi_OpenNetInterface),
   23508             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_OpenNetInterface,
   23509             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenNetInterface,
   23510             :                 (ndr_print_function_t) ndr_print_clusapi_OpenNetInterface,
   23511             :                 { 0, NULL },
   23512             :                 { 0, NULL },
   23513             :         },
   23514             :         {
   23515             :                 "clusapi_CloseNetInterface",
   23516             :                 sizeof(struct clusapi_CloseNetInterface),
   23517             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CloseNetInterface,
   23518             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CloseNetInterface,
   23519             :                 (ndr_print_function_t) ndr_print_clusapi_CloseNetInterface,
   23520             :                 { 0, NULL },
   23521             :                 { 0, NULL },
   23522             :         },
   23523             :         {
   23524             :                 "clusapi_GetNetInterfaceState",
   23525             :                 sizeof(struct clusapi_GetNetInterfaceState),
   23526             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_GetNetInterfaceState,
   23527             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetNetInterfaceState,
   23528             :                 (ndr_print_function_t) ndr_print_clusapi_GetNetInterfaceState,
   23529             :                 { 0, NULL },
   23530             :                 { 0, NULL },
   23531             :         },
   23532             :         {
   23533             :                 "clusapi_GetNetInterface",
   23534             :                 sizeof(struct clusapi_GetNetInterface),
   23535             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_GetNetInterface,
   23536             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetNetInterface,
   23537             :                 (ndr_print_function_t) ndr_print_clusapi_GetNetInterface,
   23538             :                 { 0, NULL },
   23539             :                 { 0, NULL },
   23540             :         },
   23541             :         {
   23542             :                 "clusapi_GetNetInterfaceId",
   23543             :                 sizeof(struct clusapi_GetNetInterfaceId),
   23544             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_GetNetInterfaceId,
   23545             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetNetInterfaceId,
   23546             :                 (ndr_print_function_t) ndr_print_clusapi_GetNetInterfaceId,
   23547             :                 { 0, NULL },
   23548             :                 { 0, NULL },
   23549             :         },
   23550             :         {
   23551             :                 "clusapi_NodeNetInterfaceControl",
   23552             :                 sizeof(struct clusapi_NodeNetInterfaceControl),
   23553             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_NodeNetInterfaceControl,
   23554             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_NodeNetInterfaceControl,
   23555             :                 (ndr_print_function_t) ndr_print_clusapi_NodeNetInterfaceControl,
   23556             :                 { 0, NULL },
   23557             :                 { 0, NULL },
   23558             :         },
   23559             :         {
   23560             :                 "clusapi_NetInterfaceControl",
   23561             :                 sizeof(struct clusapi_NetInterfaceControl),
   23562             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_NetInterfaceControl,
   23563             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_NetInterfaceControl,
   23564             :                 (ndr_print_function_t) ndr_print_clusapi_NetInterfaceControl,
   23565             :                 { 0, NULL },
   23566             :                 { 0, NULL },
   23567             :         },
   23568             :         {
   23569             :                 "clusapi_AddNotifyNetInterface",
   23570             :                 sizeof(struct clusapi_AddNotifyNetInterface),
   23571             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_AddNotifyNetInterface,
   23572             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddNotifyNetInterface,
   23573             :                 (ndr_print_function_t) ndr_print_clusapi_AddNotifyNetInterface,
   23574             :                 { 0, NULL },
   23575             :                 { 0, NULL },
   23576             :         },
   23577             :         {
   23578             :                 "clusapi_ReAddNotifyNetInterface",
   23579             :                 sizeof(struct clusapi_ReAddNotifyNetInterface),
   23580             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_ReAddNotifyNetInterface,
   23581             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_ReAddNotifyNetInterface,
   23582             :                 (ndr_print_function_t) ndr_print_clusapi_ReAddNotifyNetInterface,
   23583             :                 { 0, NULL },
   23584             :                 { 0, NULL },
   23585             :         },
   23586             :         {
   23587             :                 "clusapi_CreateNodeEnum",
   23588             :                 sizeof(struct clusapi_CreateNodeEnum),
   23589             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CreateNodeEnum,
   23590             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateNodeEnum,
   23591             :                 (ndr_print_function_t) ndr_print_clusapi_CreateNodeEnum,
   23592             :                 { 0, NULL },
   23593             :                 { 0, NULL },
   23594             :         },
   23595             :         {
   23596             :                 "clusapi_GetClusterVersion2",
   23597             :                 sizeof(struct clusapi_GetClusterVersion2),
   23598             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_GetClusterVersion2,
   23599             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetClusterVersion2,
   23600             :                 (ndr_print_function_t) ndr_print_clusapi_GetClusterVersion2,
   23601             :                 { 0, NULL },
   23602             :                 { 0, NULL },
   23603             :         },
   23604             :         {
   23605             :                 "clusapi_CreateResTypeEnum",
   23606             :                 sizeof(struct clusapi_CreateResTypeEnum),
   23607             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CreateResTypeEnum,
   23608             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateResTypeEnum,
   23609             :                 (ndr_print_function_t) ndr_print_clusapi_CreateResTypeEnum,
   23610             :                 { 0, NULL },
   23611             :                 { 0, NULL },
   23612             :         },
   23613             :         {
   23614             :                 "clusapi_BackupClusterDatabase",
   23615             :                 sizeof(struct clusapi_BackupClusterDatabase),
   23616             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_BackupClusterDatabase,
   23617             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_BackupClusterDatabase,
   23618             :                 (ndr_print_function_t) ndr_print_clusapi_BackupClusterDatabase,
   23619             :                 { 0, NULL },
   23620             :                 { 0, NULL },
   23621             :         },
   23622             :         {
   23623             :                 "clusapi_NodeClusterControl",
   23624             :                 sizeof(struct clusapi_NodeClusterControl),
   23625             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_NodeClusterControl,
   23626             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_NodeClusterControl,
   23627             :                 (ndr_print_function_t) ndr_print_clusapi_NodeClusterControl,
   23628             :                 { 0, NULL },
   23629             :                 { 0, NULL },
   23630             :         },
   23631             :         {
   23632             :                 "clusapi_ClusterControl",
   23633             :                 sizeof(struct clusapi_ClusterControl),
   23634             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_ClusterControl,
   23635             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_ClusterControl,
   23636             :                 (ndr_print_function_t) ndr_print_clusapi_ClusterControl,
   23637             :                 { 0, NULL },
   23638             :                 { 0, NULL },
   23639             :         },
   23640             :         {
   23641             :                 "clusapi_UnblockGetNotifyCall",
   23642             :                 sizeof(struct clusapi_UnblockGetNotifyCall),
   23643             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_UnblockGetNotifyCall,
   23644             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_UnblockGetNotifyCall,
   23645             :                 (ndr_print_function_t) ndr_print_clusapi_UnblockGetNotifyCall,
   23646             :                 { 0, NULL },
   23647             :                 { 0, NULL },
   23648             :         },
   23649             :         {
   23650             :                 "clusapi_SetServiceAccountPassword",
   23651             :                 sizeof(struct clusapi_SetServiceAccountPassword),
   23652             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_SetServiceAccountPassword,
   23653             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_SetServiceAccountPassword,
   23654             :                 (ndr_print_function_t) ndr_print_clusapi_SetServiceAccountPassword,
   23655             :                 { 0, NULL },
   23656             :                 { 0, NULL },
   23657             :         },
   23658             :         {
   23659             :                 "clusapi_SetResourceDependencyExpression",
   23660             :                 sizeof(struct clusapi_SetResourceDependencyExpression),
   23661             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_SetResourceDependencyExpression,
   23662             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_SetResourceDependencyExpression,
   23663             :                 (ndr_print_function_t) ndr_print_clusapi_SetResourceDependencyExpression,
   23664             :                 { 0, NULL },
   23665             :                 { 0, NULL },
   23666             :         },
   23667             :         {
   23668             :                 "clusapi_GetResourceDependencyExpression",
   23669             :                 sizeof(struct clusapi_GetResourceDependencyExpression),
   23670             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_GetResourceDependencyExpression,
   23671             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetResourceDependencyExpression,
   23672             :                 (ndr_print_function_t) ndr_print_clusapi_GetResourceDependencyExpression,
   23673             :                 { 0, NULL },
   23674             :                 { 0, NULL },
   23675             :         },
   23676             :         {
   23677             :                 "Opnum111NotUsedOnWire",
   23678             :                 sizeof(struct Opnum111NotUsedOnWire),
   23679             :                 (ndr_push_flags_fn_t) ndr_push_Opnum111NotUsedOnWire,
   23680             :                 (ndr_pull_flags_fn_t) ndr_pull_Opnum111NotUsedOnWire,
   23681             :                 (ndr_print_function_t) ndr_print_Opnum111NotUsedOnWire,
   23682             :                 { 0, NULL },
   23683             :                 { 0, NULL },
   23684             :         },
   23685             :         {
   23686             :                 "clusapi_GetResourceNetworkName",
   23687             :                 sizeof(struct clusapi_GetResourceNetworkName),
   23688             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_GetResourceNetworkName,
   23689             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetResourceNetworkName,
   23690             :                 (ndr_print_function_t) ndr_print_clusapi_GetResourceNetworkName,
   23691             :                 { 0, NULL },
   23692             :                 { 0, NULL },
   23693             :         },
   23694             :         {
   23695             :                 "clusapi_ExecuteBatch",
   23696             :                 sizeof(struct clusapi_ExecuteBatch),
   23697             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_ExecuteBatch,
   23698             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_ExecuteBatch,
   23699             :                 (ndr_print_function_t) ndr_print_clusapi_ExecuteBatch,
   23700             :                 { 0, NULL },
   23701             :                 { 0, NULL },
   23702             :         },
   23703             :         {
   23704             :                 "clusapi_CreateBatchPort",
   23705             :                 sizeof(struct clusapi_CreateBatchPort),
   23706             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CreateBatchPort,
   23707             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateBatchPort,
   23708             :                 (ndr_print_function_t) ndr_print_clusapi_CreateBatchPort,
   23709             :                 { 0, NULL },
   23710             :                 { 0, NULL },
   23711             :         },
   23712             :         {
   23713             :                 "clusapi_GetBatchNotification",
   23714             :                 sizeof(struct clusapi_GetBatchNotification),
   23715             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_GetBatchNotification,
   23716             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetBatchNotification,
   23717             :                 (ndr_print_function_t) ndr_print_clusapi_GetBatchNotification,
   23718             :                 { 0, NULL },
   23719             :                 { 0, NULL },
   23720             :         },
   23721             :         {
   23722             :                 "clusapi_CloseBatchPort",
   23723             :                 sizeof(struct clusapi_CloseBatchPort),
   23724             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CloseBatchPort,
   23725             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CloseBatchPort,
   23726             :                 (ndr_print_function_t) ndr_print_clusapi_CloseBatchPort,
   23727             :                 { 0, NULL },
   23728             :                 { 0, NULL },
   23729             :         },
   23730             :         {
   23731             :                 "clusapi_OpenClusterEx",
   23732             :                 sizeof(struct clusapi_OpenClusterEx),
   23733             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_OpenClusterEx,
   23734             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenClusterEx,
   23735             :                 (ndr_print_function_t) ndr_print_clusapi_OpenClusterEx,
   23736             :                 { 0, NULL },
   23737             :                 { 0, NULL },
   23738             :         },
   23739             :         {
   23740             :                 "clusapi_OpenNodeEx",
   23741             :                 sizeof(struct clusapi_OpenNodeEx),
   23742             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_OpenNodeEx,
   23743             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenNodeEx,
   23744             :                 (ndr_print_function_t) ndr_print_clusapi_OpenNodeEx,
   23745             :                 { 0, NULL },
   23746             :                 { 0, NULL },
   23747             :         },
   23748             :         {
   23749             :                 "clusapi_OpenGroupEx",
   23750             :                 sizeof(struct clusapi_OpenGroupEx),
   23751             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_OpenGroupEx,
   23752             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenGroupEx,
   23753             :                 (ndr_print_function_t) ndr_print_clusapi_OpenGroupEx,
   23754             :                 { 0, NULL },
   23755             :                 { 0, NULL },
   23756             :         },
   23757             :         {
   23758             :                 "clusapi_OpenResourceEx",
   23759             :                 sizeof(struct clusapi_OpenResourceEx),
   23760             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_OpenResourceEx,
   23761             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenResourceEx,
   23762             :                 (ndr_print_function_t) ndr_print_clusapi_OpenResourceEx,
   23763             :                 { 0, NULL },
   23764             :                 { 0, NULL },
   23765             :         },
   23766             :         {
   23767             :                 "clusapi_OpenNetworkEx",
   23768             :                 sizeof(struct clusapi_OpenNetworkEx),
   23769             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_OpenNetworkEx,
   23770             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenNetworkEx,
   23771             :                 (ndr_print_function_t) ndr_print_clusapi_OpenNetworkEx,
   23772             :                 { 0, NULL },
   23773             :                 { 0, NULL },
   23774             :         },
   23775             :         {
   23776             :                 "clusapi_OpenNetInterfaceEx",
   23777             :                 sizeof(struct clusapi_OpenNetInterfaceEx),
   23778             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_OpenNetInterfaceEx,
   23779             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenNetInterfaceEx,
   23780             :                 (ndr_print_function_t) ndr_print_clusapi_OpenNetInterfaceEx,
   23781             :                 { 0, NULL },
   23782             :                 { 0, NULL },
   23783             :         },
   23784             :         {
   23785             :                 "clusapi_ChangeCsvState",
   23786             :                 sizeof(struct clusapi_ChangeCsvState),
   23787             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_ChangeCsvState,
   23788             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_ChangeCsvState,
   23789             :                 (ndr_print_function_t) ndr_print_clusapi_ChangeCsvState,
   23790             :                 { 0, NULL },
   23791             :                 { 0, NULL },
   23792             :         },
   23793             :         {
   23794             :                 "clusapi_CreateNodeEnumEx",
   23795             :                 sizeof(struct clusapi_CreateNodeEnumEx),
   23796             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CreateNodeEnumEx,
   23797             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateNodeEnumEx,
   23798             :                 (ndr_print_function_t) ndr_print_clusapi_CreateNodeEnumEx,
   23799             :                 { 0, NULL },
   23800             :                 { 0, NULL },
   23801             :         },
   23802             :         {
   23803             :                 "clusapi_CreateEnumEx",
   23804             :                 sizeof(struct clusapi_CreateEnumEx),
   23805             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CreateEnumEx,
   23806             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateEnumEx,
   23807             :                 (ndr_print_function_t) ndr_print_clusapi_CreateEnumEx,
   23808             :                 { 0, NULL },
   23809             :                 { 0, NULL },
   23810             :         },
   23811             :         {
   23812             :                 "clusapi_PauseNodeEx",
   23813             :                 sizeof(struct clusapi_PauseNodeEx),
   23814             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_PauseNodeEx,
   23815             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_PauseNodeEx,
   23816             :                 (ndr_print_function_t) ndr_print_clusapi_PauseNodeEx,
   23817             :                 { 0, NULL },
   23818             :                 { 0, NULL },
   23819             :         },
   23820             :         {
   23821             :                 "clusapi_PauseNodeWithDrainTarget",
   23822             :                 sizeof(struct clusapi_PauseNodeWithDrainTarget),
   23823             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_PauseNodeWithDrainTarget,
   23824             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_PauseNodeWithDrainTarget,
   23825             :                 (ndr_print_function_t) ndr_print_clusapi_PauseNodeWithDrainTarget,
   23826             :                 { 0, NULL },
   23827             :                 { 0, NULL },
   23828             :         },
   23829             :         {
   23830             :                 "clusapi_ResumeNodeEx",
   23831             :                 sizeof(struct clusapi_ResumeNodeEx),
   23832             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_ResumeNodeEx,
   23833             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_ResumeNodeEx,
   23834             :                 (ndr_print_function_t) ndr_print_clusapi_ResumeNodeEx,
   23835             :                 { 0, NULL },
   23836             :                 { 0, NULL },
   23837             :         },
   23838             :         {
   23839             :                 "clusapi_CreateGroupEx",
   23840             :                 sizeof(struct clusapi_CreateGroupEx),
   23841             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CreateGroupEx,
   23842             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateGroupEx,
   23843             :                 (ndr_print_function_t) ndr_print_clusapi_CreateGroupEx,
   23844             :                 { 0, NULL },
   23845             :                 { 0, NULL },
   23846             :         },
   23847             :         {
   23848             :                 "clusapi_OnlineGroupEx",
   23849             :                 sizeof(struct clusapi_OnlineGroupEx),
   23850             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_OnlineGroupEx,
   23851             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_OnlineGroupEx,
   23852             :                 (ndr_print_function_t) ndr_print_clusapi_OnlineGroupEx,
   23853             :                 { 0, NULL },
   23854             :                 { 0, NULL },
   23855             :         },
   23856             :         {
   23857             :                 "clusapi_OfflineGroupEx",
   23858             :                 sizeof(struct clusapi_OfflineGroupEx),
   23859             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_OfflineGroupEx,
   23860             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_OfflineGroupEx,
   23861             :                 (ndr_print_function_t) ndr_print_clusapi_OfflineGroupEx,
   23862             :                 { 0, NULL },
   23863             :                 { 0, NULL },
   23864             :         },
   23865             :         {
   23866             :                 "clusapi_MoveGroupEx",
   23867             :                 sizeof(struct clusapi_MoveGroupEx),
   23868             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_MoveGroupEx,
   23869             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_MoveGroupEx,
   23870             :                 (ndr_print_function_t) ndr_print_clusapi_MoveGroupEx,
   23871             :                 { 0, NULL },
   23872             :                 { 0, NULL },
   23873             :         },
   23874             :         {
   23875             :                 "clusapi_MoveGroupToNodeEx",
   23876             :                 sizeof(struct clusapi_MoveGroupToNodeEx),
   23877             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_MoveGroupToNodeEx,
   23878             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_MoveGroupToNodeEx,
   23879             :                 (ndr_print_function_t) ndr_print_clusapi_MoveGroupToNodeEx,
   23880             :                 { 0, NULL },
   23881             :                 { 0, NULL },
   23882             :         },
   23883             :         {
   23884             :                 "clusapi_CancelClusterGroupOperation",
   23885             :                 sizeof(struct clusapi_CancelClusterGroupOperation),
   23886             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CancelClusterGroupOperation,
   23887             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CancelClusterGroupOperation,
   23888             :                 (ndr_print_function_t) ndr_print_clusapi_CancelClusterGroupOperation,
   23889             :                 { 0, NULL },
   23890             :                 { 0, NULL },
   23891             :         },
   23892             :         {
   23893             :                 "clusapi_OnlineResourceEx",
   23894             :                 sizeof(struct clusapi_OnlineResourceEx),
   23895             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_OnlineResourceEx,
   23896             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_OnlineResourceEx,
   23897             :                 (ndr_print_function_t) ndr_print_clusapi_OnlineResourceEx,
   23898             :                 { 0, NULL },
   23899             :                 { 0, NULL },
   23900             :         },
   23901             :         {
   23902             :                 "clusapi_OfflineResourceEx",
   23903             :                 sizeof(struct clusapi_OfflineResourceEx),
   23904             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_OfflineResourceEx,
   23905             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_OfflineResourceEx,
   23906             :                 (ndr_print_function_t) ndr_print_clusapi_OfflineResourceEx,
   23907             :                 { 0, NULL },
   23908             :                 { 0, NULL },
   23909             :         },
   23910             :         {
   23911             :                 "clusapi_CreateNotifyV2",
   23912             :                 sizeof(struct clusapi_CreateNotifyV2),
   23913             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CreateNotifyV2,
   23914             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateNotifyV2,
   23915             :                 (ndr_print_function_t) ndr_print_clusapi_CreateNotifyV2,
   23916             :                 { 0, NULL },
   23917             :                 { 0, NULL },
   23918             :         },
   23919             :         {
   23920             :                 "clusapi_AddNotifyV2",
   23921             :                 sizeof(struct clusapi_AddNotifyV2),
   23922             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_AddNotifyV2,
   23923             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddNotifyV2,
   23924             :                 (ndr_print_function_t) ndr_print_clusapi_AddNotifyV2,
   23925             :                 { 0, NULL },
   23926             :                 { 0, NULL },
   23927             :         },
   23928             :         {
   23929             :                 "clusapi_GetNotifyV2",
   23930             :                 sizeof(struct clusapi_GetNotifyV2),
   23931             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_GetNotifyV2,
   23932             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetNotifyV2,
   23933             :                 (ndr_print_function_t) ndr_print_clusapi_GetNotifyV2,
   23934             :                 { 0, NULL },
   23935             :                 { 0, NULL },
   23936             :         },
   23937             :         {
   23938             :                 "clusapi_QueryAllValues",
   23939             :                 sizeof(struct clusapi_QueryAllValues),
   23940             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_QueryAllValues,
   23941             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_QueryAllValues,
   23942             :                 (ndr_print_function_t) ndr_print_clusapi_QueryAllValues,
   23943             :                 { 0, NULL },
   23944             :                 { 0, NULL },
   23945             :         },
   23946             :         {
   23947             :                 "clusapi_StmFindDisk",
   23948             :                 sizeof(struct clusapi_StmFindDisk),
   23949             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_StmFindDisk,
   23950             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_StmFindDisk,
   23951             :                 (ndr_print_function_t) ndr_print_clusapi_StmFindDisk,
   23952             :                 { 0, NULL },
   23953             :                 { 0, NULL },
   23954             :         },
   23955             :         {
   23956             :                 "clusapi_ClusterMrr",
   23957             :                 sizeof(struct clusapi_ClusterMrr),
   23958             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_ClusterMrr,
   23959             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_ClusterMrr,
   23960             :                 (ndr_print_function_t) ndr_print_clusapi_ClusterMrr,
   23961             :                 { 0, NULL },
   23962             :                 { 0, NULL },
   23963             :         },
   23964             :         {
   23965             :                 "clusapi_CreateGroupEnum",
   23966             :                 sizeof(struct clusapi_CreateGroupEnum),
   23967             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CreateGroupEnum,
   23968             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateGroupEnum,
   23969             :                 (ndr_print_function_t) ndr_print_clusapi_CreateGroupEnum,
   23970             :                 { 0, NULL },
   23971             :                 { 0, NULL },
   23972             :         },
   23973             :         {
   23974             :                 "clusapi_CreateResourceEnum",
   23975             :                 sizeof(struct clusapi_CreateResourceEnum),
   23976             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CreateResourceEnum,
   23977             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateResourceEnum,
   23978             :                 (ndr_print_function_t) ndr_print_clusapi_CreateResourceEnum,
   23979             :                 { 0, NULL },
   23980             :                 { 0, NULL },
   23981             :         },
   23982             :         {
   23983             :                 "clusapi_ExecuteReadBatch",
   23984             :                 sizeof(struct clusapi_ExecuteReadBatch),
   23985             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_ExecuteReadBatch,
   23986             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_ExecuteReadBatch,
   23987             :                 (ndr_print_function_t) ndr_print_clusapi_ExecuteReadBatch,
   23988             :                 { 0, NULL },
   23989             :                 { 0, NULL },
   23990             :         },
   23991             :         {
   23992             :                 "clusapi_RestartResource",
   23993             :                 sizeof(struct clusapi_RestartResource),
   23994             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_RestartResource,
   23995             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_RestartResource,
   23996             :                 (ndr_print_function_t) ndr_print_clusapi_RestartResource,
   23997             :                 { 0, NULL },
   23998             :                 { 0, NULL },
   23999             :         },
   24000             :         {
   24001             :                 "clusapi_GetNotifyAsync",
   24002             :                 sizeof(struct clusapi_GetNotifyAsync),
   24003             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_GetNotifyAsync,
   24004             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_GetNotifyAsync,
   24005             :                 (ndr_print_function_t) ndr_print_clusapi_GetNotifyAsync,
   24006             :                 { 0, NULL },
   24007             :                 { 0, NULL },
   24008             :         },
   24009             :         {
   24010             :                 "Opnum148NotUsedOnWire",
   24011             :                 sizeof(struct Opnum148NotUsedOnWire),
   24012             :                 (ndr_push_flags_fn_t) ndr_push_Opnum148NotUsedOnWire,
   24013             :                 (ndr_pull_flags_fn_t) ndr_pull_Opnum148NotUsedOnWire,
   24014             :                 (ndr_print_function_t) ndr_print_Opnum148NotUsedOnWire,
   24015             :                 { 0, NULL },
   24016             :                 { 0, NULL },
   24017             :         },
   24018             :         {
   24019             :                 "Opnum149otUsedOnWire",
   24020             :                 sizeof(struct Opnum149otUsedOnWire),
   24021             :                 (ndr_push_flags_fn_t) ndr_push_Opnum149otUsedOnWire,
   24022             :                 (ndr_pull_flags_fn_t) ndr_pull_Opnum149otUsedOnWire,
   24023             :                 (ndr_print_function_t) ndr_print_Opnum149otUsedOnWire,
   24024             :                 { 0, NULL },
   24025             :                 { 0, NULL },
   24026             :         },
   24027             :         {
   24028             :                 "Opnum150NotUsedOnWire",
   24029             :                 sizeof(struct Opnum150NotUsedOnWire),
   24030             :                 (ndr_push_flags_fn_t) ndr_push_Opnum150NotUsedOnWire,
   24031             :                 (ndr_pull_flags_fn_t) ndr_pull_Opnum150NotUsedOnWire,
   24032             :                 (ndr_print_function_t) ndr_print_Opnum150NotUsedOnWire,
   24033             :                 { 0, NULL },
   24034             :                 { 0, NULL },
   24035             :         },
   24036             :         {
   24037             :                 "Opnum151NotUsedOnWire",
   24038             :                 sizeof(struct Opnum151NotUsedOnWire),
   24039             :                 (ndr_push_flags_fn_t) ndr_push_Opnum151NotUsedOnWire,
   24040             :                 (ndr_pull_flags_fn_t) ndr_pull_Opnum151NotUsedOnWire,
   24041             :                 (ndr_print_function_t) ndr_print_Opnum151NotUsedOnWire,
   24042             :                 { 0, NULL },
   24043             :                 { 0, NULL },
   24044             :         },
   24045             :         {
   24046             :                 "Opnum152NotUsedOnWire",
   24047             :                 sizeof(struct Opnum152NotUsedOnWire),
   24048             :                 (ndr_push_flags_fn_t) ndr_push_Opnum152NotUsedOnWire,
   24049             :                 (ndr_pull_flags_fn_t) ndr_pull_Opnum152NotUsedOnWire,
   24050             :                 (ndr_print_function_t) ndr_print_Opnum152NotUsedOnWire,
   24051             :                 { 0, NULL },
   24052             :                 { 0, NULL },
   24053             :         },
   24054             :         {
   24055             :                 "Opnum153NotUsedOnWire",
   24056             :                 sizeof(struct Opnum153NotUsedOnWire),
   24057             :                 (ndr_push_flags_fn_t) ndr_push_Opnum153NotUsedOnWire,
   24058             :                 (ndr_pull_flags_fn_t) ndr_pull_Opnum153NotUsedOnWire,
   24059             :                 (ndr_print_function_t) ndr_print_Opnum153NotUsedOnWire,
   24060             :                 { 0, NULL },
   24061             :                 { 0, NULL },
   24062             :         },
   24063             :         {
   24064             :                 "Opnum154NotUsedOnWire",
   24065             :                 sizeof(struct Opnum154NotUsedOnWire),
   24066             :                 (ndr_push_flags_fn_t) ndr_push_Opnum154NotUsedOnWire,
   24067             :                 (ndr_pull_flags_fn_t) ndr_pull_Opnum154NotUsedOnWire,
   24068             :                 (ndr_print_function_t) ndr_print_Opnum154NotUsedOnWire,
   24069             :                 { 0, NULL },
   24070             :                 { 0, NULL },
   24071             :         },
   24072             :         {
   24073             :                 "clusapi_AddNotifyResourceTypeV2",
   24074             :                 sizeof(struct clusapi_AddNotifyResourceTypeV2),
   24075             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_AddNotifyResourceTypeV2,
   24076             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddNotifyResourceTypeV2,
   24077             :                 (ndr_print_function_t) ndr_print_clusapi_AddNotifyResourceTypeV2,
   24078             :                 { 0, NULL },
   24079             :                 { 0, NULL },
   24080             :         },
   24081             :         {
   24082             :                 "Opnum156NotUsedOnWire",
   24083             :                 sizeof(struct Opnum156NotUsedOnWire),
   24084             :                 (ndr_push_flags_fn_t) ndr_push_Opnum156NotUsedOnWire,
   24085             :                 (ndr_pull_flags_fn_t) ndr_pull_Opnum156NotUsedOnWire,
   24086             :                 (ndr_print_function_t) ndr_print_Opnum156NotUsedOnWire,
   24087             :                 { 0, NULL },
   24088             :                 { 0, NULL },
   24089             :         },
   24090             :         {
   24091             :                 "clusapi_ExecuteReadBatchEx",
   24092             :                 sizeof(struct clusapi_ExecuteReadBatchEx),
   24093             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_ExecuteReadBatchEx,
   24094             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_ExecuteReadBatchEx,
   24095             :                 (ndr_print_function_t) ndr_print_clusapi_ExecuteReadBatchEx,
   24096             :                 { 0, NULL },
   24097             :                 { 0, NULL },
   24098             :         },
   24099             :         {
   24100             :                 "Opnum158NotUsedOnWire",
   24101             :                 sizeof(struct Opnum158NotUsedOnWire),
   24102             :                 (ndr_push_flags_fn_t) ndr_push_Opnum158NotUsedOnWire,
   24103             :                 (ndr_pull_flags_fn_t) ndr_pull_Opnum158NotUsedOnWire,
   24104             :                 (ndr_print_function_t) ndr_print_Opnum158NotUsedOnWire,
   24105             :                 { 0, NULL },
   24106             :                 { 0, NULL },
   24107             :         },
   24108             :         {
   24109             :                 "Opnum159NotUsedOnWire",
   24110             :                 sizeof(struct Opnum159NotUsedOnWire),
   24111             :                 (ndr_push_flags_fn_t) ndr_push_Opnum159NotUsedOnWire,
   24112             :                 (ndr_pull_flags_fn_t) ndr_pull_Opnum159NotUsedOnWire,
   24113             :                 (ndr_print_function_t) ndr_print_Opnum159NotUsedOnWire,
   24114             :                 { 0, NULL },
   24115             :                 { 0, NULL },
   24116             :         },
   24117             :         {
   24118             :                 "Opnum160NotUsedOnWire",
   24119             :                 sizeof(struct Opnum160NotUsedOnWire),
   24120             :                 (ndr_push_flags_fn_t) ndr_push_Opnum160NotUsedOnWire,
   24121             :                 (ndr_pull_flags_fn_t) ndr_pull_Opnum160NotUsedOnWire,
   24122             :                 (ndr_print_function_t) ndr_print_Opnum160NotUsedOnWire,
   24123             :                 { 0, NULL },
   24124             :                 { 0, NULL },
   24125             :         },
   24126             :         {
   24127             :                 "Opnum161NotUsedOnWire",
   24128             :                 sizeof(struct Opnum161NotUsedOnWire),
   24129             :                 (ndr_push_flags_fn_t) ndr_push_Opnum161NotUsedOnWire,
   24130             :                 (ndr_pull_flags_fn_t) ndr_pull_Opnum161NotUsedOnWire,
   24131             :                 (ndr_print_function_t) ndr_print_Opnum161NotUsedOnWire,
   24132             :                 { 0, NULL },
   24133             :                 { 0, NULL },
   24134             :         },
   24135             :         {
   24136             :                 "Opnum162NotUsedOnWire",
   24137             :                 sizeof(struct Opnum162NotUsedOnWire),
   24138             :                 (ndr_push_flags_fn_t) ndr_push_Opnum162NotUsedOnWire,
   24139             :                 (ndr_pull_flags_fn_t) ndr_pull_Opnum162NotUsedOnWire,
   24140             :                 (ndr_print_function_t) ndr_print_Opnum162NotUsedOnWire,
   24141             :                 { 0, NULL },
   24142             :                 { 0, NULL },
   24143             :         },
   24144             :         {
   24145             :                 "clusapi_CreateGroupSet",
   24146             :                 sizeof(struct clusapi_CreateGroupSet),
   24147             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CreateGroupSet,
   24148             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateGroupSet,
   24149             :                 (ndr_print_function_t) ndr_print_clusapi_CreateGroupSet,
   24150             :                 { 0, NULL },
   24151             :                 { 0, NULL },
   24152             :         },
   24153             :         {
   24154             :                 "clusapi_OpenGroupSet",
   24155             :                 sizeof(struct clusapi_OpenGroupSet),
   24156             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_OpenGroupSet,
   24157             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_OpenGroupSet,
   24158             :                 (ndr_print_function_t) ndr_print_clusapi_OpenGroupSet,
   24159             :                 { 0, NULL },
   24160             :                 { 0, NULL },
   24161             :         },
   24162             :         {
   24163             :                 "clusapi_CloseGroupSet",
   24164             :                 sizeof(struct clusapi_CloseGroupSet),
   24165             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CloseGroupSet,
   24166             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CloseGroupSet,
   24167             :                 (ndr_print_function_t) ndr_print_clusapi_CloseGroupSet,
   24168             :                 { 0, NULL },
   24169             :                 { 0, NULL },
   24170             :         },
   24171             :         {
   24172             :                 "clusapi_DeleteGroupSet",
   24173             :                 sizeof(struct clusapi_DeleteGroupSet),
   24174             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_DeleteGroupSet,
   24175             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_DeleteGroupSet,
   24176             :                 (ndr_print_function_t) ndr_print_clusapi_DeleteGroupSet,
   24177             :                 { 0, NULL },
   24178             :                 { 0, NULL },
   24179             :         },
   24180             :         {
   24181             :                 "clusapi_AddGroupToGroupSet",
   24182             :                 sizeof(struct clusapi_AddGroupToGroupSet),
   24183             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_AddGroupToGroupSet,
   24184             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddGroupToGroupSet,
   24185             :                 (ndr_print_function_t) ndr_print_clusapi_AddGroupToGroupSet,
   24186             :                 { 0, NULL },
   24187             :                 { 0, NULL },
   24188             :         },
   24189             :         {
   24190             :                 "clusapi_RemoveGroupFromGroupSet",
   24191             :                 sizeof(struct clusapi_RemoveGroupFromGroupSet),
   24192             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_RemoveGroupFromGroupSet,
   24193             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_RemoveGroupFromGroupSet,
   24194             :                 (ndr_print_function_t) ndr_print_clusapi_RemoveGroupFromGroupSet,
   24195             :                 { 0, NULL },
   24196             :                 { 0, NULL },
   24197             :         },
   24198             :         {
   24199             :                 "clusapi_MoveGroupToGroupSet",
   24200             :                 sizeof(struct clusapi_MoveGroupToGroupSet),
   24201             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_MoveGroupToGroupSet,
   24202             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_MoveGroupToGroupSet,
   24203             :                 (ndr_print_function_t) ndr_print_clusapi_MoveGroupToGroupSet,
   24204             :                 { 0, NULL },
   24205             :                 { 0, NULL },
   24206             :         },
   24207             :         {
   24208             :                 "Opnum170NotUsedOnWire",
   24209             :                 sizeof(struct Opnum170NotUsedOnWire),
   24210             :                 (ndr_push_flags_fn_t) ndr_push_Opnum170NotUsedOnWire,
   24211             :                 (ndr_pull_flags_fn_t) ndr_pull_Opnum170NotUsedOnWire,
   24212             :                 (ndr_print_function_t) ndr_print_Opnum170NotUsedOnWire,
   24213             :                 { 0, NULL },
   24214             :                 { 0, NULL },
   24215             :         },
   24216             :         {
   24217             :                 "clusapi_AddGroupSetDependency",
   24218             :                 sizeof(struct clusapi_AddGroupSetDependency),
   24219             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_AddGroupSetDependency,
   24220             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddGroupSetDependency,
   24221             :                 (ndr_print_function_t) ndr_print_clusapi_AddGroupSetDependency,
   24222             :                 { 0, NULL },
   24223             :                 { 0, NULL },
   24224             :         },
   24225             :         {
   24226             :                 "clusapi_AddGroupToGroupSetDependency",
   24227             :                 sizeof(struct clusapi_AddGroupToGroupSetDependency),
   24228             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_AddGroupToGroupSetDependency,
   24229             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddGroupToGroupSetDependency,
   24230             :                 (ndr_print_function_t) ndr_print_clusapi_AddGroupToGroupSetDependency,
   24231             :                 { 0, NULL },
   24232             :                 { 0, NULL },
   24233             :         },
   24234             :         {
   24235             :                 "clusapi_NodeGroupSetControl",
   24236             :                 sizeof(struct clusapi_NodeGroupSetControl),
   24237             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_NodeGroupSetControl,
   24238             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_NodeGroupSetControl,
   24239             :                 (ndr_print_function_t) ndr_print_clusapi_NodeGroupSetControl,
   24240             :                 { 0, NULL },
   24241             :                 { 0, NULL },
   24242             :         },
   24243             :         {
   24244             :                 "clusapi_GroupSetControl",
   24245             :                 sizeof(struct clusapi_GroupSetControl),
   24246             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_GroupSetControl,
   24247             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_GroupSetControl,
   24248             :                 (ndr_print_function_t) ndr_print_clusapi_GroupSetControl,
   24249             :                 { 0, NULL },
   24250             :                 { 0, NULL },
   24251             :         },
   24252             :         {
   24253             :                 "clusapi_SetGroupDependencyExpression",
   24254             :                 sizeof(struct clusapi_SetGroupDependencyExpression),
   24255             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_SetGroupDependencyExpression,
   24256             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_SetGroupDependencyExpression,
   24257             :                 (ndr_print_function_t) ndr_print_clusapi_SetGroupDependencyExpression,
   24258             :                 { 0, NULL },
   24259             :                 { 0, NULL },
   24260             :         },
   24261             :         {
   24262             :                 "clusapi_RemoveClusterGroupDependency",
   24263             :                 sizeof(struct clusapi_RemoveClusterGroupDependency),
   24264             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_RemoveClusterGroupDependency,
   24265             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_RemoveClusterGroupDependency,
   24266             :                 (ndr_print_function_t) ndr_print_clusapi_RemoveClusterGroupDependency,
   24267             :                 { 0, NULL },
   24268             :                 { 0, NULL },
   24269             :         },
   24270             :         {
   24271             :                 "clusapi_SetGroupSetDependencyExpression",
   24272             :                 sizeof(struct clusapi_SetGroupSetDependencyExpression),
   24273             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_SetGroupSetDependencyExpression,
   24274             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_SetGroupSetDependencyExpression,
   24275             :                 (ndr_print_function_t) ndr_print_clusapi_SetGroupSetDependencyExpression,
   24276             :                 { 0, NULL },
   24277             :                 { 0, NULL },
   24278             :         },
   24279             :         {
   24280             :                 "clusapi_RemoveGroupSetDependency",
   24281             :                 sizeof(struct clusapi_RemoveGroupSetDependency),
   24282             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_RemoveGroupSetDependency,
   24283             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_RemoveGroupSetDependency,
   24284             :                 (ndr_print_function_t) ndr_print_clusapi_RemoveGroupSetDependency,
   24285             :                 { 0, NULL },
   24286             :                 { 0, NULL },
   24287             :         },
   24288             :         {
   24289             :                 "clusapi_RemoveClusterGroupToGroupSetDependency",
   24290             :                 sizeof(struct clusapi_RemoveClusterGroupToGroupSetDependency),
   24291             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_RemoveClusterGroupToGroupSetDependency,
   24292             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_RemoveClusterGroupToGroupSetDependency,
   24293             :                 (ndr_print_function_t) ndr_print_clusapi_RemoveClusterGroupToGroupSetDependency,
   24294             :                 { 0, NULL },
   24295             :                 { 0, NULL },
   24296             :         },
   24297             :         {
   24298             :                 "clusapi_CreateGroupSetEnum",
   24299             :                 sizeof(struct clusapi_CreateGroupSetEnum),
   24300             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CreateGroupSetEnum,
   24301             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateGroupSetEnum,
   24302             :                 (ndr_print_function_t) ndr_print_clusapi_CreateGroupSetEnum,
   24303             :                 { 0, NULL },
   24304             :                 { 0, NULL },
   24305             :         },
   24306             :         {
   24307             :                 "clusapi_CreateNetInterfaceEnum",
   24308             :                 sizeof(struct clusapi_CreateNetInterfaceEnum),
   24309             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_CreateNetInterfaceEnum,
   24310             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_CreateNetInterfaceEnum,
   24311             :                 (ndr_print_function_t) ndr_print_clusapi_CreateNetInterfaceEnum,
   24312             :                 { 0, NULL },
   24313             :                 { 0, NULL },
   24314             :         },
   24315             :         {
   24316             :                 "clusapi_ChangeCsvStateEx",
   24317             :                 sizeof(struct clusapi_ChangeCsvStateEx),
   24318             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_ChangeCsvStateEx,
   24319             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_ChangeCsvStateEx,
   24320             :                 (ndr_print_function_t) ndr_print_clusapi_ChangeCsvStateEx,
   24321             :                 { 0, NULL },
   24322             :                 { 0, NULL },
   24323             :         },
   24324             :         {
   24325             :                 "clusapi_AddGroupToGroupSetEx",
   24326             :                 sizeof(struct clusapi_AddGroupToGroupSetEx),
   24327             :                 (ndr_push_flags_fn_t) ndr_push_clusapi_AddGroupToGroupSetEx,
   24328             :                 (ndr_pull_flags_fn_t) ndr_pull_clusapi_AddGroupToGroupSetEx,
   24329             :                 (ndr_print_function_t) ndr_print_clusapi_AddGroupToGroupSetEx,
   24330             :                 { 0, NULL },
   24331             :                 { 0, NULL },
   24332             :         },
   24333             :         { .name = NULL }
   24334             : };
   24335             : 
   24336             : static const char * const clusapi_endpoint_strings[] = {
   24337             :         "ncacn_ip_tcp:", 
   24338             : };
   24339             : 
   24340             : static const struct ndr_interface_string_array clusapi_endpoints = {
   24341             :         .count  = 1,
   24342             :         .names  = clusapi_endpoint_strings
   24343             : };
   24344             : 
   24345             : static const char * const clusapi_authservice_strings[] = {
   24346             :         "MSServerClusterMgmtAPI", 
   24347             : };
   24348             : 
   24349             : static const struct ndr_interface_string_array clusapi_authservices = {
   24350             :         .count  = 1,
   24351             :         .names  = clusapi_authservice_strings
   24352             : };
   24353             : 
   24354             : 
   24355             : const struct ndr_interface_table ndr_table_clusapi = {
   24356             :         .name           = "clusapi",
   24357             :         .syntax_id      = {
   24358             :                 {0xb97db8b2,0x4c63,0x11cf,{0xbf,0xf6},{0x08,0x00,0x2b,0xe2,0x3f,0x2f}},
   24359             :                 NDR_CLUSAPI_VERSION
   24360             :         },
   24361             :         .helpstring     = NDR_CLUSAPI_HELPSTRING,
   24362             :         .num_calls      = 184,
   24363             :         .calls          = clusapi_calls,
   24364             :         .num_public_structs     = 2,
   24365             :         .public_structs         = clusapi_public_structs,
   24366             :         .endpoints      = &clusapi_endpoints,
   24367             :         .authservices   = &clusapi_authservices
   24368             : };
   24369             : 
   24370             : #endif /* SKIP_NDR_TABLE_clusapi */

Generated by: LCOV version 1.14