/* * Unix SMB/CIFS implementation. * client auto-generated by pidl. DO NOT MODIFY! */ #include "includes.h" #include "librpc/gen_ndr/cli_srvsvc.h" NTSTATUS rpccli_srvsvc_NetCharDevEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t *level, union srvsvc_NetCharDevCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle) { struct srvsvc_NetCharDevEnum r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.level = level; r.in.ctr = ctr; r.in.max_buffer = max_buffer; r.in.resume_handle = resume_handle; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevEnum, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETCHARDEVENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetCharDevEnum, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetCharDevEnum); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevEnum, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ *level = *r.out.level; *ctr = *r.out.ctr; *totalentries = *r.out.totalentries; if ( resume_handle ) { *resume_handle = *r.out.resume_handle; } /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetCharDevGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *device_name, uint32_t level, union srvsvc_NetCharDevInfo *info) { struct srvsvc_NetCharDevGetInfo r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.device_name = device_name; r.in.level = level; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevGetInfo, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETCHARDEVGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetCharDevGetInfo, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetCharDevGetInfo); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevGetInfo, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ *info = *r.out.info; /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetCharDevControl(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *device_name, uint32_t opcode) { struct srvsvc_NetCharDevControl r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.device_name = device_name; r.in.opcode = opcode; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevControl, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETCHARDEVCONTROL, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetCharDevControl, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetCharDevControl); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevControl, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetCharDevQEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *user, uint32_t *level, union srvsvc_NetCharDevQCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle) { struct srvsvc_NetCharDevQEnum r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.user = user; r.in.level = level; r.in.ctr = ctr; r.in.max_buffer = max_buffer; r.in.resume_handle = resume_handle; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQEnum, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETCHARDEVQENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetCharDevQEnum, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetCharDevQEnum); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQEnum, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ *level = *r.out.level; *ctr = *r.out.ctr; *totalentries = *r.out.totalentries; if ( resume_handle ) { *resume_handle = *r.out.resume_handle; } /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetCharDevQGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *queue_name, const char *user, uint32_t level, union srvsvc_NetCharDevQInfo *info) { struct srvsvc_NetCharDevQGetInfo r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.queue_name = queue_name; r.in.user = user; r.in.level = level; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQGetInfo, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETCHARDEVQGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetCharDevQGetInfo, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetCharDevQGetInfo); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQGetInfo, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ *info = *r.out.info; /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetCharDevQSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *queue_name, uint32_t level, union srvsvc_NetCharDevQInfo info, uint32_t *parm_error) { struct srvsvc_NetCharDevQSetInfo r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.queue_name = queue_name; r.in.level = level; r.in.info = info; r.in.parm_error = parm_error; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQSetInfo, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETCHARDEVQSETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetCharDevQSetInfo, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetCharDevQSetInfo); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQSetInfo, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ if ( parm_error ) { *parm_error = *r.out.parm_error; } /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetCharDevQPurge(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *queue_name) { struct srvsvc_NetCharDevQPurge r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.queue_name = queue_name; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQPurge, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETCHARDEVQPURGE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetCharDevQPurge, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetCharDevQPurge); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQPurge, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetCharDevQPurgeSelf(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *queue_name, const char *computer_name) { struct srvsvc_NetCharDevQPurgeSelf r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.queue_name = queue_name; r.in.computer_name = computer_name; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQPurgeSelf, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETCHARDEVQPURGESELF, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetCharDevQPurgeSelf, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetCharDevQPurgeSelf); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetCharDevQPurgeSelf, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetConnEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *path, uint32_t *level, union srvsvc_NetConnCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle) { struct srvsvc_NetConnEnum r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.path = path; r.in.level = level; r.in.ctr = ctr; r.in.max_buffer = max_buffer; r.in.resume_handle = resume_handle; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetConnEnum, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETCONNENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetConnEnum, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetConnEnum); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetConnEnum, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ *level = *r.out.level; *ctr = *r.out.ctr; *totalentries = *r.out.totalentries; if ( resume_handle ) { *resume_handle = *r.out.resume_handle; } /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetFileEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *path, const char *user, uint32_t *level, union srvsvc_NetFileCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle) { struct srvsvc_NetFileEnum r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.path = path; r.in.user = user; r.in.level = level; r.in.ctr = ctr; r.in.max_buffer = max_buffer; r.in.resume_handle = resume_handle; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetFileEnum, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETFILEENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetFileEnum, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetFileEnum); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetFileEnum, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ *level = *r.out.level; *ctr = *r.out.ctr; *totalentries = *r.out.totalentries; if ( resume_handle ) { *resume_handle = *r.out.resume_handle; } /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetFileGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t fid, uint32_t level, union srvsvc_NetFileInfo *info) { struct srvsvc_NetFileGetInfo r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.fid = fid; r.in.level = level; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetFileGetInfo, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETFILEGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetFileGetInfo, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetFileGetInfo); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetFileGetInfo, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ *info = *r.out.info; /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetFileClose(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t fid) { struct srvsvc_NetFileClose r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.fid = fid; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetFileClose, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETFILECLOSE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetFileClose, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetFileClose); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetFileClose, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetSessEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *client, const char *user, uint32_t *level, union srvsvc_NetSessCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle) { struct srvsvc_NetSessEnum r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.client = client; r.in.user = user; r.in.level = level; r.in.ctr = ctr; r.in.max_buffer = max_buffer; r.in.resume_handle = resume_handle; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetSessEnum, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETSESSENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetSessEnum, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetSessEnum); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetSessEnum, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ *level = *r.out.level; *ctr = *r.out.ctr; *totalentries = *r.out.totalentries; if ( resume_handle ) { *resume_handle = *r.out.resume_handle; } /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetSessDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *client, const char *user) { struct srvsvc_NetSessDel r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.client = client; r.in.user = user; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetSessDel, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETSESSDEL, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetSessDel, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetSessDel); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetSessDel, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetShareAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetShareInfo info, uint32_t *parm_error) { struct srvsvc_NetShareAdd r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.level = level; r.in.info = info; r.in.parm_error = parm_error; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetShareAdd, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETSHAREADD, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareAdd, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareAdd); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetShareAdd, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ if ( parm_error ) { *parm_error = *r.out.parm_error; } /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetShareEnumAll(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t *level, union srvsvc_NetShareCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle) { struct srvsvc_NetShareEnumAll r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.level = level; r.in.ctr = ctr; r.in.max_buffer = max_buffer; r.in.resume_handle = resume_handle; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetShareEnumAll, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETSHAREENUMALL, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareEnumAll, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareEnumAll); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetShareEnumAll, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ *level = *r.out.level; *ctr = *r.out.ctr; *totalentries = *r.out.totalentries; if ( resume_handle ) { *resume_handle = *r.out.resume_handle; } /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetShareGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share_name, uint32_t level, union srvsvc_NetShareInfo *info) { struct srvsvc_NetShareGetInfo r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.share_name = share_name; r.in.level = level; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetShareGetInfo, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETSHAREGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareGetInfo, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareGetInfo); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetShareGetInfo, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ *info = *r.out.info; /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetShareSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share_name, uint32_t level, union srvsvc_NetShareInfo info, uint32_t *parm_error) { struct srvsvc_NetShareSetInfo r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.share_name = share_name; r.in.level = level; r.in.info = info; r.in.parm_error = parm_error; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetShareSetInfo, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETSHARESETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareSetInfo, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareSetInfo); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetShareSetInfo, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ if ( parm_error ) { *parm_error = *r.out.parm_error; } /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetShareDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share_name, uint32_t reserved) { struct srvsvc_NetShareDel r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.share_name = share_name; r.in.reserved = reserved; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetShareDel, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETSHAREDEL, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareDel, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareDel); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDel, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetShareDelSticky(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share_name, uint32_t reserved) { struct srvsvc_NetShareDelSticky r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.share_name = share_name; r.in.reserved = reserved; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelSticky, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETSHAREDELSTICKY, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareDelSticky, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareDelSticky); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelSticky, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetShareCheck(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *device_name, enum srvsvc_ShareType *type) { struct srvsvc_NetShareCheck r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.device_name = device_name; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetShareCheck, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETSHARECHECK, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareCheck, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareCheck); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetShareCheck, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ *type = *r.out.type; /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetSrvGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetSrvInfo *info) { struct srvsvc_NetSrvGetInfo r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.level = level; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetSrvGetInfo, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETSRVGETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetSrvGetInfo, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetSrvGetInfo); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetSrvGetInfo, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ *info = *r.out.info; /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetSrvSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetSrvInfo info, uint32_t *parm_error) { struct srvsvc_NetSrvSetInfo r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.level = level; r.in.info = info; r.in.parm_error = parm_error; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetSrvSetInfo, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETSRVSETINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetSrvSetInfo, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetSrvSetInfo); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetSrvSetInfo, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ if ( parm_error ) { *parm_error = *r.out.parm_error; } /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetDiskEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, struct srvsvc_NetDiskInfo *info, uint32_t maxlen, uint32_t *totalentries, uint32_t *resume_handle) { struct srvsvc_NetDiskEnum r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.level = level; r.in.info = info; r.in.maxlen = maxlen; r.in.resume_handle = resume_handle; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetDiskEnum, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETDISKENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetDiskEnum, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetDiskEnum); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetDiskEnum, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ *info = *r.out.info; *totalentries = *r.out.totalentries; if ( resume_handle ) { *resume_handle = *r.out.resume_handle; } /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetServerStatisticsGet(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *service, uint32_t level, uint32_t options, struct srvsvc_Statistics *stats) { struct srvsvc_NetServerStatisticsGet r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.service = service; r.in.level = level; r.in.options = options; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetServerStatisticsGet, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETSERVERSTATISTICSGET, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetServerStatisticsGet, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetServerStatisticsGet); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetServerStatisticsGet, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ *stats = *r.out.stats; /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetTransportAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetTransportInfo info) { struct srvsvc_NetTransportAdd r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.level = level; r.in.info = info; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetTransportAdd, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETTRANSPORTADD, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetTransportAdd, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetTransportAdd); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportAdd, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetTransportEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t *level, union srvsvc_NetTransportCtr *transports, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle) { struct srvsvc_NetTransportEnum r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.level = level; r.in.transports = transports; r.in.max_buffer = max_buffer; r.in.resume_handle = resume_handle; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetTransportEnum, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETTRANSPORTENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetTransportEnum, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetTransportEnum); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportEnum, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ *level = *r.out.level; *transports = *r.out.transports; *totalentries = *r.out.totalentries; if ( resume_handle ) { *resume_handle = *r.out.resume_handle; } /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetTransportDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t unknown, struct srvsvc_NetTransportInfo0 transport) { struct srvsvc_NetTransportDel r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.unknown = unknown; r.in.transport = transport; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetTransportDel, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETTRANSPORTDEL, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetTransportDel, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetTransportDel); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetTransportDel, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetRemoteTOD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, struct srvsvc_NetRemoteTODInfo *info) { struct srvsvc_NetRemoteTOD r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetRemoteTOD, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETREMOTETOD, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetRemoteTOD, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetRemoteTOD); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetRemoteTOD, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ if ( info ) { *info = *r.out.info; } /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetSetServiceBits(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *transport, uint32_t servicebits, uint32_t updateimmediately) { struct srvsvc_NetSetServiceBits r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.transport = transport; r.in.servicebits = servicebits; r.in.updateimmediately = updateimmediately; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetSetServiceBits, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETSETSERVICEBITS, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetSetServiceBits, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetSetServiceBits); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetSetServiceBits, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetPathType(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *path, uint32_t pathflags, uint32_t *pathtype) { struct srvsvc_NetPathType r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.path = path; r.in.pathflags = pathflags; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetPathType, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETPATHTYPE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetPathType, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetPathType); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetPathType, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ *pathtype = *r.out.pathtype; /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetPathCanonicalize(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *path, uint8_t *can_path, uint32_t maxbuf, const char *prefix, uint32_t *pathtype, uint32_t pathflags) { struct srvsvc_NetPathCanonicalize r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.path = path; r.in.maxbuf = maxbuf; r.in.prefix = prefix; r.in.pathtype = pathtype; r.in.pathflags = pathflags; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetPathCanonicalize, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETPATHCANONICALIZE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetPathCanonicalize, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetPathCanonicalize); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetPathCanonicalize, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ memcpy(can_path, r.out.can_path, r.in.maxbuf); *pathtype = *r.out.pathtype; /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetPathCompare(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *path1, const char *path2, uint32_t pathtype, uint32_t pathflags) { struct srvsvc_NetPathCompare r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.path1 = path1; r.in.path2 = path2; r.in.pathtype = pathtype; r.in.pathflags = pathflags; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetPathCompare, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETPATHCOMPARE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetPathCompare, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetPathCompare); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetPathCompare, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetNameValidate(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *name, uint32_t name_type, uint32_t flags) { struct srvsvc_NetNameValidate r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.name = name; r.in.name_type = name_type; r.in.flags = flags; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetNameValidate, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETNAMEVALIDATE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetNameValidate, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetNameValidate); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetNameValidate, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NETRPRNAMECANONICALIZE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) { struct srvsvc_NETRPRNAMECANONICALIZE r; NTSTATUS status; /* In parameters */ if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NETRPRNAMECANONICALIZE, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETRPRNAMECANONICALIZE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRPRNAMECANONICALIZE, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRPRNAMECANONICALIZE); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NETRPRNAMECANONICALIZE, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetPRNameCompare(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *name1, const char *name2, uint32_t name_type, uint32_t flags) { struct srvsvc_NetPRNameCompare r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.name1 = name1; r.in.name2 = name2; r.in.name_type = name_type; r.in.flags = flags; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetPRNameCompare, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETPRNAMECOMPARE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetPRNameCompare, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetPRNameCompare); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetPRNameCompare, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetShareEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t *level, union srvsvc_NetShareCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle) { struct srvsvc_NetShareEnum r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.level = level; r.in.ctr = ctr; r.in.max_buffer = max_buffer; r.in.resume_handle = resume_handle; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetShareEnum, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETSHAREENUM, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareEnum, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareEnum); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetShareEnum, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ *level = *r.out.level; *ctr = *r.out.ctr; *totalentries = *r.out.totalentries; if ( resume_handle ) { *resume_handle = *r.out.resume_handle; } /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetShareDelStart(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share, uint32_t reserved, struct policy_handle *hnd) { struct srvsvc_NetShareDelStart r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.share = share; r.in.reserved = reserved; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelStart, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETSHAREDELSTART, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareDelStart, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareDelStart); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelStart, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ if ( hnd ) { *hnd = *r.out.hnd; } /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetShareDelCommit(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *hnd) { struct srvsvc_NetShareDelCommit r; NTSTATUS status; /* In parameters */ r.in.hnd = hnd; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelCommit, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETSHAREDELCOMMIT, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetShareDelCommit, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetShareDelCommit); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetShareDelCommit, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ if ( hnd ) { *hnd = *r.out.hnd; } /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetGetFileSecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share, const char *file, uint32_t securityinformation, struct sec_desc_buf *sd_buf) { struct srvsvc_NetGetFileSecurity r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.share = share; r.in.file = file; r.in.securityinformation = securityinformation; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetGetFileSecurity, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETGETFILESECURITY, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetGetFileSecurity, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetGetFileSecurity); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetGetFileSecurity, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ if ( sd_buf ) { *sd_buf = *r.out.sd_buf; } /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetSetFileSecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *share, const char *file, uint32_t securityinformation, struct sec_desc_buf sd_buf) { struct srvsvc_NetSetFileSecurity r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.share = share; r.in.file = file; r.in.securityinformation = securityinformation; r.in.sd_buf = sd_buf; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetSetFileSecurity, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETSETFILESECURITY, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetSetFileSecurity, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetSetFileSecurity); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetSetFileSecurity, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetServerTransportAddEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetTransportInfo info) { struct srvsvc_NetServerTransportAddEx r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.level = level; r.in.info = info; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetServerTransportAddEx, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETSERVERTRANSPORTADDEX, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetServerTransportAddEx, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetServerTransportAddEx); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetServerTransportAddEx, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NetServerSetServiceBitsEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *server_unc, const char *emulated_server_unc, const char *transport, uint32_t servicebitsofinterest, uint32_t servicebits, uint32_t updateimmediately) { struct srvsvc_NetServerSetServiceBitsEx r; NTSTATUS status; /* In parameters */ r.in.server_unc = server_unc; r.in.emulated_server_unc = emulated_server_unc; r.in.transport = transport; r.in.servicebitsofinterest = servicebitsofinterest; r.in.servicebits = servicebits; r.in.updateimmediately = updateimmediately; if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NetServerSetServiceBitsEx, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETSERVERSETSERVICEBITSEX, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NetServerSetServiceBitsEx, (ndr_push_flags_fn_t)ndr_push_srvsvc_NetServerSetServiceBitsEx); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NetServerSetServiceBitsEx, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NETRDFSGETVERSION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) { struct srvsvc_NETRDFSGETVERSION r; NTSTATUS status; /* In parameters */ if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSGETVERSION, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETRDFSGETVERSION, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSGETVERSION, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSGETVERSION); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSGETVERSION, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NETRDFSCREATELOCALPARTITION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) { struct srvsvc_NETRDFSCREATELOCALPARTITION r; NTSTATUS status; /* In parameters */ if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSCREATELOCALPARTITION, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETRDFSCREATELOCALPARTITION, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSCREATELOCALPARTITION, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSCREATELOCALPARTITION); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSCREATELOCALPARTITION, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NETRDFSDELETELOCALPARTITION(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) { struct srvsvc_NETRDFSDELETELOCALPARTITION r; NTSTATUS status; /* In parameters */ if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSDELETELOCALPARTITION, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETRDFSDELETELOCALPARTITION, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSDELETELOCALPARTITION, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSDELETELOCALPARTITION); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSDELETELOCALPARTITION, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NETRDFSSETLOCALVOLUMESTATE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) { struct srvsvc_NETRDFSSETLOCALVOLUMESTATE r; NTSTATUS status; /* In parameters */ if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSSETLOCALVOLUMESTATE, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETRDFSSETLOCALVOLUMESTATE, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSSETLOCALVOLUMESTATE, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSSETLOCALVOLUMESTATE); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSSETLOCALVOLUMESTATE, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NETRDFSSETSERVERINFO(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) { struct srvsvc_NETRDFSSETSERVERINFO r; NTSTATUS status; /* In parameters */ if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSSETSERVERINFO, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETRDFSSETSERVERINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSSETSERVERINFO, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSSETSERVERINFO); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSSETSERVERINFO, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NETRDFSCREATEEXITPOINT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) { struct srvsvc_NETRDFSCREATEEXITPOINT r; NTSTATUS status; /* In parameters */ if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSCREATEEXITPOINT, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETRDFSCREATEEXITPOINT, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSCREATEEXITPOINT, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSCREATEEXITPOINT); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSCREATEEXITPOINT, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NETRDFSDELETEEXITPOINT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) { struct srvsvc_NETRDFSDELETEEXITPOINT r; NTSTATUS status; /* In parameters */ if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSDELETEEXITPOINT, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETRDFSDELETEEXITPOINT, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSDELETEEXITPOINT, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSDELETEEXITPOINT); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSDELETEEXITPOINT, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NETRDFSMODIFYPREFIX(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) { struct srvsvc_NETRDFSMODIFYPREFIX r; NTSTATUS status; /* In parameters */ if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSMODIFYPREFIX, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETRDFSMODIFYPREFIX, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSMODIFYPREFIX, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSMODIFYPREFIX); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSMODIFYPREFIX, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NETRDFSFIXLOCALVOLUME(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) { struct srvsvc_NETRDFSFIXLOCALVOLUME r; NTSTATUS status; /* In parameters */ if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSFIXLOCALVOLUME, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETRDFSFIXLOCALVOLUME, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSFIXLOCALVOLUME, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSFIXLOCALVOLUME); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSFIXLOCALVOLUME, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NETRDFSMANAGERREPORTSITEINFO(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) { struct srvsvc_NETRDFSMANAGERREPORTSITEINFO r; NTSTATUS status; /* In parameters */ if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSMANAGERREPORTSITEINFO, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETRDFSMANAGERREPORTSITEINFO, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRDFSMANAGERREPORTSITEINFO, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRDFSMANAGERREPORTSITEINFO); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NETRDFSMANAGERREPORTSITEINFO, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); } NTSTATUS rpccli_srvsvc_NETRSERVERTRANSPORTDELEX(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) { struct srvsvc_NETRSERVERTRANSPORTDELEX r; NTSTATUS status; /* In parameters */ if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(srvsvc_NETRSERVERTRANSPORTDELEX, &r); status = cli_do_rpc_ndr(cli, mem_ctx, PI_SRVSVC, NDR_SRVSVC_NETRSERVERTRANSPORTDELEX, &r, (ndr_pull_flags_fn_t)ndr_pull_srvsvc_NETRSERVERTRANSPORTDELEX, (ndr_push_flags_fn_t)ndr_push_srvsvc_NETRSERVERTRANSPORTDELEX); if (!NT_STATUS_IS_OK(status)) { return status; } if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(srvsvc_NETRSERVERTRANSPORTDELEX, &r); if (NT_STATUS_IS_ERR(status)) { return status; } /* Return variables */ /* Return result */ return werror_to_ntstatus(r.out.result); }