/* parser auto-generated by pidl */ #include "includes.h" NTSTATUS ndr_push_wkssvc_QueryInfo(struct ndr_push *ndr, struct wkssvc_QueryInfo *r) { NDR_CHECK(ndr_push_ptr(ndr, r->in.server_name)); if (r->in.server_name) { NDR_CHECK(ndr_push_unistr(ndr, r->in.server_name)); } NDR_CHECK(ndr_push_uint32(ndr, r->in.level)); return NT_STATUS_OK; } NTSTATUS ndr_push_wkssvc_SetInfo(struct ndr_push *ndr, struct wkssvc_SetInfo *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRWKSTAUSERENUM(struct ndr_push *ndr, struct WKSSVC_NETRWKSTAUSERENUM *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRWKSTAUSERGETINFO(struct ndr_push *ndr, struct WKSSVC_NETRWKSTAUSERGETINFO *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRWKSTAUSERSETINFO(struct ndr_push *ndr, struct WKSSVC_NETRWKSTAUSERSETINFO *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_wkssvc_TransportInfo0(struct ndr_push *ndr, int ndr_flags, struct wkssvc_TransportInfo0 *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->quality_of_service)); NDR_CHECK(ndr_push_uint32(ndr, r->vc_count)); NDR_CHECK(ndr_push_ptr(ndr, r->name)); NDR_CHECK(ndr_push_ptr(ndr, r->address)); NDR_CHECK(ndr_push_uint32(ndr, r->wan_link)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->name) { NDR_CHECK(ndr_push_unistr(ndr, r->name)); } if (r->address) { NDR_CHECK(ndr_push_unistr(ndr, r->address)); } done: return NT_STATUS_OK; } NTSTATUS ndr_push_wkssvc_TransportInfoArray(struct ndr_push *ndr, int ndr_flags, struct wkssvc_TransportInfoArray *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->transports)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->transports) { NDR_CHECK(ndr_push_uint32(ndr, r->count)); NDR_CHECK(ndr_push_array(ndr, NDR_SCALARS|NDR_BUFFERS, r->transports, sizeof(r->transports[0]), r->count, (ndr_push_flags_fn_t)ndr_push_wkssvc_TransportInfo0)); } done: return NT_STATUS_OK; } NTSTATUS ndr_push_wkssvc_TransportUnion(struct ndr_push *ndr, int ndr_flags, uint16 level, union wkssvc_TransportUnion *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 0: NDR_CHECK(ndr_push_ptr(ndr, r->array)); 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 0: if (r->array) { NDR_CHECK(ndr_push_wkssvc_TransportInfoArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->array)); } break; default: return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", level); } done: return NT_STATUS_OK; } NTSTATUS ndr_push_wkssvc_TransportInfo(struct ndr_push *ndr, int ndr_flags, struct wkssvc_TransportInfo *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_wkssvc_TransportUnion(ndr, NDR_SCALARS, r->level, &r->u)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; NDR_CHECK(ndr_push_wkssvc_TransportUnion(ndr, NDR_BUFFERS, r->level, &r->u)); done: return NT_STATUS_OK; } NTSTATUS ndr_push_wkssvc_TransportEnum(struct ndr_push *ndr, struct wkssvc_TransportEnum *r) { NDR_CHECK(ndr_push_ptr(ndr, r->in.server_name)); if (r->in.server_name) { NDR_CHECK(ndr_push_unistr(ndr, r->in.server_name)); } NDR_CHECK(ndr_push_wkssvc_TransportInfo(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info)); NDR_CHECK(ndr_push_uint32(ndr, r->in.max_buffer)); NDR_CHECK(ndr_push_ptr(ndr, r->in.resume_handle)); if (r->in.resume_handle) { NDR_CHECK(ndr_push_uint32(ndr, *r->in.resume_handle)); } return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRWKSTATRANSPORTADD(struct ndr_push *ndr, struct WKSSVC_NETRWKSTATRANSPORTADD *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRWKSTATRANSPORTDEL(struct ndr_push *ndr, struct WKSSVC_NETRWKSTATRANSPORTDEL *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRUSEADD(struct ndr_push *ndr, struct WKSSVC_NETRUSEADD *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRUSEGETINFO(struct ndr_push *ndr, struct WKSSVC_NETRUSEGETINFO *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRUSEDEL(struct ndr_push *ndr, struct WKSSVC_NETRUSEDEL *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRUSEENUM(struct ndr_push *ndr, struct WKSSVC_NETRUSEENUM *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRMESSAGEBUFFERSEND(struct ndr_push *ndr, struct WKSSVC_NETRMESSAGEBUFFERSEND *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRWORKSTATIONSTATISTICSGET(struct ndr_push *ndr, struct WKSSVC_NETRWORKSTATIONSTATISTICSGET *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRLOGONDOMAINNAMEADD(struct ndr_push *ndr, struct WKSSVC_NETRLOGONDOMAINNAMEADD *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRLOGONDOMAINNAMEDEL(struct ndr_push *ndr, struct WKSSVC_NETRLOGONDOMAINNAMEDEL *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRJOINDOMAIN(struct ndr_push *ndr, struct WKSSVC_NETRJOINDOMAIN *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRUNJOINDOMAIN(struct ndr_push *ndr, struct WKSSVC_NETRUNJOINDOMAIN *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRRENAMEMACHINEINDOMAIN(struct ndr_push *ndr, struct WKSSVC_NETRRENAMEMACHINEINDOMAIN *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRVALIDATENAME(struct ndr_push *ndr, struct WKSSVC_NETRVALIDATENAME *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRGETJOININFORMATION(struct ndr_push *ndr, struct WKSSVC_NETRGETJOININFORMATION *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRGETJOINABLEOUS(struct ndr_push *ndr, struct WKSSVC_NETRGETJOINABLEOUS *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRJOINDOMAIN2(struct ndr_push *ndr, struct WKSSVC_NETRJOINDOMAIN2 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRUNJOINDOMAIN2(struct ndr_push *ndr, struct WKSSVC_NETRUNJOINDOMAIN2 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRRENAMEMACHINEINDOMAIN2(struct ndr_push *ndr, struct WKSSVC_NETRRENAMEMACHINEINDOMAIN2 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRVALIDATENAME2(struct ndr_push *ndr, struct WKSSVC_NETRVALIDATENAME2 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRGETJOINABLEOUS2(struct ndr_push *ndr, struct WKSSVC_NETRGETJOINABLEOUS2 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRADDALTERNATECOMPUTERNAME(struct ndr_push *ndr, struct WKSSVC_NETRADDALTERNATECOMPUTERNAME *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRREMOVEALTERNATECOMPUTERNAME(struct ndr_push *ndr, struct WKSSVC_NETRREMOVEALTERNATECOMPUTERNAME *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRSETPRIMARYCOMPUTERNAME(struct ndr_push *ndr, struct WKSSVC_NETRSETPRIMARYCOMPUTERNAME *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_WKSSVC_NETRENUMERATECOMPUTERNAMES(struct ndr_push *ndr, struct WKSSVC_NETRENUMERATECOMPUTERNAMES *r) { return NT_STATUS_OK; } NTSTATUS ndr_pull_wkssvc_Info100(struct ndr_pull *ndr, int ndr_flags, struct wkssvc_Info100 *r) { uint32 _ptr_server; uint32 _ptr_domain; 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->platform_id)); 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_domain)); if (_ptr_domain) { NDR_ALLOC(ndr, r->domain); } else { r->domain = NULL; } NDR_CHECK(ndr_pull_uint32(ndr, &r->ver_major)); NDR_CHECK(ndr_pull_uint32(ndr, &r->ver_minor)); 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->domain) { NDR_CHECK(ndr_pull_unistr(ndr, &r->domain)); } done: return NT_STATUS_OK; } NTSTATUS ndr_pull_wkssvc_Info101(struct ndr_pull *ndr, int ndr_flags, struct wkssvc_Info101 *r) { uint32 _ptr_server; uint32 _ptr_domain; uint32 _ptr_lan_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->platform_id)); 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_domain)); if (_ptr_domain) { NDR_ALLOC(ndr, r->domain); } else { r->domain = NULL; } NDR_CHECK(ndr_pull_uint32(ndr, &r->ver_major)); NDR_CHECK(ndr_pull_uint32(ndr, &r->ver_minor)); NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_lan_root)); if (_ptr_lan_root) { NDR_ALLOC(ndr, r->lan_root); } else { r->lan_root = 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->domain) { NDR_CHECK(ndr_pull_unistr(ndr, &r->domain)); } if (r->lan_root) { NDR_CHECK(ndr_pull_unistr(ndr, &r->lan_root)); } done: return NT_STATUS_OK; } NTSTATUS ndr_pull_wkssvc_Info102(struct ndr_pull *ndr, int ndr_flags, struct wkssvc_Info102 *r) { uint32 _ptr_server; uint32 _ptr_domain; uint32 _ptr_lan_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->platform_id)); 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_domain)); if (_ptr_domain) { NDR_ALLOC(ndr, r->domain); } else { r->domain = NULL; } NDR_CHECK(ndr_pull_uint32(ndr, &r->ver_major)); NDR_CHECK(ndr_pull_uint32(ndr, &r->ver_minor)); NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_lan_root)); if (_ptr_lan_root) { NDR_ALLOC(ndr, r->lan_root); } else { r->lan_root = NULL; } NDR_CHECK(ndr_pull_uint32(ndr, &r->logged_on_users)); 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->domain) { NDR_CHECK(ndr_pull_unistr(ndr, &r->domain)); } if (r->lan_root) { NDR_CHECK(ndr_pull_unistr(ndr, &r->lan_root)); } done: return NT_STATUS_OK; } NTSTATUS ndr_pull_wkssvc_Info(struct ndr_pull *ndr, int ndr_flags, uint16 *level, union wkssvc_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 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; } 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 100: if (r->info100) { NDR_CHECK(ndr_pull_wkssvc_Info100(ndr, NDR_SCALARS|NDR_BUFFERS, r->info100)); } break; case 101: if (r->info101) { NDR_CHECK(ndr_pull_wkssvc_Info101(ndr, NDR_SCALARS|NDR_BUFFERS, r->info101)); } break; case 102: if (r->info102) { NDR_CHECK(ndr_pull_wkssvc_Info102(ndr, NDR_SCALARS|NDR_BUFFERS, r->info102)); } break; default: return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", *level); } done: return NT_STATUS_OK; } NTSTATUS ndr_pull_wkssvc_QueryInfo(struct ndr_pull *ndr, struct wkssvc_QueryInfo *r) { { uint16 _level = r->in.level; NDR_CHECK(ndr_pull_wkssvc_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_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_wkssvc_SetInfo(struct ndr_pull *ndr, struct wkssvc_SetInfo *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRWKSTAUSERENUM(struct ndr_pull *ndr, struct WKSSVC_NETRWKSTAUSERENUM *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRWKSTAUSERGETINFO(struct ndr_pull *ndr, struct WKSSVC_NETRWKSTAUSERGETINFO *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRWKSTAUSERSETINFO(struct ndr_pull *ndr, struct WKSSVC_NETRWKSTAUSERSETINFO *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_wkssvc_TransportInfo0(struct ndr_pull *ndr, int ndr_flags, struct wkssvc_TransportInfo0 *r) { uint32 _ptr_name; uint32 _ptr_address; 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->quality_of_service)); NDR_CHECK(ndr_pull_uint32(ndr, &r->vc_count)); NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_name)); if (_ptr_name) { NDR_ALLOC(ndr, r->name); } else { r->name = NULL; } NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_address)); if (_ptr_address) { NDR_ALLOC(ndr, r->address); } else { r->address = NULL; } NDR_CHECK(ndr_pull_uint32(ndr, &r->wan_link)); ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->name) { NDR_CHECK(ndr_pull_unistr(ndr, &r->name)); } if (r->address) { NDR_CHECK(ndr_pull_unistr(ndr, &r->address)); } done: return NT_STATUS_OK; } NTSTATUS ndr_pull_wkssvc_TransportInfoArray(struct ndr_pull *ndr, int ndr_flags, struct wkssvc_TransportInfoArray *r) { uint32 _ptr_transports; 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_transports)); if (_ptr_transports) { NDR_ALLOC(ndr, r->transports); } else { r->transports = NULL; } ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->transports) { { 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->transports, r->count, sizeof(r->transports[0])); NDR_CHECK(ndr_pull_array(ndr, NDR_SCALARS|NDR_BUFFERS, (void **)r->transports, sizeof(r->transports[0]), r->count, (ndr_pull_flags_fn_t)ndr_pull_wkssvc_TransportInfo0)); } done: return NT_STATUS_OK; } NTSTATUS ndr_pull_wkssvc_TransportUnion(struct ndr_pull *ndr, int ndr_flags, uint16 *level, union wkssvc_TransportUnion *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 0: { uint32 _ptr_array; NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_array)); if (_ptr_array) { NDR_ALLOC(ndr, r->array); } else { r->array = 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 0: if (r->array) { NDR_CHECK(ndr_pull_wkssvc_TransportInfoArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->array)); } break; default: return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", *level); } done: return NT_STATUS_OK; } NTSTATUS ndr_pull_wkssvc_TransportInfo(struct ndr_pull *ndr, int ndr_flags, struct wkssvc_TransportInfo *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_wkssvc_TransportUnion(ndr, NDR_SCALARS, &_level, &r->u)); if (((NDR_SCALARS) & NDR_SCALARS) && (_level != r->level)) return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u in u"); } ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; { uint16 _level = r->level; NDR_CHECK(ndr_pull_wkssvc_TransportUnion(ndr, NDR_BUFFERS, &_level, &r->u)); if (((NDR_BUFFERS) & NDR_SCALARS) && (_level != r->level)) return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u in u"); } done: return NT_STATUS_OK; } NTSTATUS ndr_pull_wkssvc_TransportEnum(struct ndr_pull *ndr, struct wkssvc_TransportEnum *r) { uint32 _ptr_resume_handle; NDR_CHECK(ndr_pull_wkssvc_TransportInfo(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.info)); NDR_CHECK(ndr_pull_uint32(ndr, &r->out.unknown)); NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_resume_handle)); if (_ptr_resume_handle) { NDR_ALLOC(ndr, r->out.resume_handle); } else { r->out.resume_handle = NULL; } if (r->out.resume_handle) { NDR_CHECK(ndr_pull_uint32(ndr, r->out.resume_handle)); } NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRWKSTATRANSPORTADD(struct ndr_pull *ndr, struct WKSSVC_NETRWKSTATRANSPORTADD *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRWKSTATRANSPORTDEL(struct ndr_pull *ndr, struct WKSSVC_NETRWKSTATRANSPORTDEL *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRUSEADD(struct ndr_pull *ndr, struct WKSSVC_NETRUSEADD *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRUSEGETINFO(struct ndr_pull *ndr, struct WKSSVC_NETRUSEGETINFO *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRUSEDEL(struct ndr_pull *ndr, struct WKSSVC_NETRUSEDEL *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRUSEENUM(struct ndr_pull *ndr, struct WKSSVC_NETRUSEENUM *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRMESSAGEBUFFERSEND(struct ndr_pull *ndr, struct WKSSVC_NETRMESSAGEBUFFERSEND *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRWORKSTATIONSTATISTICSGET(struct ndr_pull *ndr, struct WKSSVC_NETRWORKSTATIONSTATISTICSGET *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRLOGONDOMAINNAMEADD(struct ndr_pull *ndr, struct WKSSVC_NETRLOGONDOMAINNAMEADD *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRLOGONDOMAINNAMEDEL(struct ndr_pull *ndr, struct WKSSVC_NETRLOGONDOMAINNAMEDEL *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRJOINDOMAIN(struct ndr_pull *ndr, struct WKSSVC_NETRJOINDOMAIN *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRUNJOINDOMAIN(struct ndr_pull *ndr, struct WKSSVC_NETRUNJOINDOMAIN *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRRENAMEMACHINEINDOMAIN(struct ndr_pull *ndr, struct WKSSVC_NETRRENAMEMACHINEINDOMAIN *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRVALIDATENAME(struct ndr_pull *ndr, struct WKSSVC_NETRVALIDATENAME *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRGETJOININFORMATION(struct ndr_pull *ndr, struct WKSSVC_NETRGETJOININFORMATION *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRGETJOINABLEOUS(struct ndr_pull *ndr, struct WKSSVC_NETRGETJOINABLEOUS *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRJOINDOMAIN2(struct ndr_pull *ndr, struct WKSSVC_NETRJOINDOMAIN2 *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRUNJOINDOMAIN2(struct ndr_pull *ndr, struct WKSSVC_NETRUNJOINDOMAIN2 *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRRENAMEMACHINEINDOMAIN2(struct ndr_pull *ndr, struct WKSSVC_NETRRENAMEMACHINEINDOMAIN2 *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRVALIDATENAME2(struct ndr_pull *ndr, struct WKSSVC_NETRVALIDATENAME2 *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRGETJOINABLEOUS2(struct ndr_pull *ndr, struct WKSSVC_NETRGETJOINABLEOUS2 *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRADDALTERNATECOMPUTERNAME(struct ndr_pull *ndr, struct WKSSVC_NETRADDALTERNATECOMPUTERNAME *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRREMOVEALTERNATECOMPUTERNAME(struct ndr_pull *ndr, struct WKSSVC_NETRREMOVEALTERNATECOMPUTERNAME *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRSETPRIMARYCOMPUTERNAME(struct ndr_pull *ndr, struct WKSSVC_NETRSETPRIMARYCOMPUTERNAME *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_WKSSVC_NETRENUMERATECOMPUTERNAMES(struct ndr_pull *ndr, struct WKSSVC_NETRENUMERATECOMPUTERNAMES *r) { NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } void ndr_print_wkssvc_Info100(struct ndr_print *ndr, const char *name, struct wkssvc_Info100 *r) { ndr_print_struct(ndr, name, "wkssvc_Info100"); ndr->depth++; ndr_print_uint32(ndr, "platform_id", r->platform_id); 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, "domain", r->domain); ndr->depth++; if (r->domain) { ndr_print_unistr(ndr, "domain", r->domain); } ndr->depth--; ndr_print_uint32(ndr, "ver_major", r->ver_major); ndr_print_uint32(ndr, "ver_minor", r->ver_minor); ndr->depth--; } void ndr_print_wkssvc_Info101(struct ndr_print *ndr, const char *name, struct wkssvc_Info101 *r) { ndr_print_struct(ndr, name, "wkssvc_Info101"); ndr->depth++; ndr_print_uint32(ndr, "platform_id", r->platform_id); 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, "domain", r->domain); ndr->depth++; if (r->domain) { ndr_print_unistr(ndr, "domain", r->domain); } ndr->depth--; ndr_print_uint32(ndr, "ver_major", r->ver_major); ndr_print_uint32(ndr, "ver_minor", r->ver_minor); ndr_print_ptr(ndr, "lan_root", r->lan_root); ndr->depth++; if (r->lan_root) { ndr_print_unistr(ndr, "lan_root", r->lan_root); } ndr->depth--; ndr->depth--; } void ndr_print_wkssvc_Info102(struct ndr_print *ndr, const char *name, struct wkssvc_Info102 *r) { ndr_print_struct(ndr, name, "wkssvc_Info102"); ndr->depth++; ndr_print_uint32(ndr, "platform_id", r->platform_id); 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, "domain", r->domain); ndr->depth++; if (r->domain) { ndr_print_unistr(ndr, "domain", r->domain); } ndr->depth--; ndr_print_uint32(ndr, "ver_major", r->ver_major); ndr_print_uint32(ndr, "ver_minor", r->ver_minor); ndr_print_ptr(ndr, "lan_root", r->lan_root); ndr->depth++; if (r->lan_root) { ndr_print_unistr(ndr, "lan_root", r->lan_root); } ndr->depth--; ndr_print_uint32(ndr, "logged_on_users", r->logged_on_users); ndr->depth--; } void ndr_print_wkssvc_Info(struct ndr_print *ndr, const char *name, uint16 level, union wkssvc_Info *r) { ndr_print_union(ndr, name, level, "wkssvc_Info"); switch (level) { case 100: ndr_print_ptr(ndr, "info100", r->info100); ndr->depth++; if (r->info100) { ndr_print_wkssvc_Info100(ndr, "info100", r->info100); } ndr->depth--; break; case 101: ndr_print_ptr(ndr, "info101", r->info101); ndr->depth++; if (r->info101) { ndr_print_wkssvc_Info101(ndr, "info101", r->info101); } ndr->depth--; break; case 102: ndr_print_ptr(ndr, "info102", r->info102); ndr->depth++; if (r->info102) { ndr_print_wkssvc_Info102(ndr, "info102", r->info102); } ndr->depth--; break; default: ndr_print_bad_level(ndr, name, level); } } void ndr_print_wkssvc_QueryInfo(struct ndr_print *ndr, const char *name, int flags, struct wkssvc_QueryInfo *r) { ndr_print_struct(ndr, name, "wkssvc_QueryInfo"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "wkssvc_QueryInfo"); ndr->depth++; ndr_print_ptr(ndr, "server_name", r->in.server_name); ndr->depth++; if (r->in.server_name) { ndr_print_unistr(ndr, "server_name", r->in.server_name); } ndr->depth--; ndr_print_uint32(ndr, "level", r->in.level); ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "wkssvc_QueryInfo"); ndr->depth++; ndr_print_wkssvc_Info(ndr, "info", r->in.level, &r->out.info); ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_wkssvc_SetInfo(struct ndr_print *ndr, const char *name, int flags, struct wkssvc_SetInfo *r) { ndr_print_struct(ndr, name, "wkssvc_SetInfo"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "wkssvc_SetInfo"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "wkssvc_SetInfo"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRWKSTAUSERENUM(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRWKSTAUSERENUM *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRWKSTAUSERENUM"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRWKSTAUSERENUM"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRWKSTAUSERENUM"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRWKSTAUSERGETINFO(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRWKSTAUSERGETINFO *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRWKSTAUSERGETINFO"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRWKSTAUSERGETINFO"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRWKSTAUSERGETINFO"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRWKSTAUSERSETINFO(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRWKSTAUSERSETINFO *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRWKSTAUSERSETINFO"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRWKSTAUSERSETINFO"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRWKSTAUSERSETINFO"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_wkssvc_TransportInfo0(struct ndr_print *ndr, const char *name, struct wkssvc_TransportInfo0 *r) { ndr_print_struct(ndr, name, "wkssvc_TransportInfo0"); ndr->depth++; ndr_print_uint32(ndr, "quality_of_service", r->quality_of_service); ndr_print_uint32(ndr, "vc_count", r->vc_count); ndr_print_ptr(ndr, "name", r->name); ndr->depth++; if (r->name) { ndr_print_unistr(ndr, "name", r->name); } ndr->depth--; ndr_print_ptr(ndr, "address", r->address); ndr->depth++; if (r->address) { ndr_print_unistr(ndr, "address", r->address); } ndr->depth--; ndr_print_uint32(ndr, "wan_link", r->wan_link); ndr->depth--; } void ndr_print_wkssvc_TransportInfoArray(struct ndr_print *ndr, const char *name, struct wkssvc_TransportInfoArray *r) { ndr_print_struct(ndr, name, "wkssvc_TransportInfoArray"); ndr->depth++; ndr_print_uint32(ndr, "count", r->count); ndr_print_ptr(ndr, "transports", r->transports); ndr->depth++; if (r->transports) { ndr_print_array(ndr, "transports", r->transports, sizeof(r->transports[0]), r->count, (ndr_print_fn_t)ndr_print_wkssvc_TransportInfo0); } ndr->depth--; ndr->depth--; } void ndr_print_wkssvc_TransportUnion(struct ndr_print *ndr, const char *name, uint16 level, union wkssvc_TransportUnion *r) { ndr_print_union(ndr, name, level, "wkssvc_TransportUnion"); switch (level) { case 0: ndr_print_ptr(ndr, "array", r->array); ndr->depth++; if (r->array) { ndr_print_wkssvc_TransportInfoArray(ndr, "array", r->array); } ndr->depth--; break; default: ndr_print_bad_level(ndr, name, level); } } void ndr_print_wkssvc_TransportInfo(struct ndr_print *ndr, const char *name, struct wkssvc_TransportInfo *r) { ndr_print_struct(ndr, name, "wkssvc_TransportInfo"); ndr->depth++; ndr_print_uint32(ndr, "level", r->level); ndr_print_wkssvc_TransportUnion(ndr, "u", r->level, &r->u); ndr->depth--; } void ndr_print_wkssvc_TransportEnum(struct ndr_print *ndr, const char *name, int flags, struct wkssvc_TransportEnum *r) { ndr_print_struct(ndr, name, "wkssvc_TransportEnum"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "wkssvc_TransportEnum"); ndr->depth++; ndr_print_ptr(ndr, "server_name", r->in.server_name); ndr->depth++; if (r->in.server_name) { ndr_print_unistr(ndr, "server_name", r->in.server_name); } ndr->depth--; ndr_print_ptr(ndr, "info", r->in.info); ndr->depth++; ndr_print_wkssvc_TransportInfo(ndr, "info", r->in.info); ndr->depth--; ndr_print_uint32(ndr, "max_buffer", r->in.max_buffer); ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle); ndr->depth++; if (r->in.resume_handle) { ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle); } ndr->depth--; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "wkssvc_TransportEnum"); ndr->depth++; ndr_print_ptr(ndr, "info", r->out.info); ndr->depth++; ndr_print_wkssvc_TransportInfo(ndr, "info", r->out.info); ndr->depth--; ndr_print_uint32(ndr, "unknown", r->out.unknown); ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle); ndr->depth++; if (r->out.resume_handle) { ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle); } ndr->depth--; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRWKSTATRANSPORTADD(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRWKSTATRANSPORTADD *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRWKSTATRANSPORTADD"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRWKSTATRANSPORTADD"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRWKSTATRANSPORTADD"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRWKSTATRANSPORTDEL(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRWKSTATRANSPORTDEL *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRWKSTATRANSPORTDEL"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRWKSTATRANSPORTDEL"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRWKSTATRANSPORTDEL"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRUSEADD(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRUSEADD *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRUSEADD"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRUSEADD"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRUSEADD"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRUSEGETINFO(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRUSEGETINFO *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRUSEGETINFO"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRUSEGETINFO"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRUSEGETINFO"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRUSEDEL(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRUSEDEL *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRUSEDEL"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRUSEDEL"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRUSEDEL"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRUSEENUM(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRUSEENUM *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRUSEENUM"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRUSEENUM"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRUSEENUM"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRMESSAGEBUFFERSEND(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRMESSAGEBUFFERSEND *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRMESSAGEBUFFERSEND"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRMESSAGEBUFFERSEND"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRMESSAGEBUFFERSEND"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRWORKSTATIONSTATISTICSGET(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRWORKSTATIONSTATISTICSGET *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRWORKSTATIONSTATISTICSGET"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRWORKSTATIONSTATISTICSGET"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRWORKSTATIONSTATISTICSGET"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRLOGONDOMAINNAMEADD(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRLOGONDOMAINNAMEADD *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRLOGONDOMAINNAMEADD"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRLOGONDOMAINNAMEADD"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRLOGONDOMAINNAMEADD"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRLOGONDOMAINNAMEDEL(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRLOGONDOMAINNAMEDEL *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRLOGONDOMAINNAMEDEL"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRLOGONDOMAINNAMEDEL"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRLOGONDOMAINNAMEDEL"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRJOINDOMAIN(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRJOINDOMAIN *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRJOINDOMAIN"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRJOINDOMAIN"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRJOINDOMAIN"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRUNJOINDOMAIN(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRUNJOINDOMAIN *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRUNJOINDOMAIN"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRUNJOINDOMAIN"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRUNJOINDOMAIN"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRRENAMEMACHINEINDOMAIN(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRRENAMEMACHINEINDOMAIN *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRRENAMEMACHINEINDOMAIN"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRRENAMEMACHINEINDOMAIN"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRRENAMEMACHINEINDOMAIN"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRVALIDATENAME(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRVALIDATENAME *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRVALIDATENAME"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRVALIDATENAME"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRVALIDATENAME"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRGETJOININFORMATION(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRGETJOININFORMATION *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRGETJOININFORMATION"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRGETJOININFORMATION"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRGETJOININFORMATION"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRGETJOINABLEOUS(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRGETJOINABLEOUS *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRGETJOINABLEOUS"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRGETJOINABLEOUS"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRGETJOINABLEOUS"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRJOINDOMAIN2(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRJOINDOMAIN2 *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRJOINDOMAIN2"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRJOINDOMAIN2"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRJOINDOMAIN2"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRUNJOINDOMAIN2(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRUNJOINDOMAIN2 *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRUNJOINDOMAIN2"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRUNJOINDOMAIN2"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRUNJOINDOMAIN2"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRRENAMEMACHINEINDOMAIN2(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRRENAMEMACHINEINDOMAIN2 *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRRENAMEMACHINEINDOMAIN2"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRRENAMEMACHINEINDOMAIN2"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRRENAMEMACHINEINDOMAIN2"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRVALIDATENAME2(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRVALIDATENAME2 *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRVALIDATENAME2"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRVALIDATENAME2"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRVALIDATENAME2"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRGETJOINABLEOUS2(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRGETJOINABLEOUS2 *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRGETJOINABLEOUS2"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRGETJOINABLEOUS2"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRGETJOINABLEOUS2"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRADDALTERNATECOMPUTERNAME(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRADDALTERNATECOMPUTERNAME *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRADDALTERNATECOMPUTERNAME"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRADDALTERNATECOMPUTERNAME"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRADDALTERNATECOMPUTERNAME"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRREMOVEALTERNATECOMPUTERNAME(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRREMOVEALTERNATECOMPUTERNAME *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRREMOVEALTERNATECOMPUTERNAME"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRREMOVEALTERNATECOMPUTERNAME"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRREMOVEALTERNATECOMPUTERNAME"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRSETPRIMARYCOMPUTERNAME(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRSETPRIMARYCOMPUTERNAME *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRSETPRIMARYCOMPUTERNAME"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRSETPRIMARYCOMPUTERNAME"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRSETPRIMARYCOMPUTERNAME"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_WKSSVC_NETRENUMERATECOMPUTERNAMES(struct ndr_print *ndr, const char *name, int flags, struct WKSSVC_NETRENUMERATECOMPUTERNAMES *r) { ndr_print_struct(ndr, name, "WKSSVC_NETRENUMERATECOMPUTERNAMES"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "WKSSVC_NETRENUMERATECOMPUTERNAMES"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "WKSSVC_NETRENUMERATECOMPUTERNAMES"); ndr->depth++; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; }