summaryrefslogtreecommitdiff
path: root/source3/librpc/gen_ndr/cli_wkssvc.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/librpc/gen_ndr/cli_wkssvc.c')
-rw-r--r--source3/librpc/gen_ndr/cli_wkssvc.c558
1 files changed, 279 insertions, 279 deletions
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);
}