/* parser auto-generated by pidl */ #include "includes.h" NTSTATUS ndr_push_dfs_Exist(struct ndr_push *ndr, struct dfs_Exist *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_dfs_Add(struct ndr_push *ndr, struct dfs_Add *r) { NDR_CHECK(ndr_push_unistr(ndr, r->in.path)); NDR_CHECK(ndr_push_unistr(ndr, r->in.server)); NDR_CHECK(ndr_push_ptr(ndr, r->in.share)); if (r->in.share) { NDR_CHECK(ndr_push_unistr(ndr, r->in.share)); } NDR_CHECK(ndr_push_ptr(ndr, r->in.comment)); if (r->in.comment) { NDR_CHECK(ndr_push_unistr(ndr, r->in.comment)); } NDR_CHECK(ndr_push_uint32(ndr, r->in.flags)); return NT_STATUS_OK; } NTSTATUS ndr_push_dfs_Remove(struct ndr_push *ndr, struct dfs_Remove *r) { NDR_CHECK(ndr_push_unistr(ndr, r->in.path)); NDR_CHECK(ndr_push_ptr(ndr, r->in.server)); if (r->in.server) { NDR_CHECK(ndr_push_unistr(ndr, r->in.server)); } NDR_CHECK(ndr_push_ptr(ndr, r->in.share)); if (r->in.share) { NDR_CHECK(ndr_push_unistr(ndr, r->in.share)); } return NT_STATUS_OK; } NTSTATUS ndr_push_dfs_SetInfo(struct ndr_push *ndr, struct dfs_SetInfo *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_dfs_Info1(struct ndr_push *ndr, int ndr_flags, struct dfs_Info1 *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_ptr(ndr, r->path)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->path) { NDR_CHECK(ndr_push_unistr(ndr, r->path)); } done: return NT_STATUS_OK; } NTSTATUS ndr_push_dfs_Info2(struct ndr_push *ndr, int ndr_flags, struct dfs_Info2 *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_ptr(ndr, r->path)); NDR_CHECK(ndr_push_ptr(ndr, r->comment)); NDR_CHECK(ndr_push_uint32(ndr, r->state)); NDR_CHECK(ndr_push_uint32(ndr, r->num_stores)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->path) { NDR_CHECK(ndr_push_unistr(ndr, r->path)); } if (r->comment) { NDR_CHECK(ndr_push_unistr(ndr, r->comment)); } done: return NT_STATUS_OK; } NTSTATUS ndr_push_dfs_StorageInfo(struct ndr_push *ndr, int ndr_flags, struct dfs_StorageInfo *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_uint32(ndr, r->state)); NDR_CHECK(ndr_push_ptr(ndr, r->server)); NDR_CHECK(ndr_push_ptr(ndr, r->share)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->server) { NDR_CHECK(ndr_push_unistr(ndr, r->server)); } if (r->share) { NDR_CHECK(ndr_push_unistr(ndr, r->share)); } done: return NT_STATUS_OK; } NTSTATUS ndr_push_dfs_Info3(struct ndr_push *ndr, int ndr_flags, struct dfs_Info3 *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_ptr(ndr, r->path)); NDR_CHECK(ndr_push_ptr(ndr, r->comment)); NDR_CHECK(ndr_push_uint32(ndr, r->state)); NDR_CHECK(ndr_push_uint32(ndr, r->num_stores)); NDR_CHECK(ndr_push_ptr(ndr, r->stores)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->path) { NDR_CHECK(ndr_push_unistr(ndr, r->path)); } if (r->comment) { NDR_CHECK(ndr_push_unistr(ndr, r->comment)); } if (r->stores) { NDR_CHECK(ndr_push_uint32(ndr, r->num_stores)); NDR_CHECK(ndr_push_array(ndr, NDR_SCALARS|NDR_BUFFERS, r->stores, sizeof(r->stores[0]), r->num_stores, (ndr_push_flags_fn_t)ndr_push_dfs_StorageInfo)); } done: return NT_STATUS_OK; } NTSTATUS ndr_push_dfs_Info4(struct ndr_push *ndr, int ndr_flags, struct dfs_Info4 *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_ptr(ndr, r->path)); NDR_CHECK(ndr_push_ptr(ndr, r->comment)); NDR_CHECK(ndr_push_uint32(ndr, r->state)); NDR_CHECK(ndr_push_uint32(ndr, r->timeout)); NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->guid)); NDR_CHECK(ndr_push_uint32(ndr, r->num_stores)); NDR_CHECK(ndr_push_ptr(ndr, r->stores)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->path) { NDR_CHECK(ndr_push_unistr(ndr, r->path)); } if (r->comment) { NDR_CHECK(ndr_push_unistr(ndr, r->comment)); } NDR_CHECK(ndr_push_GUID(ndr, NDR_BUFFERS, &r->guid)); if (r->stores) { NDR_CHECK(ndr_push_uint32(ndr, r->num_stores)); NDR_CHECK(ndr_push_array(ndr, NDR_SCALARS|NDR_BUFFERS, r->stores, sizeof(r->stores[0]), r->num_stores, (ndr_push_flags_fn_t)ndr_push_dfs_StorageInfo)); } done: return NT_STATUS_OK; } NTSTATUS ndr_push_dfs_Info200(struct ndr_push *ndr, int ndr_flags, struct dfs_Info200 *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_ptr(ndr, r->dom_root)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->dom_root) { NDR_CHECK(ndr_push_unistr(ndr, r->dom_root)); } done: return NT_STATUS_OK; } NTSTATUS ndr_push_dfs_Info300(struct ndr_push *ndr, int ndr_flags, struct dfs_Info300 *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_uint32(ndr, r->flags)); NDR_CHECK(ndr_push_ptr(ndr, r->dom_root)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->dom_root) { NDR_CHECK(ndr_push_unistr(ndr, r->dom_root)); } done: return NT_STATUS_OK; } NTSTATUS ndr_push_dfs_GetInfo(struct ndr_push *ndr, struct dfs_GetInfo *r) { NDR_CHECK(ndr_push_unistr(ndr, r->in.path)); NDR_CHECK(ndr_push_ptr(ndr, r->in.server)); if (r->in.server) { NDR_CHECK(ndr_push_unistr(ndr, r->in.server)); } NDR_CHECK(ndr_push_ptr(ndr, r->in.share)); if (r->in.share) { NDR_CHECK(ndr_push_unistr(ndr, r->in.share)); } NDR_CHECK(ndr_push_uint32(ndr, r->in.level)); return NT_STATUS_OK; } NTSTATUS ndr_push_dfs_EnumArray1(struct ndr_push *ndr, int ndr_flags, struct dfs_EnumArray1 *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_uint32(ndr, r->count)); NDR_CHECK(ndr_push_ptr(ndr, r->s)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->s) { NDR_CHECK(ndr_push_uint32(ndr, r->count)); NDR_CHECK(ndr_push_array(ndr, NDR_SCALARS|NDR_BUFFERS, r->s, sizeof(r->s[0]), r->count, (ndr_push_flags_fn_t)ndr_push_dfs_Info1)); } done: return NT_STATUS_OK; } NTSTATUS ndr_push_dfs_EnumArray2(struct ndr_push *ndr, int ndr_flags, struct dfs_EnumArray2 *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_uint32(ndr, r->count)); NDR_CHECK(ndr_push_ptr(ndr, r->s)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->s) { NDR_CHECK(ndr_push_uint32(ndr, r->count)); NDR_CHECK(ndr_push_array(ndr, NDR_SCALARS|NDR_BUFFERS, r->s, sizeof(r->s[0]), r->count, (ndr_push_flags_fn_t)ndr_push_dfs_Info2)); } done: return NT_STATUS_OK; } NTSTATUS ndr_push_dfs_EnumArray3(struct ndr_push *ndr, int ndr_flags, struct dfs_EnumArray3 *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_uint32(ndr, r->count)); NDR_CHECK(ndr_push_ptr(ndr, r->s)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->s) { NDR_CHECK(ndr_push_uint32(ndr, r->count)); NDR_CHECK(ndr_push_array(ndr, NDR_SCALARS|NDR_BUFFERS, r->s, sizeof(r->s[0]), r->count, (ndr_push_flags_fn_t)ndr_push_dfs_Info3)); } done: return NT_STATUS_OK; } NTSTATUS ndr_push_dfs_EnumArray4(struct ndr_push *ndr, int ndr_flags, struct dfs_EnumArray4 *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_uint32(ndr, r->count)); NDR_CHECK(ndr_push_ptr(ndr, r->s)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->s) { NDR_CHECK(ndr_push_uint32(ndr, r->count)); NDR_CHECK(ndr_push_array(ndr, NDR_SCALARS|NDR_BUFFERS, r->s, sizeof(r->s[0]), r->count, (ndr_push_flags_fn_t)ndr_push_dfs_Info4)); } done: return NT_STATUS_OK; } NTSTATUS ndr_push_dfs_EnumArray200(struct ndr_push *ndr, int ndr_flags, struct dfs_EnumArray200 *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_uint32(ndr, r->count)); NDR_CHECK(ndr_push_ptr(ndr, r->s)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->s) { NDR_CHECK(ndr_push_uint32(ndr, r->count)); NDR_CHECK(ndr_push_array(ndr, NDR_SCALARS|NDR_BUFFERS, r->s, sizeof(r->s[0]), r->count, (ndr_push_flags_fn_t)ndr_push_dfs_Info200)); } done: return NT_STATUS_OK; } NTSTATUS ndr_push_dfs_EnumArray300(struct ndr_push *ndr, int ndr_flags, struct dfs_EnumArray300 *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_uint32(ndr, r->count)); NDR_CHECK(ndr_push_ptr(ndr, r->s)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->s) { NDR_CHECK(ndr_push_uint32(ndr, r->count)); NDR_CHECK(ndr_push_array(ndr, NDR_SCALARS|NDR_BUFFERS, r->s, sizeof(r->s[0]), r->count, (ndr_push_flags_fn_t)ndr_push_dfs_Info300)); } done: return NT_STATUS_OK; } NTSTATUS ndr_push_dfs_EnumInfo(struct ndr_push *ndr, int ndr_flags, uint16 level, union dfs_EnumInfo *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); NDR_CHECK(ndr_push_uint16(ndr, level)); switch (level) { case 1: NDR_CHECK(ndr_push_ptr(ndr, r->info1)); break; case 2: NDR_CHECK(ndr_push_ptr(ndr, r->info2)); break; case 3: NDR_CHECK(ndr_push_ptr(ndr, r->info3)); break; case 4: NDR_CHECK(ndr_push_ptr(ndr, r->info4)); break; case 200: NDR_CHECK(ndr_push_ptr(ndr, r->info200)); break; case 300: NDR_CHECK(ndr_push_ptr(ndr, r->info300)); break; default: return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", level); } ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; switch (level) { case 1: if (r->info1) { NDR_CHECK(ndr_push_dfs_EnumArray1(ndr, NDR_SCALARS|NDR_BUFFERS, r->info1)); } break; case 2: if (r->info2) { NDR_CHECK(ndr_push_dfs_EnumArray2(ndr, NDR_SCALARS|NDR_BUFFERS, r->info2)); } break; case 3: if (r->info3) { NDR_CHECK(ndr_push_dfs_EnumArray3(ndr, NDR_SCALARS|NDR_BUFFERS, r->info3)); } break; case 4: if (r->info4) { NDR_CHECK(ndr_push_dfs_EnumArray4(ndr, NDR_SCALARS|NDR_BUFFERS, r->info4)); } break; case 200: if (r->info200) { NDR_CHECK(ndr_push_dfs_EnumArray200(ndr, NDR_SCALARS|NDR_BUFFERS, r->info200)); } break; case 300: if (r->info300) { NDR_CHECK(ndr_push_dfs_EnumArray300(ndr, NDR_SCALARS|NDR_BUFFERS, r->info300)); } break; default: return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", level); } done: return NT_STATUS_OK; } NTSTATUS ndr_push_dfs_EnumStruct(struct ndr_push *ndr, int ndr_flags, struct dfs_EnumStruct *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_uint32(ndr, r->level)); NDR_CHECK(ndr_push_dfs_EnumInfo(ndr, NDR_SCALARS, r->level, &r->e)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; NDR_CHECK(ndr_push_dfs_EnumInfo(ndr, NDR_BUFFERS, r->level, &r->e)); done: return NT_STATUS_OK; } NTSTATUS ndr_push_dfs_Enum(struct ndr_push *ndr, struct dfs_Enum *r) { NDR_CHECK(ndr_push_uint32(ndr, r->in.level)); NDR_CHECK(ndr_push_uint32(ndr, r->in.bufsize)); NDR_CHECK(ndr_push_ptr(ndr, r->in.info)); if (r->in.info) { NDR_CHECK(ndr_push_dfs_EnumStruct(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info)); } NDR_CHECK(ndr_push_ptr(ndr, r->in.unknown)); if (r->in.unknown) { NDR_CHECK(ndr_push_uint32(ndr, *r->in.unknown)); } NDR_CHECK(ndr_push_ptr(ndr, r->in.total)); if (r->in.total) { NDR_CHECK(ndr_push_uint32(ndr, *r->in.total)); } return NT_STATUS_OK; } NTSTATUS ndr_pull_dfs_Exist(struct ndr_pull *ndr, struct dfs_Exist *r) { NDR_CHECK(ndr_pull_uint32(ndr, r->out.exist_flag)); return NT_STATUS_OK; } NTSTATUS ndr_pull_dfs_Add(struct ndr_pull *ndr, struct dfs_Add *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_dfs_Remove(struct ndr_pull *ndr, struct dfs_Remove *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_dfs_SetInfo(struct ndr_pull *ndr, struct dfs_SetInfo *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_dfs_Info1(struct ndr_pull *ndr, int ndr_flags, struct dfs_Info1 *r) { uint32 _ptr_path; NDR_CHECK(ndr_pull_struct_start(ndr)); if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_path)); if (_ptr_path) { NDR_ALLOC(ndr, r->path); } else { r->path = NULL; } ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->path) { NDR_CHECK(ndr_pull_unistr(ndr, &r->path)); } done: return NT_STATUS_OK; } NTSTATUS ndr_pull_dfs_Info2(struct ndr_pull *ndr, int ndr_flags, struct dfs_Info2 *r) { uint32 _ptr_path; uint32 _ptr_comment; NDR_CHECK(ndr_pull_struct_start(ndr)); if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_path)); if (_ptr_path) { NDR_ALLOC(ndr, r->path); } else { r->path = NULL; } NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_comment)); if (_ptr_comment) { NDR_ALLOC(ndr, r->comment); } else { r->comment = NULL; } NDR_CHECK(ndr_pull_uint32(ndr, &r->state)); NDR_CHECK(ndr_pull_uint32(ndr, &r->num_stores)); ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->path) { NDR_CHECK(ndr_pull_unistr(ndr, &r->path)); } if (r->comment) { NDR_CHECK(ndr_pull_unistr(ndr, &r->comment)); } done: return NT_STATUS_OK; } NTSTATUS ndr_pull_dfs_StorageInfo(struct ndr_pull *ndr, int ndr_flags, struct dfs_StorageInfo *r) { uint32 _ptr_server; uint32 _ptr_share; NDR_CHECK(ndr_pull_struct_start(ndr)); if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_uint32(ndr, &r->state)); NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_server)); if (_ptr_server) { NDR_ALLOC(ndr, r->server); } else { r->server = NULL; } NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_share)); if (_ptr_share) { NDR_ALLOC(ndr, r->share); } else { r->share = NULL; } ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->server) { NDR_CHECK(ndr_pull_unistr(ndr, &r->server)); } if (r->share) { NDR_CHECK(ndr_pull_unistr(ndr, &r->share)); } done: return NT_STATUS_OK; } NTSTATUS ndr_pull_dfs_Info3(struct ndr_pull *ndr, int ndr_flags, struct dfs_Info3 *r) { uint32 _ptr_path; uint32 _ptr_comment; uint32 _ptr_stores; NDR_CHECK(ndr_pull_struct_start(ndr)); if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_path)); if (_ptr_path) { NDR_ALLOC(ndr, r->path); } else { r->path = NULL; } NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_comment)); if (_ptr_comment) { NDR_ALLOC(ndr, r->comment); } else { r->comment = NULL; } NDR_CHECK(ndr_pull_uint32(ndr, &r->state)); NDR_CHECK(ndr_pull_uint32(ndr, &r->num_stores)); NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_stores)); if (_ptr_stores) { NDR_ALLOC(ndr, r->stores); } else { r->stores = NULL; } ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->path) { NDR_CHECK(ndr_pull_unistr(ndr, &r->path)); } if (r->comment) { NDR_CHECK(ndr_pull_unistr(ndr, &r->comment)); } if (r->stores) { { uint32 _array_size; NDR_CHECK(ndr_pull_uint32(ndr, &_array_size)); if (r->num_stores > _array_size) { return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should be %u", _array_size, r->num_stores); } } NDR_ALLOC_N_SIZE(ndr, r->stores, r->num_stores, sizeof(r->stores[0])); NDR_CHECK(ndr_pull_array(ndr, NDR_SCALARS|NDR_BUFFERS, (void **)r->stores, sizeof(r->stores[0]), r->num_stores, (ndr_pull_flags_fn_t)ndr_pull_dfs_StorageInfo)); } done: return NT_STATUS_OK; } NTSTATUS ndr_pull_dfs_Info4(struct ndr_pull *ndr, int ndr_flags, struct dfs_Info4 *r) { uint32 _ptr_path; uint32 _ptr_comment; uint32 _ptr_stores; NDR_CHECK(ndr_pull_struct_start(ndr)); if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_path)); if (_ptr_path) { NDR_ALLOC(ndr, r->path); } else { r->path = NULL; } NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_comment)); if (_ptr_comment) { NDR_ALLOC(ndr, r->comment); } else { r->comment = NULL; } NDR_CHECK(ndr_pull_uint32(ndr, &r->state)); NDR_CHECK(ndr_pull_uint32(ndr, &r->timeout)); NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->guid)); NDR_CHECK(ndr_pull_uint32(ndr, &r->num_stores)); NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_stores)); if (_ptr_stores) { NDR_ALLOC(ndr, r->stores); } else { r->stores = NULL; } ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->path) { NDR_CHECK(ndr_pull_unistr(ndr, &r->path)); } if (r->comment) { NDR_CHECK(ndr_pull_unistr(ndr, &r->comment)); } NDR_CHECK(ndr_pull_GUID(ndr, NDR_BUFFERS, &r->guid)); if (r->stores) { { uint32 _array_size; NDR_CHECK(ndr_pull_uint32(ndr, &_array_size)); if (r->num_stores > _array_size) { return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should be %u", _array_size, r->num_stores); } } NDR_ALLOC_N_SIZE(ndr, r->stores, r->num_stores, sizeof(r->stores[0])); NDR_CHECK(ndr_pull_array(ndr, NDR_SCALARS|NDR_BUFFERS, (void **)r->stores, sizeof(r->stores[0]), r->num_stores, (ndr_pull_flags_fn_t)ndr_pull_dfs_StorageInfo)); } done: return NT_STATUS_OK; } NTSTATUS ndr_pull_dfs_Info100(struct ndr_pull *ndr, int ndr_flags, struct dfs_Info100 *r) { uint32 _ptr_comment; NDR_CHECK(ndr_pull_struct_start(ndr)); if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_comment)); if (_ptr_comment) { NDR_ALLOC(ndr, r->comment); } else { r->comment = NULL; } ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->comment) { NDR_CHECK(ndr_pull_unistr(ndr, &r->comment)); } done: return NT_STATUS_OK; } NTSTATUS ndr_pull_dfs_Info101(struct ndr_pull *ndr, int ndr_flags, struct dfs_Info101 *r) { NDR_CHECK(ndr_pull_struct_start(ndr)); if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_uint32(ndr, &r->state)); ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; done: return NT_STATUS_OK; } NTSTATUS ndr_pull_dfs_Info102(struct ndr_pull *ndr, int ndr_flags, struct dfs_Info102 *r) { NDR_CHECK(ndr_pull_struct_start(ndr)); if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_uint32(ndr, &r->timeout)); ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; done: return NT_STATUS_OK; } NTSTATUS ndr_pull_dfs_Info200(struct ndr_pull *ndr, int ndr_flags, struct dfs_Info200 *r) { uint32 _ptr_dom_root; NDR_CHECK(ndr_pull_struct_start(ndr)); if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_dom_root)); if (_ptr_dom_root) { NDR_ALLOC(ndr, r->dom_root); } else { r->dom_root = NULL; } ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->dom_root) { NDR_CHECK(ndr_pull_unistr(ndr, &r->dom_root)); } done: return NT_STATUS_OK; } NTSTATUS ndr_pull_dfs_Info300(struct ndr_pull *ndr, int ndr_flags, struct dfs_Info300 *r) { uint32 _ptr_dom_root; NDR_CHECK(ndr_pull_struct_start(ndr)); if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_uint32(ndr, &r->flags)); NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_dom_root)); if (_ptr_dom_root) { NDR_ALLOC(ndr, r->dom_root); } else { r->dom_root = NULL; } ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->dom_root) { NDR_CHECK(ndr_pull_unistr(ndr, &r->dom_root)); } done: return NT_STATUS_OK; } NTSTATUS ndr_pull_dfs_Info(struct ndr_pull *ndr, int ndr_flags, uint16 *level, union dfs_Info *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_struct_start(ndr)); NDR_CHECK(ndr_pull_uint16(ndr, level)); switch (*level) { case 1: { uint32 _ptr_info1; NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_info1)); if (_ptr_info1) { NDR_ALLOC(ndr, r->info1); } else { r->info1 = NULL; } break; } case 2: { uint32 _ptr_info2; NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_info2)); if (_ptr_info2) { NDR_ALLOC(ndr, r->info2); } else { r->info2 = NULL; } break; } case 3: { uint32 _ptr_info3; NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_info3)); if (_ptr_info3) { NDR_ALLOC(ndr, r->info3); } else { r->info3 = NULL; } break; } case 4: { uint32 _ptr_info4; NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_info4)); if (_ptr_info4) { NDR_ALLOC(ndr, r->info4); } else { r->info4 = NULL; } break; } case 100: { uint32 _ptr_info100; NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_info100)); if (_ptr_info100) { NDR_ALLOC(ndr, r->info100); } else { r->info100 = NULL; } break; } case 101: { uint32 _ptr_info101; NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_info101)); if (_ptr_info101) { NDR_ALLOC(ndr, r->info101); } else { r->info101 = NULL; } break; } case 102: { uint32 _ptr_info102; NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_info102)); if (_ptr_info102) { NDR_ALLOC(ndr, r->info102); } else { r->info102 = NULL; } break; } case 200: { uint32 _ptr_info200; NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_info200)); if (_ptr_info200) { NDR_ALLOC(ndr, r->info200); } else { r->info200 = NULL; } break; } case 300: { uint32 _ptr_info300; NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_info300)); if (_ptr_info300) { NDR_ALLOC(ndr, r->info300); } else { r->info300 = NULL; } break; } default: return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", *level); } ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; switch (*level) { case 1: if (r->info1) { NDR_CHECK(ndr_pull_dfs_Info1(ndr, NDR_SCALARS|NDR_BUFFERS, r->info1)); } break; case 2: if (r->info2) { NDR_CHECK(ndr_pull_dfs_Info2(ndr, NDR_SCALARS|NDR_BUFFERS, r->info2)); } break; case 3: if (r->info3) { NDR_CHECK(ndr_pull_dfs_Info3(ndr, NDR_SCALARS|NDR_BUFFERS, r->info3)); } break; case 4: if (r->info4) { NDR_CHECK(ndr_pull_dfs_Info4(ndr, NDR_SCALARS|NDR_BUFFERS, r->info4)); } break; case 100: if (r->info100) { NDR_CHECK(ndr_pull_dfs_Info100(ndr, NDR_SCALARS|NDR_BUFFERS, r->info100)); } break; case 101: if (r->info101) { NDR_CHECK(ndr_pull_dfs_Info101(ndr, NDR_SCALARS|NDR_BUFFERS, r->info101)); } break; case 102: if (r->info102) { NDR_CHECK(ndr_pull_dfs_Info102(ndr, NDR_SCALARS|NDR_BUFFERS, r->info102)); } break; case 200: if (r->info200) { NDR_CHECK(ndr_pull_dfs_Info200(ndr, NDR_SCALARS|NDR_BUFFERS, r->info200)); } break; case 300: if (r->info300) { NDR_CHECK(ndr_pull_dfs_Info300(ndr, NDR_SCALARS|NDR_BUFFERS, r->info300)); } break; default: return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", *level); } done: return NT_STATUS_OK; } NTSTATUS ndr_pull_dfs_GetInfo(struct ndr_pull *ndr, struct dfs_GetInfo *r) { { uint16 _level = r->in.level; NDR_CHECK(ndr_pull_dfs_Info(ndr, NDR_SCALARS|NDR_BUFFERS, &_level, &r->out.info)); if (((NDR_SCALARS|NDR_BUFFERS) & NDR_SCALARS) && (_level != r->in.level)) return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u in info"); } NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_dfs_EnumArray1(struct ndr_pull *ndr, int ndr_flags, struct dfs_EnumArray1 *r) { uint32 _ptr_s; NDR_CHECK(ndr_pull_struct_start(ndr)); if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_uint32(ndr, &r->count)); NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_s)); if (_ptr_s) { NDR_ALLOC(ndr, r->s); } else { r->s = NULL; } ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->s) { { uint32 _array_size; NDR_CHECK(ndr_pull_uint32(ndr, &_array_size)); if (r->count > _array_size) { return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should be %u", _array_size, r->count); } } NDR_ALLOC_N_SIZE(ndr, r->s, r->count, sizeof(r->s[0])); NDR_CHECK(ndr_pull_array(ndr, NDR_SCALARS|NDR_BUFFERS, (void **)r->s, sizeof(r->s[0]), r->count, (ndr_pull_flags_fn_t)ndr_pull_dfs_Info1)); } done: return NT_STATUS_OK; } NTSTATUS ndr_pull_dfs_EnumArray2(struct ndr_pull *ndr, int ndr_flags, struct dfs_EnumArray2 *r) { uint32 _ptr_s; NDR_CHECK(ndr_pull_struct_start(ndr)); if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_uint32(ndr, &r->count)); NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_s)); if (_ptr_s) { NDR_ALLOC(ndr, r->s); } else { r->s = NULL; } ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->s) { { uint32 _array_size; NDR_CHECK(ndr_pull_uint32(ndr, &_array_size)); if (r->count > _array_size) { return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should be %u", _array_size, r->count); } } NDR_ALLOC_N_SIZE(ndr, r->s, r->count, sizeof(r->s[0])); NDR_CHECK(ndr_pull_array(ndr, NDR_SCALARS|NDR_BUFFERS, (void **)r->s, sizeof(r->s[0]), r->count, (ndr_pull_flags_fn_t)ndr_pull_dfs_Info2)); } done: return NT_STATUS_OK; } NTSTATUS ndr_pull_dfs_EnumArray3(struct ndr_pull *ndr, int ndr_flags, struct dfs_EnumArray3 *r) { uint32 _ptr_s; NDR_CHECK(ndr_pull_struct_start(ndr)); if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_uint32(ndr, &r->count)); NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_s)); if (_ptr_s) { NDR_ALLOC(ndr, r->s); } else { r->s = NULL; } ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->s) { { uint32 _array_size; NDR_CHECK(ndr_pull_uint32(ndr, &_array_size)); if (r->count > _array_size) { return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should be %u", _array_size, r->count); } } NDR_ALLOC_N_SIZE(ndr, r->s, r->count, sizeof(r->s[0])); NDR_CHECK(ndr_pull_array(ndr, NDR_SCALARS|NDR_BUFFERS, (void **)r->s, sizeof(r->s[0]), r->count, (ndr_pull_flags_fn_t)ndr_pull_dfs_Info3)); } done: return NT_STATUS_OK; } NTSTATUS ndr_pull_dfs_EnumArray4(struct ndr_pull *ndr, int ndr_flags, struct dfs_EnumArray4 *r) { uint32 _ptr_s; NDR_CHECK(ndr_pull_struct_start(ndr)); if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_uint32(ndr, &r->count)); NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_s)); if (_ptr_s) { NDR_ALLOC(ndr, r->s); } else { r->s = NULL; } ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->s) { { uint32 _array_size; NDR_CHECK(ndr_pull_uint32(ndr, &_array_size)); if (r->count > _array_size) { return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should be %u", _array_size, r->count); } } NDR_ALLOC_N_SIZE(ndr, r->s, r->count, sizeof(r->s[0])); NDR_CHECK(ndr_pull_array(ndr, NDR_SCALARS|NDR_BUFFERS, (void **)r->s, sizeof(r->s[0]), r->count, (ndr_pull_flags_fn_t)ndr_pull_dfs_Info4)); } done: return NT_STATUS_OK; } NTSTATUS ndr_pull_dfs_EnumArray200(struct ndr_pull *ndr, int ndr_flags, struct dfs_EnumArray200 *r) { uint32 _ptr_s; NDR_CHECK(ndr_pull_struct_start(ndr)); if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_uint32(ndr, &r->count)); NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_s)); if (_ptr_s) { NDR_ALLOC(ndr, r->s); } else { r->s = NULL; } ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->s) { { uint32 _array_size; NDR_CHECK(ndr_pull_uint32(ndr, &_array_size)); if (r->count > _array_size) { return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should be %u", _array_size, r->count); } } NDR_ALLOC_N_SIZE(ndr, r->s, r->count, sizeof(r->s[0])); NDR_CHECK(ndr_pull_array(ndr, NDR_SCALARS|NDR_BUFFERS, (void **)r->s, sizeof(r->s[0]), r->count, (ndr_pull_flags_fn_t)ndr_pull_dfs_Info200)); } done: return NT_STATUS_OK; } NTSTATUS ndr_pull_dfs_EnumArray300(struct ndr_pull *ndr, int ndr_flags, struct dfs_EnumArray300 *r) { uint32 _ptr_s; NDR_CHECK(ndr_pull_struct_start(ndr)); if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_uint32(ndr, &r->count)); NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_s)); if (_ptr_s) { NDR_ALLOC(ndr, r->s); } else { r->s = NULL; } ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->s) { { uint32 _array_size; NDR_CHECK(ndr_pull_uint32(ndr, &_array_size)); if (r->count > _array_size) { return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %u should be %u", _array_size, r->count); } } NDR_ALLOC_N_SIZE(ndr, r->s, r->count, sizeof(r->s[0])); NDR_CHECK(ndr_pull_array(ndr, NDR_SCALARS|NDR_BUFFERS, (void **)r->s, sizeof(r->s[0]), r->count, (ndr_pull_flags_fn_t)ndr_pull_dfs_Info300)); } done: return NT_STATUS_OK; } NTSTATUS ndr_pull_dfs_EnumInfo(struct ndr_pull *ndr, int ndr_flags, uint16 *level, union dfs_EnumInfo *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_struct_start(ndr)); NDR_CHECK(ndr_pull_uint16(ndr, level)); switch (*level) { case 1: { uint32 _ptr_info1; NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_info1)); if (_ptr_info1) { NDR_ALLOC(ndr, r->info1); } else { r->info1 = NULL; } break; } case 2: { uint32 _ptr_info2; NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_info2)); if (_ptr_info2) { NDR_ALLOC(ndr, r->info2); } else { r->info2 = NULL; } break; } case 3: { uint32 _ptr_info3; NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_info3)); if (_ptr_info3) { NDR_ALLOC(ndr, r->info3); } else { r->info3 = NULL; } break; } case 4: { uint32 _ptr_info4; NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_info4)); if (_ptr_info4) { NDR_ALLOC(ndr, r->info4); } else { r->info4 = NULL; } break; } case 200: { uint32 _ptr_info200; NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_info200)); if (_ptr_info200) { NDR_ALLOC(ndr, r->info200); } else { r->info200 = NULL; } break; } case 300: { uint32 _ptr_info300; NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_info300)); if (_ptr_info300) { NDR_ALLOC(ndr, r->info300); } else { r->info300 = NULL; } break; } default: return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", *level); } ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; switch (*level) { case 1: if (r->info1) { NDR_CHECK(ndr_pull_dfs_EnumArray1(ndr, NDR_SCALARS|NDR_BUFFERS, r->info1)); } break; case 2: if (r->info2) { NDR_CHECK(ndr_pull_dfs_EnumArray2(ndr, NDR_SCALARS|NDR_BUFFERS, r->info2)); } break; case 3: if (r->info3) { NDR_CHECK(ndr_pull_dfs_EnumArray3(ndr, NDR_SCALARS|NDR_BUFFERS, r->info3)); } break; case 4: if (r->info4) { NDR_CHECK(ndr_pull_dfs_EnumArray4(ndr, NDR_SCALARS|NDR_BUFFERS, r->info4)); } break; case 200: if (r->info200) { NDR_CHECK(ndr_pull_dfs_EnumArray200(ndr, NDR_SCALARS|NDR_BUFFERS, r->info200)); } break; case 300: if (r->info300) { NDR_CHECK(ndr_pull_dfs_EnumArray300(ndr, NDR_SCALARS|NDR_BUFFERS, r->info300)); } break; default: return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", *level); } done: return NT_STATUS_OK; } NTSTATUS ndr_pull_dfs_EnumStruct(struct ndr_pull *ndr, int ndr_flags, struct dfs_EnumStruct *r) { NDR_CHECK(ndr_pull_struct_start(ndr)); if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_uint32(ndr, &r->level)); { uint16 _level = r->level; NDR_CHECK(ndr_pull_dfs_EnumInfo(ndr, NDR_SCALARS, &_level, &r->e)); if (((NDR_SCALARS) & NDR_SCALARS) && (_level != r->level)) return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u in e"); } ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; { uint16 _level = r->level; NDR_CHECK(ndr_pull_dfs_EnumInfo(ndr, NDR_BUFFERS, &_level, &r->e)); if (((NDR_BUFFERS) & NDR_SCALARS) && (_level != r->level)) return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u in e"); } done: return NT_STATUS_OK; } NTSTATUS ndr_pull_dfs_Enum(struct ndr_pull *ndr, struct dfs_Enum *r) { uint32 _ptr_info; uint32 _ptr_total; NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_info)); if (_ptr_info) { NDR_ALLOC(ndr, r->out.info); } else { r->out.info = NULL; } if (r->out.info) { NDR_CHECK(ndr_pull_dfs_EnumStruct(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.info)); } NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_total)); if (_ptr_total) { NDR_ALLOC(ndr, r->out.total); } else { r->out.total = NULL; } if (r->out.total) { NDR_CHECK(ndr_pull_uint32(ndr, r->out.total)); } NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } void ndr_print_dfs_Exist(struct ndr_print *ndr, const char *name, int flags, struct dfs_Exist *r) { ndr_print_struct(ndr, name, "dfs_Exist"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "dfs_Exist"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "dfs_Exist"); ndr->depth++; ndr_print_ptr(ndr, "exist_flag", r->out.exist_flag); ndr->depth++; ndr_print_uint32(ndr, "exist_flag", *r->out.exist_flag); ndr->depth--; ndr->depth--; } ndr->depth--; } void ndr_print_dfs_Add(struct ndr_print *ndr, const char *name, int flags, struct dfs_Add *r) { ndr_print_struct(ndr, name, "dfs_Add"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "dfs_Add"); ndr->depth++; ndr_print_ptr(ndr, "path", r->in.path); ndr->depth++; ndr_print_unistr(ndr, "path", r->in.path); ndr->depth--; ndr_print_ptr(ndr, "server", r->in.server); ndr->depth++; ndr_print_unistr(ndr, "server", r->in.server); ndr->depth--; ndr_print_ptr(ndr, "share", r->in.share); ndr->depth++; if (r->in.share) { ndr_print_unistr(ndr, "share", r->in.share); } ndr->depth--; ndr_print_ptr(ndr, "comment", r->in.comment); ndr->depth++; if (r->in.comment) { ndr_print_unistr(ndr, "comment", r->in.comment); } ndr->depth--; ndr_print_uint32(ndr, "flags", r->in.flags); ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "dfs_Add"); ndr->depth++; ndr->depth--; } ndr->depth--; } void ndr_print_dfs_Remove(struct ndr_print *ndr, const char *name, int flags, struct dfs_Remove *r) { ndr_print_struct(ndr, name, "dfs_Remove"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "dfs_Remove"); ndr->depth++; ndr_print_ptr(ndr, "path", r->in.path); ndr->depth++; ndr_print_unistr(ndr, "path", r->in.path); ndr->depth--; ndr_print_ptr(ndr, "server", r->in.server); ndr->depth++; if (r->in.server) { ndr_print_unistr(ndr, "server", r->in.server); } ndr->depth--; ndr_print_ptr(ndr, "share", r->in.share); ndr->depth++; if (r->in.share) { ndr_print_unistr(ndr, "share", r->in.share); } ndr->depth--; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "dfs_Remove"); ndr->depth++; ndr->depth--; } ndr->depth--; } void ndr_print_dfs_SetInfo(struct ndr_print *ndr, const char *name, int flags, struct dfs_SetInfo *r) { ndr_print_struct(ndr, name, "dfs_SetInfo"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "dfs_SetInfo"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "dfs_SetInfo"); ndr->depth++; ndr->depth--; } ndr->depth--; } void ndr_print_dfs_Info1(struct ndr_print *ndr, const char *name, struct dfs_Info1 *r) { ndr_print_struct(ndr, name, "dfs_Info1"); ndr->depth++; ndr_print_ptr(ndr, "path", r->path); ndr->depth++; if (r->path) { ndr_print_unistr(ndr, "path", r->path); } ndr->depth--; ndr->depth--; } void ndr_print_dfs_Info2(struct ndr_print *ndr, const char *name, struct dfs_Info2 *r) { ndr_print_struct(ndr, name, "dfs_Info2"); ndr->depth++; ndr_print_ptr(ndr, "path", r->path); ndr->depth++; if (r->path) { ndr_print_unistr(ndr, "path", r->path); } ndr->depth--; ndr_print_ptr(ndr, "comment", r->comment); ndr->depth++; if (r->comment) { ndr_print_unistr(ndr, "comment", r->comment); } ndr->depth--; ndr_print_uint32(ndr, "state", r->state); ndr_print_uint32(ndr, "num_stores", r->num_stores); ndr->depth--; } void ndr_print_dfs_StorageInfo(struct ndr_print *ndr, const char *name, struct dfs_StorageInfo *r) { ndr_print_struct(ndr, name, "dfs_StorageInfo"); ndr->depth++; ndr_print_uint32(ndr, "state", r->state); ndr_print_ptr(ndr, "server", r->server); ndr->depth++; if (r->server) { ndr_print_unistr(ndr, "server", r->server); } ndr->depth--; ndr_print_ptr(ndr, "share", r->share); ndr->depth++; if (r->share) { ndr_print_unistr(ndr, "share", r->share); } ndr->depth--; ndr->depth--; } void ndr_print_dfs_Info3(struct ndr_print *ndr, const char *name, struct dfs_Info3 *r) { ndr_print_struct(ndr, name, "dfs_Info3"); ndr->depth++; ndr_print_ptr(ndr, "path", r->path); ndr->depth++; if (r->path) { ndr_print_unistr(ndr, "path", r->path); } ndr->depth--; ndr_print_ptr(ndr, "comment", r->comment); ndr->depth++; if (r->comment) { ndr_print_unistr(ndr, "comment", r->comment); } ndr->depth--; ndr_print_uint32(ndr, "state", r->state); ndr_print_uint32(ndr, "num_stores", r->num_stores); ndr_print_ptr(ndr, "stores", r->stores); ndr->depth++; if (r->stores) { ndr_print_array(ndr, "stores", r->stores, sizeof(r->stores[0]), r->num_stores, (ndr_print_fn_t)ndr_print_dfs_StorageInfo); } ndr->depth--; ndr->depth--; } void ndr_print_dfs_Info4(struct ndr_print *ndr, const char *name, struct dfs_Info4 *r) { ndr_print_struct(ndr, name, "dfs_Info4"); ndr->depth++; ndr_print_ptr(ndr, "path", r->path); ndr->depth++; if (r->path) { ndr_print_unistr(ndr, "path", r->path); } ndr->depth--; ndr_print_ptr(ndr, "comment", r->comment); ndr->depth++; if (r->comment) { ndr_print_unistr(ndr, "comment", r->comment); } ndr->depth--; ndr_print_uint32(ndr, "state", r->state); ndr_print_uint32(ndr, "timeout", r->timeout); ndr_print_GUID(ndr, "guid", &r->guid); ndr_print_uint32(ndr, "num_stores", r->num_stores); ndr_print_ptr(ndr, "stores", r->stores); ndr->depth++; if (r->stores) { ndr_print_array(ndr, "stores", r->stores, sizeof(r->stores[0]), r->num_stores, (ndr_print_fn_t)ndr_print_dfs_StorageInfo); } ndr->depth--; ndr->depth--; } void ndr_print_dfs_Info100(struct ndr_print *ndr, const char *name, struct dfs_Info100 *r) { ndr_print_struct(ndr, name, "dfs_Info100"); ndr->depth++; ndr_print_ptr(ndr, "comment", r->comment); ndr->depth++; if (r->comment) { ndr_print_unistr(ndr, "comment", r->comment); } ndr->depth--; ndr->depth--; } void ndr_print_dfs_Info101(struct ndr_print *ndr, const char *name, struct dfs_Info101 *r) { ndr_print_struct(ndr, name, "dfs_Info101"); ndr->depth++; ndr_print_uint32(ndr, "state", r->state); ndr->depth--; } void ndr_print_dfs_Info102(struct ndr_print *ndr, const char *name, struct dfs_Info102 *r) { ndr_print_struct(ndr, name, "dfs_Info102"); ndr->depth++; ndr_print_uint32(ndr, "timeout", r->timeout); ndr->depth--; } void ndr_print_dfs_Info200(struct ndr_print *ndr, const char *name, struct dfs_Info200 *r) { ndr_print_struct(ndr, name, "dfs_Info200"); ndr->depth++; ndr_print_ptr(ndr, "dom_root", r->dom_root); ndr->depth++; if (r->dom_root) { ndr_print_unistr(ndr, "dom_root", r->dom_root); } ndr->depth--; ndr->depth--; } void ndr_print_dfs_Info300(struct ndr_print *ndr, const char *name, struct dfs_Info300 *r) { ndr_print_struct(ndr, name, "dfs_Info300"); ndr->depth++; ndr_print_uint32(ndr, "flags", r->flags); ndr_print_ptr(ndr, "dom_root", r->dom_root); ndr->depth++; if (r->dom_root) { ndr_print_unistr(ndr, "dom_root", r->dom_root); } ndr->depth--; ndr->depth--; } void ndr_print_dfs_Info(struct ndr_print *ndr, const char *name, uint16 level, union dfs_Info *r) { ndr_print_union(ndr, name, level, "dfs_Info"); switch (level) { case 1: ndr_print_ptr(ndr, "info1", r->info1); ndr->depth++; if (r->info1) { ndr_print_dfs_Info1(ndr, "info1", r->info1); } ndr->depth--; break; case 2: ndr_print_ptr(ndr, "info2", r->info2); ndr->depth++; if (r->info2) { ndr_print_dfs_Info2(ndr, "info2", r->info2); } ndr->depth--; break; case 3: ndr_print_ptr(ndr, "info3", r->info3); ndr->depth++; if (r->info3) { ndr_print_dfs_Info3(ndr, "info3", r->info3); } ndr->depth--; break; case 4: ndr_print_ptr(ndr, "info4", r->info4); ndr->depth++; if (r->info4) { ndr_print_dfs_Info4(ndr, "info4", r->info4); } ndr->depth--; break; case 100: ndr_print_ptr(ndr, "info100", r->info100); ndr->depth++; if (r->info100) { ndr_print_dfs_Info100(ndr, "info100", r->info100); } ndr->depth--; break; case 101: ndr_print_ptr(ndr, "info101", r->info101); ndr->depth++; if (r->info101) { ndr_print_dfs_Info101(ndr, "info101", r->info101); } ndr->depth--; break; case 102: ndr_print_ptr(ndr, "info102", r->info102); ndr->depth++; if (r->info102) { ndr_print_dfs_Info102(ndr, "info102", r->info102); } ndr->depth--; break; case 200: ndr_print_ptr(ndr, "info200", r->info200); ndr->depth++; if (r->info200) { ndr_print_dfs_Info200(ndr, "info200", r->info200); } ndr->depth--; break; case 300: ndr_print_ptr(ndr, "info300", r->info300); ndr->depth++; if (r->info300) { ndr_print_dfs_Info300(ndr, "info300", r->info300); } ndr->depth--; break; default: ndr_print_bad_level(ndr, name, level); } } void ndr_print_dfs_GetInfo(struct ndr_print *ndr, const char *name, int flags, struct dfs_GetInfo *r) { ndr_print_struct(ndr, name, "dfs_GetInfo"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "dfs_GetInfo"); ndr->depth++; ndr_print_ptr(ndr, "path", r->in.path); ndr->depth++; ndr_print_unistr(ndr, "path", r->in.path); ndr->depth--; ndr_print_ptr(ndr, "server", r->in.server); ndr->depth++; if (r->in.server) { ndr_print_unistr(ndr, "server", r->in.server); } ndr->depth--; ndr_print_ptr(ndr, "share", r->in.share); ndr->depth++; if (r->in.share) { ndr_print_unistr(ndr, "share", r->in.share); } ndr->depth--; ndr_print_uint32(ndr, "level", r->in.level); ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "dfs_GetInfo"); ndr->depth++; ndr_print_dfs_Info(ndr, "info", r->in.level, &r->out.info); ndr->depth--; } ndr->depth--; } void ndr_print_dfs_EnumArray1(struct ndr_print *ndr, const char *name, struct dfs_EnumArray1 *r) { ndr_print_struct(ndr, name, "dfs_EnumArray1"); ndr->depth++; ndr_print_uint32(ndr, "count", r->count); ndr_print_ptr(ndr, "s", r->s); ndr->depth++; if (r->s) { ndr_print_array(ndr, "s", r->s, sizeof(r->s[0]), r->count, (ndr_print_fn_t)ndr_print_dfs_Info1); } ndr->depth--; ndr->depth--; } void ndr_print_dfs_EnumArray2(struct ndr_print *ndr, const char *name, struct dfs_EnumArray2 *r) { ndr_print_struct(ndr, name, "dfs_EnumArray2"); ndr->depth++; ndr_print_uint32(ndr, "count", r->count); ndr_print_ptr(ndr, "s", r->s); ndr->depth++; if (r->s) { ndr_print_array(ndr, "s", r->s, sizeof(r->s[0]), r->count, (ndr_print_fn_t)ndr_print_dfs_Info2); } ndr->depth--; ndr->depth--; } void ndr_print_dfs_EnumArray3(struct ndr_print *ndr, const char *name, struct dfs_EnumArray3 *r) { ndr_print_struct(ndr, name, "dfs_EnumArray3"); ndr->depth++; ndr_print_uint32(ndr, "count", r->count); ndr_print_ptr(ndr, "s", r->s); ndr->depth++; if (r->s) { ndr_print_array(ndr, "s", r->s, sizeof(r->s[0]), r->count, (ndr_print_fn_t)ndr_print_dfs_Info3); } ndr->depth--; ndr->depth--; } void ndr_print_dfs_EnumArray4(struct ndr_print *ndr, const char *name, struct dfs_EnumArray4 *r) { ndr_print_struct(ndr, name, "dfs_EnumArray4"); ndr->depth++; ndr_print_uint32(ndr, "count", r->count); ndr_print_ptr(ndr, "s", r->s); ndr->depth++; if (r->s) { ndr_print_array(ndr, "s", r->s, sizeof(r->s[0]), r->count, (ndr_print_fn_t)ndr_print_dfs_Info4); } ndr->depth--; ndr->depth--; } void ndr_print_dfs_EnumArray200(struct ndr_print *ndr, const char *name, struct dfs_EnumArray200 *r) { ndr_print_struct(ndr, name, "dfs_EnumArray200"); ndr->depth++; ndr_print_uint32(ndr, "count", r->count); ndr_print_ptr(ndr, "s", r->s); ndr->depth++; if (r->s) { ndr_print_array(ndr, "s", r->s, sizeof(r->s[0]), r->count, (ndr_print_fn_t)ndr_print_dfs_Info200); } ndr->depth--; ndr->depth--; } void ndr_print_dfs_EnumArray300(struct ndr_print *ndr, const char *name, struct dfs_EnumArray300 *r) { ndr_print_struct(ndr, name, "dfs_EnumArray300"); ndr->depth++; ndr_print_uint32(ndr, "count", r->count); ndr_print_ptr(ndr, "s", r->s); ndr->depth++; if (r->s) { ndr_print_array(ndr, "s", r->s, sizeof(r->s[0]), r->count, (ndr_print_fn_t)ndr_print_dfs_Info300); } ndr->depth--; ndr->depth--; } void ndr_print_dfs_EnumInfo(struct ndr_print *ndr, const char *name, uint16 level, union dfs_EnumInfo *r) { ndr_print_union(ndr, name, level, "dfs_EnumInfo"); switch (level) { case 1: ndr_print_ptr(ndr, "info1", r->info1); ndr->depth++; if (r->info1) { ndr_print_dfs_EnumArray1(ndr, "info1", r->info1); } ndr->depth--; break; case 2: ndr_print_ptr(ndr, "info2", r->info2); ndr->depth++; if (r->info2) { ndr_print_dfs_EnumArray2(ndr, "info2", r->info2); } ndr->depth--; break; case 3: ndr_print_ptr(ndr, "info3", r->info3); ndr->depth++; if (r->info3) { ndr_print_dfs_EnumArray3(ndr, "info3", r->info3); } ndr->depth--; break; case 4: ndr_print_ptr(ndr, "info4", r->info4); ndr->depth++; if (r->info4) { ndr_print_dfs_EnumArray4(ndr, "info4", r->info4); } ndr->depth--; break; case 200: ndr_print_ptr(ndr, "info200", r->info200); ndr->depth++; if (r->info200) { ndr_print_dfs_EnumArray200(ndr, "info200", r->info200); } ndr->depth--; break; case 300: ndr_print_ptr(ndr, "info300", r->info300); ndr->depth++; if (r->info300) { ndr_print_dfs_EnumArray300(ndr, "info300", r->info300); } ndr->depth--; break; default: ndr_print_bad_level(ndr, name, level); } } void ndr_print_dfs_EnumStruct(struct ndr_print *ndr, const char *name, struct dfs_EnumStruct *r) { ndr_print_struct(ndr, name, "dfs_EnumStruct"); ndr->depth++; ndr_print_uint32(ndr, "level", r->level); ndr_print_dfs_EnumInfo(ndr, "e", r->level, &r->e); ndr->depth--; } void ndr_print_dfs_Enum(struct ndr_print *ndr, const char *name, int flags, struct dfs_Enum *r) { ndr_print_struct(ndr, name, "dfs_Enum"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "dfs_Enum"); ndr->depth++; ndr_print_uint32(ndr, "level", r->in.level); ndr_print_uint32(ndr, "bufsize", r->in.bufsize); ndr_print_ptr(ndr, "info", r->in.info); ndr->depth++; if (r->in.info) { ndr_print_dfs_EnumStruct(ndr, "info", r->in.info); } ndr->depth--; ndr_print_ptr(ndr, "unknown", r->in.unknown); ndr->depth++; if (r->in.unknown) { ndr_print_uint32(ndr, "unknown", *r->in.unknown); } ndr->depth--; ndr_print_ptr(ndr, "total", r->in.total); ndr->depth++; if (r->in.total) { ndr_print_uint32(ndr, "total", *r->in.total); } ndr->depth--; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "dfs_Enum"); ndr->depth++; ndr_print_ptr(ndr, "info", r->out.info); ndr->depth++; if (r->out.info) { ndr_print_dfs_EnumStruct(ndr, "info", r->out.info); } ndr->depth--; ndr_print_ptr(ndr, "total", r->out.total); ndr->depth++; if (r->out.total) { ndr_print_uint32(ndr, "total", *r->out.total); } ndr->depth--; ndr->depth--; } ndr->depth--; }