diff options
-rw-r--r-- | source3/librpc/gen_ndr/cli_dfs.c | 412 | ||||
-rw-r--r-- | source3/librpc/gen_ndr/cli_echo.c | 160 | ||||
-rw-r--r-- | source3/librpc/gen_ndr/cli_epmapper.c | 128 | ||||
-rw-r--r-- | source3/librpc/gen_ndr/cli_eventlog.c | 384 | ||||
-rw-r--r-- | source3/librpc/gen_ndr/cli_initshutdown.c | 54 | ||||
-rw-r--r-- | source3/librpc/gen_ndr/cli_lsa.c | 1312 | ||||
-rw-r--r-- | source3/librpc/gen_ndr/cli_netlogon.c | 810 | ||||
-rw-r--r-- | source3/librpc/gen_ndr/cli_srvsvc.c | 972 | ||||
-rw-r--r-- | source3/librpc/gen_ndr/cli_svcctl.c | 792 | ||||
-rw-r--r-- | source3/librpc/gen_ndr/cli_unixinfo.c | 80 | ||||
-rw-r--r-- | source3/librpc/gen_ndr/cli_winreg.c | 630 | ||||
-rw-r--r-- | source3/librpc/gen_ndr/cli_wkssvc.c | 558 |
12 files changed, 3146 insertions, 3146 deletions
diff --git a/source3/librpc/gen_ndr/cli_dfs.c b/source3/librpc/gen_ndr/cli_dfs.c index fda04608d3..1cd085eaec 100644 --- a/source3/librpc/gen_ndr/cli_dfs.c +++ b/source3/librpc/gen_ndr/cli_dfs.c @@ -10,28 +10,28 @@ NTSTATUS rpccli_dfs_GetManagerVersion(struct rpc_pipe_client *cli, TALLOC_CTX *m { struct dfs_GetManagerVersion r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_GetManagerVersion, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_GETMANAGERVERSION, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_GetManagerVersion, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *version = *r.out.version; - + /* Return result */ return NT_STATUS_OK; } @@ -40,37 +40,37 @@ NTSTATUS rpccli_dfs_Add(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const { struct dfs_Add r; NTSTATUS status; - + /* In parameters */ r.in.path = path; r.in.server = server; r.in.share = share; r.in.comment = comment; r.in.flags = flags; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Add, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADD, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_Add, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -78,35 +78,35 @@ NTSTATUS rpccli_dfs_Remove(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con { struct dfs_Remove r; NTSTATUS status; - + /* In parameters */ r.in.dfs_entry_path = dfs_entry_path; r.in.servername = servername; r.in.sharename = sharename; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Remove, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_Remove, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -114,37 +114,37 @@ NTSTATUS rpccli_dfs_SetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co { struct dfs_SetInfo r; NTSTATUS status; - + /* In parameters */ r.in.dfs_entry_path = dfs_entry_path; r.in.servername = servername; r.in.sharename = sharename; r.in.level = level; r.in.info = info; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_SetInfo, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_SETINFO, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_SetInfo, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -152,37 +152,37 @@ NTSTATUS rpccli_dfs_GetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, co { struct dfs_GetInfo r; NTSTATUS status; - + /* In parameters */ r.in.dfs_entry_path = dfs_entry_path; r.in.servername = servername; r.in.sharename = sharename; r.in.level = level; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_GetInfo, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_GETINFO, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_GetInfo, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *info = *r.out.info; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -190,29 +190,29 @@ NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint3 { struct dfs_Enum r; NTSTATUS status; - + /* In parameters */ r.in.level = level; r.in.bufsize = bufsize; r.in.info = info; r.in.total = total; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Enum, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ENUM, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_Enum, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (info && r.out.info) { *info = *r.out.info; @@ -220,12 +220,12 @@ NTSTATUS rpccli_dfs_Enum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint3 if (total && r.out.total) { *total = *r.out.total; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -233,32 +233,32 @@ NTSTATUS rpccli_dfs_Rename(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WER { struct dfs_Rename r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Rename, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_RENAME, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_Rename, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -266,32 +266,32 @@ NTSTATUS rpccli_dfs_Move(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERRO { struct dfs_Move r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Move, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MOVE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_Move, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -299,32 +299,32 @@ NTSTATUS rpccli_dfs_ManagerGetConfigInfo(struct rpc_pipe_client *cli, TALLOC_CTX { struct dfs_ManagerGetConfigInfo r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_ManagerGetConfigInfo, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MANAGERGETCONFIGINFO, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_ManagerGetConfigInfo, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -332,32 +332,32 @@ NTSTATUS rpccli_dfs_ManagerSendSiteInfo(struct rpc_pipe_client *cli, TALLOC_CTX { struct dfs_ManagerSendSiteInfo r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_ManagerSendSiteInfo, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MANAGERSENDSITEINFO, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_ManagerSendSiteInfo, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -365,7 +365,7 @@ NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, { struct dfs_AddFtRoot r; NTSTATUS status; - + /* In parameters */ r.in.servername = servername; r.in.dns_servername = dns_servername; @@ -376,33 +376,33 @@ NTSTATUS rpccli_dfs_AddFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, r.in.unknown1 = unknown1; r.in.flags = flags; r.in.unknown2 = unknown2; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_AddFtRoot, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADDFTROOT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_AddFtRoot, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (unknown2 && r.out.unknown2) { *unknown2 = *r.out.unknown2; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -410,7 +410,7 @@ NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct { struct dfs_RemoveFtRoot r; NTSTATUS status; - + /* In parameters */ r.in.servername = servername; r.in.dns_servername = dns_servername; @@ -418,33 +418,33 @@ NTSTATUS rpccli_dfs_RemoveFtRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct r.in.rootshare = rootshare; r.in.flags = flags; r.in.unknown = unknown; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_RemoveFtRoot, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVEFTROOT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_RemoveFtRoot, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (unknown && r.out.unknown) { *unknown = *r.out.unknown; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -452,36 +452,36 @@ NTSTATUS rpccli_dfs_AddStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, { struct dfs_AddStdRoot r; NTSTATUS status; - + /* In parameters */ r.in.servername = servername; r.in.rootshare = rootshare; r.in.comment = comment; r.in.flags = flags; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_AddStdRoot, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADDSTDROOT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_AddStdRoot, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -489,35 +489,35 @@ NTSTATUS rpccli_dfs_RemoveStdRoot(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c { struct dfs_RemoveStdRoot r; NTSTATUS status; - + /* In parameters */ r.in.servername = servername; r.in.rootshare = rootshare; r.in.flags = flags; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_RemoveStdRoot, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVESTDROOT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_RemoveStdRoot, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -525,34 +525,34 @@ NTSTATUS rpccli_dfs_ManagerInitialize(struct rpc_pipe_client *cli, TALLOC_CTX *m { struct dfs_ManagerInitialize r; NTSTATUS status; - + /* In parameters */ r.in.servername = servername; r.in.flags = flags; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_ManagerInitialize, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_MANAGERINITIALIZE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_ManagerInitialize, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -560,36 +560,36 @@ NTSTATUS rpccli_dfs_AddStdRootForced(struct rpc_pipe_client *cli, TALLOC_CTX *me { struct dfs_AddStdRootForced r; NTSTATUS status; - + /* In parameters */ r.in.servername = servername; r.in.rootshare = rootshare; r.in.comment = comment; r.in.store = store; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_AddStdRootForced, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADDSTDROOTFORCED, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_AddStdRootForced, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -597,32 +597,32 @@ NTSTATUS rpccli_dfs_GetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct { struct dfs_GetDcAddress r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_GetDcAddress, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_GETDCADDRESS, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_GetDcAddress, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -630,32 +630,32 @@ NTSTATUS rpccli_dfs_SetDcAddress(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct { struct dfs_SetDcAddress r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_SetDcAddress, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_SETDCADDRESS, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_SetDcAddress, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -663,34 +663,34 @@ NTSTATUS rpccli_dfs_FlushFtTable(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct { struct dfs_FlushFtTable r; NTSTATUS status; - + /* In parameters */ r.in.servername = servername; r.in.rootshare = rootshare; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_FlushFtTable, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_FLUSHFTTABLE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_FlushFtTable, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -698,32 +698,32 @@ NTSTATUS rpccli_dfs_Add2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WERRO { struct dfs_Add2 r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Add2, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ADD2, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_Add2, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -731,32 +731,32 @@ NTSTATUS rpccli_dfs_Remove2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, WE { struct dfs_Remove2 r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_Remove2, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_REMOVE2, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_Remove2, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -764,30 +764,30 @@ NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con { struct dfs_EnumEx r; NTSTATUS status; - + /* In parameters */ r.in.dfs_name = dfs_name; r.in.level = level; r.in.bufsize = bufsize; r.in.info = info; r.in.total = total; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_EnumEx, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_ENUMEX, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_EnumEx, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (info && r.out.info) { *info = *r.out.info; @@ -795,12 +795,12 @@ NTSTATUS rpccli_dfs_EnumEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, con if (total && r.out.total) { *total = *r.out.total; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -808,32 +808,32 @@ NTSTATUS rpccli_dfs_SetInfo2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, W { struct dfs_SetInfo2 r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(dfs_SetInfo2, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETDFS, &ndr_table_netdfs, NDR_DFS_SETINFO2, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(dfs_SetInfo2, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } diff --git a/source3/librpc/gen_ndr/cli_echo.c b/source3/librpc/gen_ndr/cli_echo.c index 4da2d7a209..2d6187a937 100644 --- a/source3/librpc/gen_ndr/cli_echo.c +++ b/source3/librpc/gen_ndr/cli_echo.c @@ -10,29 +10,29 @@ NTSTATUS rpccli_echo_AddOne(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, ui { struct echo_AddOne r; NTSTATUS status; - + /* In parameters */ r.in.in_data = in_data; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(echo_AddOne, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_ADDONE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(echo_AddOne, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *out_data = *r.out.out_data; - + /* Return result */ return NT_STATUS_OK; } @@ -41,30 +41,30 @@ NTSTATUS rpccli_echo_EchoData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, { struct echo_EchoData r; NTSTATUS status; - + /* In parameters */ r.in.len = len; r.in.in_data = in_data; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(echo_EchoData, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_ECHODATA, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(echo_EchoData, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ memcpy(out_data, r.out.out_data, r.in.len); - + /* Return result */ return NT_STATUS_OK; } @@ -73,29 +73,29 @@ NTSTATUS rpccli_echo_SinkData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, { struct echo_SinkData r; NTSTATUS status; - + /* In parameters */ r.in.len = len; r.in.data = data; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(echo_SinkData, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_SINKDATA, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(echo_SinkData, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return NT_STATUS_OK; } @@ -104,29 +104,29 @@ NTSTATUS rpccli_echo_SourceData(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx { struct echo_SourceData r; NTSTATUS status; - + /* In parameters */ r.in.len = len; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(echo_SourceData, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_SOURCEDATA, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(echo_SourceData, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ memcpy(data, r.out.data, r.in.len); - + /* Return result */ return NT_STATUS_OK; } @@ -135,29 +135,29 @@ NTSTATUS rpccli_echo_TestCall(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, { struct echo_TestCall r; NTSTATUS status; - + /* In parameters */ r.in.s1 = s1; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(echo_TestCall, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_TESTCALL, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(echo_TestCall, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *s2 = *r.out.s2; - + /* Return result */ return NT_STATUS_OK; } @@ -166,29 +166,29 @@ NTSTATUS rpccli_echo_TestCall2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, { struct echo_TestCall2 r; NTSTATUS status; - + /* In parameters */ r.in.level = level; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(echo_TestCall2, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_TESTCALL2, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(echo_TestCall2, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *info = *r.out.info; - + /* Return result */ return r.out.result; } @@ -197,28 +197,28 @@ NTSTATUS rpccli_echo_TestSleep(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, { struct echo_TestSleep r; NTSTATUS status; - + /* In parameters */ r.in.seconds = seconds; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(echo_TestSleep, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_TESTSLEEP, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(echo_TestSleep, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return NT_STATUS_OK; } @@ -227,33 +227,33 @@ NTSTATUS rpccli_echo_TestEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, { struct echo_TestEnum r; NTSTATUS status; - + /* In parameters */ r.in.foo1 = foo1; r.in.foo2 = foo2; r.in.foo3 = foo3; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(echo_TestEnum, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_TESTENUM, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(echo_TestEnum, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *foo1 = *r.out.foo1; *foo2 = *r.out.foo2; *foo3 = *r.out.foo3; - + /* Return result */ return NT_STATUS_OK; } @@ -262,29 +262,29 @@ NTSTATUS rpccli_echo_TestSurrounding(struct rpc_pipe_client *cli, TALLOC_CTX *me { struct echo_TestSurrounding r; NTSTATUS status; - + /* In parameters */ r.in.data = data; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(echo_TestSurrounding, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_TESTSURROUNDING, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(echo_TestSurrounding, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *data = *r.out.data; - + /* Return result */ return NT_STATUS_OK; } @@ -293,28 +293,28 @@ NTSTATUS rpccli_echo_TestDoublePointer(struct rpc_pipe_client *cli, TALLOC_CTX * { struct echo_TestDoublePointer r; NTSTATUS status; - + /* In parameters */ r.in.data = data; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(echo_TestDoublePointer, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_RPCECHO, &ndr_table_rpcecho, NDR_ECHO_TESTDOUBLEPOINTER, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(echo_TestDoublePointer, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return NT_STATUS_OK; } diff --git a/source3/librpc/gen_ndr/cli_epmapper.c b/source3/librpc/gen_ndr/cli_epmapper.c index e00d9aa2a1..1ac594ddd7 100644 --- a/source3/librpc/gen_ndr/cli_epmapper.c +++ b/source3/librpc/gen_ndr/cli_epmapper.c @@ -10,30 +10,30 @@ NTSTATUS rpccli_epm_Insert(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uin { struct epm_Insert r; NTSTATUS status; - + /* In parameters */ r.in.num_ents = num_ents; r.in.entries = entries; r.in.replace = replace; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(epm_Insert, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EPMAPPER, &ndr_table_epmapper, NDR_EPM_INSERT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(epm_Insert, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return NT_STATUS_OK; } @@ -42,29 +42,29 @@ NTSTATUS rpccli_epm_Delete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uin { struct epm_Delete r; NTSTATUS status; - + /* In parameters */ r.in.num_ents = num_ents; r.in.entries = entries; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(epm_Delete, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EPMAPPER, &ndr_table_epmapper, NDR_EPM_DELETE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(epm_Delete, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return NT_STATUS_OK; } @@ -73,7 +73,7 @@ NTSTATUS rpccli_epm_Lookup(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uin { struct epm_Lookup r; NTSTATUS status; - + /* In parameters */ r.in.inquiry_type = inquiry_type; r.in.object = object; @@ -81,28 +81,28 @@ NTSTATUS rpccli_epm_Lookup(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uin r.in.vers_option = vers_option; r.in.entry_handle = entry_handle; r.in.max_ents = max_ents; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(epm_Lookup, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EPMAPPER, &ndr_table_epmapper, NDR_EPM_LOOKUP, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(epm_Lookup, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *entry_handle = *r.out.entry_handle; *num_ents = *r.out.num_ents; memcpy(entries, r.out.entries, r.in.max_ents); - + /* Return result */ return NT_STATUS_OK; } @@ -111,34 +111,34 @@ NTSTATUS rpccli_epm_Map(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct { struct epm_Map r; NTSTATUS status; - + /* In parameters */ r.in.object = object; r.in.map_tower = map_tower; r.in.entry_handle = entry_handle; r.in.max_towers = max_towers; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(epm_Map, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EPMAPPER, &ndr_table_epmapper, NDR_EPM_MAP, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(epm_Map, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *entry_handle = *r.out.entry_handle; *num_towers = *r.out.num_towers; memcpy(towers, r.out.towers, r.in.max_towers); - + /* Return result */ return NT_STATUS_OK; } @@ -147,29 +147,29 @@ NTSTATUS rpccli_epm_LookupHandleFree(struct rpc_pipe_client *cli, TALLOC_CTX *me { struct epm_LookupHandleFree r; NTSTATUS status; - + /* In parameters */ r.in.entry_handle = entry_handle; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(epm_LookupHandleFree, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EPMAPPER, &ndr_table_epmapper, NDR_EPM_LOOKUPHANDLEFREE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(epm_LookupHandleFree, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *entry_handle = *r.out.entry_handle; - + /* Return result */ return NT_STATUS_OK; } @@ -178,28 +178,28 @@ NTSTATUS rpccli_epm_InqObject(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, { struct epm_InqObject r; NTSTATUS status; - + /* In parameters */ r.in.epm_object = epm_object; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(epm_InqObject, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EPMAPPER, &ndr_table_epmapper, NDR_EPM_INQOBJECT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(epm_InqObject, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return NT_STATUS_OK; } @@ -208,30 +208,30 @@ NTSTATUS rpccli_epm_MgmtDelete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, { struct epm_MgmtDelete r; NTSTATUS status; - + /* In parameters */ r.in.object_speced = object_speced; r.in.object = object; r.in.tower = tower; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(epm_MgmtDelete, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EPMAPPER, &ndr_table_epmapper, NDR_EPM_MGMTDELETE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(epm_MgmtDelete, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return NT_STATUS_OK; } @@ -240,27 +240,27 @@ NTSTATUS rpccli_epm_MapAuth(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) { struct epm_MapAuth r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(epm_MapAuth, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EPMAPPER, &ndr_table_epmapper, NDR_EPM_MAPAUTH, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(epm_MapAuth, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return NT_STATUS_OK; } diff --git a/source3/librpc/gen_ndr/cli_eventlog.c b/source3/librpc/gen_ndr/cli_eventlog.c index 3fd61a7d49..fbcd098538 100644 --- a/source3/librpc/gen_ndr/cli_eventlog.c +++ b/source3/librpc/gen_ndr/cli_eventlog.c @@ -10,29 +10,29 @@ NTSTATUS rpccli_eventlog_ClearEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX { struct eventlog_ClearEventLogW r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.unknown = unknown; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(eventlog_ClearEventLogW, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_CLEAREVENTLOGW, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(eventlog_ClearEventLogW, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -41,27 +41,27 @@ NTSTATUS rpccli_eventlog_BackupEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX { struct eventlog_BackupEventLogW r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(eventlog_BackupEventLogW, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_BACKUPEVENTLOGW, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(eventlog_BackupEventLogW, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -70,29 +70,29 @@ NTSTATUS rpccli_eventlog_CloseEventLog(struct rpc_pipe_client *cli, TALLOC_CTX * { struct eventlog_CloseEventLog r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(eventlog_CloseEventLog, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_CLOSEEVENTLOG, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(eventlog_CloseEventLog, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *handle = *r.out.handle; - + /* Return result */ return r.out.result; } @@ -101,27 +101,27 @@ NTSTATUS rpccli_eventlog_DeregisterEventSource(struct rpc_pipe_client *cli, TALL { struct eventlog_DeregisterEventSource r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(eventlog_DeregisterEventSource, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_DEREGISTEREVENTSOURCE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(eventlog_DeregisterEventSource, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -130,29 +130,29 @@ NTSTATUS rpccli_eventlog_GetNumRecords(struct rpc_pipe_client *cli, TALLOC_CTX * { struct eventlog_GetNumRecords r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(eventlog_GetNumRecords, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_GETNUMRECORDS, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(eventlog_GetNumRecords, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *number = *r.out.number; - + /* Return result */ return r.out.result; } @@ -161,27 +161,27 @@ NTSTATUS rpccli_eventlog_GetOldestRecord(struct rpc_pipe_client *cli, TALLOC_CTX { struct eventlog_GetOldestRecord r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(eventlog_GetOldestRecord, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_GETOLDESTRECORD, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(eventlog_GetOldestRecord, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -190,27 +190,27 @@ NTSTATUS rpccli_eventlog_ChangeNotify(struct rpc_pipe_client *cli, TALLOC_CTX *m { struct eventlog_ChangeNotify r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(eventlog_ChangeNotify, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_CHANGENOTIFY, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(eventlog_ChangeNotify, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -219,33 +219,33 @@ NTSTATUS rpccli_eventlog_OpenEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX * { struct eventlog_OpenEventLogW r; NTSTATUS status; - + /* In parameters */ r.in.unknown0 = unknown0; r.in.logname = logname; r.in.servername = servername; r.in.unknown2 = unknown2; r.in.unknown3 = unknown3; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(eventlog_OpenEventLogW, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_OPENEVENTLOGW, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(eventlog_OpenEventLogW, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *handle = *r.out.handle; - + /* Return result */ return r.out.result; } @@ -254,27 +254,27 @@ NTSTATUS rpccli_eventlog_RegisterEventSourceW(struct rpc_pipe_client *cli, TALLO { struct eventlog_RegisterEventSourceW r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(eventlog_RegisterEventSourceW, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_REGISTEREVENTSOURCEW, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(eventlog_RegisterEventSourceW, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -283,27 +283,27 @@ NTSTATUS rpccli_eventlog_OpenBackupEventLogW(struct rpc_pipe_client *cli, TALLOC { struct eventlog_OpenBackupEventLogW r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(eventlog_OpenBackupEventLogW, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_OPENBACKUPEVENTLOGW, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(eventlog_OpenBackupEventLogW, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -312,34 +312,34 @@ NTSTATUS rpccli_eventlog_ReadEventLogW(struct rpc_pipe_client *cli, TALLOC_CTX * { struct eventlog_ReadEventLogW r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.flags = flags; r.in.offset = offset; r.in.number_of_bytes = number_of_bytes; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(eventlog_ReadEventLogW, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_READEVENTLOGW, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(eventlog_ReadEventLogW, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ memcpy(data, r.out.data, r.in.number_of_bytes); *sent_size = *r.out.sent_size; *real_size = *r.out.real_size; - + /* Return result */ return r.out.result; } @@ -348,27 +348,27 @@ NTSTATUS rpccli_eventlog_ReportEventW(struct rpc_pipe_client *cli, TALLOC_CTX *m { struct eventlog_ReportEventW r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(eventlog_ReportEventW, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_REPORTEVENTW, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(eventlog_ReportEventW, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -377,27 +377,27 @@ NTSTATUS rpccli_eventlog_ClearEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX { struct eventlog_ClearEventLogA r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(eventlog_ClearEventLogA, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_CLEAREVENTLOGA, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(eventlog_ClearEventLogA, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -406,27 +406,27 @@ NTSTATUS rpccli_eventlog_BackupEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX { struct eventlog_BackupEventLogA r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(eventlog_BackupEventLogA, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_BACKUPEVENTLOGA, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(eventlog_BackupEventLogA, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -435,27 +435,27 @@ NTSTATUS rpccli_eventlog_OpenEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX * { struct eventlog_OpenEventLogA r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(eventlog_OpenEventLogA, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_OPENEVENTLOGA, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(eventlog_OpenEventLogA, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -464,27 +464,27 @@ NTSTATUS rpccli_eventlog_RegisterEventSourceA(struct rpc_pipe_client *cli, TALLO { struct eventlog_RegisterEventSourceA r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(eventlog_RegisterEventSourceA, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_REGISTEREVENTSOURCEA, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(eventlog_RegisterEventSourceA, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -493,27 +493,27 @@ NTSTATUS rpccli_eventlog_OpenBackupEventLogA(struct rpc_pipe_client *cli, TALLOC { struct eventlog_OpenBackupEventLogA r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(eventlog_OpenBackupEventLogA, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_OPENBACKUPEVENTLOGA, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(eventlog_OpenBackupEventLogA, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -522,27 +522,27 @@ NTSTATUS rpccli_eventlog_ReadEventLogA(struct rpc_pipe_client *cli, TALLOC_CTX * { struct eventlog_ReadEventLogA r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(eventlog_ReadEventLogA, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_READEVENTLOGA, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(eventlog_ReadEventLogA, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -551,27 +551,27 @@ NTSTATUS rpccli_eventlog_ReportEventA(struct rpc_pipe_client *cli, TALLOC_CTX *m { struct eventlog_ReportEventA r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(eventlog_ReportEventA, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_REPORTEVENTA, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(eventlog_ReportEventA, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -580,27 +580,27 @@ NTSTATUS rpccli_eventlog_RegisterClusterSvc(struct rpc_pipe_client *cli, TALLOC_ { struct eventlog_RegisterClusterSvc r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(eventlog_RegisterClusterSvc, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_REGISTERCLUSTERSVC, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(eventlog_RegisterClusterSvc, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -609,27 +609,27 @@ NTSTATUS rpccli_eventlog_DeregisterClusterSvc(struct rpc_pipe_client *cli, TALLO { struct eventlog_DeregisterClusterSvc r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(eventlog_DeregisterClusterSvc, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_DEREGISTERCLUSTERSVC, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(eventlog_DeregisterClusterSvc, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -638,27 +638,27 @@ NTSTATUS rpccli_eventlog_WriteClusterEvents(struct rpc_pipe_client *cli, TALLOC_ { struct eventlog_WriteClusterEvents r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(eventlog_WriteClusterEvents, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_WRITECLUSTEREVENTS, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(eventlog_WriteClusterEvents, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -667,27 +667,27 @@ NTSTATUS rpccli_eventlog_GetLogIntormation(struct rpc_pipe_client *cli, TALLOC_C { struct eventlog_GetLogIntormation r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(eventlog_GetLogIntormation, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_GETLOGINTORMATION, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(eventlog_GetLogIntormation, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -696,28 +696,28 @@ NTSTATUS rpccli_eventlog_FlushEventLog(struct rpc_pipe_client *cli, TALLOC_CTX * { struct eventlog_FlushEventLog r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(eventlog_FlushEventLog, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_EVENTLOG, &ndr_table_eventlog, NDR_EVENTLOG_FLUSHEVENTLOG, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(eventlog_FlushEventLog, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } diff --git a/source3/librpc/gen_ndr/cli_initshutdown.c b/source3/librpc/gen_ndr/cli_initshutdown.c index 57c5e60226..a549c94ce5 100644 --- a/source3/librpc/gen_ndr/cli_initshutdown.c +++ b/source3/librpc/gen_ndr/cli_initshutdown.c @@ -10,37 +10,37 @@ NTSTATUS rpccli_initshutdown_Init(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c { struct initshutdown_Init r; NTSTATUS status; - + /* In parameters */ r.in.hostname = hostname; r.in.message = message; r.in.timeout = timeout; r.in.force_apps = force_apps; r.in.reboot = reboot; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(initshutdown_Init, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_INITSHUTDOWN, &ndr_table_initshutdown, NDR_INITSHUTDOWN_INIT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(initshutdown_Init, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -48,33 +48,33 @@ NTSTATUS rpccli_initshutdown_Abort(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ { struct initshutdown_Abort r; NTSTATUS status; - + /* In parameters */ r.in.server = server; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(initshutdown_Abort, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_INITSHUTDOWN, &ndr_table_initshutdown, NDR_INITSHUTDOWN_ABORT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(initshutdown_Abort, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -82,7 +82,7 @@ NTSTATUS rpccli_initshutdown_InitEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem { struct initshutdown_InitEx r; NTSTATUS status; - + /* In parameters */ r.in.hostname = hostname; r.in.message = message; @@ -90,30 +90,30 @@ NTSTATUS rpccli_initshutdown_InitEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem r.in.force_apps = force_apps; r.in.reboot = reboot; r.in.reason = reason; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(initshutdown_InitEx, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_INITSHUTDOWN, &ndr_table_initshutdown, NDR_INITSHUTDOWN_INITEX, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(initshutdown_InitEx, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } diff --git a/source3/librpc/gen_ndr/cli_lsa.c b/source3/librpc/gen_ndr/cli_lsa.c index 50186360f6..49bb44880a 100644 --- a/source3/librpc/gen_ndr/cli_lsa.c +++ b/source3/librpc/gen_ndr/cli_lsa.c @@ -10,29 +10,29 @@ NTSTATUS rpccli_lsa_Close(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, stru { struct lsa_Close r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_Close, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CLOSE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_Close, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *handle = *r.out.handle; - + /* Return result */ return r.out.result; } @@ -41,28 +41,28 @@ NTSTATUS rpccli_lsa_Delete(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, str { struct lsa_Delete r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_Delete, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_DELETE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_Delete, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -71,32 +71,32 @@ NTSTATUS rpccli_lsa_EnumPrivs(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, { struct lsa_EnumPrivs r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.resume_handle = resume_handle; r.in.max_count = max_count; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_EnumPrivs, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ENUMPRIVS, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_EnumPrivs, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *resume_handle = *r.out.resume_handle; *privs = *r.out.privs; - + /* Return result */ return r.out.result; } @@ -105,32 +105,32 @@ NTSTATUS rpccli_lsa_QuerySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c { struct lsa_QuerySecurity r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.sec_info = sec_info; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_QuerySecurity, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_QUERYSECURITY, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_QuerySecurity, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (sdbuf && r.out.sdbuf) { *sdbuf = *r.out.sdbuf; } - + /* Return result */ return r.out.result; } @@ -139,27 +139,27 @@ NTSTATUS rpccli_lsa_SetSecObj(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) { struct lsa_SetSecObj r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_SetSecObj, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETSECOBJ, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_SetSecObj, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -168,27 +168,27 @@ NTSTATUS rpccli_lsa_ChangePassword(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ { struct lsa_ChangePassword r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_ChangePassword, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CHANGEPASSWORD, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_ChangePassword, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -197,31 +197,31 @@ NTSTATUS rpccli_lsa_OpenPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, { struct lsa_OpenPolicy r; NTSTATUS status; - + /* In parameters */ r.in.system_name = system_name; r.in.attr = attr; r.in.access_mask = access_mask; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_OpenPolicy, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_OPENPOLICY, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_OpenPolicy, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *handle = *r.out.handle; - + /* Return result */ return r.out.result; } @@ -230,32 +230,32 @@ NTSTATUS rpccli_lsa_QueryInfoPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem { struct lsa_QueryInfoPolicy r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.level = level; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_QueryInfoPolicy, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_QUERYINFOPOLICY, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_QueryInfoPolicy, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (info && r.out.info) { *info = *r.out.info; } - + /* Return result */ return r.out.result; } @@ -264,27 +264,27 @@ NTSTATUS rpccli_lsa_SetInfoPolicy(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c { struct lsa_SetInfoPolicy r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_SetInfoPolicy, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETINFOPOLICY, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_SetInfoPolicy, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -293,27 +293,27 @@ NTSTATUS rpccli_lsa_ClearAuditLog(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c { struct lsa_ClearAuditLog r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_ClearAuditLog, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CLEARAUDITLOG, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_ClearAuditLog, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -322,31 +322,31 @@ NTSTATUS rpccli_lsa_CreateAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c { struct lsa_CreateAccount r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.sid = sid; r.in.access_mask = access_mask; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_CreateAccount, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREATEACCOUNT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_CreateAccount, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *acct_handle = *r.out.acct_handle; - + /* Return result */ return r.out.result; } @@ -355,32 +355,32 @@ NTSTATUS rpccli_lsa_EnumAccounts(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct { struct lsa_EnumAccounts r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.resume_handle = resume_handle; r.in.num_entries = num_entries; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_EnumAccounts, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ENUMACCOUNTS, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_EnumAccounts, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *resume_handle = *r.out.resume_handle; *sids = *r.out.sids; - + /* Return result */ return r.out.result; } @@ -389,31 +389,31 @@ NTSTATUS rpccli_lsa_CreateTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX { struct lsa_CreateTrustedDomain r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.info = info; r.in.access_mask = access_mask; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomain, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREATETRUSTEDDOMAIN, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomain, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *trustdom_handle = *r.out.trustdom_handle; - + /* Return result */ return r.out.result; } @@ -422,32 +422,32 @@ NTSTATUS rpccli_lsa_EnumTrustDom(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct { struct lsa_EnumTrustDom r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.resume_handle = resume_handle; r.in.max_size = max_size; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_EnumTrustDom, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ENUMTRUSTDOM, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_EnumTrustDom, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *resume_handle = *r.out.resume_handle; *domains = *r.out.domains; - + /* Return result */ return r.out.result; } @@ -456,7 +456,7 @@ NTSTATUS rpccli_lsa_LookupNames(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx { struct lsa_LookupNames r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.num_names = num_names; @@ -464,30 +464,30 @@ NTSTATUS rpccli_lsa_LookupNames(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx r.in.sids = sids; r.in.level = level; r.in.count = count; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_LookupNames, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPNAMES, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_LookupNames, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (domains && r.out.domains) { *domains = *r.out.domains; } *sids = *r.out.sids; *count = *r.out.count; - + /* Return result */ return r.out.result; } @@ -496,37 +496,37 @@ NTSTATUS rpccli_lsa_LookupSids(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, { struct lsa_LookupSids r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.sids = sids; r.in.names = names; r.in.level = level; r.in.count = count; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_LookupSids, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPSIDS, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_LookupSids, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (domains && r.out.domains) { *domains = *r.out.domains; } *names = *r.out.names; *count = *r.out.count; - + /* Return result */ return r.out.result; } @@ -535,31 +535,31 @@ NTSTATUS rpccli_lsa_CreateSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct { struct lsa_CreateSecret r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.name = name; r.in.access_mask = access_mask; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_CreateSecret, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREATESECRET, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_CreateSecret, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *sec_handle = *r.out.sec_handle; - + /* Return result */ return r.out.result; } @@ -568,31 +568,31 @@ NTSTATUS rpccli_lsa_OpenAccount(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx { struct lsa_OpenAccount r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.sid = sid; r.in.access_mask = access_mask; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_OpenAccount, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_OPENACCOUNT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_OpenAccount, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *acct_handle = *r.out.acct_handle; - + /* Return result */ return r.out.result; } @@ -601,31 +601,31 @@ NTSTATUS rpccli_lsa_EnumPrivsAccount(struct rpc_pipe_client *cli, TALLOC_CTX *me { struct lsa_EnumPrivsAccount r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_EnumPrivsAccount, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ENUMPRIVSACCOUNT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_EnumPrivsAccount, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (privs && r.out.privs) { *privs = *r.out.privs; } - + /* Return result */ return r.out.result; } @@ -634,29 +634,29 @@ NTSTATUS rpccli_lsa_AddPrivilegesToAccount(struct rpc_pipe_client *cli, TALLOC_C { struct lsa_AddPrivilegesToAccount r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.privs = privs; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_AddPrivilegesToAccount, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ADDPRIVILEGESTOACCOUNT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_AddPrivilegesToAccount, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -665,30 +665,30 @@ NTSTATUS rpccli_lsa_RemovePrivilegesFromAccount(struct rpc_pipe_client *cli, TAL { struct lsa_RemovePrivilegesFromAccount r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.remove_all = remove_all; r.in.privs = privs; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_RemovePrivilegesFromAccount, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_REMOVEPRIVILEGESFROMACCOUNT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_RemovePrivilegesFromAccount, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -697,27 +697,27 @@ NTSTATUS rpccli_lsa_GetQuotasForAccount(struct rpc_pipe_client *cli, TALLOC_CTX { struct lsa_GetQuotasForAccount r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_GetQuotasForAccount, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_GETQUOTASFORACCOUNT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_GetQuotasForAccount, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -726,27 +726,27 @@ NTSTATUS rpccli_lsa_SetQuotasForAccount(struct rpc_pipe_client *cli, TALLOC_CTX { struct lsa_SetQuotasForAccount r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_SetQuotasForAccount, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETQUOTASFORACCOUNT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_SetQuotasForAccount, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -755,27 +755,27 @@ NTSTATUS rpccli_lsa_GetSystemAccessAccount(struct rpc_pipe_client *cli, TALLOC_C { struct lsa_GetSystemAccessAccount r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_GetSystemAccessAccount, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_GETSYSTEMACCESSACCOUNT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_GetSystemAccessAccount, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -784,27 +784,27 @@ NTSTATUS rpccli_lsa_SetSystemAccessAccount(struct rpc_pipe_client *cli, TALLOC_C { struct lsa_SetSystemAccessAccount r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_SetSystemAccessAccount, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETSYSTEMACCESSACCOUNT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_SetSystemAccessAccount, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -813,31 +813,31 @@ NTSTATUS rpccli_lsa_OpenTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX *m { struct lsa_OpenTrustedDomain r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.sid = sid; r.in.access_mask = access_mask; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_OpenTrustedDomain, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_OPENTRUSTEDDOMAIN, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_OpenTrustedDomain, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *trustdom_handle = *r.out.trustdom_handle; - + /* Return result */ return r.out.result; } @@ -846,32 +846,32 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfo(struct rpc_pipe_client *cli, TALLOC_C { struct lsa_QueryTrustedDomainInfo r; NTSTATUS status; - + /* In parameters */ r.in.trustdom_handle = trustdom_handle; r.in.level = level; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfo, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_QUERYTRUSTEDDOMAININFO, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfo, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (info && r.out.info) { *info = *r.out.info; } - + /* Return result */ return r.out.result; } @@ -880,27 +880,27 @@ NTSTATUS rpccli_lsa_SetInformationTrustedDomain(struct rpc_pipe_client *cli, TAL { struct lsa_SetInformationTrustedDomain r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_SetInformationTrustedDomain, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETINFORMATIONTRUSTEDDOMAIN, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_SetInformationTrustedDomain, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -909,31 +909,31 @@ NTSTATUS rpccli_lsa_OpenSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, { struct lsa_OpenSecret r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.name = name; r.in.access_mask = access_mask; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_OpenSecret, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_OPENSECRET, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_OpenSecret, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *sec_handle = *r.out.sec_handle; - + /* Return result */ return r.out.result; } @@ -942,30 +942,30 @@ NTSTATUS rpccli_lsa_SetSecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, { struct lsa_SetSecret r; NTSTATUS status; - + /* In parameters */ r.in.sec_handle = sec_handle; r.in.new_val = new_val; r.in.old_val = old_val; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_SetSecret, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETSECRET, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_SetSecret, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -974,30 +974,30 @@ NTSTATUS rpccli_lsa_QuerySecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx { struct lsa_QuerySecret r; NTSTATUS status; - + /* In parameters */ r.in.sec_handle = sec_handle; r.in.new_val = new_val; r.in.new_mtime = new_mtime; r.in.old_val = old_val; r.in.old_mtime = old_mtime; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_QuerySecret, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_QUERYSECRET, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_QuerySecret, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (new_val && r.out.new_val) { *new_val = *r.out.new_val; @@ -1011,7 +1011,7 @@ NTSTATUS rpccli_lsa_QuerySecret(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx if (old_mtime && r.out.old_mtime) { *old_mtime = *r.out.old_mtime; } - + /* Return result */ return r.out.result; } @@ -1020,30 +1020,30 @@ NTSTATUS rpccli_lsa_LookupPrivValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem { struct lsa_LookupPrivValue r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.name = name; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_LookupPrivValue, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPPRIVVALUE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_LookupPrivValue, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *luid = *r.out.luid; - + /* Return result */ return r.out.result; } @@ -1052,32 +1052,32 @@ NTSTATUS rpccli_lsa_LookupPrivName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ { struct lsa_LookupPrivName r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.luid = luid; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_LookupPrivName, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPPRIVNAME, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_LookupPrivName, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (name && r.out.name) { *name = *r.out.name; } - + /* Return result */ return r.out.result; } @@ -1086,35 +1086,35 @@ NTSTATUS rpccli_lsa_LookupPrivDisplayName(struct rpc_pipe_client *cli, TALLOC_CT { struct lsa_LookupPrivDisplayName r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.name = name; r.in.language_id = language_id; r.in.unknown = unknown; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_LookupPrivDisplayName, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPPRIVDISPLAYNAME, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_LookupPrivDisplayName, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (disp_name && r.out.disp_name) { *disp_name = *r.out.disp_name; } *language_id = *r.out.language_id; - + /* Return result */ return r.out.result; } @@ -1123,27 +1123,27 @@ NTSTATUS rpccli_lsa_DeleteObject(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct { struct lsa_DeleteObject r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_DeleteObject, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_DELETEOBJECT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_DeleteObject, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -1152,30 +1152,30 @@ NTSTATUS rpccli_lsa_EnumAccountsWithUserRight(struct rpc_pipe_client *cli, TALLO { struct lsa_EnumAccountsWithUserRight r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.name = name; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_EnumAccountsWithUserRight, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ENUMACCOUNTSWITHUSERRIGHT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_EnumAccountsWithUserRight, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *sids = *r.out.sids; - + /* Return result */ return r.out.result; } @@ -1184,30 +1184,30 @@ NTSTATUS rpccli_lsa_EnumAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX *m { struct lsa_EnumAccountRights r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.sid = sid; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_EnumAccountRights, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ENUMACCOUNTRIGHTS, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_EnumAccountRights, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *rights = *r.out.rights; - + /* Return result */ return r.out.result; } @@ -1216,30 +1216,30 @@ NTSTATUS rpccli_lsa_AddAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX *me { struct lsa_AddAccountRights r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.sid = sid; r.in.rights = rights; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_AddAccountRights, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ADDACCOUNTRIGHTS, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_AddAccountRights, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -1248,31 +1248,31 @@ NTSTATUS rpccli_lsa_RemoveAccountRights(struct rpc_pipe_client *cli, TALLOC_CTX { struct lsa_RemoveAccountRights r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.sid = sid; r.in.unknown = unknown; r.in.rights = rights; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_RemoveAccountRights, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_REMOVEACCOUNTRIGHTS, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_RemoveAccountRights, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -1281,33 +1281,33 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfoBySid(struct rpc_pipe_client *cli, TAL { struct lsa_QueryTrustedDomainInfoBySid r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.dom_sid = dom_sid; r.in.level = level; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfoBySid, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_QUERYTRUSTEDDOMAININFOBYSID, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfoBySid, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (info && r.out.info) { *info = *r.out.info; } - + /* Return result */ return r.out.result; } @@ -1316,27 +1316,27 @@ NTSTATUS rpccli_lsa_SetTrustedDomainInfo(struct rpc_pipe_client *cli, TALLOC_CTX { struct lsa_SetTrustedDomainInfo r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_SetTrustedDomainInfo, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETTRUSTEDDOMAININFO, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_SetTrustedDomainInfo, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -1345,29 +1345,29 @@ NTSTATUS rpccli_lsa_DeleteTrustedDomain(struct rpc_pipe_client *cli, TALLOC_CTX { struct lsa_DeleteTrustedDomain r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.dom_sid = dom_sid; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_DeleteTrustedDomain, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_DELETETRUSTEDDOMAIN, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_DeleteTrustedDomain, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -1376,27 +1376,27 @@ NTSTATUS rpccli_lsa_StorePrivateData(struct rpc_pipe_client *cli, TALLOC_CTX *me { struct lsa_StorePrivateData r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_StorePrivateData, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_STOREPRIVATEDATA, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_StorePrivateData, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -1405,27 +1405,27 @@ NTSTATUS rpccli_lsa_RetrievePrivateData(struct rpc_pipe_client *cli, TALLOC_CTX { struct lsa_RetrievePrivateData r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_RetrievePrivateData, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_RETRIEVEPRIVATEDATA, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_RetrievePrivateData, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -1434,31 +1434,31 @@ NTSTATUS rpccli_lsa_OpenPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx { struct lsa_OpenPolicy2 r; NTSTATUS status; - + /* In parameters */ r.in.system_name = system_name; r.in.attr = attr; r.in.access_mask = access_mask; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_OpenPolicy2, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_OPENPOLICY2, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_OpenPolicy2, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *handle = *r.out.handle; - + /* Return result */ return r.out.result; } @@ -1467,28 +1467,28 @@ NTSTATUS rpccli_lsa_GetUserName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx { struct lsa_GetUserName r; NTSTATUS status; - + /* In parameters */ r.in.system_name = system_name; r.in.account_name = account_name; r.in.authority_name = authority_name; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_GetUserName, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_GETUSERNAME, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_GetUserName, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (account_name && r.out.account_name) { *account_name = *r.out.account_name; @@ -1496,7 +1496,7 @@ NTSTATUS rpccli_lsa_GetUserName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx if (authority_name && r.out.authority_name) { *authority_name = *r.out.authority_name; } - + /* Return result */ return r.out.result; } @@ -1505,32 +1505,32 @@ NTSTATUS rpccli_lsa_QueryInfoPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *me { struct lsa_QueryInfoPolicy2 r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.level = level; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_QueryInfoPolicy2, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_QUERYINFOPOLICY2, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_QueryInfoPolicy2, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (info && r.out.info) { *info = *r.out.info; } - + /* Return result */ return r.out.result; } @@ -1539,27 +1539,27 @@ NTSTATUS rpccli_lsa_SetInfoPolicy2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ { struct lsa_SetInfoPolicy2 r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_SetInfoPolicy2, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETINFOPOLICY2, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_SetInfoPolicy2, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -1568,33 +1568,33 @@ NTSTATUS rpccli_lsa_QueryTrustedDomainInfoByName(struct rpc_pipe_client *cli, TA { struct lsa_QueryTrustedDomainInfoByName r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.trusted_domain = trusted_domain; r.in.level = level; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfoByName, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_QUERYTRUSTEDDOMAININFOBYNAME, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_QueryTrustedDomainInfoByName, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (info && r.out.info) { *info = *r.out.info; } - + /* Return result */ return r.out.result; } @@ -1603,31 +1603,31 @@ NTSTATUS rpccli_lsa_SetTrustedDomainInfoByName(struct rpc_pipe_client *cli, TALL { struct lsa_SetTrustedDomainInfoByName r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.trusted_domain = trusted_domain; r.in.level = level; r.in.info = info; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_SetTrustedDomainInfoByName, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETTRUSTEDDOMAININFOBYNAME, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_SetTrustedDomainInfoByName, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -1636,32 +1636,32 @@ NTSTATUS rpccli_lsa_EnumTrustedDomainsEx(struct rpc_pipe_client *cli, TALLOC_CTX { struct lsa_EnumTrustedDomainsEx r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.resume_handle = resume_handle; r.in.max_size = max_size; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_EnumTrustedDomainsEx, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_ENUMTRUSTEDDOMAINSEX, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_EnumTrustedDomainsEx, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *resume_handle = *r.out.resume_handle; *domains = *r.out.domains; - + /* Return result */ return r.out.result; } @@ -1670,27 +1670,27 @@ NTSTATUS rpccli_lsa_CreateTrustedDomainEx(struct rpc_pipe_client *cli, TALLOC_CT { struct lsa_CreateTrustedDomainEx r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomainEx, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREATETRUSTEDDOMAINEX, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomainEx, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -1699,29 +1699,29 @@ NTSTATUS rpccli_lsa_CloseTrustedDomainEx(struct rpc_pipe_client *cli, TALLOC_CTX { struct lsa_CloseTrustedDomainEx r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_CloseTrustedDomainEx, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CLOSETRUSTEDDOMAINEX, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_CloseTrustedDomainEx, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *handle = *r.out.handle; - + /* Return result */ return r.out.result; } @@ -1730,32 +1730,32 @@ NTSTATUS rpccli_lsa_QueryDomainInformationPolicy(struct rpc_pipe_client *cli, TA { struct lsa_QueryDomainInformationPolicy r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.level = level; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_QueryDomainInformationPolicy, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_QUERYDOMAININFORMATIONPOLICY, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_QueryDomainInformationPolicy, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (info && r.out.info) { *info = *r.out.info; } - + /* Return result */ return r.out.result; } @@ -1764,30 +1764,30 @@ NTSTATUS rpccli_lsa_SetDomainInformationPolicy(struct rpc_pipe_client *cli, TALL { struct lsa_SetDomainInformationPolicy r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.level = level; r.in.info = info; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_SetDomainInformationPolicy, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_SETDOMAININFORMATIONPOLICY, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_SetDomainInformationPolicy, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -1796,31 +1796,31 @@ NTSTATUS rpccli_lsa_OpenTrustedDomainByName(struct rpc_pipe_client *cli, TALLOC_ { struct lsa_OpenTrustedDomainByName r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.name = name; r.in.access_mask = access_mask; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_OpenTrustedDomainByName, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_OPENTRUSTEDDOMAINBYNAME, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_OpenTrustedDomainByName, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *trustdom_handle = *r.out.trustdom_handle; - + /* Return result */ return r.out.result; } @@ -1829,27 +1829,27 @@ NTSTATUS rpccli_lsa_TestCall(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) { struct lsa_TestCall r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_TestCall, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_TESTCALL, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_TestCall, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -1858,7 +1858,7 @@ NTSTATUS rpccli_lsa_LookupSids2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx { struct lsa_LookupSids2 r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.sids = sids; @@ -1867,30 +1867,30 @@ NTSTATUS rpccli_lsa_LookupSids2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx r.in.count = count; r.in.unknown1 = unknown1; r.in.unknown2 = unknown2; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_LookupSids2, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPSIDS2, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_LookupSids2, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (domains && r.out.domains) { *domains = *r.out.domains; } *names = *r.out.names; *count = *r.out.count; - + /* Return result */ return r.out.result; } @@ -1899,7 +1899,7 @@ NTSTATUS rpccli_lsa_LookupNames2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct { struct lsa_LookupNames2 r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.num_names = num_names; @@ -1909,30 +1909,30 @@ NTSTATUS rpccli_lsa_LookupNames2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct r.in.count = count; r.in.unknown1 = unknown1; r.in.unknown2 = unknown2; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_LookupNames2, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPNAMES2, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_LookupNames2, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (domains && r.out.domains) { *domains = *r.out.domains; } *sids = *r.out.sids; *count = *r.out.count; - + /* Return result */ return r.out.result; } @@ -1941,27 +1941,27 @@ NTSTATUS rpccli_lsa_CreateTrustedDomainEx2(struct rpc_pipe_client *cli, TALLOC_C { struct lsa_CreateTrustedDomainEx2 r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomainEx2, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREATETRUSTEDDOMAINEX2, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_CreateTrustedDomainEx2, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -1970,27 +1970,27 @@ NTSTATUS rpccli_lsa_CREDRWRITE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) { struct lsa_CREDRWRITE r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_CREDRWRITE, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRWRITE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_CREDRWRITE, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -1999,27 +1999,27 @@ NTSTATUS rpccli_lsa_CREDRREAD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx) { struct lsa_CREDRREAD r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_CREDRREAD, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRREAD, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_CREDRREAD, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -2028,27 +2028,27 @@ NTSTATUS rpccli_lsa_CREDRENUMERATE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ { struct lsa_CREDRENUMERATE r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_CREDRENUMERATE, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRENUMERATE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_CREDRENUMERATE, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -2057,27 +2057,27 @@ NTSTATUS rpccli_lsa_CREDRWRITEDOMAINCREDENTIALS(struct rpc_pipe_client *cli, TAL { struct lsa_CREDRWRITEDOMAINCREDENTIALS r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_CREDRWRITEDOMAINCREDENTIALS, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRWRITEDOMAINCREDENTIALS, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_CREDRWRITEDOMAINCREDENTIALS, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -2086,27 +2086,27 @@ NTSTATUS rpccli_lsa_CREDRREADDOMAINCREDENTIALS(struct rpc_pipe_client *cli, TALL { struct lsa_CREDRREADDOMAINCREDENTIALS r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_CREDRREADDOMAINCREDENTIALS, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRREADDOMAINCREDENTIALS, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_CREDRREADDOMAINCREDENTIALS, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -2115,27 +2115,27 @@ NTSTATUS rpccli_lsa_CREDRDELETE(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx { struct lsa_CREDRDELETE r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_CREDRDELETE, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRDELETE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_CREDRDELETE, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -2144,27 +2144,27 @@ NTSTATUS rpccli_lsa_CREDRGETTARGETINFO(struct rpc_pipe_client *cli, TALLOC_CTX * { struct lsa_CREDRGETTARGETINFO r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_CREDRGETTARGETINFO, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRGETTARGETINFO, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_CREDRGETTARGETINFO, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -2173,27 +2173,27 @@ NTSTATUS rpccli_lsa_CREDRPROFILELOADED(struct rpc_pipe_client *cli, TALLOC_CTX * { struct lsa_CREDRPROFILELOADED r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_CREDRPROFILELOADED, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRPROFILELOADED, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_CREDRPROFILELOADED, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -2202,7 +2202,7 @@ NTSTATUS rpccli_lsa_LookupNames3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct { struct lsa_LookupNames3 r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.num_names = num_names; @@ -2212,30 +2212,30 @@ NTSTATUS rpccli_lsa_LookupNames3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct r.in.count = count; r.in.unknown1 = unknown1; r.in.unknown2 = unknown2; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_LookupNames3, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPNAMES3, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_LookupNames3, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (domains && r.out.domains) { *domains = *r.out.domains; } *sids = *r.out.sids; *count = *r.out.count; - + /* Return result */ return r.out.result; } @@ -2244,27 +2244,27 @@ NTSTATUS rpccli_lsa_CREDRGETSESSIONTYPES(struct rpc_pipe_client *cli, TALLOC_CTX { struct lsa_CREDRGETSESSIONTYPES r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_CREDRGETSESSIONTYPES, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRGETSESSIONTYPES, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_CREDRGETSESSIONTYPES, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -2273,27 +2273,27 @@ NTSTATUS rpccli_lsa_LSARREGISTERAUDITEVENT(struct rpc_pipe_client *cli, TALLOC_C { struct lsa_LSARREGISTERAUDITEVENT r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_LSARREGISTERAUDITEVENT, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSARREGISTERAUDITEVENT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_LSARREGISTERAUDITEVENT, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -2302,27 +2302,27 @@ NTSTATUS rpccli_lsa_LSARGENAUDITEVENT(struct rpc_pipe_client *cli, TALLOC_CTX *m { struct lsa_LSARGENAUDITEVENT r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_LSARGENAUDITEVENT, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSARGENAUDITEVENT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_LSARGENAUDITEVENT, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -2331,27 +2331,27 @@ NTSTATUS rpccli_lsa_LSARUNREGISTERAUDITEVENT(struct rpc_pipe_client *cli, TALLOC { struct lsa_LSARUNREGISTERAUDITEVENT r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_LSARUNREGISTERAUDITEVENT, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSARUNREGISTERAUDITEVENT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_LSARUNREGISTERAUDITEVENT, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -2360,27 +2360,27 @@ NTSTATUS rpccli_lsa_LSARQUERYFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, { struct lsa_LSARQUERYFORESTTRUSTINFORMATION r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_LSARQUERYFORESTTRUSTINFORMATION, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSARQUERYFORESTTRUSTINFORMATION, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_LSARQUERYFORESTTRUSTINFORMATION, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -2389,27 +2389,27 @@ NTSTATUS rpccli_lsa_LSARSETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, T { struct lsa_LSARSETFORESTTRUSTINFORMATION r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_LSARSETFORESTTRUSTINFORMATION, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSARSETFORESTTRUSTINFORMATION, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_LSARSETFORESTTRUSTINFORMATION, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -2418,27 +2418,27 @@ NTSTATUS rpccli_lsa_CREDRRENAME(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx { struct lsa_CREDRRENAME r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_CREDRRENAME, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_CREDRRENAME, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_CREDRRENAME, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -2447,7 +2447,7 @@ NTSTATUS rpccli_lsa_LookupSids3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx { struct lsa_LookupSids3 r; NTSTATUS status; - + /* In parameters */ r.in.sids = sids; r.in.names = names; @@ -2455,30 +2455,30 @@ NTSTATUS rpccli_lsa_LookupSids3(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx r.in.count = count; r.in.unknown1 = unknown1; r.in.unknown2 = unknown2; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_LookupSids3, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPSIDS3, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_LookupSids3, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (domains && r.out.domains) { *domains = *r.out.domains; } *names = *r.out.names; *count = *r.out.count; - + /* Return result */ return r.out.result; } @@ -2487,7 +2487,7 @@ NTSTATUS rpccli_lsa_LookupNames4(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct { struct lsa_LookupNames4 r; NTSTATUS status; - + /* In parameters */ r.in.num_names = num_names; r.in.names = names; @@ -2496,30 +2496,30 @@ NTSTATUS rpccli_lsa_LookupNames4(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct r.in.count = count; r.in.unknown1 = unknown1; r.in.unknown2 = unknown2; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_LookupNames4, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LOOKUPNAMES4, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_LookupNames4, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (domains && r.out.domains) { *domains = *r.out.domains; } *sids = *r.out.sids; *count = *r.out.count; - + /* Return result */ return r.out.result; } @@ -2528,27 +2528,27 @@ NTSTATUS rpccli_lsa_LSAROPENPOLICYSCE(struct rpc_pipe_client *cli, TALLOC_CTX *m { struct lsa_LSAROPENPOLICYSCE r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_LSAROPENPOLICYSCE, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSAROPENPOLICYSCE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_LSAROPENPOLICYSCE, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -2557,27 +2557,27 @@ NTSTATUS rpccli_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *c { struct lsa_LSARADTREGISTERSECURITYEVENTSOURCE r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_LSARADTREGISTERSECURITYEVENTSOURCE, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSARADTREGISTERSECURITYEVENTSOURCE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_LSARADTREGISTERSECURITYEVENTSOURCE, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -2586,27 +2586,27 @@ NTSTATUS rpccli_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client { struct lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSARADTUNREGISTERSECURITYEVENTSOURCE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } @@ -2615,27 +2615,27 @@ NTSTATUS rpccli_lsa_LSARADTREPORTSECURITYEVENT(struct rpc_pipe_client *cli, TALL { struct lsa_LSARADTREPORTSECURITYEVENT r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(lsa_LSARADTREPORTSECURITYEVENT, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_LSARPC, &ndr_table_lsarpc, NDR_LSA_LSARADTREPORTSECURITYEVENT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(lsa_LSARADTREPORTSECURITYEVENT, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ return r.out.result; } diff --git a/source3/librpc/gen_ndr/cli_netlogon.c b/source3/librpc/gen_ndr/cli_netlogon.c index e53254efa5..addf9f80d1 100644 --- a/source3/librpc/gen_ndr/cli_netlogon.c +++ b/source3/librpc/gen_ndr/cli_netlogon.c @@ -10,38 +10,38 @@ NTSTATUS rpccli_netr_LogonUasLogon(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ { struct netr_LogonUasLogon r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.account_name = account_name; r.in.workstation = workstation; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_LogonUasLogon, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONUASLOGON, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_LogonUasLogon, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (info && r.out.info) { *info = *r.out.info; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -49,36 +49,36 @@ NTSTATUS rpccli_netr_LogonUasLogoff(struct rpc_pipe_client *cli, TALLOC_CTX *mem { struct netr_LogonUasLogoff r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.account_name = account_name; r.in.workstation = workstation; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_LogonUasLogoff, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONUASLOGOFF, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_LogonUasLogoff, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *info = *r.out.info; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -86,7 +86,7 @@ NTSTATUS rpccli_netr_LogonSamLogon(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ { struct netr_LogonSamLogon r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.computer_name = computer_name; @@ -95,30 +95,30 @@ NTSTATUS rpccli_netr_LogonSamLogon(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ r.in.logon_level = logon_level; r.in.logon = logon; r.in.validation_level = validation_level; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_LogonSamLogon, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONSAMLOGON, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_LogonSamLogon, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (return_authenticator && r.out.return_authenticator) { *return_authenticator = *r.out.return_authenticator; } *validation = *r.out.validation; *authoritative = *r.out.authoritative; - + /* Return result */ return r.out.result; } @@ -127,7 +127,7 @@ NTSTATUS rpccli_netr_LogonSamLogoff(struct rpc_pipe_client *cli, TALLOC_CTX *mem { struct netr_LogonSamLogoff r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.computer_name = computer_name; @@ -135,28 +135,28 @@ NTSTATUS rpccli_netr_LogonSamLogoff(struct rpc_pipe_client *cli, TALLOC_CTX *mem r.in.return_authenticator = return_authenticator; r.in.logon_level = logon_level; r.in.logon = logon; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_LogonSamLogoff, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONSAMLOGOFF, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_LogonSamLogoff, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (return_authenticator && r.out.return_authenticator) { *return_authenticator = *r.out.return_authenticator; } - + /* Return result */ return r.out.result; } @@ -165,31 +165,31 @@ NTSTATUS rpccli_netr_ServerReqChallenge(struct rpc_pipe_client *cli, TALLOC_CTX { struct netr_ServerReqChallenge r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.computer_name = computer_name; r.in.credentials = credentials; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_ServerReqChallenge, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_SERVERREQCHALLENGE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_ServerReqChallenge, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *credentials = *r.out.credentials; - + /* Return result */ return r.out.result; } @@ -198,33 +198,33 @@ NTSTATUS rpccli_netr_ServerAuthenticate(struct rpc_pipe_client *cli, TALLOC_CTX { struct netr_ServerAuthenticate r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.account_name = account_name; r.in.secure_channel_type = secure_channel_type; r.in.computer_name = computer_name; r.in.credentials = credentials; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_ServerAuthenticate, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_SERVERAUTHENTICATE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_ServerAuthenticate, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *credentials = *r.out.credentials; - + /* Return result */ return r.out.result; } @@ -233,7 +233,7 @@ NTSTATUS rpccli_netr_ServerPasswordSet(struct rpc_pipe_client *cli, TALLOC_CTX * { struct netr_ServerPasswordSet r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.account_name = account_name; @@ -241,26 +241,26 @@ NTSTATUS rpccli_netr_ServerPasswordSet(struct rpc_pipe_client *cli, TALLOC_CTX * r.in.computer_name = computer_name; r.in.credential = credential; r.in.new_password = new_password; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_ServerPasswordSet, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_SERVERPASSWORDSET, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_ServerPasswordSet, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *return_authenticator = *r.out.return_authenticator; - + /* Return result */ return r.out.result; } @@ -269,7 +269,7 @@ NTSTATUS rpccli_netr_DatabaseDeltas(struct rpc_pipe_client *cli, TALLOC_CTX *mem { struct netr_DatabaseDeltas r; NTSTATUS status; - + /* In parameters */ r.in.logon_server = logon_server; r.in.computername = computername; @@ -278,30 +278,30 @@ NTSTATUS rpccli_netr_DatabaseDeltas(struct rpc_pipe_client *cli, TALLOC_CTX *mem r.in.database_id = database_id; r.in.sequence_num = sequence_num; r.in.preferredmaximumlength = preferredmaximumlength; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_DatabaseDeltas, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DATABASEDELTAS, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_DatabaseDeltas, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *return_authenticator = *r.out.return_authenticator; *sequence_num = *r.out.sequence_num; if (delta_enum_array && r.out.delta_enum_array) { *delta_enum_array = *r.out.delta_enum_array; } - + /* Return result */ return r.out.result; } @@ -310,7 +310,7 @@ NTSTATUS rpccli_netr_DatabaseSync(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c { struct netr_DatabaseSync r; NTSTATUS status; - + /* In parameters */ r.in.logon_server = logon_server; r.in.computername = computername; @@ -319,30 +319,30 @@ NTSTATUS rpccli_netr_DatabaseSync(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c r.in.database_id = database_id; r.in.sync_context = sync_context; r.in.preferredmaximumlength = preferredmaximumlength; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_DatabaseSync, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DATABASESYNC, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_DatabaseSync, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *return_authenticator = *r.out.return_authenticator; *sync_context = *r.out.sync_context; if (delta_enum_array && r.out.delta_enum_array) { *delta_enum_array = *r.out.delta_enum_array; } - + /* Return result */ return r.out.result; } @@ -351,7 +351,7 @@ NTSTATUS rpccli_netr_AccountDeltas(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ { struct netr_AccountDeltas r; NTSTATUS status; - + /* In parameters */ r.in.logon_server = logon_server; r.in.computername = computername; @@ -361,30 +361,30 @@ NTSTATUS rpccli_netr_AccountDeltas(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ r.in.count = count; r.in.level = level; r.in.buffersize = buffersize; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_AccountDeltas, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_ACCOUNTDELTAS, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_AccountDeltas, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *return_authenticator = *r.out.return_authenticator; *buffer = *r.out.buffer; *count_returned = *r.out.count_returned; *total_entries = *r.out.total_entries; *recordid = *r.out.recordid; - + /* Return result */ return r.out.result; } @@ -393,7 +393,7 @@ NTSTATUS rpccli_netr_AccountSync(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct { struct netr_AccountSync r; NTSTATUS status; - + /* In parameters */ r.in.logon_server = logon_server; r.in.computername = computername; @@ -403,23 +403,23 @@ NTSTATUS rpccli_netr_AccountSync(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct r.in.level = level; r.in.buffersize = buffersize; r.in.recordid = recordid; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_AccountSync, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_ACCOUNTSYNC, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_AccountSync, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *return_authenticator = *r.out.return_authenticator; *buffer = *r.out.buffer; @@ -427,7 +427,7 @@ NTSTATUS rpccli_netr_AccountSync(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct *total_entries = *r.out.total_entries; *next_reference = *r.out.next_reference; *recordid = *r.out.recordid; - + /* Return result */ return r.out.result; } @@ -436,30 +436,30 @@ NTSTATUS rpccli_netr_GetDcName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, { struct netr_GetDcName r; NTSTATUS status; - + /* In parameters */ r.in.logon_server = logon_server; r.in.domainname = domainname; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_GetDcName, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_GETDCNAME, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_GetDcName, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *dcname = *r.out.dcname; - + /* Return result */ return r.out.result; } @@ -468,36 +468,36 @@ NTSTATUS rpccli_netr_LogonControl(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c { struct netr_LogonControl r; NTSTATUS status; - + /* In parameters */ r.in.logon_server = logon_server; r.in.function_code = function_code; r.in.level = level; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_LogonControl, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONCONTROL, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_LogonControl, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *info = *r.out.info; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -505,35 +505,35 @@ NTSTATUS rpccli_netr_GetAnyDCName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c { struct netr_GetAnyDCName r; NTSTATUS status; - + /* In parameters */ r.in.logon_server = logon_server; r.in.domainname = domainname; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_GetAnyDCName, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_GETANYDCNAME, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_GetAnyDCName, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *dcname = *r.out.dcname; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -541,37 +541,37 @@ NTSTATUS rpccli_netr_LogonControl2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ { struct netr_LogonControl2 r; NTSTATUS status; - + /* In parameters */ r.in.logon_server = logon_server; r.in.function_code = function_code; r.in.level = level; r.in.data = data; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_LogonControl2, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONCONTROL2, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_LogonControl2, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *query = *r.out.query; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -579,7 +579,7 @@ NTSTATUS rpccli_netr_ServerAuthenticate2(struct rpc_pipe_client *cli, TALLOC_CTX { struct netr_ServerAuthenticate2 r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.account_name = account_name; @@ -587,27 +587,27 @@ NTSTATUS rpccli_netr_ServerAuthenticate2(struct rpc_pipe_client *cli, TALLOC_CTX r.in.computer_name = computer_name; r.in.credentials = credentials; r.in.negotiate_flags = negotiate_flags; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_ServerAuthenticate2, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_SERVERAUTHENTICATE2, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_ServerAuthenticate2, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *credentials = *r.out.credentials; *negotiate_flags = *r.out.negotiate_flags; - + /* Return result */ return r.out.result; } @@ -616,7 +616,7 @@ NTSTATUS rpccli_netr_DatabaseSync2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ { struct netr_DatabaseSync2 r; NTSTATUS status; - + /* In parameters */ r.in.logon_server = logon_server; r.in.computername = computername; @@ -626,30 +626,30 @@ NTSTATUS rpccli_netr_DatabaseSync2(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ r.in.restart_state = restart_state; r.in.sync_context = sync_context; r.in.preferredmaximumlength = preferredmaximumlength; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_DatabaseSync2, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DATABASESYNC2, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_DatabaseSync2, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *return_authenticator = *r.out.return_authenticator; *sync_context = *r.out.sync_context; if (delta_enum_array && r.out.delta_enum_array) { *delta_enum_array = *r.out.delta_enum_array; } - + /* Return result */ return r.out.result; } @@ -658,7 +658,7 @@ NTSTATUS rpccli_netr_DatabaseRedo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c { struct netr_DatabaseRedo r; NTSTATUS status; - + /* In parameters */ r.in.logon_server = logon_server; r.in.computername = computername; @@ -666,29 +666,29 @@ NTSTATUS rpccli_netr_DatabaseRedo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c r.in.return_authenticator = return_authenticator; r.in.change_log_entry = change_log_entry; r.in.change_log_entry_size = change_log_entry_size; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_DatabaseRedo, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DATABASEREDO, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_DatabaseRedo, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *return_authenticator = *r.out.return_authenticator; if (delta_enum_array && r.out.delta_enum_array) { *delta_enum_array = *r.out.delta_enum_array; } - + /* Return result */ return r.out.result; } @@ -697,37 +697,37 @@ NTSTATUS rpccli_netr_LogonControl2Ex(struct rpc_pipe_client *cli, TALLOC_CTX *me { struct netr_LogonControl2Ex r; NTSTATUS status; - + /* In parameters */ r.in.logon_server = logon_server; r.in.function_code = function_code; r.in.level = level; r.in.data = data; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_LogonControl2Ex, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONCONTROL2EX, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_LogonControl2Ex, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *query = *r.out.query; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -735,32 +735,32 @@ NTSTATUS rpccli_netr_NETRENUMERATETRUSTEDDOMAINS(struct rpc_pipe_client *cli, TA { struct netr_NETRENUMERATETRUSTEDDOMAINS r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINS, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRENUMERATETRUSTEDDOMAINS, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINS, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -768,40 +768,40 @@ NTSTATUS rpccli_netr_DsRGetDCName(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c { struct netr_DsRGetDCName r; NTSTATUS status; - + /* In parameters */ r.in.server_unc = server_unc; r.in.domain_name = domain_name; r.in.domain_guid = domain_guid; r.in.site_guid = site_guid; r.in.flags = flags; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_DsRGetDCName, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRGETDCNAME, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_DsRGetDCName, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (info && r.out.info) { *info = *r.out.info; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -809,32 +809,32 @@ NTSTATUS rpccli_netr_NETRLOGONDUMMYROUTINE1(struct rpc_pipe_client *cli, TALLOC_ { struct netr_NETRLOGONDUMMYROUTINE1 r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_NETRLOGONDUMMYROUTINE1, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRLOGONDUMMYROUTINE1, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_NETRLOGONDUMMYROUTINE1, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -842,32 +842,32 @@ NTSTATUS rpccli_netr_NETRLOGONSETSERVICEBITS(struct rpc_pipe_client *cli, TALLOC { struct netr_NETRLOGONSETSERVICEBITS r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_NETRLOGONSETSERVICEBITS, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRLOGONSETSERVICEBITS, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_NETRLOGONSETSERVICEBITS, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -875,32 +875,32 @@ NTSTATUS rpccli_netr_NETRLOGONGETTRUSTRID(struct rpc_pipe_client *cli, TALLOC_CT { struct netr_NETRLOGONGETTRUSTRID r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_NETRLOGONGETTRUSTRID, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRLOGONGETTRUSTRID, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_NETRLOGONGETTRUSTRID, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -908,32 +908,32 @@ NTSTATUS rpccli_netr_NETRLOGONCOMPUTESERVERDIGEST(struct rpc_pipe_client *cli, T { struct netr_NETRLOGONCOMPUTESERVERDIGEST r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_NETRLOGONCOMPUTESERVERDIGEST, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRLOGONCOMPUTESERVERDIGEST, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_NETRLOGONCOMPUTESERVERDIGEST, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -941,32 +941,32 @@ NTSTATUS rpccli_netr_NETRLOGONCOMPUTECLIENTDIGEST(struct rpc_pipe_client *cli, T { struct netr_NETRLOGONCOMPUTECLIENTDIGEST r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_NETRLOGONCOMPUTECLIENTDIGEST, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRLOGONCOMPUTECLIENTDIGEST, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_NETRLOGONCOMPUTECLIENTDIGEST, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -974,7 +974,7 @@ NTSTATUS rpccli_netr_ServerAuthenticate3(struct rpc_pipe_client *cli, TALLOC_CTX { struct netr_ServerAuthenticate3 r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.account_name = account_name; @@ -982,28 +982,28 @@ NTSTATUS rpccli_netr_ServerAuthenticate3(struct rpc_pipe_client *cli, TALLOC_CTX r.in.computer_name = computer_name; r.in.credentials = credentials; r.in.negotiate_flags = negotiate_flags; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_ServerAuthenticate3, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_SERVERAUTHENTICATE3, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_ServerAuthenticate3, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *credentials = *r.out.credentials; *negotiate_flags = *r.out.negotiate_flags; *rid = *r.out.rid; - + /* Return result */ return r.out.result; } @@ -1012,40 +1012,40 @@ NTSTATUS rpccli_netr_DsRGetDCNameEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem { struct netr_DsRGetDCNameEx r; NTSTATUS status; - + /* In parameters */ r.in.server_unc = server_unc; r.in.domain_name = domain_name; r.in.domain_guid = domain_guid; r.in.site_name = site_name; r.in.flags = flags; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_DsRGetDCNameEx, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRGETDCNAMEEX, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_DsRGetDCNameEx, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (info && r.out.info) { *info = *r.out.info; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1053,34 +1053,34 @@ NTSTATUS rpccli_netr_DsRGetSiteName(struct rpc_pipe_client *cli, TALLOC_CTX *mem { struct netr_DsRGetSiteName r; NTSTATUS status; - + /* In parameters */ r.in.computer_name = computer_name; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_DsRGetSiteName, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRGETSITENAME, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_DsRGetSiteName, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *site = *r.out.site; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1088,7 +1088,7 @@ NTSTATUS rpccli_netr_LogonGetDomainInfo(struct rpc_pipe_client *cli, TALLOC_CTX { struct netr_LogonGetDomainInfo r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.computer_name = computer_name; @@ -1096,27 +1096,27 @@ NTSTATUS rpccli_netr_LogonGetDomainInfo(struct rpc_pipe_client *cli, TALLOC_CTX r.in.return_authenticator = return_authenticator; r.in.level = level; r.in.query = query; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_LogonGetDomainInfo, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONGETDOMAININFO, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_LogonGetDomainInfo, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *return_authenticator = *r.out.return_authenticator; *info = *r.out.info; - + /* Return result */ return r.out.result; } @@ -1125,7 +1125,7 @@ NTSTATUS rpccli_netr_ServerPasswordSet2(struct rpc_pipe_client *cli, TALLOC_CTX { struct netr_ServerPasswordSet2 r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.account_name = account_name; @@ -1133,26 +1133,26 @@ NTSTATUS rpccli_netr_ServerPasswordSet2(struct rpc_pipe_client *cli, TALLOC_CTX r.in.computer_name = computer_name; r.in.credential = credential; r.in.new_password = new_password; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_ServerPasswordSet2, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_SERVERPASSWORDSET2, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_ServerPasswordSet2, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *return_authenticator = *r.out.return_authenticator; - + /* Return result */ return r.out.result; } @@ -1161,32 +1161,32 @@ NTSTATUS rpccli_netr_NETRSERVERPASSWORDGET(struct rpc_pipe_client *cli, TALLOC_C { struct netr_NETRSERVERPASSWORDGET r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_NETRSERVERPASSWORDGET, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRSERVERPASSWORDGET, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_NETRSERVERPASSWORDGET, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1194,32 +1194,32 @@ NTSTATUS rpccli_netr_NETRLOGONSENDTOSAM(struct rpc_pipe_client *cli, TALLOC_CTX { struct netr_NETRLOGONSENDTOSAM r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_NETRLOGONSENDTOSAM, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRLOGONSENDTOSAM, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_NETRLOGONSENDTOSAM, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1227,32 +1227,32 @@ NTSTATUS rpccli_netr_DSRADDRESSTOSITENAMESW(struct rpc_pipe_client *cli, TALLOC_ { struct netr_DSRADDRESSTOSITENAMESW r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_DSRADDRESSTOSITENAMESW, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRADDRESSTOSITENAMESW, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_DSRADDRESSTOSITENAMESW, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1260,7 +1260,7 @@ NTSTATUS rpccli_netr_DsRGetDCNameEx2(struct rpc_pipe_client *cli, TALLOC_CTX *me { struct netr_DsRGetDCNameEx2 r; NTSTATUS status; - + /* In parameters */ r.in.server_unc = server_unc; r.in.client_account = client_account; @@ -1269,33 +1269,33 @@ NTSTATUS rpccli_netr_DsRGetDCNameEx2(struct rpc_pipe_client *cli, TALLOC_CTX *me r.in.domain_guid = domain_guid; r.in.site_name = site_name; r.in.flags = flags; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_DsRGetDCNameEx2, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRGETDCNAMEEX2, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_DsRGetDCNameEx2, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (info && r.out.info) { *info = *r.out.info; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1303,32 +1303,32 @@ NTSTATUS rpccli_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(struct rpc_pipe_client { struct netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRLOGONGETTIMESERVICEPARENTDOMAIN, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1336,32 +1336,32 @@ NTSTATUS rpccli_netr_NETRENUMERATETRUSTEDDOMAINSEX(struct rpc_pipe_client *cli, { struct netr_NETRENUMERATETRUSTEDDOMAINSEX r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINSEX, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRENUMERATETRUSTEDDOMAINSEX, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINSEX, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1369,32 +1369,32 @@ NTSTATUS rpccli_netr_DSRADDRESSTOSITENAMESEXW(struct rpc_pipe_client *cli, TALLO { struct netr_DSRADDRESSTOSITENAMESEXW r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_DSRADDRESSTOSITENAMESEXW, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRADDRESSTOSITENAMESEXW, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_DSRADDRESSTOSITENAMESEXW, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1402,32 +1402,32 @@ NTSTATUS rpccli_netr_DSRGETDCSITECOVERAGEW(struct rpc_pipe_client *cli, TALLOC_C { struct netr_DSRGETDCSITECOVERAGEW r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_DSRGETDCSITECOVERAGEW, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRGETDCSITECOVERAGEW, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_DSRGETDCSITECOVERAGEW, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1435,7 +1435,7 @@ NTSTATUS rpccli_netr_LogonSamLogonEx(struct rpc_pipe_client *cli, TALLOC_CTX *me { struct netr_LogonSamLogonEx r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.computer_name = computer_name; @@ -1443,28 +1443,28 @@ NTSTATUS rpccli_netr_LogonSamLogonEx(struct rpc_pipe_client *cli, TALLOC_CTX *me r.in.logon = logon; r.in.validation_level = validation_level; r.in.flags = flags; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_LogonSamLogonEx, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONSAMLOGONEX, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_LogonSamLogonEx, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *validation = *r.out.validation; *authoritative = *r.out.authoritative; *flags = *r.out.flags; - + /* Return result */ return r.out.result; } @@ -1473,36 +1473,36 @@ NTSTATUS rpccli_netr_DsrEnumerateDomainTrusts(struct rpc_pipe_client *cli, TALLO { struct netr_DsrEnumerateDomainTrusts r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.trust_flags = trust_flags; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_DsrEnumerateDomainTrusts, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRENUMERATEDOMAINTRUSTS, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_DsrEnumerateDomainTrusts, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *count = *r.out.count; memcpy(trusts, r.out.trusts, count); - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1510,32 +1510,32 @@ NTSTATUS rpccli_netr_DSRDEREGISTERDNSHOSTRECORDS(struct rpc_pipe_client *cli, TA { struct netr_DSRDEREGISTERDNSHOSTRECORDS r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_DSRDEREGISTERDNSHOSTRECORDS, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRDEREGISTERDNSHOSTRECORDS, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_DSRDEREGISTERDNSHOSTRECORDS, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1543,32 +1543,32 @@ NTSTATUS rpccli_netr_NETRSERVERTRUSTPASSWORDSGET(struct rpc_pipe_client *cli, TA { struct netr_NETRSERVERTRUSTPASSWORDSGET r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_NETRSERVERTRUSTPASSWORDSGET, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRSERVERTRUSTPASSWORDSGET, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_NETRSERVERTRUSTPASSWORDSGET, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1576,32 +1576,32 @@ NTSTATUS rpccli_netr_DSRGETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, T { struct netr_DSRGETFORESTTRUSTINFORMATION r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_DSRGETFORESTTRUSTINFORMATION, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_DSRGETFORESTTRUSTINFORMATION, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_DSRGETFORESTTRUSTINFORMATION, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1609,32 +1609,32 @@ NTSTATUS rpccli_netr_NETRGETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli, { struct netr_NETRGETFORESTTRUSTINFORMATION r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_NETRGETFORESTTRUSTINFORMATION, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRGETFORESTTRUSTINFORMATION, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_NETRGETFORESTTRUSTINFORMATION, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1642,7 +1642,7 @@ NTSTATUS rpccli_netr_LogonSamLogonWithFlags(struct rpc_pipe_client *cli, TALLOC_ { struct netr_LogonSamLogonWithFlags r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.computer_name = computer_name; @@ -1652,23 +1652,23 @@ NTSTATUS rpccli_netr_LogonSamLogonWithFlags(struct rpc_pipe_client *cli, TALLOC_ r.in.logon = logon; r.in.validation_level = validation_level; r.in.flags = flags; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_LogonSamLogonWithFlags, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_LOGONSAMLOGONWITHFLAGS, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_LogonSamLogonWithFlags, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (return_authenticator && r.out.return_authenticator) { *return_authenticator = *r.out.return_authenticator; @@ -1676,7 +1676,7 @@ NTSTATUS rpccli_netr_LogonSamLogonWithFlags(struct rpc_pipe_client *cli, TALLOC_ *validation = *r.out.validation; *authoritative = *r.out.authoritative; *flags = *r.out.flags; - + /* Return result */ return r.out.result; } @@ -1685,32 +1685,32 @@ NTSTATUS rpccli_netr_NETRSERVERGETTRUSTINFO(struct rpc_pipe_client *cli, TALLOC_ { struct netr_NETRSERVERGETTRUSTINFO r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(netr_NETRSERVERGETTRUSTINFO, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_NETLOGON, &ndr_table_netlogon, NDR_NETR_NETRSERVERGETTRUSTINFO, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(netr_NETRSERVERGETTRUSTINFO, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } diff --git a/source3/librpc/gen_ndr/cli_srvsvc.c b/source3/librpc/gen_ndr/cli_srvsvc.c index b7f1521dd3..9353390e96 100644 --- a/source3/librpc/gen_ndr/cli_srvsvc.c +++ b/source3/librpc/gen_ndr/cli_srvsvc.c @@ -10,30 +10,30 @@ NTSTATUS rpccli_srvsvc_NetCharDevEnum(struct rpc_pipe_client *cli, TALLOC_CTX *m { 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_table_srvsvc, NDR_SRVSVC_NETCHARDEVENUM, &r); - + 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; @@ -41,12 +41,12 @@ NTSTATUS rpccli_srvsvc_NetCharDevEnum(struct rpc_pipe_client *cli, TALLOC_CTX *m if (resume_handle && r.out.resume_handle) { *resume_handle = *r.out.resume_handle; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -54,36 +54,36 @@ NTSTATUS rpccli_srvsvc_NetCharDevGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX { 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_table_srvsvc, NDR_SRVSVC_NETCHARDEVGETINFO, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -91,35 +91,35 @@ NTSTATUS rpccli_srvsvc_NetCharDevControl(struct rpc_pipe_client *cli, TALLOC_CTX { 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_table_srvsvc, NDR_SRVSVC_NETCHARDEVCONTROL, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -127,7 +127,7 @@ NTSTATUS rpccli_srvsvc_NetCharDevQEnum(struct rpc_pipe_client *cli, TALLOC_CTX * { struct srvsvc_NetCharDevQEnum r; NTSTATUS status; - + /* In parameters */ r.in.server_unc = server_unc; r.in.user = user; @@ -135,23 +135,23 @@ NTSTATUS rpccli_srvsvc_NetCharDevQEnum(struct rpc_pipe_client *cli, TALLOC_CTX * 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_table_srvsvc, NDR_SRVSVC_NETCHARDEVQENUM, &r); - + 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; @@ -159,12 +159,12 @@ NTSTATUS rpccli_srvsvc_NetCharDevQEnum(struct rpc_pipe_client *cli, TALLOC_CTX * if (resume_handle && r.out.resume_handle) { *resume_handle = *r.out.resume_handle; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -172,37 +172,37 @@ NTSTATUS rpccli_srvsvc_NetCharDevQGetInfo(struct rpc_pipe_client *cli, TALLOC_CT { 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_table_srvsvc, NDR_SRVSVC_NETCHARDEVQGETINFO, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -210,40 +210,40 @@ NTSTATUS rpccli_srvsvc_NetCharDevQSetInfo(struct rpc_pipe_client *cli, TALLOC_CT { 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_table_srvsvc, NDR_SRVSVC_NETCHARDEVQSETINFO, &r); - + 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 && r.out.parm_error) { *parm_error = *r.out.parm_error; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -251,34 +251,34 @@ NTSTATUS rpccli_srvsvc_NetCharDevQPurge(struct rpc_pipe_client *cli, TALLOC_CTX { 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_table_srvsvc, NDR_SRVSVC_NETCHARDEVQPURGE, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -286,35 +286,35 @@ NTSTATUS rpccli_srvsvc_NetCharDevQPurgeSelf(struct rpc_pipe_client *cli, TALLOC_ { 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_table_srvsvc, NDR_SRVSVC_NETCHARDEVQPURGESELF, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -322,7 +322,7 @@ NTSTATUS rpccli_srvsvc_NetConnEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ { struct srvsvc_NetConnEnum r; NTSTATUS status; - + /* In parameters */ r.in.server_unc = server_unc; r.in.path = path; @@ -330,23 +330,23 @@ NTSTATUS rpccli_srvsvc_NetConnEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ 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_table_srvsvc, NDR_SRVSVC_NETCONNENUM, &r); - + 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; @@ -354,12 +354,12 @@ NTSTATUS rpccli_srvsvc_NetConnEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ if (resume_handle && r.out.resume_handle) { *resume_handle = *r.out.resume_handle; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -367,7 +367,7 @@ NTSTATUS rpccli_srvsvc_NetFileEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ { struct srvsvc_NetFileEnum r; NTSTATUS status; - + /* In parameters */ r.in.server_unc = server_unc; r.in.path = path; @@ -376,23 +376,23 @@ NTSTATUS rpccli_srvsvc_NetFileEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ 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_table_srvsvc, NDR_SRVSVC_NETFILEENUM, &r); - + 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; @@ -400,12 +400,12 @@ NTSTATUS rpccli_srvsvc_NetFileEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ if (resume_handle && r.out.resume_handle) { *resume_handle = *r.out.resume_handle; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -413,36 +413,36 @@ NTSTATUS rpccli_srvsvc_NetFileGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *m { 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_table_srvsvc, NDR_SRVSVC_NETFILEGETINFO, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -450,34 +450,34 @@ NTSTATUS rpccli_srvsvc_NetFileClose(struct rpc_pipe_client *cli, TALLOC_CTX *mem { 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_table_srvsvc, NDR_SRVSVC_NETFILECLOSE, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -485,7 +485,7 @@ NTSTATUS rpccli_srvsvc_NetSessEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ { struct srvsvc_NetSessEnum r; NTSTATUS status; - + /* In parameters */ r.in.server_unc = server_unc; r.in.client = client; @@ -494,23 +494,23 @@ NTSTATUS rpccli_srvsvc_NetSessEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ 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_table_srvsvc, NDR_SRVSVC_NETSESSENUM, &r); - + 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; @@ -518,12 +518,12 @@ NTSTATUS rpccli_srvsvc_NetSessEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ if (resume_handle && r.out.resume_handle) { *resume_handle = *r.out.resume_handle; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -531,35 +531,35 @@ NTSTATUS rpccli_srvsvc_NetSessDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c { 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_table_srvsvc, NDR_SRVSVC_NETSESSDEL, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -567,39 +567,39 @@ NTSTATUS rpccli_srvsvc_NetShareAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ { 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_table_srvsvc, NDR_SRVSVC_NETSHAREADD, &r); - + 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 && r.out.parm_error) { *parm_error = *r.out.parm_error; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -607,30 +607,30 @@ NTSTATUS rpccli_srvsvc_NetShareEnumAll(struct rpc_pipe_client *cli, TALLOC_CTX * { 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_table_srvsvc, NDR_SRVSVC_NETSHAREENUMALL, &r); - + 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; @@ -638,12 +638,12 @@ NTSTATUS rpccli_srvsvc_NetShareEnumAll(struct rpc_pipe_client *cli, TALLOC_CTX * if (resume_handle && r.out.resume_handle) { *resume_handle = *r.out.resume_handle; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -651,36 +651,36 @@ NTSTATUS rpccli_srvsvc_NetShareGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX * { 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_table_srvsvc, NDR_SRVSVC_NETSHAREGETINFO, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -688,40 +688,40 @@ NTSTATUS rpccli_srvsvc_NetShareSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX * { 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_table_srvsvc, NDR_SRVSVC_NETSHARESETINFO, &r); - + 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 && r.out.parm_error) { *parm_error = *r.out.parm_error; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -729,35 +729,35 @@ NTSTATUS rpccli_srvsvc_NetShareDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ { 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_table_srvsvc, NDR_SRVSVC_NETSHAREDEL, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -765,35 +765,35 @@ NTSTATUS rpccli_srvsvc_NetShareDelSticky(struct rpc_pipe_client *cli, TALLOC_CTX { 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_table_srvsvc, NDR_SRVSVC_NETSHAREDELSTICKY, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -801,35 +801,35 @@ NTSTATUS rpccli_srvsvc_NetShareCheck(struct rpc_pipe_client *cli, TALLOC_CTX *me { 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_table_srvsvc, NDR_SRVSVC_NETSHARECHECK, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -837,35 +837,35 @@ NTSTATUS rpccli_srvsvc_NetSrvGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *me { 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_table_srvsvc, NDR_SRVSVC_NETSRVGETINFO, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -873,39 +873,39 @@ NTSTATUS rpccli_srvsvc_NetSrvSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *me { 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_table_srvsvc, NDR_SRVSVC_NETSRVSETINFO, &r); - + 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 && r.out.parm_error) { *parm_error = *r.out.parm_error; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -913,42 +913,42 @@ NTSTATUS rpccli_srvsvc_NetDiskEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ { 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_table_srvsvc, NDR_SRVSVC_NETDISKENUM, &r); - + 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 && r.out.resume_handle) { *resume_handle = *r.out.resume_handle; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -956,37 +956,37 @@ NTSTATUS rpccli_srvsvc_NetServerStatisticsGet(struct rpc_pipe_client *cli, TALLO { 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_table_srvsvc, NDR_SRVSVC_NETSERVERSTATISTICSGET, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -994,35 +994,35 @@ NTSTATUS rpccli_srvsvc_NetTransportAdd(struct rpc_pipe_client *cli, TALLOC_CTX * { 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_table_srvsvc, NDR_SRVSVC_NETTRANSPORTADD, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1030,30 +1030,30 @@ NTSTATUS rpccli_srvsvc_NetTransportEnum(struct rpc_pipe_client *cli, TALLOC_CTX { 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_table_srvsvc, NDR_SRVSVC_NETTRANSPORTENUM, &r); - + 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; @@ -1061,12 +1061,12 @@ NTSTATUS rpccli_srvsvc_NetTransportEnum(struct rpc_pipe_client *cli, TALLOC_CTX if (resume_handle && r.out.resume_handle) { *resume_handle = *r.out.resume_handle; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1074,35 +1074,35 @@ NTSTATUS rpccli_srvsvc_NetTransportDel(struct rpc_pipe_client *cli, TALLOC_CTX * { 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_table_srvsvc, NDR_SRVSVC_NETTRANSPORTDEL, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1110,36 +1110,36 @@ NTSTATUS rpccli_srvsvc_NetRemoteTOD(struct rpc_pipe_client *cli, TALLOC_CTX *mem { 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_table_srvsvc, NDR_SRVSVC_NETREMOTETOD, &r); - + 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 && r.out.info) { *info = *r.out.info; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1147,36 +1147,36 @@ NTSTATUS rpccli_srvsvc_NetSetServiceBits(struct rpc_pipe_client *cli, TALLOC_CTX { 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_table_srvsvc, NDR_SRVSVC_NETSETSERVICEBITS, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1184,36 +1184,36 @@ NTSTATUS rpccli_srvsvc_NetPathType(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ { 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_table_srvsvc, NDR_SRVSVC_NETPATHTYPE, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1221,7 +1221,7 @@ NTSTATUS rpccli_srvsvc_NetPathCanonicalize(struct rpc_pipe_client *cli, TALLOC_C { struct srvsvc_NetPathCanonicalize r; NTSTATUS status; - + /* In parameters */ r.in.server_unc = server_unc; r.in.path = path; @@ -1229,32 +1229,32 @@ NTSTATUS rpccli_srvsvc_NetPathCanonicalize(struct rpc_pipe_client *cli, TALLOC_C 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_table_srvsvc, NDR_SRVSVC_NETPATHCANONICALIZE, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1262,37 +1262,37 @@ NTSTATUS rpccli_srvsvc_NetPathCompare(struct rpc_pipe_client *cli, TALLOC_CTX *m { 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_table_srvsvc, NDR_SRVSVC_NETPATHCOMPARE, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1300,36 +1300,36 @@ NTSTATUS rpccli_srvsvc_NetNameValidate(struct rpc_pipe_client *cli, TALLOC_CTX * { 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_table_srvsvc, NDR_SRVSVC_NETNAMEVALIDATE, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1337,32 +1337,32 @@ NTSTATUS rpccli_srvsvc_NETRPRNAMECANONICALIZE(struct rpc_pipe_client *cli, TALLO { 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_table_srvsvc, NDR_SRVSVC_NETRPRNAMECANONICALIZE, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1370,37 +1370,37 @@ NTSTATUS rpccli_srvsvc_NetPRNameCompare(struct rpc_pipe_client *cli, TALLOC_CTX { 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_table_srvsvc, NDR_SRVSVC_NETPRNAMECOMPARE, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1408,30 +1408,30 @@ NTSTATUS rpccli_srvsvc_NetShareEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem { 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_table_srvsvc, NDR_SRVSVC_NETSHAREENUM, &r); - + 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; @@ -1439,12 +1439,12 @@ NTSTATUS rpccli_srvsvc_NetShareEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem if (resume_handle && r.out.resume_handle) { *resume_handle = *r.out.resume_handle; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1452,38 +1452,38 @@ NTSTATUS rpccli_srvsvc_NetShareDelStart(struct rpc_pipe_client *cli, TALLOC_CTX { 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_table_srvsvc, NDR_SRVSVC_NETSHAREDELSTART, &r); - + 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 && r.out.hnd) { *hnd = *r.out.hnd; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1491,36 +1491,36 @@ NTSTATUS rpccli_srvsvc_NetShareDelCommit(struct rpc_pipe_client *cli, TALLOC_CTX { 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_table_srvsvc, NDR_SRVSVC_NETSHAREDELCOMMIT, &r); - + 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 && r.out.hnd) { *hnd = *r.out.hnd; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1528,39 +1528,39 @@ NTSTATUS rpccli_srvsvc_NetGetFileSecurity(struct rpc_pipe_client *cli, TALLOC_CT { 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_table_srvsvc, NDR_SRVSVC_NETGETFILESECURITY, &r); - + 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 && r.out.sd_buf) { *sd_buf = *r.out.sd_buf; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1568,37 +1568,37 @@ NTSTATUS rpccli_srvsvc_NetSetFileSecurity(struct rpc_pipe_client *cli, TALLOC_CT { 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_table_srvsvc, NDR_SRVSVC_NETSETFILESECURITY, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1606,35 +1606,35 @@ NTSTATUS rpccli_srvsvc_NetServerTransportAddEx(struct rpc_pipe_client *cli, TALL { 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_table_srvsvc, NDR_SRVSVC_NETSERVERTRANSPORTADDEX, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1642,7 +1642,7 @@ NTSTATUS rpccli_srvsvc_NetServerSetServiceBitsEx(struct rpc_pipe_client *cli, TA { struct srvsvc_NetServerSetServiceBitsEx r; NTSTATUS status; - + /* In parameters */ r.in.server_unc = server_unc; r.in.emulated_server_unc = emulated_server_unc; @@ -1650,30 +1650,30 @@ NTSTATUS rpccli_srvsvc_NetServerSetServiceBitsEx(struct rpc_pipe_client *cli, TA 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_table_srvsvc, NDR_SRVSVC_NETSERVERSETSERVICEBITSEX, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1681,32 +1681,32 @@ NTSTATUS rpccli_srvsvc_NETRDFSGETVERSION(struct rpc_pipe_client *cli, TALLOC_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_table_srvsvc, NDR_SRVSVC_NETRDFSGETVERSION, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1714,32 +1714,32 @@ NTSTATUS rpccli_srvsvc_NETRDFSCREATELOCALPARTITION(struct rpc_pipe_client *cli, { 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_table_srvsvc, NDR_SRVSVC_NETRDFSCREATELOCALPARTITION, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1747,32 +1747,32 @@ NTSTATUS rpccli_srvsvc_NETRDFSDELETELOCALPARTITION(struct rpc_pipe_client *cli, { 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_table_srvsvc, NDR_SRVSVC_NETRDFSDELETELOCALPARTITION, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1780,32 +1780,32 @@ NTSTATUS rpccli_srvsvc_NETRDFSSETLOCALVOLUMESTATE(struct rpc_pipe_client *cli, T { 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_table_srvsvc, NDR_SRVSVC_NETRDFSSETLOCALVOLUMESTATE, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1813,32 +1813,32 @@ NTSTATUS rpccli_srvsvc_NETRDFSSETSERVERINFO(struct rpc_pipe_client *cli, TALLOC_ { 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_table_srvsvc, NDR_SRVSVC_NETRDFSSETSERVERINFO, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1846,32 +1846,32 @@ NTSTATUS rpccli_srvsvc_NETRDFSCREATEEXITPOINT(struct rpc_pipe_client *cli, TALLO { 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_table_srvsvc, NDR_SRVSVC_NETRDFSCREATEEXITPOINT, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1879,32 +1879,32 @@ NTSTATUS rpccli_srvsvc_NETRDFSDELETEEXITPOINT(struct rpc_pipe_client *cli, TALLO { 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_table_srvsvc, NDR_SRVSVC_NETRDFSDELETEEXITPOINT, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1912,32 +1912,32 @@ NTSTATUS rpccli_srvsvc_NETRDFSMODIFYPREFIX(struct rpc_pipe_client *cli, TALLOC_C { 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_table_srvsvc, NDR_SRVSVC_NETRDFSMODIFYPREFIX, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1945,32 +1945,32 @@ NTSTATUS rpccli_srvsvc_NETRDFSFIXLOCALVOLUME(struct rpc_pipe_client *cli, TALLOC { 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_table_srvsvc, NDR_SRVSVC_NETRDFSFIXLOCALVOLUME, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1978,32 +1978,32 @@ NTSTATUS rpccli_srvsvc_NETRDFSMANAGERREPORTSITEINFO(struct rpc_pipe_client *cli, { 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_table_srvsvc, NDR_SRVSVC_NETRDFSMANAGERREPORTSITEINFO, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -2011,32 +2011,32 @@ NTSTATUS rpccli_srvsvc_NETRSERVERTRANSPORTDELEX(struct rpc_pipe_client *cli, TAL { 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_table_srvsvc, NDR_SRVSVC_NETRSERVERTRANSPORTDELEX, &r); - + 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 */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } diff --git a/source3/librpc/gen_ndr/cli_svcctl.c b/source3/librpc/gen_ndr/cli_svcctl.c index 8010d20919..3266e0c3c5 100644 --- a/source3/librpc/gen_ndr/cli_svcctl.c +++ b/source3/librpc/gen_ndr/cli_svcctl.c @@ -10,34 +10,34 @@ NTSTATUS rpccli_svcctl_CloseServiceHandle(struct rpc_pipe_client *cli, TALLOC_CT { struct svcctl_CloseServiceHandle r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_CloseServiceHandle, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_CLOSESERVICEHANDLE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_CloseServiceHandle, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *handle = *r.out.handle; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -45,35 +45,35 @@ NTSTATUS rpccli_svcctl_ControlService(struct rpc_pipe_client *cli, TALLOC_CTX *m { struct svcctl_ControlService r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.control = control; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_ControlService, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_CONTROLSERVICE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_ControlService, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *service_status = *r.out.service_status; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -81,33 +81,33 @@ NTSTATUS rpccli_svcctl_DeleteService(struct rpc_pipe_client *cli, TALLOC_CTX *me { struct svcctl_DeleteService r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_DeleteService, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_DELETESERVICE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_DeleteService, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -115,34 +115,34 @@ NTSTATUS rpccli_svcctl_LockServiceDatabase(struct rpc_pipe_client *cli, TALLOC_C { struct svcctl_LockServiceDatabase r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_LockServiceDatabase, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_LOCKSERVICEDATABASE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_LockServiceDatabase, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *lock = *r.out.lock; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -150,32 +150,32 @@ NTSTATUS rpccli_svcctl_QueryServiceObjectSecurity(struct rpc_pipe_client *cli, T { struct svcctl_QueryServiceObjectSecurity r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_QueryServiceObjectSecurity, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICEOBJECTSECURITY, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceObjectSecurity, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -183,32 +183,32 @@ NTSTATUS rpccli_svcctl_SetServiceObjectSecurity(struct rpc_pipe_client *cli, TAL { struct svcctl_SetServiceObjectSecurity r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_SetServiceObjectSecurity, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_SETSERVICEOBJECTSECURITY, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_SetServiceObjectSecurity, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -216,34 +216,34 @@ NTSTATUS rpccli_svcctl_QueryServiceStatus(struct rpc_pipe_client *cli, TALLOC_CT { struct svcctl_QueryServiceStatus r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_QueryServiceStatus, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICESTATUS, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceStatus, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *service_status = *r.out.service_status; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -251,32 +251,32 @@ NTSTATUS rpccli_svcctl_SetServiceStatus(struct rpc_pipe_client *cli, TALLOC_CTX { struct svcctl_SetServiceStatus r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_SetServiceStatus, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_SETSERVICESTATUS, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_SetServiceStatus, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -284,34 +284,34 @@ NTSTATUS rpccli_svcctl_UnlockServiceDatabase(struct rpc_pipe_client *cli, TALLOC { struct svcctl_UnlockServiceDatabase r; NTSTATUS status; - + /* In parameters */ r.in.lock = lock; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_UnlockServiceDatabase, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_UNLOCKSERVICEDATABASE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_UnlockServiceDatabase, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *lock = *r.out.lock; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -319,32 +319,32 @@ NTSTATUS rpccli_svcctl_NotifyBootConfigStatus(struct rpc_pipe_client *cli, TALLO { struct svcctl_NotifyBootConfigStatus r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_NotifyBootConfigStatus, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_NOTIFYBOOTCONFIGSTATUS, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_NotifyBootConfigStatus, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -352,36 +352,36 @@ NTSTATUS rpccli_svcctl_SCSetServiceBitsW(struct rpc_pipe_client *cli, TALLOC_CTX { struct svcctl_SCSetServiceBitsW r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.bits = bits; r.in.bitson = bitson; r.in.immediate = immediate; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_SCSetServiceBitsW, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_SCSETSERVICEBITSW, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_SCSetServiceBitsW, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -389,7 +389,7 @@ NTSTATUS rpccli_svcctl_ChangeServiceConfigW(struct rpc_pipe_client *cli, TALLOC_ { struct svcctl_ChangeServiceConfigW r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.type = type; @@ -401,31 +401,31 @@ NTSTATUS rpccli_svcctl_ChangeServiceConfigW(struct rpc_pipe_client *cli, TALLOC_ r.in.service_start_name = service_start_name; r.in.password = password; r.in.display_name = display_name; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_ChangeServiceConfigW, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_CHANGESERVICECONFIGW, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_ChangeServiceConfigW, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *tag_id = *r.out.tag_id; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -433,7 +433,7 @@ NTSTATUS rpccli_svcctl_CreateServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *m { struct svcctl_CreateServiceW r; NTSTATUS status; - + /* In parameters */ r.in.scmanager_handle = scmanager_handle; r.in.ServiceName = ServiceName; @@ -450,34 +450,34 @@ NTSTATUS rpccli_svcctl_CreateServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *m r.in.service_start_name = service_start_name; r.in.password = password; r.in.password_size = password_size; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_CreateServiceW, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_CREATESERVICEW, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_CreateServiceW, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (TagId && r.out.TagId) { *TagId = *r.out.TagId; } *handle = *r.out.handle; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -485,40 +485,40 @@ NTSTATUS rpccli_svcctl_EnumDependentServicesW(struct rpc_pipe_client *cli, TALLO { struct svcctl_EnumDependentServicesW r; NTSTATUS status; - + /* In parameters */ r.in.service = service; r.in.state = state; r.in.buf_size = buf_size; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_EnumDependentServicesW, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_ENUMDEPENDENTSERVICESW, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_EnumDependentServicesW, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (service_status && r.out.service_status) { *service_status = *r.out.service_status; } *bytes_needed = *r.out.bytes_needed; *services_returned = *r.out.services_returned; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -526,30 +526,30 @@ NTSTATUS rpccli_svcctl_EnumServicesStatusW(struct rpc_pipe_client *cli, TALLOC_C { struct svcctl_EnumServicesStatusW r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.type = type; r.in.state = state; r.in.buf_size = buf_size; r.in.resume_handle = resume_handle; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_EnumServicesStatusW, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_ENUMSERVICESSTATUSW, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_EnumServicesStatusW, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ memcpy(service, r.out.service, r.in.buf_size); *bytes_needed = *r.out.bytes_needed; @@ -557,12 +557,12 @@ NTSTATUS rpccli_svcctl_EnumServicesStatusW(struct rpc_pipe_client *cli, TALLOC_C if (resume_handle && r.out.resume_handle) { *resume_handle = *r.out.resume_handle; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -570,36 +570,36 @@ NTSTATUS rpccli_svcctl_OpenSCManagerW(struct rpc_pipe_client *cli, TALLOC_CTX *m { struct svcctl_OpenSCManagerW r; NTSTATUS status; - + /* In parameters */ r.in.MachineName = MachineName; r.in.DatabaseName = DatabaseName; r.in.access_mask = access_mask; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_OpenSCManagerW, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_OPENSCMANAGERW, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_OpenSCManagerW, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *handle = *r.out.handle; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -607,36 +607,36 @@ NTSTATUS rpccli_svcctl_OpenServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *mem { struct svcctl_OpenServiceW r; NTSTATUS status; - + /* In parameters */ r.in.scmanager_handle = scmanager_handle; r.in.ServiceName = ServiceName; r.in.access_mask = access_mask; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_OpenServiceW, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_OPENSERVICEW, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_OpenServiceW, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *handle = *r.out.handle; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -644,36 +644,36 @@ NTSTATUS rpccli_svcctl_QueryServiceConfigW(struct rpc_pipe_client *cli, TALLOC_C { struct svcctl_QueryServiceConfigW r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.buf_size = buf_size; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_QueryServiceConfigW, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICECONFIGW, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceConfigW, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ memcpy(query, r.out.query, r.in.buf_size); *bytes_needed = *r.out.bytes_needed; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -681,36 +681,36 @@ NTSTATUS rpccli_svcctl_QueryServiceLockStatusW(struct rpc_pipe_client *cli, TALL { struct svcctl_QueryServiceLockStatusW r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.buf_size = buf_size; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_QueryServiceLockStatusW, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICELOCKSTATUSW, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceLockStatusW, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *lock_status = *r.out.lock_status; *required_buf_size = *r.out.required_buf_size; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -718,35 +718,35 @@ NTSTATUS rpccli_svcctl_StartServiceW(struct rpc_pipe_client *cli, TALLOC_CTX *me { struct svcctl_StartServiceW r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.NumArgs = NumArgs; r.in.Arguments = Arguments; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_StartServiceW, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_STARTSERVICEW, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_StartServiceW, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -754,39 +754,39 @@ NTSTATUS rpccli_svcctl_GetServiceDisplayNameW(struct rpc_pipe_client *cli, TALLO { struct svcctl_GetServiceDisplayNameW r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.service_name = service_name; r.in.display_name_length = display_name_length; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_GetServiceDisplayNameW, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_GETSERVICEDISPLAYNAMEW, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_GetServiceDisplayNameW, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *display_name = *r.out.display_name; if (display_name_length && r.out.display_name_length) { *display_name_length = *r.out.display_name_length; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -794,39 +794,39 @@ NTSTATUS rpccli_svcctl_GetServiceKeyNameW(struct rpc_pipe_client *cli, TALLOC_CT { struct svcctl_GetServiceKeyNameW r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.service_name = service_name; r.in.display_name_length = display_name_length; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_GetServiceKeyNameW, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_GETSERVICEKEYNAMEW, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_GetServiceKeyNameW, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *key_name = *r.out.key_name; if (display_name_length && r.out.display_name_length) { *display_name_length = *r.out.display_name_length; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -834,36 +834,36 @@ NTSTATUS rpccli_svcctl_SCSetServiceBitsA(struct rpc_pipe_client *cli, TALLOC_CTX { struct svcctl_SCSetServiceBitsA r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.bits = bits; r.in.bitson = bitson; r.in.immediate = immediate; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_SCSetServiceBitsA, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_SCSETSERVICEBITSA, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_SCSetServiceBitsA, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -871,7 +871,7 @@ NTSTATUS rpccli_svcctl_ChangeServiceConfigA(struct rpc_pipe_client *cli, TALLOC_ { struct svcctl_ChangeServiceConfigA r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.type = type; @@ -883,31 +883,31 @@ NTSTATUS rpccli_svcctl_ChangeServiceConfigA(struct rpc_pipe_client *cli, TALLOC_ r.in.service_start_name = service_start_name; r.in.password = password; r.in.display_name = display_name; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_ChangeServiceConfigA, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_CHANGESERVICECONFIGA, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_ChangeServiceConfigA, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *tag_id = *r.out.tag_id; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -915,7 +915,7 @@ NTSTATUS rpccli_svcctl_CreateServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *m { struct svcctl_CreateServiceA r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.ServiceName = ServiceName; @@ -929,33 +929,33 @@ NTSTATUS rpccli_svcctl_CreateServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *m r.in.dependencies = dependencies; r.in.service_start_name = service_start_name; r.in.password = password; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_CreateServiceA, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_CREATESERVICEA, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_CreateServiceA, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (TagId && r.out.TagId) { *TagId = *r.out.TagId; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -963,40 +963,40 @@ NTSTATUS rpccli_svcctl_EnumDependentServicesA(struct rpc_pipe_client *cli, TALLO { struct svcctl_EnumDependentServicesA r; NTSTATUS status; - + /* In parameters */ r.in.service = service; r.in.state = state; r.in.buf_size = buf_size; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_EnumDependentServicesA, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_ENUMDEPENDENTSERVICESA, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_EnumDependentServicesA, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (service_status && r.out.service_status) { *service_status = *r.out.service_status; } *bytes_needed = *r.out.bytes_needed; *services_returned = *r.out.services_returned; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1004,30 +1004,30 @@ NTSTATUS rpccli_svcctl_EnumServicesStatusA(struct rpc_pipe_client *cli, TALLOC_C { struct svcctl_EnumServicesStatusA r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.type = type; r.in.state = state; r.in.buf_size = buf_size; r.in.resume_handle = resume_handle; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_EnumServicesStatusA, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_ENUMSERVICESSTATUSA, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_EnumServicesStatusA, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ memcpy(service, r.out.service, r.in.buf_size); *bytes_needed = *r.out.bytes_needed; @@ -1035,12 +1035,12 @@ NTSTATUS rpccli_svcctl_EnumServicesStatusA(struct rpc_pipe_client *cli, TALLOC_C if (resume_handle && r.out.resume_handle) { *resume_handle = *r.out.resume_handle; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1048,36 +1048,36 @@ NTSTATUS rpccli_svcctl_OpenSCManagerA(struct rpc_pipe_client *cli, TALLOC_CTX *m { struct svcctl_OpenSCManagerA r; NTSTATUS status; - + /* In parameters */ r.in.MachineName = MachineName; r.in.DatabaseName = DatabaseName; r.in.access_mask = access_mask; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_OpenSCManagerA, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_OPENSCMANAGERA, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_OpenSCManagerA, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *handle = *r.out.handle; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1085,35 +1085,35 @@ NTSTATUS rpccli_svcctl_OpenServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *mem { struct svcctl_OpenServiceA r; NTSTATUS status; - + /* In parameters */ r.in.scmanager_handle = scmanager_handle; r.in.ServiceName = ServiceName; r.in.access_mask = access_mask; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_OpenServiceA, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_OPENSERVICEA, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_OpenServiceA, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1121,36 +1121,36 @@ NTSTATUS rpccli_svcctl_QueryServiceConfigA(struct rpc_pipe_client *cli, TALLOC_C { struct svcctl_QueryServiceConfigA r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.buf_size = buf_size; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_QueryServiceConfigA, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICECONFIGA, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceConfigA, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ memcpy(query, r.out.query, r.in.buf_size); *bytes_needed = *r.out.bytes_needed; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1158,36 +1158,36 @@ NTSTATUS rpccli_svcctl_QueryServiceLockStatusA(struct rpc_pipe_client *cli, TALL { struct svcctl_QueryServiceLockStatusA r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.buf_size = buf_size; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_QueryServiceLockStatusA, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICELOCKSTATUSA, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceLockStatusA, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *lock_status = *r.out.lock_status; *required_buf_size = *r.out.required_buf_size; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1195,35 +1195,35 @@ NTSTATUS rpccli_svcctl_StartServiceA(struct rpc_pipe_client *cli, TALLOC_CTX *me { struct svcctl_StartServiceA r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.NumArgs = NumArgs; r.in.Arguments = Arguments; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_StartServiceA, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_STARTSERVICEA, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_StartServiceA, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1231,39 +1231,39 @@ NTSTATUS rpccli_svcctl_GetServiceDisplayNameA(struct rpc_pipe_client *cli, TALLO { struct svcctl_GetServiceDisplayNameA r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.service_name = service_name; r.in.display_name_length = display_name_length; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_GetServiceDisplayNameA, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_GETSERVICEDISPLAYNAMEA, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_GetServiceDisplayNameA, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *display_name = *r.out.display_name; if (display_name_length && r.out.display_name_length) { *display_name_length = *r.out.display_name_length; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1271,39 +1271,39 @@ NTSTATUS rpccli_svcctl_GetServiceKeyNameA(struct rpc_pipe_client *cli, TALLOC_CT { struct svcctl_GetServiceKeyNameA r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.service_name = service_name; r.in.display_name_length = display_name_length; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_GetServiceKeyNameA, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_GETSERVICEKEYNAMEA, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_GetServiceKeyNameA, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *key_name = *r.out.key_name; if (display_name_length && r.out.display_name_length) { *display_name_length = *r.out.display_name_length; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1311,32 +1311,32 @@ NTSTATUS rpccli_svcctl_GetCurrentGroupeStateW(struct rpc_pipe_client *cli, TALLO { struct svcctl_GetCurrentGroupeStateW r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_GetCurrentGroupeStateW, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_GETCURRENTGROUPESTATEW, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_GetCurrentGroupeStateW, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1344,32 +1344,32 @@ NTSTATUS rpccli_svcctl_EnumServiceGroupW(struct rpc_pipe_client *cli, TALLOC_CTX { struct svcctl_EnumServiceGroupW r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_EnumServiceGroupW, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_ENUMSERVICEGROUPW, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_EnumServiceGroupW, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1377,35 +1377,35 @@ NTSTATUS rpccli_svcctl_ChangeServiceConfig2A(struct rpc_pipe_client *cli, TALLOC { struct svcctl_ChangeServiceConfig2A r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.info_level = info_level; r.in.info = info; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_ChangeServiceConfig2A, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_CHANGESERVICECONFIG2A, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_ChangeServiceConfig2A, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1413,35 +1413,35 @@ NTSTATUS rpccli_svcctl_ChangeServiceConfig2W(struct rpc_pipe_client *cli, TALLOC { struct svcctl_ChangeServiceConfig2W r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.info_level = info_level; r.in.info = info; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_ChangeServiceConfig2W, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_CHANGESERVICECONFIG2W, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_ChangeServiceConfig2W, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1449,37 +1449,37 @@ NTSTATUS rpccli_svcctl_QueryServiceConfig2A(struct rpc_pipe_client *cli, TALLOC_ { struct svcctl_QueryServiceConfig2A r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.info_level = info_level; r.in.buf_size = buf_size; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_QueryServiceConfig2A, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICECONFIG2A, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceConfig2A, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ memcpy(buffer, r.out.buffer, r.in.buf_size); *bytes_needed = *r.out.bytes_needed; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1487,37 +1487,37 @@ NTSTATUS rpccli_svcctl_QueryServiceConfig2W(struct rpc_pipe_client *cli, TALLOC_ { struct svcctl_QueryServiceConfig2W r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.info_level = info_level; r.in.buf_size = buf_size; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_QueryServiceConfig2W, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICECONFIG2W, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceConfig2W, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ memcpy(buffer, r.out.buffer, r.in.buf_size); *bytes_needed = *r.out.bytes_needed; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1525,37 +1525,37 @@ NTSTATUS rpccli_svcctl_QueryServiceStatusEx(struct rpc_pipe_client *cli, TALLOC_ { struct svcctl_QueryServiceStatusEx r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.info_level = info_level; r.in.buf_size = buf_size; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_QueryServiceStatusEx, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_QUERYSERVICESTATUSEX, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_QueryServiceStatusEx, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ memcpy(buffer, r.out.buffer, r.in.buf_size); *bytes_needed = *r.out.bytes_needed; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1563,7 +1563,7 @@ NTSTATUS rpccli_EnumServicesStatusExA(struct rpc_pipe_client *cli, TALLOC_CTX *m { struct EnumServicesStatusExA r; NTSTATUS status; - + /* In parameters */ r.in.scmanager = scmanager; r.in.info_level = info_level; @@ -1571,23 +1571,23 @@ NTSTATUS rpccli_EnumServicesStatusExA(struct rpc_pipe_client *cli, TALLOC_CTX *m r.in.state = state; r.in.buf_size = buf_size; r.in.resume_handle = resume_handle; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(EnumServicesStatusExA, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_ENUMSERVICESSTATUSEXA, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(EnumServicesStatusExA, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ memcpy(services, r.out.services, r.in.buf_size); *bytes_needed = *r.out.bytes_needed; @@ -1596,12 +1596,12 @@ NTSTATUS rpccli_EnumServicesStatusExA(struct rpc_pipe_client *cli, TALLOC_CTX *m *resume_handle = *r.out.resume_handle; } *group_name = *r.out.group_name; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1609,7 +1609,7 @@ NTSTATUS rpccli_EnumServicesStatusExW(struct rpc_pipe_client *cli, TALLOC_CTX *m { struct EnumServicesStatusExW r; NTSTATUS status; - + /* In parameters */ r.in.scmanager = scmanager; r.in.info_level = info_level; @@ -1617,23 +1617,23 @@ NTSTATUS rpccli_EnumServicesStatusExW(struct rpc_pipe_client *cli, TALLOC_CTX *m r.in.state = state; r.in.buf_size = buf_size; r.in.resume_handle = resume_handle; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(EnumServicesStatusExW, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_ENUMSERVICESSTATUSEXW, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(EnumServicesStatusExW, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ memcpy(services, r.out.services, r.in.buf_size); *bytes_needed = *r.out.bytes_needed; @@ -1642,12 +1642,12 @@ NTSTATUS rpccli_EnumServicesStatusExW(struct rpc_pipe_client *cli, TALLOC_CTX *m *resume_handle = *r.out.resume_handle; } *group_name = *r.out.group_name; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1655,32 +1655,32 @@ NTSTATUS rpccli_svcctl_SCSendTSMessage(struct rpc_pipe_client *cli, TALLOC_CTX * { struct svcctl_SCSendTSMessage r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(svcctl_SCSendTSMessage, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_SVCCTL, &ndr_table_svcctl, NDR_SVCCTL_SCSENDTSMESSAGE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(svcctl_SCSendTSMessage, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } diff --git a/source3/librpc/gen_ndr/cli_unixinfo.c b/source3/librpc/gen_ndr/cli_unixinfo.c index 4a48ac2c43..c8b9a01f3d 100644 --- a/source3/librpc/gen_ndr/cli_unixinfo.c +++ b/source3/librpc/gen_ndr/cli_unixinfo.c @@ -10,29 +10,29 @@ NTSTATUS rpccli_unixinfo_SidToUid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c { struct unixinfo_SidToUid r; NTSTATUS status; - + /* In parameters */ r.in.sid = sid; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(unixinfo_SidToUid, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, &ndr_table_unixinfo, NDR_UNIXINFO_SIDTOUID, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(unixinfo_SidToUid, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *uid = *r.out.uid; - + /* Return result */ return r.out.result; } @@ -41,29 +41,29 @@ NTSTATUS rpccli_unixinfo_UidToSid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c { struct unixinfo_UidToSid r; NTSTATUS status; - + /* In parameters */ r.in.uid = uid; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(unixinfo_UidToSid, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, &ndr_table_unixinfo, NDR_UNIXINFO_UIDTOSID, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(unixinfo_UidToSid, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *sid = *r.out.sid; - + /* Return result */ return r.out.result; } @@ -72,29 +72,29 @@ NTSTATUS rpccli_unixinfo_SidToGid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c { struct unixinfo_SidToGid r; NTSTATUS status; - + /* In parameters */ r.in.sid = sid; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(unixinfo_SidToGid, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, &ndr_table_unixinfo, NDR_UNIXINFO_SIDTOGID, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(unixinfo_SidToGid, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *gid = *r.out.gid; - + /* Return result */ return r.out.result; } @@ -103,29 +103,29 @@ NTSTATUS rpccli_unixinfo_GidToSid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c { struct unixinfo_GidToSid r; NTSTATUS status; - + /* In parameters */ r.in.gid = gid; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(unixinfo_GidToSid, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, &ndr_table_unixinfo, NDR_UNIXINFO_GIDTOSID, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(unixinfo_GidToSid, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *sid = *r.out.sid; - + /* Return result */ return r.out.result; } @@ -134,31 +134,31 @@ NTSTATUS rpccli_unixinfo_GetPWUid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c { struct unixinfo_GetPWUid r; NTSTATUS status; - + /* In parameters */ r.in.count = count; r.in.uids = uids; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(unixinfo_GetPWUid, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_UNIXINFO, &ndr_table_unixinfo, NDR_UNIXINFO_GETPWUID, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(unixinfo_GetPWUid, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *count = *r.out.count; memcpy(infos, r.out.infos, *r.in.count); - + /* Return result */ return r.out.result; } diff --git a/source3/librpc/gen_ndr/cli_winreg.c b/source3/librpc/gen_ndr/cli_winreg.c index d89f306b17..934dfc17b6 100644 --- a/source3/librpc/gen_ndr/cli_winreg.c +++ b/source3/librpc/gen_ndr/cli_winreg.c @@ -10,35 +10,35 @@ NTSTATUS rpccli_winreg_OpenHKCR(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx { struct winreg_OpenHKCR r; NTSTATUS status; - + /* In parameters */ r.in.system_name = system_name; r.in.access_mask = access_mask; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_OpenHKCR, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKCR, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_OpenHKCR, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *handle = *r.out.handle; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -46,35 +46,35 @@ NTSTATUS rpccli_winreg_OpenHKCU(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx { struct winreg_OpenHKCU r; NTSTATUS status; - + /* In parameters */ r.in.system_name = system_name; r.in.access_mask = access_mask; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_OpenHKCU, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKCU, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_OpenHKCU, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *handle = *r.out.handle; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -82,35 +82,35 @@ NTSTATUS rpccli_winreg_OpenHKLM(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx { struct winreg_OpenHKLM r; NTSTATUS status; - + /* In parameters */ r.in.system_name = system_name; r.in.access_mask = access_mask; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_OpenHKLM, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKLM, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_OpenHKLM, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *handle = *r.out.handle; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -118,35 +118,35 @@ NTSTATUS rpccli_winreg_OpenHKPD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx { struct winreg_OpenHKPD r; NTSTATUS status; - + /* In parameters */ r.in.system_name = system_name; r.in.access_mask = access_mask; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_OpenHKPD, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKPD, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_OpenHKPD, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *handle = *r.out.handle; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -154,35 +154,35 @@ NTSTATUS rpccli_winreg_OpenHKU(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, { struct winreg_OpenHKU r; NTSTATUS status; - + /* In parameters */ r.in.system_name = system_name; r.in.access_mask = access_mask; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_OpenHKU, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKU, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_OpenHKU, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *handle = *r.out.handle; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -190,34 +190,34 @@ NTSTATUS rpccli_winreg_CloseKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx { struct winreg_CloseKey r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_CloseKey, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_CLOSEKEY, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_CloseKey, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *handle = *r.out.handle; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -225,7 +225,7 @@ NTSTATUS rpccli_winreg_CreateKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct { struct winreg_CreateKey r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.name = name; @@ -234,34 +234,34 @@ NTSTATUS rpccli_winreg_CreateKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct r.in.access_mask = access_mask; r.in.secdesc = secdesc; r.in.action_taken = action_taken; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_CreateKey, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_CREATEKEY, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_CreateKey, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *new_handle = *r.out.new_handle; if (action_taken && r.out.action_taken) { *action_taken = *r.out.action_taken; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -269,34 +269,34 @@ NTSTATUS rpccli_winreg_DeleteKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct { struct winreg_DeleteKey r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.key = key; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_DeleteKey, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_DELETEKEY, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_DeleteKey, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -304,34 +304,34 @@ NTSTATUS rpccli_winreg_DeleteValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ { struct winreg_DeleteValue r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.value = value; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_DeleteValue, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_DELETEVALUE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_DeleteValue, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -339,30 +339,30 @@ NTSTATUS rpccli_winreg_EnumKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, { struct winreg_EnumKey r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.enum_index = enum_index; r.in.name = name; r.in.keyclass = keyclass; r.in.last_changed_time = last_changed_time; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_EnumKey, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_ENUMKEY, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_EnumKey, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *name = *r.out.name; if (keyclass && r.out.keyclass) { @@ -371,12 +371,12 @@ NTSTATUS rpccli_winreg_EnumKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, if (last_changed_time && r.out.last_changed_time) { *last_changed_time = *r.out.last_changed_time; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -384,7 +384,7 @@ NTSTATUS rpccli_winreg_EnumValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct { struct winreg_EnumValue r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.enum_index = enum_index; @@ -393,23 +393,23 @@ NTSTATUS rpccli_winreg_EnumValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct r.in.value = value; r.in.size = size; r.in.length = length; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_EnumValue, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_ENUMVALUE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_EnumValue, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *name = *r.out.name; if (type && r.out.type) { @@ -424,12 +424,12 @@ NTSTATUS rpccli_winreg_EnumValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct if (length && r.out.length) { *length = *r.out.length; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -437,33 +437,33 @@ NTSTATUS rpccli_winreg_FlushKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx { struct winreg_FlushKey r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_FlushKey, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_FLUSHKEY, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_FlushKey, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -471,36 +471,36 @@ NTSTATUS rpccli_winreg_GetKeySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *m { struct winreg_GetKeySecurity r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.sec_info = sec_info; r.in.sd = sd; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_GetKeySecurity, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_GETKEYSECURITY, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_GetKeySecurity, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *sd = *r.out.sd; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -508,35 +508,35 @@ NTSTATUS rpccli_winreg_LoadKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, { struct winreg_LoadKey r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.keyname = keyname; r.in.filename = filename; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_LoadKey, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_LOADKEY, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_LoadKey, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -544,7 +544,7 @@ NTSTATUS rpccli_winreg_NotifyChangeKeyValue(struct rpc_pipe_client *cli, TALLOC_ { struct winreg_NotifyChangeKeyValue r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.watch_subtree = watch_subtree; @@ -553,30 +553,30 @@ NTSTATUS rpccli_winreg_NotifyChangeKeyValue(struct rpc_pipe_client *cli, TALLOC_ r.in.string1 = string1; r.in.string2 = string2; r.in.unknown2 = unknown2; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_NotifyChangeKeyValue, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_NOTIFYCHANGEKEYVALUE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_NotifyChangeKeyValue, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -584,37 +584,37 @@ NTSTATUS rpccli_winreg_OpenKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, { struct winreg_OpenKey r; NTSTATUS status; - + /* In parameters */ r.in.parent_handle = parent_handle; r.in.keyname = keyname; r.in.unknown = unknown; r.in.access_mask = access_mask; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_OpenKey, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENKEY, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_OpenKey, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *handle = *r.out.handle; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -622,27 +622,27 @@ NTSTATUS rpccli_winreg_QueryInfoKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem { struct winreg_QueryInfoKey r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.classname = classname; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_QueryInfoKey, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_QUERYINFOKEY, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_QueryInfoKey, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *classname = *r.out.classname; *num_subkeys = *r.out.num_subkeys; @@ -653,12 +653,12 @@ NTSTATUS rpccli_winreg_QueryInfoKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem *max_valbufsize = *r.out.max_valbufsize; *secdescsize = *r.out.secdescsize; *last_changed_time = *r.out.last_changed_time; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -666,7 +666,7 @@ NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c { struct winreg_QueryValue r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.value_name = value_name; @@ -674,23 +674,23 @@ NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c r.in.data = data; r.in.data_size = data_size; r.in.value_length = value_length; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_QueryValue, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_QUERYVALUE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_QueryValue, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (type && r.out.type) { *type = *r.out.type; @@ -704,12 +704,12 @@ NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c if (value_length && r.out.value_length) { *value_length = *r.out.value_length; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -717,32 +717,32 @@ NTSTATUS rpccli_winreg_ReplaceKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c { struct winreg_ReplaceKey r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_ReplaceKey, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_REPLACEKEY, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_ReplaceKey, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -750,35 +750,35 @@ NTSTATUS rpccli_winreg_RestoreKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c { struct winreg_RestoreKey r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.filename = filename; r.in.flags = flags; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_RestoreKey, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_RESTOREKEY, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_RestoreKey, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -786,35 +786,35 @@ NTSTATUS rpccli_winreg_SaveKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, { struct winreg_SaveKey r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.filename = filename; r.in.sec_attrib = sec_attrib; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_SaveKey, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_SAVEKEY, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_SaveKey, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -822,35 +822,35 @@ NTSTATUS rpccli_winreg_SetKeySecurity(struct rpc_pipe_client *cli, TALLOC_CTX *m { struct winreg_SetKeySecurity r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.access_mask = access_mask; r.in.sd = sd; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_SetKeySecurity, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_SETKEYSECURITY, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_SetKeySecurity, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -858,37 +858,37 @@ NTSTATUS rpccli_winreg_SetValue(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx { struct winreg_SetValue r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; r.in.name = name; r.in.type = type; r.in.data = data; r.in.size = size; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_SetValue, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_SETVALUE, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_SetValue, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -896,32 +896,32 @@ NTSTATUS rpccli_winreg_UnLoadKey(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct { struct winreg_UnLoadKey r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_UnLoadKey, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_UNLOADKEY, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_UnLoadKey, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -929,37 +929,37 @@ NTSTATUS rpccli_winreg_InitiateSystemShutdown(struct rpc_pipe_client *cli, TALLO { struct winreg_InitiateSystemShutdown r; NTSTATUS status; - + /* In parameters */ r.in.hostname = hostname; r.in.message = message; r.in.timeout = timeout; r.in.force_apps = force_apps; r.in.reboot = reboot; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_InitiateSystemShutdown, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_INITIATESYSTEMSHUTDOWN, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_InitiateSystemShutdown, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -967,33 +967,33 @@ NTSTATUS rpccli_winreg_AbortSystemShutdown(struct rpc_pipe_client *cli, TALLOC_C { struct winreg_AbortSystemShutdown r; NTSTATUS status; - + /* In parameters */ r.in.server = server; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_AbortSystemShutdown, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_ABORTSYSTEMSHUTDOWN, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_AbortSystemShutdown, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1001,34 +1001,34 @@ NTSTATUS rpccli_winreg_GetVersion(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c { struct winreg_GetVersion r; NTSTATUS status; - + /* In parameters */ r.in.handle = handle; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_GetVersion, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_GETVERSION, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_GetVersion, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *version = *r.out.version; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1036,35 +1036,35 @@ NTSTATUS rpccli_winreg_OpenHKCC(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx { struct winreg_OpenHKCC r; NTSTATUS status; - + /* In parameters */ r.in.system_name = system_name; r.in.access_mask = access_mask; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_OpenHKCC, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKCC, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_OpenHKCC, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *handle = *r.out.handle; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1072,35 +1072,35 @@ NTSTATUS rpccli_winreg_OpenHKDD(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx { struct winreg_OpenHKDD r; NTSTATUS status; - + /* In parameters */ r.in.system_name = system_name; r.in.access_mask = access_mask; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_OpenHKDD, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKDD, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_OpenHKDD, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *handle = *r.out.handle; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1108,42 +1108,42 @@ NTSTATUS rpccli_winreg_QueryMultipleValues(struct rpc_pipe_client *cli, TALLOC_C { struct winreg_QueryMultipleValues r; NTSTATUS status; - + /* In parameters */ r.in.key_handle = key_handle; r.in.values = values; r.in.num_values = num_values; r.in.buffer = buffer; r.in.buffer_size = buffer_size; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_QueryMultipleValues, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_QUERYMULTIPLEVALUES, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_QueryMultipleValues, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ memcpy(values, r.out.values, r.in.num_values); if (buffer && r.out.buffer) { memcpy(buffer, r.out.buffer, *r.in.buffer_size); } *buffer_size = *r.out.buffer_size; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1151,7 +1151,7 @@ NTSTATUS rpccli_winreg_InitiateSystemShutdownEx(struct rpc_pipe_client *cli, TAL { struct winreg_InitiateSystemShutdownEx r; NTSTATUS status; - + /* In parameters */ r.in.hostname = hostname; r.in.message = message; @@ -1159,30 +1159,30 @@ NTSTATUS rpccli_winreg_InitiateSystemShutdownEx(struct rpc_pipe_client *cli, TAL r.in.force_apps = force_apps; r.in.reboot = reboot; r.in.reason = reason; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_InitiateSystemShutdownEx, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_INITIATESYSTEMSHUTDOWNEX, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_InitiateSystemShutdownEx, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1190,32 +1190,32 @@ NTSTATUS rpccli_winreg_SaveKeyEx(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ct { struct winreg_SaveKeyEx r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_SaveKeyEx, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_SAVEKEYEX, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_SaveKeyEx, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1223,35 +1223,35 @@ NTSTATUS rpccli_winreg_OpenHKPT(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx { struct winreg_OpenHKPT r; NTSTATUS status; - + /* In parameters */ r.in.system_name = system_name; r.in.access_mask = access_mask; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_OpenHKPT, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKPT, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_OpenHKPT, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *handle = *r.out.handle; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1259,35 +1259,35 @@ NTSTATUS rpccli_winreg_OpenHKPN(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx { struct winreg_OpenHKPN r; NTSTATUS status; - + /* In parameters */ r.in.system_name = system_name; r.in.access_mask = access_mask; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_OpenHKPN, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_OPENHKPN, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_OpenHKPN, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *handle = *r.out.handle; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1295,32 +1295,32 @@ NTSTATUS rpccli_winreg_QueryMultipleValues2(struct rpc_pipe_client *cli, TALLOC_ { struct winreg_QueryMultipleValues2 r; NTSTATUS status; - + /* In parameters */ - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(winreg_QueryMultipleValues2, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WINREG, &ndr_table_winreg, NDR_WINREG_QUERYMULTIPLEVALUES2, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(winreg_QueryMultipleValues2, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } diff --git a/source3/librpc/gen_ndr/cli_wkssvc.c b/source3/librpc/gen_ndr/cli_wkssvc.c index fbdc93ed2a..f0a35c701c 100644 --- a/source3/librpc/gen_ndr/cli_wkssvc.c +++ b/source3/librpc/gen_ndr/cli_wkssvc.c @@ -10,35 +10,35 @@ NTSTATUS rpccli_wkssvc_NetWkstaGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX * { struct wkssvc_NetWkstaGetInfo r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.level = level; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaGetInfo, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETWKSTAGETINFO, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaGetInfo, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *info = *r.out.info; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -46,37 +46,37 @@ NTSTATUS rpccli_wkssvc_NetWkstaSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX * { struct wkssvc_NetWkstaSetInfo r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.level = level; r.in.info = info; r.in.parm_error = parm_error; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaSetInfo, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETWKSTASETINFO, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaSetInfo, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *parm_error = *r.out.parm_error; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -84,41 +84,41 @@ NTSTATUS rpccli_wkssvc_NetWkstaEnumUsers(struct rpc_pipe_client *cli, TALLOC_CTX { struct wkssvc_NetWkstaEnumUsers r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.info = info; r.in.prefmaxlen = prefmaxlen; r.in.resume_handle = resume_handle; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaEnumUsers, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETWKSTAENUMUSERS, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaEnumUsers, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *info = *r.out.info; *entries_read = *r.out.entries_read; if (resume_handle && r.out.resume_handle) { *resume_handle = *r.out.resume_handle; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -126,35 +126,35 @@ NTSTATUS rpccli_wkssvc_NetrWkstaUserGetInfo(struct rpc_pipe_client *cli, TALLOC_ { struct wkssvc_NetrWkstaUserGetInfo r; NTSTATUS status; - + /* In parameters */ r.in.unknown = unknown; r.in.level = level; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrWkstaUserGetInfo, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRWKSTAUSERGETINFO, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrWkstaUserGetInfo, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *info = *r.out.info; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -162,39 +162,39 @@ NTSTATUS rpccli_wkssvc_NetrWkstaUserSetInfo(struct rpc_pipe_client *cli, TALLOC_ { struct wkssvc_NetrWkstaUserSetInfo r; NTSTATUS status; - + /* In parameters */ r.in.unknown = unknown; r.in.level = level; r.in.info = info; r.in.parm_err = parm_err; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrWkstaUserSetInfo, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRWKSTAUSERSETINFO, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrWkstaUserSetInfo, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (parm_err && r.out.parm_err) { *parm_err = *r.out.parm_err; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -202,41 +202,41 @@ NTSTATUS rpccli_wkssvc_NetWkstaTransportEnum(struct rpc_pipe_client *cli, TALLOC { struct wkssvc_NetWkstaTransportEnum r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.info = info; r.in.max_buffer = max_buffer; r.in.resume_handle = resume_handle; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaTransportEnum, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETWKSTATRANSPORTENUM, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetWkstaTransportEnum, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *info = *r.out.info; *total_entries = *r.out.total_entries; if (resume_handle && r.out.resume_handle) { *resume_handle = *r.out.resume_handle; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -244,39 +244,39 @@ NTSTATUS rpccli_wkssvc_NetrWkstaTransportAdd(struct rpc_pipe_client *cli, TALLOC { struct wkssvc_NetrWkstaTransportAdd r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.level = level; r.in.info0 = info0; r.in.parm_err = parm_err; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrWkstaTransportAdd, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRWKSTATRANSPORTADD, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrWkstaTransportAdd, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (parm_err && r.out.parm_err) { *parm_err = *r.out.parm_err; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -284,35 +284,35 @@ NTSTATUS rpccli_wkssvc_NetrWkstaTransportDel(struct rpc_pipe_client *cli, TALLOC { struct wkssvc_NetrWkstaTransportDel r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.transport_name = transport_name; r.in.unknown3 = unknown3; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrWkstaTransportDel, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRWKSTATRANSPORTDEL, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrWkstaTransportDel, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -320,39 +320,39 @@ NTSTATUS rpccli_wkssvc_NetrUseAdd(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c { struct wkssvc_NetrUseAdd r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.level = level; r.in.ctr = ctr; r.in.parm_err = parm_err; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrUseAdd, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRUSEADD, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrUseAdd, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ if (parm_err && r.out.parm_err) { *parm_err = *r.out.parm_err; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -360,36 +360,36 @@ NTSTATUS rpccli_wkssvc_NetrUseGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX *m { struct wkssvc_NetrUseGetInfo r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.use_name = use_name; r.in.level = level; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrUseGetInfo, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRUSEGETINFO, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrUseGetInfo, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *ctr = *r.out.ctr; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -397,35 +397,35 @@ NTSTATUS rpccli_wkssvc_NetrUseDel(struct rpc_pipe_client *cli, TALLOC_CTX *mem_c { struct wkssvc_NetrUseDel r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.use_name = use_name; r.in.force_cond = force_cond; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrUseDel, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRUSEDEL, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrUseDel, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -433,41 +433,41 @@ NTSTATUS rpccli_wkssvc_NetrUseEnum(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ { struct wkssvc_NetrUseEnum r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.info = info; r.in.prefmaxlen = prefmaxlen; r.in.resume_handle = resume_handle; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrUseEnum, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRUSEENUM, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrUseEnum, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *info = *r.out.info; *entries_read = *r.out.entries_read; if (resume_handle && r.out.resume_handle) { *resume_handle = *r.out.resume_handle; } - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -475,37 +475,37 @@ NTSTATUS rpccli_wkssvc_NetrMessageBufferSend(struct rpc_pipe_client *cli, TALLOC { struct wkssvc_NetrMessageBufferSend r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.message_name = message_name; r.in.message_sender_name = message_sender_name; r.in.message_buffer = message_buffer; r.in.message_size = message_size; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrMessageBufferSend, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRMESSAGEBUFFERSEND, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrMessageBufferSend, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -513,37 +513,37 @@ NTSTATUS rpccli_wkssvc_NetrWorkstationStatisticsGet(struct rpc_pipe_client *cli, { struct wkssvc_NetrWorkstationStatisticsGet r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.unknown2 = unknown2; r.in.unknown3 = unknown3; r.in.unknown4 = unknown4; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrWorkstationStatisticsGet, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRWORKSTATIONSTATISTICSGET, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrWorkstationStatisticsGet, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *info = *r.out.info; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -551,33 +551,33 @@ NTSTATUS rpccli_wkssvc_NetrLogonDomainNameAdd(struct rpc_pipe_client *cli, TALLO { struct wkssvc_NetrLogonDomainNameAdd r; NTSTATUS status; - + /* In parameters */ r.in.domain_name = domain_name; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrLogonDomainNameAdd, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRLOGONDOMAINNAMEADD, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrLogonDomainNameAdd, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -585,33 +585,33 @@ NTSTATUS rpccli_wkssvc_NetrLogonDomainNameDel(struct rpc_pipe_client *cli, TALLO { struct wkssvc_NetrLogonDomainNameDel r; NTSTATUS status; - + /* In parameters */ r.in.domain_name = domain_name; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrLogonDomainNameDel, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRLOGONDOMAINNAMEDEL, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrLogonDomainNameDel, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -619,7 +619,7 @@ NTSTATUS rpccli_wkssvc_NetrJoinDomain(struct rpc_pipe_client *cli, TALLOC_CTX *m { struct wkssvc_NetrJoinDomain r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.domain_name = domain_name; @@ -627,30 +627,30 @@ NTSTATUS rpccli_wkssvc_NetrJoinDomain(struct rpc_pipe_client *cli, TALLOC_CTX *m r.in.Account = Account; r.in.password = password; r.in.join_flags = join_flags; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrJoinDomain, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRJOINDOMAIN, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrJoinDomain, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -658,36 +658,36 @@ NTSTATUS rpccli_wkssvc_NetrUnjoinDomain(struct rpc_pipe_client *cli, TALLOC_CTX { struct wkssvc_NetrUnjoinDomain r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.Account = Account; r.in.password = password; r.in.unjoin_flags = unjoin_flags; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrUnjoinDomain, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRUNJOINDOMAIN, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrUnjoinDomain, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -695,37 +695,37 @@ NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain(struct rpc_pipe_client *cli, TA { struct wkssvc_NetrRenameMachineInDomain r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.NewMachineName = NewMachineName; r.in.Account = Account; r.in.password = password; r.in.RenameOptions = RenameOptions; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrRenameMachineInDomain, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRRENAMEMACHINEINDOMAIN, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrRenameMachineInDomain, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -733,37 +733,37 @@ NTSTATUS rpccli_wkssvc_NetrValidateName(struct rpc_pipe_client *cli, TALLOC_CTX { struct wkssvc_NetrValidateName r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.name = name; r.in.Account = Account; r.in.Password = Password; r.in.name_type = name_type; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrValidateName, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRVALIDATENAME, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrValidateName, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -771,36 +771,36 @@ NTSTATUS rpccli_wkssvc_NetrGetJoinInformation(struct rpc_pipe_client *cli, TALLO { struct wkssvc_NetrGetJoinInformation r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.name_buffer = name_buffer; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrGetJoinInformation, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRGETJOININFORMATION, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrGetJoinInformation, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *name_buffer = *r.out.name_buffer; *name_type = *r.out.name_type; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -808,39 +808,39 @@ NTSTATUS rpccli_wkssvc_NetrGetJoinableOus(struct rpc_pipe_client *cli, TALLOC_CT { struct wkssvc_NetrGetJoinableOus r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.domain_name = domain_name; r.in.Account = Account; r.in.unknown = unknown; r.in.num_ous = num_ous; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrGetJoinableOus, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRGETJOINABLEOUS, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrGetJoinableOus, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *num_ous = *r.out.num_ous; memcpy(ous, r.out.ous, *r.in.num_ous); - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -848,7 +848,7 @@ NTSTATUS rpccli_wkssvc_NetrJoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX * { struct wkssvc_NetrJoinDomain2 r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.domain_name = domain_name; @@ -856,30 +856,30 @@ NTSTATUS rpccli_wkssvc_NetrJoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX * r.in.admin_account = admin_account; r.in.encrypted_password = encrypted_password; r.in.join_flags = join_flags; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrJoinDomain2, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRJOINDOMAIN2, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrJoinDomain2, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -887,36 +887,36 @@ NTSTATUS rpccli_wkssvc_NetrUnjoinDomain2(struct rpc_pipe_client *cli, TALLOC_CTX { struct wkssvc_NetrUnjoinDomain2 r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.account = account; r.in.encrypted_password = encrypted_password; r.in.unjoin_flags = unjoin_flags; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrUnjoinDomain2, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRUNJOINDOMAIN2, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrUnjoinDomain2, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -924,37 +924,37 @@ NTSTATUS rpccli_wkssvc_NetrRenameMachineInDomain2(struct rpc_pipe_client *cli, T { struct wkssvc_NetrRenameMachineInDomain2 r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.NewMachineName = NewMachineName; r.in.Account = Account; r.in.EncryptedPassword = EncryptedPassword; r.in.RenameOptions = RenameOptions; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrRenameMachineInDomain2, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRRENAMEMACHINEINDOMAIN2, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrRenameMachineInDomain2, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -962,37 +962,37 @@ NTSTATUS rpccli_wkssvc_NetrValidateName2(struct rpc_pipe_client *cli, TALLOC_CTX { struct wkssvc_NetrValidateName2 r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.name = name; r.in.Account = Account; r.in.EncryptedPassword = EncryptedPassword; r.in.name_type = name_type; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrValidateName2, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRVALIDATENAME2, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrValidateName2, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1000,39 +1000,39 @@ NTSTATUS rpccli_wkssvc_NetrGetJoinableOus2(struct rpc_pipe_client *cli, TALLOC_C { struct wkssvc_NetrGetJoinableOus2 r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.domain_name = domain_name; r.in.Account = Account; r.in.EncryptedPassword = EncryptedPassword; r.in.num_ous = num_ous; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrGetJoinableOus2, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRGETJOINABLEOUS2, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrGetJoinableOus2, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *num_ous = *r.out.num_ous; memcpy(ous, r.out.ous, *r.in.num_ous); - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1040,37 +1040,37 @@ NTSTATUS rpccli_wkssvc_NetrAddAlternateComputerName(struct rpc_pipe_client *cli, { struct wkssvc_NetrAddAlternateComputerName r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.NewAlternateMachineName = NewAlternateMachineName; r.in.Account = Account; r.in.EncryptedPassword = EncryptedPassword; r.in.Reserved = Reserved; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrAddAlternateComputerName, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRADDALTERNATECOMPUTERNAME, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrAddAlternateComputerName, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1078,37 +1078,37 @@ NTSTATUS rpccli_wkssvc_NetrRemoveAlternateComputerName(struct rpc_pipe_client *c { struct wkssvc_NetrRemoveAlternateComputerName r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.AlternateMachineNameToRemove = AlternateMachineNameToRemove; r.in.Account = Account; r.in.EncryptedPassword = EncryptedPassword; r.in.Reserved = Reserved; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrRemoveAlternateComputerName, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRREMOVEALTERNATECOMPUTERNAME, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrRemoveAlternateComputerName, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1116,37 +1116,37 @@ NTSTATUS rpccli_wkssvc_NetrSetPrimaryComputername(struct rpc_pipe_client *cli, T { struct wkssvc_NetrSetPrimaryComputername r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.primary_name = primary_name; r.in.Account = Account; r.in.EncryptedPassword = EncryptedPassword; r.in.Reserved = Reserved; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrSetPrimaryComputername, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRSETPRIMARYCOMPUTERNAME, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrSetPrimaryComputername, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } @@ -1154,36 +1154,36 @@ NTSTATUS rpccli_wkssvc_NetrEnumerateComputerNames(struct rpc_pipe_client *cli, T { struct wkssvc_NetrEnumerateComputerNames r; NTSTATUS status; - + /* In parameters */ r.in.server_name = server_name; r.in.name_type = name_type; r.in.Reserved = Reserved; - + if (DEBUGLEVEL >= 10) NDR_PRINT_IN_DEBUG(wkssvc_NetrEnumerateComputerNames, &r); - + status = cli_do_rpc_ndr(cli, mem_ctx, PI_WKSSVC, &ndr_table_wkssvc, NDR_WKSSVC_NETRENUMERATECOMPUTERNAMES, &r); - + if (!NT_STATUS_IS_OK(status)) { return status; } - + if (DEBUGLEVEL >= 10) NDR_PRINT_OUT_DEBUG(wkssvc_NetrEnumerateComputerNames, &r); - + if (NT_STATUS_IS_ERR(status)) { return status; } - + /* Return variables */ *ctr = *r.out.ctr; - + /* Return result */ if (werror) { *werror = r.out.result; } - + return werror_to_ntstatus(r.out.result); } |