summaryrefslogtreecommitdiff
path: root/source3/librpc/gen_ndr
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-01-18 10:18:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:16 -0500
commitd6b3fce078869de35334c0805ff141dc8bcf5f65 (patch)
treeb33ec293937c32551f71595c08d25d7037e18278 /source3/librpc/gen_ndr
parente9c294b926c0b831fd936194342ec0564f935798 (diff)
downloadsamba-d6b3fce078869de35334c0805ff141dc8bcf5f65.tar.gz
samba-d6b3fce078869de35334c0805ff141dc8bcf5f65.tar.bz2
samba-d6b3fce078869de35334c0805ff141dc8bcf5f65.zip
r20875: Pass DCE/RPC server call arguments as a struct rather than as separate arguments.
This makes it a bit more similar to the Samba4 code. (This used to be commit 0596badb410a58e7a715e2b17bc0bef0489a2448)
Diffstat (limited to 'source3/librpc/gen_ndr')
-rw-r--r--source3/librpc/gen_ndr/ndr_winreg.c8
-rw-r--r--source3/librpc/gen_ndr/srv_dfs.c46
-rw-r--r--source3/librpc/gen_ndr/srv_dfs.h46
-rw-r--r--source3/librpc/gen_ndr/srv_echo.c20
-rw-r--r--source3/librpc/gen_ndr/srv_echo.h20
-rw-r--r--source3/librpc/gen_ndr/srv_eventlog.c48
-rw-r--r--source3/librpc/gen_ndr/srv_eventlog.h48
-rw-r--r--source3/librpc/gen_ndr/srv_initshutdown.c6
-rw-r--r--source3/librpc/gen_ndr/srv_initshutdown.h6
-rw-r--r--source3/librpc/gen_ndr/srv_lsa.c164
-rw-r--r--source3/librpc/gen_ndr/srv_lsa.h164
-rw-r--r--source3/librpc/gen_ndr/srv_netlogon.c94
-rw-r--r--source3/librpc/gen_ndr/srv_netlogon.h94
-rw-r--r--source3/librpc/gen_ndr/srv_srvsvc.c108
-rw-r--r--source3/librpc/gen_ndr/srv_srvsvc.h108
-rw-r--r--source3/librpc/gen_ndr/srv_svcctl.c88
-rw-r--r--source3/librpc/gen_ndr/srv_svcctl.h88
-rw-r--r--source3/librpc/gen_ndr/srv_unixinfo.c10
-rw-r--r--source3/librpc/gen_ndr/srv_unixinfo.h10
-rw-r--r--source3/librpc/gen_ndr/srv_winreg.c70
-rw-r--r--source3/librpc/gen_ndr/srv_winreg.h70
-rw-r--r--source3/librpc/gen_ndr/srv_wkssvc.c62
-rw-r--r--source3/librpc/gen_ndr/srv_wkssvc.h62
23 files changed, 720 insertions, 720 deletions
diff --git a/source3/librpc/gen_ndr/ndr_winreg.c b/source3/librpc/gen_ndr/ndr_winreg.c
index 030074ab20..7001152ce7 100644
--- a/source3/librpc/gen_ndr/ndr_winreg.c
+++ b/source3/librpc/gen_ndr/ndr_winreg.c
@@ -1568,7 +1568,7 @@ NTSTATUS ndr_pull_winreg_EnumValue(struct ndr_pull *ndr, int flags, struct winre
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
NDR_PULL_ALLOC_N(ndr, r->in.data, ndr_get_array_size(ndr, &r->in.data));
}
- memcpy(r->out.data,r->in.data,ndr_get_array_size(ndr, &r->in.data) * sizeof(*r->in.data));
+ memcpy(r->out.data, r->in.data, ndr_get_array_size(ndr, &r->in.data) * sizeof(*r->in.data));
_mem_save_data_1 = NDR_PULL_GET_MEM_CTX(ndr);
NDR_PULL_SET_MEM_CTX(ndr, r->in.data, 0);
for (cntr_data_1 = 0; cntr_data_1 < *r->in.value_length; cntr_data_1++) {
@@ -1644,7 +1644,7 @@ NTSTATUS ndr_pull_winreg_EnumValue(struct ndr_pull *ndr, int flags, struct winre
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
NDR_PULL_ALLOC_N(ndr, r->out.data, ndr_get_array_size(ndr, &r->out.data));
}
- memcpy(r->out.data,r->in.data,ndr_get_array_size(ndr, &r->out.data) * sizeof(*r->in.data));
+ memcpy(r->out.data, r->in.data, ndr_get_array_size(ndr, &r->out.data) * sizeof(*r->in.data));
_mem_save_data_1 = NDR_PULL_GET_MEM_CTX(ndr);
NDR_PULL_SET_MEM_CTX(ndr, r->out.data, 0);
for (cntr_data_1 = 0; cntr_data_1 < *r->out.value_length; cntr_data_1++) {
@@ -3578,7 +3578,7 @@ NTSTATUS ndr_pull_winreg_QueryMultipleValues(struct ndr_pull *ndr, int flags, st
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
NDR_PULL_ALLOC_N(ndr, r->in.values, ndr_get_array_size(ndr, &r->in.values));
}
- memcpy(r->out.values,r->in.values,ndr_get_array_size(ndr, &r->in.values) * sizeof(*r->in.values));
+ memcpy(r->out.values, r->in.values, ndr_get_array_size(ndr, &r->in.values) * sizeof(*r->in.values));
_mem_save_values_1 = NDR_PULL_GET_MEM_CTX(ndr);
NDR_PULL_SET_MEM_CTX(ndr, r->in.values, 0);
for (cntr_values_1 = 0; cntr_values_1 < r->in.num_values; cntr_values_1++) {
@@ -3640,7 +3640,7 @@ NTSTATUS ndr_pull_winreg_QueryMultipleValues(struct ndr_pull *ndr, int flags, st
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
NDR_PULL_ALLOC_N(ndr, r->out.values, ndr_get_array_size(ndr, &r->out.values));
}
- memcpy(r->out.values,r->in.values,ndr_get_array_size(ndr, &r->out.values) * sizeof(*r->in.values));
+ memcpy(r->out.values, r->in.values, ndr_get_array_size(ndr, &r->out.values) * sizeof(*r->in.values));
_mem_save_values_1 = NDR_PULL_GET_MEM_CTX(ndr);
NDR_PULL_SET_MEM_CTX(ndr, r->out.values, 0);
for (cntr_values_1 = 0; cntr_values_1 < r->in.num_values; cntr_values_1++) {
diff --git a/source3/librpc/gen_ndr/srv_dfs.c b/source3/librpc/gen_ndr/srv_dfs.c
index c75c979093..8fb5810c9c 100644
--- a/source3/librpc/gen_ndr/srv_dfs.c
+++ b/source3/librpc/gen_ndr/srv_dfs.c
@@ -43,7 +43,7 @@ static BOOL api_dfs_GetManagerVersion(pipes_struct *p)
return False;
}
- _dfs_GetManagerVersion(p, r.out.exist_flag);
+ _dfs_GetManagerVersion(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -107,7 +107,7 @@ static BOOL api_dfs_Add(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(dfs_Add, &r);
- r.out.result = _dfs_Add(p, r.in.path, r.in.server, r.in.share, r.in.comment, r.in.flags);
+ r.out.result = _dfs_Add(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -171,7 +171,7 @@ static BOOL api_dfs_Remove(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(dfs_Remove, &r);
- r.out.result = _dfs_Remove(p, r.in.path, r.in.server, r.in.share);
+ r.out.result = _dfs_Remove(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -235,7 +235,7 @@ static BOOL api_dfs_SetInfo(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(dfs_SetInfo, &r);
- r.out.result = _dfs_SetInfo(p);
+ r.out.result = _dfs_SetInfo(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -306,7 +306,7 @@ static BOOL api_dfs_GetInfo(pipes_struct *p)
return False;
}
- r.out.result = _dfs_GetInfo(p, r.in.path, r.in.server, r.in.share, r.in.level, r.out.info);
+ r.out.result = _dfs_GetInfo(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -373,7 +373,7 @@ static BOOL api_dfs_Enum(pipes_struct *p)
ZERO_STRUCT(r.out);
r.out.info = r.in.info;
r.out.total = r.in.total;
- r.out.result = _dfs_Enum(p, r.in.level, r.in.bufsize, r.in.info, r.in.unknown, r.in.total);
+ r.out.result = _dfs_Enum(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -437,7 +437,7 @@ static BOOL api_dfs_Rename(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(dfs_Rename, &r);
- r.out.result = _dfs_Rename(p);
+ r.out.result = _dfs_Rename(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -501,7 +501,7 @@ static BOOL api_dfs_Move(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(dfs_Move, &r);
- r.out.result = _dfs_Move(p);
+ r.out.result = _dfs_Move(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -565,7 +565,7 @@ static BOOL api_dfs_ManagerGetConfigInfo(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(dfs_ManagerGetConfigInfo, &r);
- r.out.result = _dfs_ManagerGetConfigInfo(p);
+ r.out.result = _dfs_ManagerGetConfigInfo(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -629,7 +629,7 @@ static BOOL api_dfs_ManagerSendSiteInfo(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(dfs_ManagerSendSiteInfo, &r);
- r.out.result = _dfs_ManagerSendSiteInfo(p);
+ r.out.result = _dfs_ManagerSendSiteInfo(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -693,7 +693,7 @@ static BOOL api_dfs_AddFtRoot(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(dfs_AddFtRoot, &r);
- r.out.result = _dfs_AddFtRoot(p);
+ r.out.result = _dfs_AddFtRoot(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -757,7 +757,7 @@ static BOOL api_dfs_RemoveFtRoot(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(dfs_RemoveFtRoot, &r);
- r.out.result = _dfs_RemoveFtRoot(p);
+ r.out.result = _dfs_RemoveFtRoot(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -821,7 +821,7 @@ static BOOL api_dfs_AddStdRoot(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(dfs_AddStdRoot, &r);
- r.out.result = _dfs_AddStdRoot(p);
+ r.out.result = _dfs_AddStdRoot(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -885,7 +885,7 @@ static BOOL api_dfs_RemoveStdRoot(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(dfs_RemoveStdRoot, &r);
- r.out.result = _dfs_RemoveStdRoot(p);
+ r.out.result = _dfs_RemoveStdRoot(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -949,7 +949,7 @@ static BOOL api_dfs_ManagerInitialize(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(dfs_ManagerInitialize, &r);
- r.out.result = _dfs_ManagerInitialize(p);
+ r.out.result = _dfs_ManagerInitialize(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1013,7 +1013,7 @@ static BOOL api_dfs_AddStdRootForced(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(dfs_AddStdRootForced, &r);
- r.out.result = _dfs_AddStdRootForced(p);
+ r.out.result = _dfs_AddStdRootForced(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1077,7 +1077,7 @@ static BOOL api_dfs_GetDcAddress(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(dfs_GetDcAddress, &r);
- r.out.result = _dfs_GetDcAddress(p);
+ r.out.result = _dfs_GetDcAddress(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1141,7 +1141,7 @@ static BOOL api_dfs_SetDcAddress(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(dfs_SetDcAddress, &r);
- r.out.result = _dfs_SetDcAddress(p);
+ r.out.result = _dfs_SetDcAddress(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1205,7 +1205,7 @@ static BOOL api_dfs_FlushFtTable(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(dfs_FlushFtTable, &r);
- r.out.result = _dfs_FlushFtTable(p);
+ r.out.result = _dfs_FlushFtTable(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1269,7 +1269,7 @@ static BOOL api_dfs_Add2(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(dfs_Add2, &r);
- r.out.result = _dfs_Add2(p);
+ r.out.result = _dfs_Add2(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1333,7 +1333,7 @@ static BOOL api_dfs_Remove2(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(dfs_Remove2, &r);
- r.out.result = _dfs_Remove2(p);
+ r.out.result = _dfs_Remove2(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1400,7 +1400,7 @@ static BOOL api_dfs_EnumEx(pipes_struct *p)
ZERO_STRUCT(r.out);
r.out.info = r.in.info;
r.out.total = r.in.total;
- r.out.result = _dfs_EnumEx(p, r.in.name, r.in.level, r.in.bufsize, r.in.info, r.in.total);
+ r.out.result = _dfs_EnumEx(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1464,7 +1464,7 @@ static BOOL api_dfs_SetInfo2(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(dfs_SetInfo2, &r);
- r.out.result = _dfs_SetInfo2(p);
+ r.out.result = _dfs_SetInfo2(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
diff --git a/source3/librpc/gen_ndr/srv_dfs.h b/source3/librpc/gen_ndr/srv_dfs.h
index 6806be07e6..e4d7a99c73 100644
--- a/source3/librpc/gen_ndr/srv_dfs.h
+++ b/source3/librpc/gen_ndr/srv_dfs.h
@@ -1,29 +1,29 @@
#include "librpc/gen_ndr/ndr_dfs.h"
#ifndef __SRV_NETDFS__
#define __SRV_NETDFS__
-void _dfs_GetManagerVersion(pipes_struct *p, uint32_t *exist_flag);
-WERROR _dfs_Add(pipes_struct *p, const char *path, const char *server, const char *share, const char *comment, uint32_t flags);
-WERROR _dfs_Remove(pipes_struct *p, const char *path, const char *server, const char *share);
-WERROR _dfs_SetInfo(pipes_struct *p);
-WERROR _dfs_GetInfo(pipes_struct *p, const char *path, const char *server, const char *share, uint32_t level, union dfs_Info *info);
-WERROR _dfs_Enum(pipes_struct *p, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct *info, uint32_t *unknown, uint32_t *total);
-WERROR _dfs_Rename(pipes_struct *p);
-WERROR _dfs_Move(pipes_struct *p);
-WERROR _dfs_ManagerGetConfigInfo(pipes_struct *p);
-WERROR _dfs_ManagerSendSiteInfo(pipes_struct *p);
-WERROR _dfs_AddFtRoot(pipes_struct *p);
-WERROR _dfs_RemoveFtRoot(pipes_struct *p);
-WERROR _dfs_AddStdRoot(pipes_struct *p);
-WERROR _dfs_RemoveStdRoot(pipes_struct *p);
-WERROR _dfs_ManagerInitialize(pipes_struct *p);
-WERROR _dfs_AddStdRootForced(pipes_struct *p);
-WERROR _dfs_GetDcAddress(pipes_struct *p);
-WERROR _dfs_SetDcAddress(pipes_struct *p);
-WERROR _dfs_FlushFtTable(pipes_struct *p);
-WERROR _dfs_Add2(pipes_struct *p);
-WERROR _dfs_Remove2(pipes_struct *p);
-WERROR _dfs_EnumEx(pipes_struct *p, const char *name, uint32_t level, uint32_t bufsize, struct dfs_EnumStruct *info, uint32_t *total);
-WERROR _dfs_SetInfo2(pipes_struct *p);
+void _dfs_GetManagerVersion(pipes_struct *p, struct dfs_GetManagerVersion *r);
+WERROR _dfs_Add(pipes_struct *p, struct dfs_Add *r);
+WERROR _dfs_Remove(pipes_struct *p, struct dfs_Remove *r);
+WERROR _dfs_SetInfo(pipes_struct *p, struct dfs_SetInfo *r);
+WERROR _dfs_GetInfo(pipes_struct *p, struct dfs_GetInfo *r);
+WERROR _dfs_Enum(pipes_struct *p, struct dfs_Enum *r);
+WERROR _dfs_Rename(pipes_struct *p, struct dfs_Rename *r);
+WERROR _dfs_Move(pipes_struct *p, struct dfs_Move *r);
+WERROR _dfs_ManagerGetConfigInfo(pipes_struct *p, struct dfs_ManagerGetConfigInfo *r);
+WERROR _dfs_ManagerSendSiteInfo(pipes_struct *p, struct dfs_ManagerSendSiteInfo *r);
+WERROR _dfs_AddFtRoot(pipes_struct *p, struct dfs_AddFtRoot *r);
+WERROR _dfs_RemoveFtRoot(pipes_struct *p, struct dfs_RemoveFtRoot *r);
+WERROR _dfs_AddStdRoot(pipes_struct *p, struct dfs_AddStdRoot *r);
+WERROR _dfs_RemoveStdRoot(pipes_struct *p, struct dfs_RemoveStdRoot *r);
+WERROR _dfs_ManagerInitialize(pipes_struct *p, struct dfs_ManagerInitialize *r);
+WERROR _dfs_AddStdRootForced(pipes_struct *p, struct dfs_AddStdRootForced *r);
+WERROR _dfs_GetDcAddress(pipes_struct *p, struct dfs_GetDcAddress *r);
+WERROR _dfs_SetDcAddress(pipes_struct *p, struct dfs_SetDcAddress *r);
+WERROR _dfs_FlushFtTable(pipes_struct *p, struct dfs_FlushFtTable *r);
+WERROR _dfs_Add2(pipes_struct *p, struct dfs_Add2 *r);
+WERROR _dfs_Remove2(pipes_struct *p, struct dfs_Remove2 *r);
+WERROR _dfs_EnumEx(pipes_struct *p, struct dfs_EnumEx *r);
+WERROR _dfs_SetInfo2(pipes_struct *p, struct dfs_SetInfo2 *r);
void netdfs_get_pipe_fns(struct api_struct **fns, int *n_fns);
NTSTATUS rpc_netdfs_init(void);
#endif /* __SRV_NETDFS__ */
diff --git a/source3/librpc/gen_ndr/srv_echo.c b/source3/librpc/gen_ndr/srv_echo.c
index eb4cf894b8..046f448040 100644
--- a/source3/librpc/gen_ndr/srv_echo.c
+++ b/source3/librpc/gen_ndr/srv_echo.c
@@ -43,7 +43,7 @@ static BOOL api_echo_AddOne(pipes_struct *p)
return False;
}
- _echo_AddOne(p, r.in.in_data, r.out.out_data);
+ _echo_AddOne(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -114,7 +114,7 @@ static BOOL api_echo_EchoData(pipes_struct *p)
return False;
}
- _echo_EchoData(p, r.in.len, r.in.in_data, r.out.out_data);
+ _echo_EchoData(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -178,7 +178,7 @@ static BOOL api_echo_SinkData(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(echo_SinkData, &r);
- _echo_SinkData(p, r.in.len, r.in.data);
+ _echo_SinkData(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -249,7 +249,7 @@ static BOOL api_echo_SourceData(pipes_struct *p)
return False;
}
- _echo_SourceData(p, r.in.len, r.out.data);
+ _echo_SourceData(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -320,7 +320,7 @@ static BOOL api_echo_TestCall(pipes_struct *p)
return False;
}
- _echo_TestCall(p, r.in.s1, r.out.s2);
+ _echo_TestCall(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -391,7 +391,7 @@ static BOOL api_echo_TestCall2(pipes_struct *p)
return False;
}
- r.out.result = _echo_TestCall2(p, r.in.level, r.out.info);
+ r.out.result = _echo_TestCall2(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -455,7 +455,7 @@ static BOOL api_echo_TestSleep(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(echo_TestSleep, &r);
- r.out.result = _echo_TestSleep(p, r.in.seconds);
+ r.out.result = _echo_TestSleep(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -523,7 +523,7 @@ static BOOL api_echo_TestEnum(pipes_struct *p)
r.out.foo1 = r.in.foo1;
r.out.foo2 = r.in.foo2;
r.out.foo3 = r.in.foo3;
- _echo_TestEnum(p, r.in.foo1, r.in.foo2, r.in.foo3);
+ _echo_TestEnum(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -589,7 +589,7 @@ static BOOL api_echo_TestSurrounding(pipes_struct *p)
ZERO_STRUCT(r.out);
r.out.data = r.in.data;
- _echo_TestSurrounding(p, r.in.data);
+ _echo_TestSurrounding(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -653,7 +653,7 @@ static BOOL api_echo_TestDoublePointer(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(echo_TestDoublePointer, &r);
- r.out.result = _echo_TestDoublePointer(p, r.in.data);
+ r.out.result = _echo_TestDoublePointer(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
diff --git a/source3/librpc/gen_ndr/srv_echo.h b/source3/librpc/gen_ndr/srv_echo.h
index aa06afb264..c3b0336652 100644
--- a/source3/librpc/gen_ndr/srv_echo.h
+++ b/source3/librpc/gen_ndr/srv_echo.h
@@ -1,16 +1,16 @@
#include "librpc/gen_ndr/ndr_echo.h"
#ifndef __SRV_RPCECHO__
#define __SRV_RPCECHO__
-void _echo_AddOne(pipes_struct *p, uint32_t in_data, uint32_t *out_data);
-void _echo_EchoData(pipes_struct *p, uint32_t len, uint8_t *in_data, uint8_t *out_data);
-void _echo_SinkData(pipes_struct *p, uint32_t len, uint8_t *data);
-void _echo_SourceData(pipes_struct *p, uint32_t len, uint8_t *data);
-void _echo_TestCall(pipes_struct *p, const char *s1, const char **s2);
-NTSTATUS _echo_TestCall2(pipes_struct *p, uint16_t level, union echo_Info *info);
-uint32 _echo_TestSleep(pipes_struct *p, uint32_t seconds);
-void _echo_TestEnum(pipes_struct *p, enum echo_Enum1 *foo1, struct echo_Enum2 *foo2, union echo_Enum3 *foo3);
-void _echo_TestSurrounding(pipes_struct *p, struct echo_Surrounding *data);
-uint16 _echo_TestDoublePointer(pipes_struct *p, uint16_t ***data);
+void _echo_AddOne(pipes_struct *p, struct echo_AddOne *r);
+void _echo_EchoData(pipes_struct *p, struct echo_EchoData *r);
+void _echo_SinkData(pipes_struct *p, struct echo_SinkData *r);
+void _echo_SourceData(pipes_struct *p, struct echo_SourceData *r);
+void _echo_TestCall(pipes_struct *p, struct echo_TestCall *r);
+NTSTATUS _echo_TestCall2(pipes_struct *p, struct echo_TestCall2 *r);
+uint32 _echo_TestSleep(pipes_struct *p, struct echo_TestSleep *r);
+void _echo_TestEnum(pipes_struct *p, struct echo_TestEnum *r);
+void _echo_TestSurrounding(pipes_struct *p, struct echo_TestSurrounding *r);
+uint16 _echo_TestDoublePointer(pipes_struct *p, struct echo_TestDoublePointer *r);
void rpcecho_get_pipe_fns(struct api_struct **fns, int *n_fns);
NTSTATUS rpc_rpcecho_init(void);
#endif /* __SRV_RPCECHO__ */
diff --git a/source3/librpc/gen_ndr/srv_eventlog.c b/source3/librpc/gen_ndr/srv_eventlog.c
index f4746ef66e..51740e15c1 100644
--- a/source3/librpc/gen_ndr/srv_eventlog.c
+++ b/source3/librpc/gen_ndr/srv_eventlog.c
@@ -36,7 +36,7 @@ static BOOL api_eventlog_ClearEventLogW(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(eventlog_ClearEventLogW, &r);
- r.out.result = _eventlog_ClearEventLogW(p, r.in.handle, r.in.unknown);
+ r.out.result = _eventlog_ClearEventLogW(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -100,7 +100,7 @@ static BOOL api_eventlog_BackupEventLogW(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(eventlog_BackupEventLogW, &r);
- r.out.result = _eventlog_BackupEventLogW(p);
+ r.out.result = _eventlog_BackupEventLogW(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -166,7 +166,7 @@ static BOOL api_eventlog_CloseEventLog(pipes_struct *p)
ZERO_STRUCT(r.out);
r.out.handle = r.in.handle;
- r.out.result = _eventlog_CloseEventLog(p, r.in.handle);
+ r.out.result = _eventlog_CloseEventLog(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -230,7 +230,7 @@ static BOOL api_eventlog_DeregisterEventSource(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(eventlog_DeregisterEventSource, &r);
- r.out.result = _eventlog_DeregisterEventSource(p);
+ r.out.result = _eventlog_DeregisterEventSource(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -301,7 +301,7 @@ static BOOL api_eventlog_GetNumRecords(pipes_struct *p)
return False;
}
- r.out.result = _eventlog_GetNumRecords(p, r.in.handle, r.out.number);
+ r.out.result = _eventlog_GetNumRecords(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -365,7 +365,7 @@ static BOOL api_eventlog_GetOldestRecord(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(eventlog_GetOldestRecord, &r);
- r.out.result = _eventlog_GetOldestRecord(p);
+ r.out.result = _eventlog_GetOldestRecord(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -429,7 +429,7 @@ static BOOL api_eventlog_ChangeNotify(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(eventlog_ChangeNotify, &r);
- r.out.result = _eventlog_ChangeNotify(p);
+ r.out.result = _eventlog_ChangeNotify(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -500,7 +500,7 @@ static BOOL api_eventlog_OpenEventLogW(pipes_struct *p)
return False;
}
- r.out.result = _eventlog_OpenEventLogW(p, r.in.unknown0, r.in.logname, r.in.servername, r.in.unknown2, r.in.unknown3, r.out.handle);
+ r.out.result = _eventlog_OpenEventLogW(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -564,7 +564,7 @@ static BOOL api_eventlog_RegisterEventSourceW(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(eventlog_RegisterEventSourceW, &r);
- r.out.result = _eventlog_RegisterEventSourceW(p);
+ r.out.result = _eventlog_RegisterEventSourceW(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -628,7 +628,7 @@ static BOOL api_eventlog_OpenBackupEventLogW(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(eventlog_OpenBackupEventLogW, &r);
- r.out.result = _eventlog_OpenBackupEventLogW(p);
+ r.out.result = _eventlog_OpenBackupEventLogW(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -711,7 +711,7 @@ static BOOL api_eventlog_ReadEventLogW(pipes_struct *p)
return False;
}
- r.out.result = _eventlog_ReadEventLogW(p, r.in.handle, r.in.flags, r.in.offset, r.in.number_of_bytes, r.out.data, r.out.sent_size, r.out.real_size);
+ r.out.result = _eventlog_ReadEventLogW(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -775,7 +775,7 @@ static BOOL api_eventlog_ReportEventW(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(eventlog_ReportEventW, &r);
- r.out.result = _eventlog_ReportEventW(p);
+ r.out.result = _eventlog_ReportEventW(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -839,7 +839,7 @@ static BOOL api_eventlog_ClearEventLogA(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(eventlog_ClearEventLogA, &r);
- r.out.result = _eventlog_ClearEventLogA(p);
+ r.out.result = _eventlog_ClearEventLogA(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -903,7 +903,7 @@ static BOOL api_eventlog_BackupEventLogA(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(eventlog_BackupEventLogA, &r);
- r.out.result = _eventlog_BackupEventLogA(p);
+ r.out.result = _eventlog_BackupEventLogA(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -967,7 +967,7 @@ static BOOL api_eventlog_OpenEventLogA(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(eventlog_OpenEventLogA, &r);
- r.out.result = _eventlog_OpenEventLogA(p);
+ r.out.result = _eventlog_OpenEventLogA(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1031,7 +1031,7 @@ static BOOL api_eventlog_RegisterEventSourceA(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(eventlog_RegisterEventSourceA, &r);
- r.out.result = _eventlog_RegisterEventSourceA(p);
+ r.out.result = _eventlog_RegisterEventSourceA(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1095,7 +1095,7 @@ static BOOL api_eventlog_OpenBackupEventLogA(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(eventlog_OpenBackupEventLogA, &r);
- r.out.result = _eventlog_OpenBackupEventLogA(p);
+ r.out.result = _eventlog_OpenBackupEventLogA(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1159,7 +1159,7 @@ static BOOL api_eventlog_ReadEventLogA(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(eventlog_ReadEventLogA, &r);
- r.out.result = _eventlog_ReadEventLogA(p);
+ r.out.result = _eventlog_ReadEventLogA(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1223,7 +1223,7 @@ static BOOL api_eventlog_ReportEventA(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(eventlog_ReportEventA, &r);
- r.out.result = _eventlog_ReportEventA(p);
+ r.out.result = _eventlog_ReportEventA(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1287,7 +1287,7 @@ static BOOL api_eventlog_RegisterClusterSvc(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(eventlog_RegisterClusterSvc, &r);
- r.out.result = _eventlog_RegisterClusterSvc(p);
+ r.out.result = _eventlog_RegisterClusterSvc(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1351,7 +1351,7 @@ static BOOL api_eventlog_DeregisterClusterSvc(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(eventlog_DeregisterClusterSvc, &r);
- r.out.result = _eventlog_DeregisterClusterSvc(p);
+ r.out.result = _eventlog_DeregisterClusterSvc(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1415,7 +1415,7 @@ static BOOL api_eventlog_WriteClusterEvents(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(eventlog_WriteClusterEvents, &r);
- r.out.result = _eventlog_WriteClusterEvents(p);
+ r.out.result = _eventlog_WriteClusterEvents(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1479,7 +1479,7 @@ static BOOL api_eventlog_GetLogIntormation(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(eventlog_GetLogIntormation, &r);
- r.out.result = _eventlog_GetLogIntormation(p);
+ r.out.result = _eventlog_GetLogIntormation(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1543,7 +1543,7 @@ static BOOL api_eventlog_FlushEventLog(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(eventlog_FlushEventLog, &r);
- r.out.result = _eventlog_FlushEventLog(p, r.in.handle);
+ r.out.result = _eventlog_FlushEventLog(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
diff --git a/source3/librpc/gen_ndr/srv_eventlog.h b/source3/librpc/gen_ndr/srv_eventlog.h
index 6401c1a7aa..6957c66beb 100644
--- a/source3/librpc/gen_ndr/srv_eventlog.h
+++ b/source3/librpc/gen_ndr/srv_eventlog.h
@@ -1,30 +1,30 @@
#include "librpc/gen_ndr/ndr_eventlog.h"
#ifndef __SRV_EVENTLOG__
#define __SRV_EVENTLOG__
-NTSTATUS _eventlog_ClearEventLogW(pipes_struct *p, struct policy_handle *handle, struct lsa_String *unknown);
-NTSTATUS _eventlog_BackupEventLogW(pipes_struct *p);
-NTSTATUS _eventlog_CloseEventLog(pipes_struct *p, struct policy_handle *handle);
-NTSTATUS _eventlog_DeregisterEventSource(pipes_struct *p);
-NTSTATUS _eventlog_GetNumRecords(pipes_struct *p, struct policy_handle *handle, uint32_t *number);
-NTSTATUS _eventlog_GetOldestRecord(pipes_struct *p);
-NTSTATUS _eventlog_ChangeNotify(pipes_struct *p);
-NTSTATUS _eventlog_OpenEventLogW(pipes_struct *p, struct eventlog_OpenUnknown0 *unknown0, struct lsa_String logname, struct lsa_String servername, uint32_t unknown2, uint32_t unknown3, struct policy_handle *handle);
-NTSTATUS _eventlog_RegisterEventSourceW(pipes_struct *p);
-NTSTATUS _eventlog_OpenBackupEventLogW(pipes_struct *p);
-NTSTATUS _eventlog_ReadEventLogW(pipes_struct *p, struct policy_handle *handle, uint32_t flags, uint32_t offset, uint32_t number_of_bytes, uint8_t *data, uint32_t *sent_size, uint32_t *real_size);
-NTSTATUS _eventlog_ReportEventW(pipes_struct *p);
-NTSTATUS _eventlog_ClearEventLogA(pipes_struct *p);
-NTSTATUS _eventlog_BackupEventLogA(pipes_struct *p);
-NTSTATUS _eventlog_OpenEventLogA(pipes_struct *p);
-NTSTATUS _eventlog_RegisterEventSourceA(pipes_struct *p);
-NTSTATUS _eventlog_OpenBackupEventLogA(pipes_struct *p);
-NTSTATUS _eventlog_ReadEventLogA(pipes_struct *p);
-NTSTATUS _eventlog_ReportEventA(pipes_struct *p);
-NTSTATUS _eventlog_RegisterClusterSvc(pipes_struct *p);
-NTSTATUS _eventlog_DeregisterClusterSvc(pipes_struct *p);
-NTSTATUS _eventlog_WriteClusterEvents(pipes_struct *p);
-NTSTATUS _eventlog_GetLogIntormation(pipes_struct *p);
-NTSTATUS _eventlog_FlushEventLog(pipes_struct *p, struct policy_handle *handle);
+NTSTATUS _eventlog_ClearEventLogW(pipes_struct *p, struct eventlog_ClearEventLogW *r);
+NTSTATUS _eventlog_BackupEventLogW(pipes_struct *p, struct eventlog_BackupEventLogW *r);
+NTSTATUS _eventlog_CloseEventLog(pipes_struct *p, struct eventlog_CloseEventLog *r);
+NTSTATUS _eventlog_DeregisterEventSource(pipes_struct *p, struct eventlog_DeregisterEventSource *r);
+NTSTATUS _eventlog_GetNumRecords(pipes_struct *p, struct eventlog_GetNumRecords *r);
+NTSTATUS _eventlog_GetOldestRecord(pipes_struct *p, struct eventlog_GetOldestRecord *r);
+NTSTATUS _eventlog_ChangeNotify(pipes_struct *p, struct eventlog_ChangeNotify *r);
+NTSTATUS _eventlog_OpenEventLogW(pipes_struct *p, struct eventlog_OpenEventLogW *r);
+NTSTATUS _eventlog_RegisterEventSourceW(pipes_struct *p, struct eventlog_RegisterEventSourceW *r);
+NTSTATUS _eventlog_OpenBackupEventLogW(pipes_struct *p, struct eventlog_OpenBackupEventLogW *r);
+NTSTATUS _eventlog_ReadEventLogW(pipes_struct *p, struct eventlog_ReadEventLogW *r);
+NTSTATUS _eventlog_ReportEventW(pipes_struct *p, struct eventlog_ReportEventW *r);
+NTSTATUS _eventlog_ClearEventLogA(pipes_struct *p, struct eventlog_ClearEventLogA *r);
+NTSTATUS _eventlog_BackupEventLogA(pipes_struct *p, struct eventlog_BackupEventLogA *r);
+NTSTATUS _eventlog_OpenEventLogA(pipes_struct *p, struct eventlog_OpenEventLogA *r);
+NTSTATUS _eventlog_RegisterEventSourceA(pipes_struct *p, struct eventlog_RegisterEventSourceA *r);
+NTSTATUS _eventlog_OpenBackupEventLogA(pipes_struct *p, struct eventlog_OpenBackupEventLogA *r);
+NTSTATUS _eventlog_ReadEventLogA(pipes_struct *p, struct eventlog_ReadEventLogA *r);
+NTSTATUS _eventlog_ReportEventA(pipes_struct *p, struct eventlog_ReportEventA *r);
+NTSTATUS _eventlog_RegisterClusterSvc(pipes_struct *p, struct eventlog_RegisterClusterSvc *r);
+NTSTATUS _eventlog_DeregisterClusterSvc(pipes_struct *p, struct eventlog_DeregisterClusterSvc *r);
+NTSTATUS _eventlog_WriteClusterEvents(pipes_struct *p, struct eventlog_WriteClusterEvents *r);
+NTSTATUS _eventlog_GetLogIntormation(pipes_struct *p, struct eventlog_GetLogIntormation *r);
+NTSTATUS _eventlog_FlushEventLog(pipes_struct *p, struct eventlog_FlushEventLog *r);
void eventlog_get_pipe_fns(struct api_struct **fns, int *n_fns);
NTSTATUS rpc_eventlog_init(void);
#endif /* __SRV_EVENTLOG__ */
diff --git a/source3/librpc/gen_ndr/srv_initshutdown.c b/source3/librpc/gen_ndr/srv_initshutdown.c
index fab8288188..41c10129d5 100644
--- a/source3/librpc/gen_ndr/srv_initshutdown.c
+++ b/source3/librpc/gen_ndr/srv_initshutdown.c
@@ -36,7 +36,7 @@ static BOOL api_initshutdown_Init(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(initshutdown_Init, &r);
- r.out.result = _initshutdown_Init(p, r.in.hostname, r.in.message, r.in.timeout, r.in.force_apps, r.in.reboot);
+ r.out.result = _initshutdown_Init(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -100,7 +100,7 @@ static BOOL api_initshutdown_Abort(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(initshutdown_Abort, &r);
- r.out.result = _initshutdown_Abort(p, r.in.server);
+ r.out.result = _initshutdown_Abort(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -164,7 +164,7 @@ static BOOL api_initshutdown_InitEx(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(initshutdown_InitEx, &r);
- r.out.result = _initshutdown_InitEx(p, r.in.hostname, r.in.message, r.in.timeout, r.in.force_apps, r.in.reboot, r.in.reason);
+ r.out.result = _initshutdown_InitEx(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
diff --git a/source3/librpc/gen_ndr/srv_initshutdown.h b/source3/librpc/gen_ndr/srv_initshutdown.h
index 5182e9958d..be3ea25271 100644
--- a/source3/librpc/gen_ndr/srv_initshutdown.h
+++ b/source3/librpc/gen_ndr/srv_initshutdown.h
@@ -1,9 +1,9 @@
#include "librpc/gen_ndr/ndr_initshutdown.h"
#ifndef __SRV_INITSHUTDOWN__
#define __SRV_INITSHUTDOWN__
-WERROR _initshutdown_Init(pipes_struct *p, uint16_t *hostname, struct initshutdown_String *message, uint32_t timeout, uint8_t force_apps, uint8_t reboot);
-WERROR _initshutdown_Abort(pipes_struct *p, uint16_t *server);
-WERROR _initshutdown_InitEx(pipes_struct *p, uint16_t *hostname, struct initshutdown_String *message, uint32_t timeout, uint8_t force_apps, uint8_t reboot, uint32_t reason);
+WERROR _initshutdown_Init(pipes_struct *p, struct initshutdown_Init *r);
+WERROR _initshutdown_Abort(pipes_struct *p, struct initshutdown_Abort *r);
+WERROR _initshutdown_InitEx(pipes_struct *p, struct initshutdown_InitEx *r);
void initshutdown_get_pipe_fns(struct api_struct **fns, int *n_fns);
NTSTATUS rpc_initshutdown_init(void);
#endif /* __SRV_INITSHUTDOWN__ */
diff --git a/source3/librpc/gen_ndr/srv_lsa.c b/source3/librpc/gen_ndr/srv_lsa.c
index 6a4f991b99..8e08f671ec 100644
--- a/source3/librpc/gen_ndr/srv_lsa.c
+++ b/source3/librpc/gen_ndr/srv_lsa.c
@@ -38,7 +38,7 @@ static BOOL api_lsa_Close(pipes_struct *p)
ZERO_STRUCT(r.out);
r.out.handle = r.in.handle;
- r.out.result = _lsa_Close(p, r.in.handle);
+ r.out.result = _lsa_Close(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -102,7 +102,7 @@ static BOOL api_lsa_Delete(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_Delete, &r);
- r.out.result = _lsa_Delete(p, r.in.handle);
+ r.out.result = _lsa_Delete(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -174,7 +174,7 @@ static BOOL api_lsa_EnumPrivs(pipes_struct *p)
return False;
}
- r.out.result = _lsa_EnumPrivs(p, r.in.handle, r.in.resume_handle, r.in.max_count, r.out.privs);
+ r.out.result = _lsa_EnumPrivs(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -245,7 +245,7 @@ static BOOL api_lsa_QuerySecurity(pipes_struct *p)
return False;
}
- r.out.result = _lsa_QuerySecurity(p, r.in.handle, r.in.sec_info, r.out.sdbuf);
+ r.out.result = _lsa_QuerySecurity(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -309,7 +309,7 @@ static BOOL api_lsa_SetSecObj(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_SetSecObj, &r);
- r.out.result = _lsa_SetSecObj(p);
+ r.out.result = _lsa_SetSecObj(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -373,7 +373,7 @@ static BOOL api_lsa_ChangePassword(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_ChangePassword, &r);
- r.out.result = _lsa_ChangePassword(p);
+ r.out.result = _lsa_ChangePassword(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -444,7 +444,7 @@ static BOOL api_lsa_OpenPolicy(pipes_struct *p)
return False;
}
- r.out.result = _lsa_OpenPolicy(p, r.in.system_name, r.in.attr, r.in.access_mask, r.out.handle);
+ r.out.result = _lsa_OpenPolicy(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -515,7 +515,7 @@ static BOOL api_lsa_QueryInfoPolicy(pipes_struct *p)
return False;
}
- r.out.result = _lsa_QueryInfoPolicy(p, r.in.handle, r.in.level, r.out.info);
+ r.out.result = _lsa_QueryInfoPolicy(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -579,7 +579,7 @@ static BOOL api_lsa_SetInfoPolicy(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_SetInfoPolicy, &r);
- r.out.result = _lsa_SetInfoPolicy(p);
+ r.out.result = _lsa_SetInfoPolicy(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -643,7 +643,7 @@ static BOOL api_lsa_ClearAuditLog(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_ClearAuditLog, &r);
- r.out.result = _lsa_ClearAuditLog(p);
+ r.out.result = _lsa_ClearAuditLog(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -714,7 +714,7 @@ static BOOL api_lsa_CreateAccount(pipes_struct *p)
return False;
}
- r.out.result = _lsa_CreateAccount(p, r.in.handle, r.in.sid, r.in.access_mask, r.out.acct_handle);
+ r.out.result = _lsa_CreateAccount(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -786,7 +786,7 @@ static BOOL api_lsa_EnumAccounts(pipes_struct *p)
return False;
}
- r.out.result = _lsa_EnumAccounts(p, r.in.handle, r.in.resume_handle, r.in.num_entries, r.out.sids);
+ r.out.result = _lsa_EnumAccounts(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -857,7 +857,7 @@ static BOOL api_lsa_CreateTrustedDomain(pipes_struct *p)
return False;
}
- r.out.result = _lsa_CreateTrustedDomain(p, r.in.handle, r.in.info, r.in.access_mask, r.out.trustdom_handle);
+ r.out.result = _lsa_CreateTrustedDomain(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -929,7 +929,7 @@ static BOOL api_lsa_EnumTrustDom(pipes_struct *p)
return False;
}
- r.out.result = _lsa_EnumTrustDom(p, r.in.handle, r.in.resume_handle, r.in.max_size, r.out.domains);
+ r.out.result = _lsa_EnumTrustDom(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1002,7 +1002,7 @@ static BOOL api_lsa_LookupNames(pipes_struct *p)
r.out.sids = r.in.sids;
r.out.count = r.in.count;
- r.out.result = _lsa_LookupNames(p, r.in.handle, r.in.num_names, r.in.names, r.out.domains, r.in.sids, r.in.level, r.in.count);
+ r.out.result = _lsa_LookupNames(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1075,7 +1075,7 @@ static BOOL api_lsa_LookupSids(pipes_struct *p)
r.out.names = r.in.names;
r.out.count = r.in.count;
- r.out.result = _lsa_LookupSids(p, r.in.handle, r.in.sids, r.out.domains, r.in.names, r.in.level, r.in.count);
+ r.out.result = _lsa_LookupSids(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1146,7 +1146,7 @@ static BOOL api_lsa_CreateSecret(pipes_struct *p)
return False;
}
- r.out.result = _lsa_CreateSecret(p, r.in.handle, r.in.name, r.in.access_mask, r.out.sec_handle);
+ r.out.result = _lsa_CreateSecret(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1217,7 +1217,7 @@ static BOOL api_lsa_OpenAccount(pipes_struct *p)
return False;
}
- r.out.result = _lsa_OpenAccount(p, r.in.handle, r.in.sid, r.in.access_mask, r.out.acct_handle);
+ r.out.result = _lsa_OpenAccount(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1288,7 +1288,7 @@ static BOOL api_lsa_EnumPrivsAccount(pipes_struct *p)
return False;
}
- r.out.result = _lsa_EnumPrivsAccount(p, r.in.handle, r.out.privs);
+ r.out.result = _lsa_EnumPrivsAccount(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1352,7 +1352,7 @@ static BOOL api_lsa_AddPrivilegesToAccount(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_AddPrivilegesToAccount, &r);
- r.out.result = _lsa_AddPrivilegesToAccount(p, r.in.handle, r.in.privs);
+ r.out.result = _lsa_AddPrivilegesToAccount(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1416,7 +1416,7 @@ static BOOL api_lsa_RemovePrivilegesFromAccount(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_RemovePrivilegesFromAccount, &r);
- r.out.result = _lsa_RemovePrivilegesFromAccount(p, r.in.handle, r.in.remove_all, r.in.privs);
+ r.out.result = _lsa_RemovePrivilegesFromAccount(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1480,7 +1480,7 @@ static BOOL api_lsa_GetQuotasForAccount(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_GetQuotasForAccount, &r);
- r.out.result = _lsa_GetQuotasForAccount(p);
+ r.out.result = _lsa_GetQuotasForAccount(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1544,7 +1544,7 @@ static BOOL api_lsa_SetQuotasForAccount(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_SetQuotasForAccount, &r);
- r.out.result = _lsa_SetQuotasForAccount(p);
+ r.out.result = _lsa_SetQuotasForAccount(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1608,7 +1608,7 @@ static BOOL api_lsa_GetSystemAccessAccount(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_GetSystemAccessAccount, &r);
- r.out.result = _lsa_GetSystemAccessAccount(p);
+ r.out.result = _lsa_GetSystemAccessAccount(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1672,7 +1672,7 @@ static BOOL api_lsa_SetSystemAccessAccount(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_SetSystemAccessAccount, &r);
- r.out.result = _lsa_SetSystemAccessAccount(p);
+ r.out.result = _lsa_SetSystemAccessAccount(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1743,7 +1743,7 @@ static BOOL api_lsa_OpenTrustedDomain(pipes_struct *p)
return False;
}
- r.out.result = _lsa_OpenTrustedDomain(p, r.in.handle, r.in.sid, r.in.access_mask, r.out.trustdom_handle);
+ r.out.result = _lsa_OpenTrustedDomain(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1814,7 +1814,7 @@ static BOOL api_lsa_QueryTrustedDomainInfo(pipes_struct *p)
return False;
}
- r.out.result = _lsa_QueryTrustedDomainInfo(p, r.in.trustdom_handle, r.in.level, r.out.info);
+ r.out.result = _lsa_QueryTrustedDomainInfo(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1878,7 +1878,7 @@ static BOOL api_lsa_SetInformationTrustedDomain(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_SetInformationTrustedDomain, &r);
- r.out.result = _lsa_SetInformationTrustedDomain(p);
+ r.out.result = _lsa_SetInformationTrustedDomain(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1949,7 +1949,7 @@ static BOOL api_lsa_OpenSecret(pipes_struct *p)
return False;
}
- r.out.result = _lsa_OpenSecret(p, r.in.handle, r.in.name, r.in.access_mask, r.out.sec_handle);
+ r.out.result = _lsa_OpenSecret(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2013,7 +2013,7 @@ static BOOL api_lsa_SetSecret(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_SetSecret, &r);
- r.out.result = _lsa_SetSecret(p, r.in.sec_handle, r.in.new_val, r.in.old_val);
+ r.out.result = _lsa_SetSecret(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2082,7 +2082,7 @@ static BOOL api_lsa_QuerySecret(pipes_struct *p)
r.out.new_mtime = r.in.new_mtime;
r.out.old_val = r.in.old_val;
r.out.old_mtime = r.in.old_mtime;
- r.out.result = _lsa_QuerySecret(p, r.in.sec_handle, r.in.new_val, r.in.new_mtime, r.in.old_val, r.in.old_mtime);
+ r.out.result = _lsa_QuerySecret(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2153,7 +2153,7 @@ static BOOL api_lsa_LookupPrivValue(pipes_struct *p)
return False;
}
- r.out.result = _lsa_LookupPrivValue(p, r.in.handle, r.in.name, r.out.luid);
+ r.out.result = _lsa_LookupPrivValue(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2224,7 +2224,7 @@ static BOOL api_lsa_LookupPrivName(pipes_struct *p)
return False;
}
- r.out.result = _lsa_LookupPrivName(p, r.in.handle, r.in.luid, r.out.name);
+ r.out.result = _lsa_LookupPrivName(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2296,7 +2296,7 @@ static BOOL api_lsa_LookupPrivDisplayName(pipes_struct *p)
}
r.out.language_id = r.in.language_id;
- r.out.result = _lsa_LookupPrivDisplayName(p, r.in.handle, r.in.name, r.out.disp_name, r.in.language_id, r.in.unknown);
+ r.out.result = _lsa_LookupPrivDisplayName(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2360,7 +2360,7 @@ static BOOL api_lsa_DeleteObject(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_DeleteObject, &r);
- r.out.result = _lsa_DeleteObject(p);
+ r.out.result = _lsa_DeleteObject(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2431,7 +2431,7 @@ static BOOL api_lsa_EnumAccountsWithUserRight(pipes_struct *p)
return False;
}
- r.out.result = _lsa_EnumAccountsWithUserRight(p, r.in.handle, r.in.name, r.out.sids);
+ r.out.result = _lsa_EnumAccountsWithUserRight(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2502,7 +2502,7 @@ static BOOL api_lsa_EnumAccountRights(pipes_struct *p)
return False;
}
- r.out.result = _lsa_EnumAccountRights(p, r.in.handle, r.in.sid, r.out.rights);
+ r.out.result = _lsa_EnumAccountRights(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2566,7 +2566,7 @@ static BOOL api_lsa_AddAccountRights(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_AddAccountRights, &r);
- r.out.result = _lsa_AddAccountRights(p, r.in.handle, r.in.sid, r.in.rights);
+ r.out.result = _lsa_AddAccountRights(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2630,7 +2630,7 @@ static BOOL api_lsa_RemoveAccountRights(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_RemoveAccountRights, &r);
- r.out.result = _lsa_RemoveAccountRights(p, r.in.handle, r.in.sid, r.in.unknown, r.in.rights);
+ r.out.result = _lsa_RemoveAccountRights(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2701,7 +2701,7 @@ static BOOL api_lsa_QueryTrustedDomainInfoBySid(pipes_struct *p)
return False;
}
- r.out.result = _lsa_QueryTrustedDomainInfoBySid(p, r.in.handle, r.in.dom_sid, r.in.level, r.out.info);
+ r.out.result = _lsa_QueryTrustedDomainInfoBySid(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2765,7 +2765,7 @@ static BOOL api_lsa_SetTrustedDomainInfo(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_SetTrustedDomainInfo, &r);
- r.out.result = _lsa_SetTrustedDomainInfo(p);
+ r.out.result = _lsa_SetTrustedDomainInfo(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2829,7 +2829,7 @@ static BOOL api_lsa_DeleteTrustedDomain(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_DeleteTrustedDomain, &r);
- r.out.result = _lsa_DeleteTrustedDomain(p, r.in.handle, r.in.dom_sid);
+ r.out.result = _lsa_DeleteTrustedDomain(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2893,7 +2893,7 @@ static BOOL api_lsa_StorePrivateData(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_StorePrivateData, &r);
- r.out.result = _lsa_StorePrivateData(p);
+ r.out.result = _lsa_StorePrivateData(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2957,7 +2957,7 @@ static BOOL api_lsa_RetrievePrivateData(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_RetrievePrivateData, &r);
- r.out.result = _lsa_RetrievePrivateData(p);
+ r.out.result = _lsa_RetrievePrivateData(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3028,7 +3028,7 @@ static BOOL api_lsa_OpenPolicy2(pipes_struct *p)
return False;
}
- r.out.result = _lsa_OpenPolicy2(p, r.in.system_name, r.in.attr, r.in.access_mask, r.out.handle);
+ r.out.result = _lsa_OpenPolicy2(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3095,7 +3095,7 @@ static BOOL api_lsa_GetUserName(pipes_struct *p)
ZERO_STRUCT(r.out);
r.out.account_name = r.in.account_name;
r.out.authority_name = r.in.authority_name;
- r.out.result = _lsa_GetUserName(p, r.in.system_name, r.in.account_name, r.in.authority_name);
+ r.out.result = _lsa_GetUserName(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3166,7 +3166,7 @@ static BOOL api_lsa_QueryInfoPolicy2(pipes_struct *p)
return False;
}
- r.out.result = _lsa_QueryInfoPolicy2(p, r.in.handle, r.in.level, r.out.info);
+ r.out.result = _lsa_QueryInfoPolicy2(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3230,7 +3230,7 @@ static BOOL api_lsa_SetInfoPolicy2(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_SetInfoPolicy2, &r);
- r.out.result = _lsa_SetInfoPolicy2(p);
+ r.out.result = _lsa_SetInfoPolicy2(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3301,7 +3301,7 @@ static BOOL api_lsa_QueryTrustedDomainInfoByName(pipes_struct *p)
return False;
}
- r.out.result = _lsa_QueryTrustedDomainInfoByName(p, r.in.handle, r.in.trusted_domain, r.in.level, r.out.info);
+ r.out.result = _lsa_QueryTrustedDomainInfoByName(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3365,7 +3365,7 @@ static BOOL api_lsa_SetTrustedDomainInfoByName(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_SetTrustedDomainInfoByName, &r);
- r.out.result = _lsa_SetTrustedDomainInfoByName(p, r.in.handle, r.in.trusted_domain, r.in.level, r.in.info);
+ r.out.result = _lsa_SetTrustedDomainInfoByName(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3437,7 +3437,7 @@ static BOOL api_lsa_EnumTrustedDomainsEx(pipes_struct *p)
return False;
}
- r.out.result = _lsa_EnumTrustedDomainsEx(p, r.in.handle, r.in.resume_handle, r.out.domains, r.in.max_size);
+ r.out.result = _lsa_EnumTrustedDomainsEx(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3501,7 +3501,7 @@ static BOOL api_lsa_CreateTrustedDomainEx(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomainEx, &r);
- r.out.result = _lsa_CreateTrustedDomainEx(p);
+ r.out.result = _lsa_CreateTrustedDomainEx(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3567,7 +3567,7 @@ static BOOL api_lsa_CloseTrustedDomainEx(pipes_struct *p)
ZERO_STRUCT(r.out);
r.out.handle = r.in.handle;
- r.out.result = _lsa_CloseTrustedDomainEx(p, r.in.handle);
+ r.out.result = _lsa_CloseTrustedDomainEx(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3638,7 +3638,7 @@ static BOOL api_lsa_QueryDomainInformationPolicy(pipes_struct *p)
return False;
}
- r.out.result = _lsa_QueryDomainInformationPolicy(p, r.in.handle, r.in.level, r.out.info);
+ r.out.result = _lsa_QueryDomainInformationPolicy(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3702,7 +3702,7 @@ static BOOL api_lsa_SetDomainInformationPolicy(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_SetDomainInformationPolicy, &r);
- r.out.result = _lsa_SetDomainInformationPolicy(p, r.in.handle, r.in.level, r.in.info);
+ r.out.result = _lsa_SetDomainInformationPolicy(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3773,7 +3773,7 @@ static BOOL api_lsa_OpenTrustedDomainByName(pipes_struct *p)
return False;
}
- r.out.result = _lsa_OpenTrustedDomainByName(p, r.in.handle, r.in.name, r.in.access_mask, r.out.trustdom_handle);
+ r.out.result = _lsa_OpenTrustedDomainByName(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3837,7 +3837,7 @@ static BOOL api_lsa_TestCall(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_TestCall, &r);
- r.out.result = _lsa_TestCall(p);
+ r.out.result = _lsa_TestCall(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3910,7 +3910,7 @@ static BOOL api_lsa_LookupSids2(pipes_struct *p)
r.out.names = r.in.names;
r.out.count = r.in.count;
- r.out.result = _lsa_LookupSids2(p, r.in.handle, r.in.sids, r.out.domains, r.in.names, r.in.level, r.in.count, r.in.unknown1, r.in.unknown2);
+ r.out.result = _lsa_LookupSids2(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3983,7 +3983,7 @@ static BOOL api_lsa_LookupNames2(pipes_struct *p)
r.out.sids = r.in.sids;
r.out.count = r.in.count;
- r.out.result = _lsa_LookupNames2(p, r.in.handle, r.in.num_names, r.in.names, r.out.domains, r.in.sids, r.in.level, r.in.count, r.in.unknown1, r.in.unknown2);
+ r.out.result = _lsa_LookupNames2(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -4047,7 +4047,7 @@ static BOOL api_lsa_CreateTrustedDomainEx2(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomainEx2, &r);
- r.out.result = _lsa_CreateTrustedDomainEx2(p);
+ r.out.result = _lsa_CreateTrustedDomainEx2(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -4111,7 +4111,7 @@ static BOOL api_lsa_CREDRWRITE(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_CREDRWRITE, &r);
- r.out.result = _lsa_CREDRWRITE(p);
+ r.out.result = _lsa_CREDRWRITE(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -4175,7 +4175,7 @@ static BOOL api_lsa_CREDRREAD(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_CREDRREAD, &r);
- r.out.result = _lsa_CREDRREAD(p);
+ r.out.result = _lsa_CREDRREAD(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -4239,7 +4239,7 @@ static BOOL api_lsa_CREDRENUMERATE(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_CREDRENUMERATE, &r);
- r.out.result = _lsa_CREDRENUMERATE(p);
+ r.out.result = _lsa_CREDRENUMERATE(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -4303,7 +4303,7 @@ static BOOL api_lsa_CREDRWRITEDOMAINCREDENTIALS(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_CREDRWRITEDOMAINCREDENTIALS, &r);
- r.out.result = _lsa_CREDRWRITEDOMAINCREDENTIALS(p);
+ r.out.result = _lsa_CREDRWRITEDOMAINCREDENTIALS(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -4367,7 +4367,7 @@ static BOOL api_lsa_CREDRREADDOMAINCREDENTIALS(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_CREDRREADDOMAINCREDENTIALS, &r);
- r.out.result = _lsa_CREDRREADDOMAINCREDENTIALS(p);
+ r.out.result = _lsa_CREDRREADDOMAINCREDENTIALS(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -4431,7 +4431,7 @@ static BOOL api_lsa_CREDRDELETE(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_CREDRDELETE, &r);
- r.out.result = _lsa_CREDRDELETE(p);
+ r.out.result = _lsa_CREDRDELETE(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -4495,7 +4495,7 @@ static BOOL api_lsa_CREDRGETTARGETINFO(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_CREDRGETTARGETINFO, &r);
- r.out.result = _lsa_CREDRGETTARGETINFO(p);
+ r.out.result = _lsa_CREDRGETTARGETINFO(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -4559,7 +4559,7 @@ static BOOL api_lsa_CREDRPROFILELOADED(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_CREDRPROFILELOADED, &r);
- r.out.result = _lsa_CREDRPROFILELOADED(p);
+ r.out.result = _lsa_CREDRPROFILELOADED(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -4632,7 +4632,7 @@ static BOOL api_lsa_LookupNames3(pipes_struct *p)
r.out.sids = r.in.sids;
r.out.count = r.in.count;
- r.out.result = _lsa_LookupNames3(p, r.in.handle, r.in.num_names, r.in.names, r.out.domains, r.in.sids, r.in.level, r.in.count, r.in.unknown1, r.in.unknown2);
+ r.out.result = _lsa_LookupNames3(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -4696,7 +4696,7 @@ static BOOL api_lsa_CREDRGETSESSIONTYPES(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_CREDRGETSESSIONTYPES, &r);
- r.out.result = _lsa_CREDRGETSESSIONTYPES(p);
+ r.out.result = _lsa_CREDRGETSESSIONTYPES(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -4760,7 +4760,7 @@ static BOOL api_lsa_LSARREGISTERAUDITEVENT(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_LSARREGISTERAUDITEVENT, &r);
- r.out.result = _lsa_LSARREGISTERAUDITEVENT(p);
+ r.out.result = _lsa_LSARREGISTERAUDITEVENT(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -4824,7 +4824,7 @@ static BOOL api_lsa_LSARGENAUDITEVENT(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_LSARGENAUDITEVENT, &r);
- r.out.result = _lsa_LSARGENAUDITEVENT(p);
+ r.out.result = _lsa_LSARGENAUDITEVENT(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -4888,7 +4888,7 @@ static BOOL api_lsa_LSARUNREGISTERAUDITEVENT(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_LSARUNREGISTERAUDITEVENT, &r);
- r.out.result = _lsa_LSARUNREGISTERAUDITEVENT(p);
+ r.out.result = _lsa_LSARUNREGISTERAUDITEVENT(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -4952,7 +4952,7 @@ static BOOL api_lsa_LSARQUERYFORESTTRUSTINFORMATION(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_LSARQUERYFORESTTRUSTINFORMATION, &r);
- r.out.result = _lsa_LSARQUERYFORESTTRUSTINFORMATION(p);
+ r.out.result = _lsa_LSARQUERYFORESTTRUSTINFORMATION(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -5016,7 +5016,7 @@ static BOOL api_lsa_LSARSETFORESTTRUSTINFORMATION(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_LSARSETFORESTTRUSTINFORMATION, &r);
- r.out.result = _lsa_LSARSETFORESTTRUSTINFORMATION(p);
+ r.out.result = _lsa_LSARSETFORESTTRUSTINFORMATION(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -5080,7 +5080,7 @@ static BOOL api_lsa_CREDRRENAME(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_CREDRRENAME, &r);
- r.out.result = _lsa_CREDRRENAME(p);
+ r.out.result = _lsa_CREDRRENAME(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -5153,7 +5153,7 @@ static BOOL api_lsa_LookupSids3(pipes_struct *p)
r.out.names = r.in.names;
r.out.count = r.in.count;
- r.out.result = _lsa_LookupSids3(p, r.in.sids, r.out.domains, r.in.names, r.in.level, r.in.count, r.in.unknown1, r.in.unknown2);
+ r.out.result = _lsa_LookupSids3(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -5226,7 +5226,7 @@ static BOOL api_lsa_LookupNames4(pipes_struct *p)
r.out.sids = r.in.sids;
r.out.count = r.in.count;
- r.out.result = _lsa_LookupNames4(p, r.in.num_names, r.in.names, r.out.domains, r.in.sids, r.in.level, r.in.count, r.in.unknown1, r.in.unknown2);
+ r.out.result = _lsa_LookupNames4(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -5290,7 +5290,7 @@ static BOOL api_lsa_LSAROPENPOLICYSCE(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_LSAROPENPOLICYSCE, &r);
- r.out.result = _lsa_LSAROPENPOLICYSCE(p);
+ r.out.result = _lsa_LSAROPENPOLICYSCE(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -5354,7 +5354,7 @@ static BOOL api_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_LSARADTREGISTERSECURITYEVENTSOURCE, &r);
- r.out.result = _lsa_LSARADTREGISTERSECURITYEVENTSOURCE(p);
+ r.out.result = _lsa_LSARADTREGISTERSECURITYEVENTSOURCE(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -5418,7 +5418,7 @@ static BOOL api_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE, &r);
- r.out.result = _lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(p);
+ r.out.result = _lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -5482,7 +5482,7 @@ static BOOL api_lsa_LSARADTREPORTSECURITYEVENT(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(lsa_LSARADTREPORTSECURITYEVENT, &r);
- r.out.result = _lsa_LSARADTREPORTSECURITYEVENT(p);
+ r.out.result = _lsa_LSARADTREPORTSECURITYEVENT(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
diff --git a/source3/librpc/gen_ndr/srv_lsa.h b/source3/librpc/gen_ndr/srv_lsa.h
index 4dd3c75415..e3decb2862 100644
--- a/source3/librpc/gen_ndr/srv_lsa.h
+++ b/source3/librpc/gen_ndr/srv_lsa.h
@@ -1,88 +1,88 @@
#include "librpc/gen_ndr/ndr_lsa.h"
#ifndef __SRV_LSARPC__
#define __SRV_LSARPC__
-NTSTATUS _lsa_Close(pipes_struct *p, struct policy_handle *handle);
-NTSTATUS _lsa_Delete(pipes_struct *p, struct policy_handle *handle);
-NTSTATUS _lsa_EnumPrivs(pipes_struct *p, struct policy_handle *handle, uint32_t *resume_handle, uint32_t max_count, struct lsa_PrivArray *privs);
-NTSTATUS _lsa_QuerySecurity(pipes_struct *p, struct policy_handle *handle, uint32_t sec_info, struct sec_desc_buf *sdbuf);
-NTSTATUS _lsa_SetSecObj(pipes_struct *p);
-NTSTATUS _lsa_ChangePassword(pipes_struct *p);
-NTSTATUS _lsa_OpenPolicy(pipes_struct *p, uint16_t *system_name, struct lsa_ObjectAttribute *attr, uint32_t access_mask, struct policy_handle *handle);
-NTSTATUS _lsa_QueryInfoPolicy(pipes_struct *p, struct policy_handle *handle, uint16_t level, union lsa_PolicyInformation *info);
-NTSTATUS _lsa_SetInfoPolicy(pipes_struct *p);
-NTSTATUS _lsa_ClearAuditLog(pipes_struct *p);
-NTSTATUS _lsa_CreateAccount(pipes_struct *p, struct policy_handle *handle, struct dom_sid2 *sid, uint32_t access_mask, struct policy_handle *acct_handle);
-NTSTATUS _lsa_EnumAccounts(pipes_struct *p, struct policy_handle *handle, uint32_t *resume_handle, uint32_t num_entries, struct lsa_SidArray *sids);
-NTSTATUS _lsa_CreateTrustedDomain(pipes_struct *p, struct policy_handle *handle, struct lsa_DomainInfo *info, uint32_t access_mask, struct policy_handle *trustdom_handle);
-NTSTATUS _lsa_EnumTrustDom(pipes_struct *p, struct policy_handle *handle, uint32_t *resume_handle, uint32_t max_size, struct lsa_DomainList *domains);
-NTSTATUS _lsa_LookupNames(pipes_struct *p, struct policy_handle *handle, uint32_t num_names, struct lsa_String *names, struct lsa_RefDomainList *domains, struct lsa_TransSidArray *sids, uint16_t level, uint32_t *count);
-NTSTATUS _lsa_LookupSids(pipes_struct *p, struct policy_handle *handle, struct lsa_SidArray *sids, struct lsa_RefDomainList *domains, struct lsa_TransNameArray *names, uint16_t level, uint32_t *count);
-NTSTATUS _lsa_CreateSecret(pipes_struct *p, struct policy_handle *handle, struct lsa_String name, uint32_t access_mask, struct policy_handle *sec_handle);
-NTSTATUS _lsa_OpenAccount(pipes_struct *p, struct policy_handle *handle, struct dom_sid2 *sid, uint32_t access_mask, struct policy_handle *acct_handle);
-NTSTATUS _lsa_EnumPrivsAccount(pipes_struct *p, struct policy_handle *handle, struct lsa_PrivilegeSet *privs);
-NTSTATUS _lsa_AddPrivilegesToAccount(pipes_struct *p, struct policy_handle *handle, struct lsa_PrivilegeSet *privs);
-NTSTATUS _lsa_RemovePrivilegesFromAccount(pipes_struct *p, struct policy_handle *handle, uint8_t remove_all, struct lsa_PrivilegeSet *privs);
-NTSTATUS _lsa_GetQuotasForAccount(pipes_struct *p);
-NTSTATUS _lsa_SetQuotasForAccount(pipes_struct *p);
-NTSTATUS _lsa_GetSystemAccessAccount(pipes_struct *p);
-NTSTATUS _lsa_SetSystemAccessAccount(pipes_struct *p);
-NTSTATUS _lsa_OpenTrustedDomain(pipes_struct *p, struct policy_handle *handle, struct dom_sid2 *sid, uint32_t access_mask, struct policy_handle *trustdom_handle);
-NTSTATUS _lsa_QueryTrustedDomainInfo(pipes_struct *p, struct policy_handle *trustdom_handle, enum lsa_TrustDomInfoEnum level, union lsa_TrustedDomainInfo *info);
-NTSTATUS _lsa_SetInformationTrustedDomain(pipes_struct *p);
-NTSTATUS _lsa_OpenSecret(pipes_struct *p, struct policy_handle *handle, struct lsa_String name, uint32_t access_mask, struct policy_handle *sec_handle);
-NTSTATUS _lsa_SetSecret(pipes_struct *p, struct policy_handle *sec_handle, struct lsa_DATA_BUF *new_val, struct lsa_DATA_BUF *old_val);
-NTSTATUS _lsa_QuerySecret(pipes_struct *p, struct policy_handle *sec_handle, struct lsa_DATA_BUF_PTR *new_val, NTTIME *new_mtime, struct lsa_DATA_BUF_PTR *old_val, NTTIME *old_mtime);
-NTSTATUS _lsa_LookupPrivValue(pipes_struct *p, struct policy_handle *handle, struct lsa_String *name, struct lsa_LUID *luid);
-NTSTATUS _lsa_LookupPrivName(pipes_struct *p, struct policy_handle *handle, struct lsa_LUID *luid, struct lsa_StringLarge *name);
-NTSTATUS _lsa_LookupPrivDisplayName(pipes_struct *p, struct policy_handle *handle, struct lsa_String *name, struct lsa_StringLarge *disp_name, uint16_t *language_id, uint16_t unknown);
-NTSTATUS _lsa_DeleteObject(pipes_struct *p);
-NTSTATUS _lsa_EnumAccountsWithUserRight(pipes_struct *p, struct policy_handle *handle, struct lsa_String *name, struct lsa_SidArray *sids);
-NTSTATUS _lsa_EnumAccountRights(pipes_struct *p, struct policy_handle *handle, struct dom_sid2 *sid, struct lsa_RightSet *rights);
-NTSTATUS _lsa_AddAccountRights(pipes_struct *p, struct policy_handle *handle, struct dom_sid2 *sid, struct lsa_RightSet *rights);
-NTSTATUS _lsa_RemoveAccountRights(pipes_struct *p, struct policy_handle *handle, struct dom_sid2 *sid, uint32_t unknown, struct lsa_RightSet *rights);
-NTSTATUS _lsa_QueryTrustedDomainInfoBySid(pipes_struct *p, struct policy_handle *handle, struct dom_sid2 *dom_sid, enum lsa_TrustDomInfoEnum level, union lsa_TrustedDomainInfo *info);
-NTSTATUS _lsa_SetTrustedDomainInfo(pipes_struct *p);
-NTSTATUS _lsa_DeleteTrustedDomain(pipes_struct *p, struct policy_handle *handle, struct dom_sid2 *dom_sid);
-NTSTATUS _lsa_StorePrivateData(pipes_struct *p);
-NTSTATUS _lsa_RetrievePrivateData(pipes_struct *p);
-NTSTATUS _lsa_OpenPolicy2(pipes_struct *p, const char *system_name, struct lsa_ObjectAttribute *attr, uint32_t access_mask, struct policy_handle *handle);
-NTSTATUS _lsa_GetUserName(pipes_struct *p, const char *system_name, struct lsa_String *account_name, struct lsa_StringPointer *authority_name);
-NTSTATUS _lsa_QueryInfoPolicy2(pipes_struct *p, struct policy_handle *handle, uint16_t level, union lsa_PolicyInformation *info);
-NTSTATUS _lsa_SetInfoPolicy2(pipes_struct *p);
-NTSTATUS _lsa_QueryTrustedDomainInfoByName(pipes_struct *p, struct policy_handle *handle, struct lsa_String trusted_domain, enum lsa_TrustDomInfoEnum level, union lsa_TrustedDomainInfo *info);
-NTSTATUS _lsa_SetTrustedDomainInfoByName(pipes_struct *p, struct policy_handle *handle, struct lsa_String trusted_domain, enum lsa_TrustDomInfoEnum level, union lsa_TrustedDomainInfo *info);
-NTSTATUS _lsa_EnumTrustedDomainsEx(pipes_struct *p, struct policy_handle *handle, uint32_t *resume_handle, struct lsa_DomainListEx *domains, uint32_t max_size);
-NTSTATUS _lsa_CreateTrustedDomainEx(pipes_struct *p);
-NTSTATUS _lsa_CloseTrustedDomainEx(pipes_struct *p, struct policy_handle *handle);
-NTSTATUS _lsa_QueryDomainInformationPolicy(pipes_struct *p, struct policy_handle *handle, uint16_t level, union lsa_DomainInformationPolicy *info);
-NTSTATUS _lsa_SetDomainInformationPolicy(pipes_struct *p, struct policy_handle *handle, uint16_t level, union lsa_DomainInformationPolicy *info);
-NTSTATUS _lsa_OpenTrustedDomainByName(pipes_struct *p, struct policy_handle *handle, struct lsa_String name, uint32_t access_mask, struct policy_handle *trustdom_handle);
-NTSTATUS _lsa_TestCall(pipes_struct *p);
-NTSTATUS _lsa_LookupSids2(pipes_struct *p, struct policy_handle *handle, struct lsa_SidArray *sids, struct lsa_RefDomainList *domains, struct lsa_TransNameArray2 *names, uint16_t level, uint32_t *count, uint32_t unknown1, uint32_t unknown2);
-NTSTATUS _lsa_LookupNames2(pipes_struct *p, struct policy_handle *handle, uint32_t num_names, struct lsa_String *names, struct lsa_RefDomainList *domains, struct lsa_TransSidArray2 *sids, uint16_t level, uint32_t *count, uint32_t unknown1, uint32_t unknown2);
-NTSTATUS _lsa_CreateTrustedDomainEx2(pipes_struct *p);
-NTSTATUS _lsa_CREDRWRITE(pipes_struct *p);
-NTSTATUS _lsa_CREDRREAD(pipes_struct *p);
-NTSTATUS _lsa_CREDRENUMERATE(pipes_struct *p);
-NTSTATUS _lsa_CREDRWRITEDOMAINCREDENTIALS(pipes_struct *p);
-NTSTATUS _lsa_CREDRREADDOMAINCREDENTIALS(pipes_struct *p);
-NTSTATUS _lsa_CREDRDELETE(pipes_struct *p);
-NTSTATUS _lsa_CREDRGETTARGETINFO(pipes_struct *p);
-NTSTATUS _lsa_CREDRPROFILELOADED(pipes_struct *p);
-NTSTATUS _lsa_LookupNames3(pipes_struct *p, struct policy_handle *handle, uint32_t num_names, struct lsa_String *names, struct lsa_RefDomainList *domains, struct lsa_TransSidArray3 *sids, uint16_t level, uint32_t *count, uint32_t unknown1, uint32_t unknown2);
-NTSTATUS _lsa_CREDRGETSESSIONTYPES(pipes_struct *p);
-NTSTATUS _lsa_LSARREGISTERAUDITEVENT(pipes_struct *p);
-NTSTATUS _lsa_LSARGENAUDITEVENT(pipes_struct *p);
-NTSTATUS _lsa_LSARUNREGISTERAUDITEVENT(pipes_struct *p);
-NTSTATUS _lsa_LSARQUERYFORESTTRUSTINFORMATION(pipes_struct *p);
-NTSTATUS _lsa_LSARSETFORESTTRUSTINFORMATION(pipes_struct *p);
-NTSTATUS _lsa_CREDRRENAME(pipes_struct *p);
-NTSTATUS _lsa_LookupSids3(pipes_struct *p, struct lsa_SidArray *sids, struct lsa_RefDomainList *domains, struct lsa_TransNameArray2 *names, uint16_t level, uint32_t *count, uint32_t unknown1, uint32_t unknown2);
-NTSTATUS _lsa_LookupNames4(pipes_struct *p, uint32_t num_names, struct lsa_String *names, struct lsa_RefDomainList *domains, struct lsa_TransSidArray3 *sids, uint16_t level, uint32_t *count, uint32_t unknown1, uint32_t unknown2);
-NTSTATUS _lsa_LSAROPENPOLICYSCE(pipes_struct *p);
-NTSTATUS _lsa_LSARADTREGISTERSECURITYEVENTSOURCE(pipes_struct *p);
-NTSTATUS _lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(pipes_struct *p);
-NTSTATUS _lsa_LSARADTREPORTSECURITYEVENT(pipes_struct *p);
+NTSTATUS _lsa_Close(pipes_struct *p, struct lsa_Close *r);
+NTSTATUS _lsa_Delete(pipes_struct *p, struct lsa_Delete *r);
+NTSTATUS _lsa_EnumPrivs(pipes_struct *p, struct lsa_EnumPrivs *r);
+NTSTATUS _lsa_QuerySecurity(pipes_struct *p, struct lsa_QuerySecurity *r);
+NTSTATUS _lsa_SetSecObj(pipes_struct *p, struct lsa_SetSecObj *r);
+NTSTATUS _lsa_ChangePassword(pipes_struct *p, struct lsa_ChangePassword *r);
+NTSTATUS _lsa_OpenPolicy(pipes_struct *p, struct lsa_OpenPolicy *r);
+NTSTATUS _lsa_QueryInfoPolicy(pipes_struct *p, struct lsa_QueryInfoPolicy *r);
+NTSTATUS _lsa_SetInfoPolicy(pipes_struct *p, struct lsa_SetInfoPolicy *r);
+NTSTATUS _lsa_ClearAuditLog(pipes_struct *p, struct lsa_ClearAuditLog *r);
+NTSTATUS _lsa_CreateAccount(pipes_struct *p, struct lsa_CreateAccount *r);
+NTSTATUS _lsa_EnumAccounts(pipes_struct *p, struct lsa_EnumAccounts *r);
+NTSTATUS _lsa_CreateTrustedDomain(pipes_struct *p, struct lsa_CreateTrustedDomain *r);
+NTSTATUS _lsa_EnumTrustDom(pipes_struct *p, struct lsa_EnumTrustDom *r);
+NTSTATUS _lsa_LookupNames(pipes_struct *p, struct lsa_LookupNames *r);
+NTSTATUS _lsa_LookupSids(pipes_struct *p, struct lsa_LookupSids *r);
+NTSTATUS _lsa_CreateSecret(pipes_struct *p, struct lsa_CreateSecret *r);
+NTSTATUS _lsa_OpenAccount(pipes_struct *p, struct lsa_OpenAccount *r);
+NTSTATUS _lsa_EnumPrivsAccount(pipes_struct *p, struct lsa_EnumPrivsAccount *r);
+NTSTATUS _lsa_AddPrivilegesToAccount(pipes_struct *p, struct lsa_AddPrivilegesToAccount *r);
+NTSTATUS _lsa_RemovePrivilegesFromAccount(pipes_struct *p, struct lsa_RemovePrivilegesFromAccount *r);
+NTSTATUS _lsa_GetQuotasForAccount(pipes_struct *p, struct lsa_GetQuotasForAccount *r);
+NTSTATUS _lsa_SetQuotasForAccount(pipes_struct *p, struct lsa_SetQuotasForAccount *r);
+NTSTATUS _lsa_GetSystemAccessAccount(pipes_struct *p, struct lsa_GetSystemAccessAccount *r);
+NTSTATUS _lsa_SetSystemAccessAccount(pipes_struct *p, struct lsa_SetSystemAccessAccount *r);
+NTSTATUS _lsa_OpenTrustedDomain(pipes_struct *p, struct lsa_OpenTrustedDomain *r);
+NTSTATUS _lsa_QueryTrustedDomainInfo(pipes_struct *p, struct lsa_QueryTrustedDomainInfo *r);
+NTSTATUS _lsa_SetInformationTrustedDomain(pipes_struct *p, struct lsa_SetInformationTrustedDomain *r);
+NTSTATUS _lsa_OpenSecret(pipes_struct *p, struct lsa_OpenSecret *r);
+NTSTATUS _lsa_SetSecret(pipes_struct *p, struct lsa_SetSecret *r);
+NTSTATUS _lsa_QuerySecret(pipes_struct *p, struct lsa_QuerySecret *r);
+NTSTATUS _lsa_LookupPrivValue(pipes_struct *p, struct lsa_LookupPrivValue *r);
+NTSTATUS _lsa_LookupPrivName(pipes_struct *p, struct lsa_LookupPrivName *r);
+NTSTATUS _lsa_LookupPrivDisplayName(pipes_struct *p, struct lsa_LookupPrivDisplayName *r);
+NTSTATUS _lsa_DeleteObject(pipes_struct *p, struct lsa_DeleteObject *r);
+NTSTATUS _lsa_EnumAccountsWithUserRight(pipes_struct *p, struct lsa_EnumAccountsWithUserRight *r);
+NTSTATUS _lsa_EnumAccountRights(pipes_struct *p, struct lsa_EnumAccountRights *r);
+NTSTATUS _lsa_AddAccountRights(pipes_struct *p, struct lsa_AddAccountRights *r);
+NTSTATUS _lsa_RemoveAccountRights(pipes_struct *p, struct lsa_RemoveAccountRights *r);
+NTSTATUS _lsa_QueryTrustedDomainInfoBySid(pipes_struct *p, struct lsa_QueryTrustedDomainInfoBySid *r);
+NTSTATUS _lsa_SetTrustedDomainInfo(pipes_struct *p, struct lsa_SetTrustedDomainInfo *r);
+NTSTATUS _lsa_DeleteTrustedDomain(pipes_struct *p, struct lsa_DeleteTrustedDomain *r);
+NTSTATUS _lsa_StorePrivateData(pipes_struct *p, struct lsa_StorePrivateData *r);
+NTSTATUS _lsa_RetrievePrivateData(pipes_struct *p, struct lsa_RetrievePrivateData *r);
+NTSTATUS _lsa_OpenPolicy2(pipes_struct *p, struct lsa_OpenPolicy2 *r);
+NTSTATUS _lsa_GetUserName(pipes_struct *p, struct lsa_GetUserName *r);
+NTSTATUS _lsa_QueryInfoPolicy2(pipes_struct *p, struct lsa_QueryInfoPolicy2 *r);
+NTSTATUS _lsa_SetInfoPolicy2(pipes_struct *p, struct lsa_SetInfoPolicy2 *r);
+NTSTATUS _lsa_QueryTrustedDomainInfoByName(pipes_struct *p, struct lsa_QueryTrustedDomainInfoByName *r);
+NTSTATUS _lsa_SetTrustedDomainInfoByName(pipes_struct *p, struct lsa_SetTrustedDomainInfoByName *r);
+NTSTATUS _lsa_EnumTrustedDomainsEx(pipes_struct *p, struct lsa_EnumTrustedDomainsEx *r);
+NTSTATUS _lsa_CreateTrustedDomainEx(pipes_struct *p, struct lsa_CreateTrustedDomainEx *r);
+NTSTATUS _lsa_CloseTrustedDomainEx(pipes_struct *p, struct lsa_CloseTrustedDomainEx *r);
+NTSTATUS _lsa_QueryDomainInformationPolicy(pipes_struct *p, struct lsa_QueryDomainInformationPolicy *r);
+NTSTATUS _lsa_SetDomainInformationPolicy(pipes_struct *p, struct lsa_SetDomainInformationPolicy *r);
+NTSTATUS _lsa_OpenTrustedDomainByName(pipes_struct *p, struct lsa_OpenTrustedDomainByName *r);
+NTSTATUS _lsa_TestCall(pipes_struct *p, struct lsa_TestCall *r);
+NTSTATUS _lsa_LookupSids2(pipes_struct *p, struct lsa_LookupSids2 *r);
+NTSTATUS _lsa_LookupNames2(pipes_struct *p, struct lsa_LookupNames2 *r);
+NTSTATUS _lsa_CreateTrustedDomainEx2(pipes_struct *p, struct lsa_CreateTrustedDomainEx2 *r);
+NTSTATUS _lsa_CREDRWRITE(pipes_struct *p, struct lsa_CREDRWRITE *r);
+NTSTATUS _lsa_CREDRREAD(pipes_struct *p, struct lsa_CREDRREAD *r);
+NTSTATUS _lsa_CREDRENUMERATE(pipes_struct *p, struct lsa_CREDRENUMERATE *r);
+NTSTATUS _lsa_CREDRWRITEDOMAINCREDENTIALS(pipes_struct *p, struct lsa_CREDRWRITEDOMAINCREDENTIALS *r);
+NTSTATUS _lsa_CREDRREADDOMAINCREDENTIALS(pipes_struct *p, struct lsa_CREDRREADDOMAINCREDENTIALS *r);
+NTSTATUS _lsa_CREDRDELETE(pipes_struct *p, struct lsa_CREDRDELETE *r);
+NTSTATUS _lsa_CREDRGETTARGETINFO(pipes_struct *p, struct lsa_CREDRGETTARGETINFO *r);
+NTSTATUS _lsa_CREDRPROFILELOADED(pipes_struct *p, struct lsa_CREDRPROFILELOADED *r);
+NTSTATUS _lsa_LookupNames3(pipes_struct *p, struct lsa_LookupNames3 *r);
+NTSTATUS _lsa_CREDRGETSESSIONTYPES(pipes_struct *p, struct lsa_CREDRGETSESSIONTYPES *r);
+NTSTATUS _lsa_LSARREGISTERAUDITEVENT(pipes_struct *p, struct lsa_LSARREGISTERAUDITEVENT *r);
+NTSTATUS _lsa_LSARGENAUDITEVENT(pipes_struct *p, struct lsa_LSARGENAUDITEVENT *r);
+NTSTATUS _lsa_LSARUNREGISTERAUDITEVENT(pipes_struct *p, struct lsa_LSARUNREGISTERAUDITEVENT *r);
+NTSTATUS _lsa_LSARQUERYFORESTTRUSTINFORMATION(pipes_struct *p, struct lsa_LSARQUERYFORESTTRUSTINFORMATION *r);
+NTSTATUS _lsa_LSARSETFORESTTRUSTINFORMATION(pipes_struct *p, struct lsa_LSARSETFORESTTRUSTINFORMATION *r);
+NTSTATUS _lsa_CREDRRENAME(pipes_struct *p, struct lsa_CREDRRENAME *r);
+NTSTATUS _lsa_LookupSids3(pipes_struct *p, struct lsa_LookupSids3 *r);
+NTSTATUS _lsa_LookupNames4(pipes_struct *p, struct lsa_LookupNames4 *r);
+NTSTATUS _lsa_LSAROPENPOLICYSCE(pipes_struct *p, struct lsa_LSAROPENPOLICYSCE *r);
+NTSTATUS _lsa_LSARADTREGISTERSECURITYEVENTSOURCE(pipes_struct *p, struct lsa_LSARADTREGISTERSECURITYEVENTSOURCE *r);
+NTSTATUS _lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(pipes_struct *p, struct lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE *r);
+NTSTATUS _lsa_LSARADTREPORTSECURITYEVENT(pipes_struct *p, struct lsa_LSARADTREPORTSECURITYEVENT *r);
void lsarpc_get_pipe_fns(struct api_struct **fns, int *n_fns);
NTSTATUS rpc_lsarpc_init(void);
#endif /* __SRV_LSARPC__ */
diff --git a/source3/librpc/gen_ndr/srv_netlogon.c b/source3/librpc/gen_ndr/srv_netlogon.c
index a07e30a7ee..9b87c61853 100644
--- a/source3/librpc/gen_ndr/srv_netlogon.c
+++ b/source3/librpc/gen_ndr/srv_netlogon.c
@@ -43,7 +43,7 @@ static BOOL api_netr_LogonUasLogon(pipes_struct *p)
return False;
}
- r.out.result = _netr_LogonUasLogon(p, r.in.server_name, r.in.account_name, r.in.workstation, r.out.info);
+ r.out.result = _netr_LogonUasLogon(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -114,7 +114,7 @@ static BOOL api_netr_LogonUasLogoff(pipes_struct *p)
return False;
}
- r.out.result = _netr_LogonUasLogoff(p, r.in.server_name, r.in.account_name, r.in.workstation, r.out.info);
+ r.out.result = _netr_LogonUasLogoff(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -192,7 +192,7 @@ static BOOL api_netr_LogonSamLogon(pipes_struct *p)
return False;
}
- r.out.result = _netr_LogonSamLogon(p, r.in.server_name, r.in.computer_name, r.in.credential, r.in.return_authenticator, r.in.logon_level, r.in.logon, r.in.validation_level, r.out.validation, r.out.authoritative);
+ r.out.result = _netr_LogonSamLogon(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -258,7 +258,7 @@ static BOOL api_netr_LogonSamLogoff(pipes_struct *p)
ZERO_STRUCT(r.out);
r.out.return_authenticator = r.in.return_authenticator;
- r.out.result = _netr_LogonSamLogoff(p, r.in.server_name, r.in.computer_name, r.in.credential, r.in.return_authenticator, r.in.logon_level, r.in.logon);
+ r.out.result = _netr_LogonSamLogoff(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -324,7 +324,7 @@ static BOOL api_netr_ServerReqChallenge(pipes_struct *p)
ZERO_STRUCT(r.out);
r.out.credentials = r.in.credentials;
- r.out.result = _netr_ServerReqChallenge(p, r.in.server_name, r.in.computer_name, r.in.credentials);
+ r.out.result = _netr_ServerReqChallenge(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -390,7 +390,7 @@ static BOOL api_netr_ServerAuthenticate(pipes_struct *p)
ZERO_STRUCT(r.out);
r.out.credentials = r.in.credentials;
- r.out.result = _netr_ServerAuthenticate(p, r.in.server_name, r.in.account_name, r.in.secure_channel_type, r.in.computer_name, r.in.credentials);
+ r.out.result = _netr_ServerAuthenticate(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -461,7 +461,7 @@ static BOOL api_netr_ServerPasswordSet(pipes_struct *p)
return False;
}
- r.out.result = _netr_ServerPasswordSet(p, r.in.server_name, r.in.account_name, r.in.secure_channel_type, r.in.computer_name, r.in.credential, r.in.new_password, r.out.return_authenticator);
+ r.out.result = _netr_ServerPasswordSet(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -534,7 +534,7 @@ static BOOL api_netr_DatabaseDeltas(pipes_struct *p)
return False;
}
- r.out.result = _netr_DatabaseDeltas(p, r.in.logon_server, r.in.computername, r.in.credential, r.in.return_authenticator, r.in.database_id, r.in.sequence_num, r.in.preferredmaximumlength, r.out.delta_enum_array);
+ r.out.result = _netr_DatabaseDeltas(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -607,7 +607,7 @@ static BOOL api_netr_DatabaseSync(pipes_struct *p)
return False;
}
- r.out.result = _netr_DatabaseSync(p, r.in.logon_server, r.in.computername, r.in.credential, r.in.return_authenticator, r.in.database_id, r.in.sync_context, r.in.preferredmaximumlength, r.out.delta_enum_array);
+ r.out.result = _netr_DatabaseSync(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -697,7 +697,7 @@ static BOOL api_netr_AccountDeltas(pipes_struct *p)
return False;
}
- r.out.result = _netr_AccountDeltas(p, r.in.logon_server, r.in.computername, r.in.credential, r.in.return_authenticator, r.in.uas, r.in.count, r.in.level, r.in.buffersize, r.out.buffer, r.out.count_returned, r.out.total_entries, r.out.recordid);
+ r.out.result = _netr_AccountDeltas(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -788,7 +788,7 @@ static BOOL api_netr_AccountSync(pipes_struct *p)
}
r.out.recordid = r.in.recordid;
- r.out.result = _netr_AccountSync(p, r.in.logon_server, r.in.computername, r.in.credential, r.in.return_authenticator, r.in.reference, r.in.level, r.in.buffersize, r.out.buffer, r.out.count_returned, r.out.total_entries, r.out.next_reference, r.in.recordid);
+ r.out.result = _netr_AccountSync(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -859,7 +859,7 @@ static BOOL api_netr_GetDcName(pipes_struct *p)
return False;
}
- r.out.result = _netr_GetDcName(p, r.in.logon_server, r.in.domainname, r.out.dcname);
+ r.out.result = _netr_GetDcName(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -930,7 +930,7 @@ static BOOL api_netr_LogonControl(pipes_struct *p)
return False;
}
- r.out.result = _netr_LogonControl(p, r.in.logon_server, r.in.function_code, r.in.level, r.out.info);
+ r.out.result = _netr_LogonControl(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1001,7 +1001,7 @@ static BOOL api_netr_GetAnyDCName(pipes_struct *p)
return False;
}
- r.out.result = _netr_GetAnyDCName(p, r.in.logon_server, r.in.domainname, r.out.dcname);
+ r.out.result = _netr_GetAnyDCName(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1072,7 +1072,7 @@ static BOOL api_netr_LogonControl2(pipes_struct *p)
return False;
}
- r.out.result = _netr_LogonControl2(p, r.in.logon_server, r.in.function_code, r.in.level, r.in.data, r.out.query);
+ r.out.result = _netr_LogonControl2(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1139,7 +1139,7 @@ static BOOL api_netr_ServerAuthenticate2(pipes_struct *p)
ZERO_STRUCT(r.out);
r.out.credentials = r.in.credentials;
r.out.negotiate_flags = r.in.negotiate_flags;
- r.out.result = _netr_ServerAuthenticate2(p, r.in.server_name, r.in.account_name, r.in.secure_channel_type, r.in.computer_name, r.in.credentials, r.in.negotiate_flags);
+ r.out.result = _netr_ServerAuthenticate2(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1212,7 +1212,7 @@ static BOOL api_netr_DatabaseSync2(pipes_struct *p)
return False;
}
- r.out.result = _netr_DatabaseSync2(p, r.in.logon_server, r.in.computername, r.in.credential, r.in.return_authenticator, r.in.database_id, r.in.restart_state, r.in.sync_context, r.in.preferredmaximumlength, r.out.delta_enum_array);
+ r.out.result = _netr_DatabaseSync2(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1284,7 +1284,7 @@ static BOOL api_netr_DatabaseRedo(pipes_struct *p)
return False;
}
- r.out.result = _netr_DatabaseRedo(p, r.in.logon_server, r.in.computername, r.in.credential, r.in.return_authenticator, r.in.change_log_entry, r.in.change_log_entry_size, r.out.delta_enum_array);
+ r.out.result = _netr_DatabaseRedo(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1355,7 +1355,7 @@ static BOOL api_netr_LogonControl2Ex(pipes_struct *p)
return False;
}
- r.out.result = _netr_LogonControl2Ex(p, r.in.logon_server, r.in.function_code, r.in.level, r.in.data, r.out.query);
+ r.out.result = _netr_LogonControl2Ex(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1419,7 +1419,7 @@ static BOOL api_netr_NETRENUMERATETRUSTEDDOMAINS(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINS, &r);
- r.out.result = _netr_NETRENUMERATETRUSTEDDOMAINS(p);
+ r.out.result = _netr_NETRENUMERATETRUSTEDDOMAINS(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1490,7 +1490,7 @@ static BOOL api_netr_DsRGetDCName(pipes_struct *p)
return False;
}
- r.out.result = _netr_DsRGetDCName(p, r.in.server_unc, r.in.domain_name, r.in.domain_guid, r.in.site_guid, r.in.flags, r.out.info);
+ r.out.result = _netr_DsRGetDCName(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1554,7 +1554,7 @@ static BOOL api_netr_NETRLOGONDUMMYROUTINE1(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(netr_NETRLOGONDUMMYROUTINE1, &r);
- r.out.result = _netr_NETRLOGONDUMMYROUTINE1(p);
+ r.out.result = _netr_NETRLOGONDUMMYROUTINE1(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1618,7 +1618,7 @@ static BOOL api_netr_NETRLOGONSETSERVICEBITS(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(netr_NETRLOGONSETSERVICEBITS, &r);
- r.out.result = _netr_NETRLOGONSETSERVICEBITS(p);
+ r.out.result = _netr_NETRLOGONSETSERVICEBITS(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1682,7 +1682,7 @@ static BOOL api_netr_NETRLOGONGETTRUSTRID(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(netr_NETRLOGONGETTRUSTRID, &r);
- r.out.result = _netr_NETRLOGONGETTRUSTRID(p);
+ r.out.result = _netr_NETRLOGONGETTRUSTRID(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1746,7 +1746,7 @@ static BOOL api_netr_NETRLOGONCOMPUTESERVERDIGEST(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(netr_NETRLOGONCOMPUTESERVERDIGEST, &r);
- r.out.result = _netr_NETRLOGONCOMPUTESERVERDIGEST(p);
+ r.out.result = _netr_NETRLOGONCOMPUTESERVERDIGEST(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1810,7 +1810,7 @@ static BOOL api_netr_NETRLOGONCOMPUTECLIENTDIGEST(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(netr_NETRLOGONCOMPUTECLIENTDIGEST, &r);
- r.out.result = _netr_NETRLOGONCOMPUTECLIENTDIGEST(p);
+ r.out.result = _netr_NETRLOGONCOMPUTECLIENTDIGEST(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1883,7 +1883,7 @@ static BOOL api_netr_ServerAuthenticate3(pipes_struct *p)
return False;
}
- r.out.result = _netr_ServerAuthenticate3(p, r.in.server_name, r.in.account_name, r.in.secure_channel_type, r.in.computer_name, r.in.credentials, r.in.negotiate_flags, r.out.rid);
+ r.out.result = _netr_ServerAuthenticate3(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1954,7 +1954,7 @@ static BOOL api_netr_DsRGetDCNameEx(pipes_struct *p)
return False;
}
- r.out.result = _netr_DsRGetDCNameEx(p, r.in.server_unc, r.in.domain_name, r.in.domain_guid, r.in.site_name, r.in.flags, r.out.info);
+ r.out.result = _netr_DsRGetDCNameEx(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2025,7 +2025,7 @@ static BOOL api_netr_DsRGetSiteName(pipes_struct *p)
return False;
}
- r.out.result = _netr_DsRGetSiteName(p, r.in.computer_name, r.out.site);
+ r.out.result = _netr_DsRGetSiteName(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2097,7 +2097,7 @@ static BOOL api_netr_LogonGetDomainInfo(pipes_struct *p)
return False;
}
- r.out.result = _netr_LogonGetDomainInfo(p, r.in.server_name, r.in.computer_name, r.in.credential, r.in.return_authenticator, r.in.level, r.in.query, r.out.info);
+ r.out.result = _netr_LogonGetDomainInfo(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2168,7 +2168,7 @@ static BOOL api_netr_ServerPasswordSet2(pipes_struct *p)
return False;
}
- r.out.result = _netr_ServerPasswordSet2(p, r.in.server_name, r.in.account_name, r.in.secure_channel_type, r.in.computer_name, r.in.credential, r.in.new_password, r.out.return_authenticator);
+ r.out.result = _netr_ServerPasswordSet2(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2232,7 +2232,7 @@ static BOOL api_netr_NETRSERVERPASSWORDGET(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(netr_NETRSERVERPASSWORDGET, &r);
- r.out.result = _netr_NETRSERVERPASSWORDGET(p);
+ r.out.result = _netr_NETRSERVERPASSWORDGET(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2296,7 +2296,7 @@ static BOOL api_netr_NETRLOGONSENDTOSAM(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(netr_NETRLOGONSENDTOSAM, &r);
- r.out.result = _netr_NETRLOGONSENDTOSAM(p);
+ r.out.result = _netr_NETRLOGONSENDTOSAM(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2360,7 +2360,7 @@ static BOOL api_netr_DSRADDRESSTOSITENAMESW(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(netr_DSRADDRESSTOSITENAMESW, &r);
- r.out.result = _netr_DSRADDRESSTOSITENAMESW(p);
+ r.out.result = _netr_DSRADDRESSTOSITENAMESW(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2431,7 +2431,7 @@ static BOOL api_netr_DsRGetDCNameEx2(pipes_struct *p)
return False;
}
- r.out.result = _netr_DsRGetDCNameEx2(p, r.in.server_unc, r.in.client_account, r.in.mask, r.in.domain_name, r.in.domain_guid, r.in.site_name, r.in.flags, r.out.info);
+ r.out.result = _netr_DsRGetDCNameEx2(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2495,7 +2495,7 @@ static BOOL api_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN, &r);
- r.out.result = _netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(p);
+ r.out.result = _netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2559,7 +2559,7 @@ static BOOL api_netr_NETRENUMERATETRUSTEDDOMAINSEX(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(netr_NETRENUMERATETRUSTEDDOMAINSEX, &r);
- r.out.result = _netr_NETRENUMERATETRUSTEDDOMAINSEX(p);
+ r.out.result = _netr_NETRENUMERATETRUSTEDDOMAINSEX(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2623,7 +2623,7 @@ static BOOL api_netr_DSRADDRESSTOSITENAMESEXW(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(netr_DSRADDRESSTOSITENAMESEXW, &r);
- r.out.result = _netr_DSRADDRESSTOSITENAMESEXW(p);
+ r.out.result = _netr_DSRADDRESSTOSITENAMESEXW(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2687,7 +2687,7 @@ static BOOL api_netr_DSRGETDCSITECOVERAGEW(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(netr_DSRGETDCSITECOVERAGEW, &r);
- r.out.result = _netr_DSRGETDCSITECOVERAGEW(p);
+ r.out.result = _netr_DSRGETDCSITECOVERAGEW(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2765,7 +2765,7 @@ static BOOL api_netr_LogonSamLogonEx(pipes_struct *p)
}
r.out.flags = r.in.flags;
- r.out.result = _netr_LogonSamLogonEx(p, r.in.server_name, r.in.computer_name, r.in.logon_level, r.in.logon, r.in.validation_level, r.out.validation, r.out.authoritative, r.in.flags);
+ r.out.result = _netr_LogonSamLogonEx(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2842,7 +2842,7 @@ static BOOL api_netr_DsrEnumerateDomainTrusts(pipes_struct *p)
return False;
}
- r.out.result = _netr_DsrEnumerateDomainTrusts(p, r.in.server_name, r.in.trust_flags, r.out.count, r.out.trusts);
+ r.out.result = _netr_DsrEnumerateDomainTrusts(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2906,7 +2906,7 @@ static BOOL api_netr_DSRDEREGISTERDNSHOSTRECORDS(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(netr_DSRDEREGISTERDNSHOSTRECORDS, &r);
- r.out.result = _netr_DSRDEREGISTERDNSHOSTRECORDS(p);
+ r.out.result = _netr_DSRDEREGISTERDNSHOSTRECORDS(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2970,7 +2970,7 @@ static BOOL api_netr_NETRSERVERTRUSTPASSWORDSGET(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(netr_NETRSERVERTRUSTPASSWORDSGET, &r);
- r.out.result = _netr_NETRSERVERTRUSTPASSWORDSGET(p);
+ r.out.result = _netr_NETRSERVERTRUSTPASSWORDSGET(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3034,7 +3034,7 @@ static BOOL api_netr_DSRGETFORESTTRUSTINFORMATION(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(netr_DSRGETFORESTTRUSTINFORMATION, &r);
- r.out.result = _netr_DSRGETFORESTTRUSTINFORMATION(p);
+ r.out.result = _netr_DSRGETFORESTTRUSTINFORMATION(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3098,7 +3098,7 @@ static BOOL api_netr_NETRGETFORESTTRUSTINFORMATION(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(netr_NETRGETFORESTTRUSTINFORMATION, &r);
- r.out.result = _netr_NETRGETFORESTTRUSTINFORMATION(p);
+ r.out.result = _netr_NETRGETFORESTTRUSTINFORMATION(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3177,7 +3177,7 @@ static BOOL api_netr_LogonSamLogonWithFlags(pipes_struct *p)
}
r.out.flags = r.in.flags;
- r.out.result = _netr_LogonSamLogonWithFlags(p, r.in.server_name, r.in.computer_name, r.in.credential, r.in.return_authenticator, r.in.logon_level, r.in.logon, r.in.validation_level, r.out.validation, r.out.authoritative, r.in.flags);
+ r.out.result = _netr_LogonSamLogonWithFlags(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3241,7 +3241,7 @@ static BOOL api_netr_NETRSERVERGETTRUSTINFO(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(netr_NETRSERVERGETTRUSTINFO, &r);
- r.out.result = _netr_NETRSERVERGETTRUSTINFO(p);
+ r.out.result = _netr_NETRSERVERGETTRUSTINFO(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
diff --git a/source3/librpc/gen_ndr/srv_netlogon.h b/source3/librpc/gen_ndr/srv_netlogon.h
index efcd8f2a08..8350f437cd 100644
--- a/source3/librpc/gen_ndr/srv_netlogon.h
+++ b/source3/librpc/gen_ndr/srv_netlogon.h
@@ -1,53 +1,53 @@
#include "librpc/gen_ndr/ndr_netlogon.h"
#ifndef __SRV_NETLOGON__
#define __SRV_NETLOGON__
-WERROR _netr_LogonUasLogon(pipes_struct *p, const char *server_name, const char *account_name, const char *workstation, struct netr_UasInfo *info);
-WERROR _netr_LogonUasLogoff(pipes_struct *p, const char *server_name, const char *account_name, const char *workstation, struct netr_UasLogoffInfo *info);
-NTSTATUS _netr_LogonSamLogon(pipes_struct *p, const char *server_name, const char *computer_name, struct netr_Authenticator *credential, struct netr_Authenticator *return_authenticator, uint16_t logon_level, union netr_LogonLevel logon, uint16_t validation_level, union netr_Validation *validation, uint8_t *authoritative);
-NTSTATUS _netr_LogonSamLogoff(pipes_struct *p, const char *server_name, const char *computer_name, struct netr_Authenticator *credential, struct netr_Authenticator *return_authenticator, uint16_t logon_level, union netr_LogonLevel logon);
-NTSTATUS _netr_ServerReqChallenge(pipes_struct *p, const char *server_name, const char *computer_name, struct netr_Credential *credentials);
-NTSTATUS _netr_ServerAuthenticate(pipes_struct *p, const char *server_name, const char *account_name, enum netr_SchannelType secure_channel_type, const char *computer_name, struct netr_Credential *credentials);
-NTSTATUS _netr_ServerPasswordSet(pipes_struct *p, const char *server_name, const char *account_name, enum netr_SchannelType secure_channel_type, const char *computer_name, struct netr_Authenticator credential, struct samr_Password new_password, struct netr_Authenticator *return_authenticator);
-NTSTATUS _netr_DatabaseDeltas(pipes_struct *p, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, enum netr_SamDatabaseID database_id, uint64_t *sequence_num, uint32_t preferredmaximumlength, struct netr_DELTA_ENUM_ARRAY *delta_enum_array);
-NTSTATUS _netr_DatabaseSync(pipes_struct *p, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, enum netr_SamDatabaseID database_id, uint32_t *sync_context, uint32_t preferredmaximumlength, struct netr_DELTA_ENUM_ARRAY *delta_enum_array);
-NTSTATUS _netr_AccountDeltas(pipes_struct *p, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, struct netr_UAS_INFO_0 uas, uint32_t count, uint32_t level, uint32_t buffersize, struct netr_AccountBuffer *buffer, uint32_t *count_returned, uint32_t *total_entries, struct netr_UAS_INFO_0 *recordid);
-NTSTATUS _netr_AccountSync(pipes_struct *p, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, uint32_t reference, uint32_t level, uint32_t buffersize, struct netr_AccountBuffer *buffer, uint32_t *count_returned, uint32_t *total_entries, uint32_t *next_reference, struct netr_UAS_INFO_0 *recordid);
-NTSTATUS _netr_GetDcName(pipes_struct *p, const char *logon_server, const char *domainname, const char **dcname);
-WERROR _netr_LogonControl(pipes_struct *p, const char *logon_server, enum netr_LogonControlCode function_code, uint32_t level, union netr_CONTROL_QUERY_INFORMATION *info);
-WERROR _netr_GetAnyDCName(pipes_struct *p, const char *logon_server, const char *domainname, const char **dcname);
-WERROR _netr_LogonControl2(pipes_struct *p, const char *logon_server, uint32_t function_code, uint32_t level, union netr_CONTROL_DATA_INFORMATION data, union netr_CONTROL_QUERY_INFORMATION *query);
-NTSTATUS _netr_ServerAuthenticate2(pipes_struct *p, const char *server_name, const char *account_name, enum netr_SchannelType secure_channel_type, const char *computer_name, struct netr_Credential *credentials, uint32_t *negotiate_flags);
-NTSTATUS _netr_DatabaseSync2(pipes_struct *p, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, enum netr_SamDatabaseID database_id, uint16_t restart_state, uint32_t *sync_context, uint32_t preferredmaximumlength, struct netr_DELTA_ENUM_ARRAY *delta_enum_array);
-NTSTATUS _netr_DatabaseRedo(pipes_struct *p, const char *logon_server, const char *computername, struct netr_Authenticator credential, struct netr_Authenticator *return_authenticator, uint8_t *change_log_entry, uint32_t change_log_entry_size, struct netr_DELTA_ENUM_ARRAY *delta_enum_array);
-WERROR _netr_LogonControl2Ex(pipes_struct *p, const char *logon_server, uint32_t function_code, uint32_t level, union netr_CONTROL_DATA_INFORMATION data, union netr_CONTROL_QUERY_INFORMATION *query);
-WERROR _netr_NETRENUMERATETRUSTEDDOMAINS(pipes_struct *p);
-WERROR _netr_DsRGetDCName(pipes_struct *p, const char *server_unc, const char *domain_name, struct GUID *domain_guid, struct GUID *site_guid, uint32_t flags, struct netr_DsRGetDCNameInfo *info);
-WERROR _netr_NETRLOGONDUMMYROUTINE1(pipes_struct *p);
-WERROR _netr_NETRLOGONSETSERVICEBITS(pipes_struct *p);
-WERROR _netr_NETRLOGONGETTRUSTRID(pipes_struct *p);
-WERROR _netr_NETRLOGONCOMPUTESERVERDIGEST(pipes_struct *p);
-WERROR _netr_NETRLOGONCOMPUTECLIENTDIGEST(pipes_struct *p);
-NTSTATUS _netr_ServerAuthenticate3(pipes_struct *p, const char *server_name, const char *account_name, enum netr_SchannelType secure_channel_type, const char *computer_name, struct netr_Credential *credentials, uint32_t *negotiate_flags, uint32_t *rid);
-WERROR _netr_DsRGetDCNameEx(pipes_struct *p, const char *server_unc, const char *domain_name, struct GUID *domain_guid, const char *site_name, uint32_t flags, struct netr_DsRGetDCNameInfo *info);
-WERROR _netr_DsRGetSiteName(pipes_struct *p, const char *computer_name, const char **site);
-NTSTATUS _netr_LogonGetDomainInfo(pipes_struct *p, const char *server_name, const char *computer_name, struct netr_Authenticator *credential, struct netr_Authenticator *return_authenticator, uint32_t level, union netr_DomainQuery query, union netr_DomainInfo *info);
-NTSTATUS _netr_ServerPasswordSet2(pipes_struct *p, const char *server_name, const char *account_name, enum netr_SchannelType secure_channel_type, const char *computer_name, struct netr_Authenticator credential, struct netr_CryptPassword new_password, struct netr_Authenticator *return_authenticator);
-WERROR _netr_NETRSERVERPASSWORDGET(pipes_struct *p);
-WERROR _netr_NETRLOGONSENDTOSAM(pipes_struct *p);
-WERROR _netr_DSRADDRESSTOSITENAMESW(pipes_struct *p);
-WERROR _netr_DsRGetDCNameEx2(pipes_struct *p, const char *server_unc, const char *client_account, uint32_t mask, const char *domain_name, struct GUID *domain_guid, const char *site_name, uint32_t flags, struct netr_DsRGetDCNameInfo *info);
-WERROR _netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(pipes_struct *p);
-WERROR _netr_NETRENUMERATETRUSTEDDOMAINSEX(pipes_struct *p);
-WERROR _netr_DSRADDRESSTOSITENAMESEXW(pipes_struct *p);
-WERROR _netr_DSRGETDCSITECOVERAGEW(pipes_struct *p);
-NTSTATUS _netr_LogonSamLogonEx(pipes_struct *p, const char *server_name, const char *computer_name, uint16_t logon_level, union netr_LogonLevel logon, uint16_t validation_level, union netr_Validation *validation, uint8_t *authoritative, uint32_t *flags);
-WERROR _netr_DsrEnumerateDomainTrusts(pipes_struct *p, const char *server_name, uint32_t trust_flags, uint32_t *count, struct netr_DomainTrust **trusts);
-WERROR _netr_DSRDEREGISTERDNSHOSTRECORDS(pipes_struct *p);
-WERROR _netr_NETRSERVERTRUSTPASSWORDSGET(pipes_struct *p);
-WERROR _netr_DSRGETFORESTTRUSTINFORMATION(pipes_struct *p);
-WERROR _netr_NETRGETFORESTTRUSTINFORMATION(pipes_struct *p);
-NTSTATUS _netr_LogonSamLogonWithFlags(pipes_struct *p, const char *server_name, const char *computer_name, struct netr_Authenticator *credential, struct netr_Authenticator *return_authenticator, uint16_t logon_level, union netr_LogonLevel logon, uint16_t validation_level, union netr_Validation *validation, uint8_t *authoritative, uint32_t *flags);
-WERROR _netr_NETRSERVERGETTRUSTINFO(pipes_struct *p);
+WERROR _netr_LogonUasLogon(pipes_struct *p, struct netr_LogonUasLogon *r);
+WERROR _netr_LogonUasLogoff(pipes_struct *p, struct netr_LogonUasLogoff *r);
+NTSTATUS _netr_LogonSamLogon(pipes_struct *p, struct netr_LogonSamLogon *r);
+NTSTATUS _netr_LogonSamLogoff(pipes_struct *p, struct netr_LogonSamLogoff *r);
+NTSTATUS _netr_ServerReqChallenge(pipes_struct *p, struct netr_ServerReqChallenge *r);
+NTSTATUS _netr_ServerAuthenticate(pipes_struct *p, struct netr_ServerAuthenticate *r);
+NTSTATUS _netr_ServerPasswordSet(pipes_struct *p, struct netr_ServerPasswordSet *r);
+NTSTATUS _netr_DatabaseDeltas(pipes_struct *p, struct netr_DatabaseDeltas *r);
+NTSTATUS _netr_DatabaseSync(pipes_struct *p, struct netr_DatabaseSync *r);
+NTSTATUS _netr_AccountDeltas(pipes_struct *p, struct netr_AccountDeltas *r);
+NTSTATUS _netr_AccountSync(pipes_struct *p, struct netr_AccountSync *r);
+NTSTATUS _netr_GetDcName(pipes_struct *p, struct netr_GetDcName *r);
+WERROR _netr_LogonControl(pipes_struct *p, struct netr_LogonControl *r);
+WERROR _netr_GetAnyDCName(pipes_struct *p, struct netr_GetAnyDCName *r);
+WERROR _netr_LogonControl2(pipes_struct *p, struct netr_LogonControl2 *r);
+NTSTATUS _netr_ServerAuthenticate2(pipes_struct *p, struct netr_ServerAuthenticate2 *r);
+NTSTATUS _netr_DatabaseSync2(pipes_struct *p, struct netr_DatabaseSync2 *r);
+NTSTATUS _netr_DatabaseRedo(pipes_struct *p, struct netr_DatabaseRedo *r);
+WERROR _netr_LogonControl2Ex(pipes_struct *p, struct netr_LogonControl2Ex *r);
+WERROR _netr_NETRENUMERATETRUSTEDDOMAINS(pipes_struct *p, struct netr_NETRENUMERATETRUSTEDDOMAINS *r);
+WERROR _netr_DsRGetDCName(pipes_struct *p, struct netr_DsRGetDCName *r);
+WERROR _netr_NETRLOGONDUMMYROUTINE1(pipes_struct *p, struct netr_NETRLOGONDUMMYROUTINE1 *r);
+WERROR _netr_NETRLOGONSETSERVICEBITS(pipes_struct *p, struct netr_NETRLOGONSETSERVICEBITS *r);
+WERROR _netr_NETRLOGONGETTRUSTRID(pipes_struct *p, struct netr_NETRLOGONGETTRUSTRID *r);
+WERROR _netr_NETRLOGONCOMPUTESERVERDIGEST(pipes_struct *p, struct netr_NETRLOGONCOMPUTESERVERDIGEST *r);
+WERROR _netr_NETRLOGONCOMPUTECLIENTDIGEST(pipes_struct *p, struct netr_NETRLOGONCOMPUTECLIENTDIGEST *r);
+NTSTATUS _netr_ServerAuthenticate3(pipes_struct *p, struct netr_ServerAuthenticate3 *r);
+WERROR _netr_DsRGetDCNameEx(pipes_struct *p, struct netr_DsRGetDCNameEx *r);
+WERROR _netr_DsRGetSiteName(pipes_struct *p, struct netr_DsRGetSiteName *r);
+NTSTATUS _netr_LogonGetDomainInfo(pipes_struct *p, struct netr_LogonGetDomainInfo *r);
+NTSTATUS _netr_ServerPasswordSet2(pipes_struct *p, struct netr_ServerPasswordSet2 *r);
+WERROR _netr_NETRSERVERPASSWORDGET(pipes_struct *p, struct netr_NETRSERVERPASSWORDGET *r);
+WERROR _netr_NETRLOGONSENDTOSAM(pipes_struct *p, struct netr_NETRLOGONSENDTOSAM *r);
+WERROR _netr_DSRADDRESSTOSITENAMESW(pipes_struct *p, struct netr_DSRADDRESSTOSITENAMESW *r);
+WERROR _netr_DsRGetDCNameEx2(pipes_struct *p, struct netr_DsRGetDCNameEx2 *r);
+WERROR _netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(pipes_struct *p, struct netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN *r);
+WERROR _netr_NETRENUMERATETRUSTEDDOMAINSEX(pipes_struct *p, struct netr_NETRENUMERATETRUSTEDDOMAINSEX *r);
+WERROR _netr_DSRADDRESSTOSITENAMESEXW(pipes_struct *p, struct netr_DSRADDRESSTOSITENAMESEXW *r);
+WERROR _netr_DSRGETDCSITECOVERAGEW(pipes_struct *p, struct netr_DSRGETDCSITECOVERAGEW *r);
+NTSTATUS _netr_LogonSamLogonEx(pipes_struct *p, struct netr_LogonSamLogonEx *r);
+WERROR _netr_DsrEnumerateDomainTrusts(pipes_struct *p, struct netr_DsrEnumerateDomainTrusts *r);
+WERROR _netr_DSRDEREGISTERDNSHOSTRECORDS(pipes_struct *p, struct netr_DSRDEREGISTERDNSHOSTRECORDS *r);
+WERROR _netr_NETRSERVERTRUSTPASSWORDSGET(pipes_struct *p, struct netr_NETRSERVERTRUSTPASSWORDSGET *r);
+WERROR _netr_DSRGETFORESTTRUSTINFORMATION(pipes_struct *p, struct netr_DSRGETFORESTTRUSTINFORMATION *r);
+WERROR _netr_NETRGETFORESTTRUSTINFORMATION(pipes_struct *p, struct netr_NETRGETFORESTTRUSTINFORMATION *r);
+NTSTATUS _netr_LogonSamLogonWithFlags(pipes_struct *p, struct netr_LogonSamLogonWithFlags *r);
+WERROR _netr_NETRSERVERGETTRUSTINFO(pipes_struct *p, struct netr_NETRSERVERGETTRUSTINFO *r);
void netlogon_get_pipe_fns(struct api_struct **fns, int *n_fns);
NTSTATUS rpc_netlogon_init(void);
#endif /* __SRV_NETLOGON__ */
diff --git a/source3/librpc/gen_ndr/srv_srvsvc.c b/source3/librpc/gen_ndr/srv_srvsvc.c
index a47d6d9eec..18b8689204 100644
--- a/source3/librpc/gen_ndr/srv_srvsvc.c
+++ b/source3/librpc/gen_ndr/srv_srvsvc.c
@@ -46,7 +46,7 @@ static BOOL api_srvsvc_NetCharDevEnum(pipes_struct *p)
}
r.out.resume_handle = r.in.resume_handle;
- r.out.result = _srvsvc_NetCharDevEnum(p, r.in.server_unc, r.in.level, r.in.ctr, r.in.max_buffer, r.out.totalentries, r.in.resume_handle);
+ r.out.result = _srvsvc_NetCharDevEnum(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -117,7 +117,7 @@ static BOOL api_srvsvc_NetCharDevGetInfo(pipes_struct *p)
return False;
}
- r.out.result = _srvsvc_NetCharDevGetInfo(p, r.in.server_unc, r.in.device_name, r.in.level, r.out.info);
+ r.out.result = _srvsvc_NetCharDevGetInfo(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -181,7 +181,7 @@ static BOOL api_srvsvc_NetCharDevControl(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevControl, &r);
- r.out.result = _srvsvc_NetCharDevControl(p, r.in.server_unc, r.in.device_name, r.in.opcode);
+ r.out.result = _srvsvc_NetCharDevControl(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -255,7 +255,7 @@ static BOOL api_srvsvc_NetCharDevQEnum(pipes_struct *p)
}
r.out.resume_handle = r.in.resume_handle;
- r.out.result = _srvsvc_NetCharDevQEnum(p, r.in.server_unc, r.in.user, r.in.level, r.in.ctr, r.in.max_buffer, r.out.totalentries, r.in.resume_handle);
+ r.out.result = _srvsvc_NetCharDevQEnum(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -326,7 +326,7 @@ static BOOL api_srvsvc_NetCharDevQGetInfo(pipes_struct *p)
return False;
}
- r.out.result = _srvsvc_NetCharDevQGetInfo(p, r.in.server_unc, r.in.queue_name, r.in.user, r.in.level, r.out.info);
+ r.out.result = _srvsvc_NetCharDevQGetInfo(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -392,7 +392,7 @@ static BOOL api_srvsvc_NetCharDevQSetInfo(pipes_struct *p)
ZERO_STRUCT(r.out);
r.out.parm_error = r.in.parm_error;
- r.out.result = _srvsvc_NetCharDevQSetInfo(p, r.in.server_unc, r.in.queue_name, r.in.level, r.in.info, r.in.parm_error);
+ r.out.result = _srvsvc_NetCharDevQSetInfo(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -456,7 +456,7 @@ static BOOL api_srvsvc_NetCharDevQPurge(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQPurge, &r);
- r.out.result = _srvsvc_NetCharDevQPurge(p, r.in.server_unc, r.in.queue_name);
+ r.out.result = _srvsvc_NetCharDevQPurge(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -520,7 +520,7 @@ static BOOL api_srvsvc_NetCharDevQPurgeSelf(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NetCharDevQPurgeSelf, &r);
- r.out.result = _srvsvc_NetCharDevQPurgeSelf(p, r.in.server_unc, r.in.queue_name, r.in.computer_name);
+ r.out.result = _srvsvc_NetCharDevQPurgeSelf(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -594,7 +594,7 @@ static BOOL api_srvsvc_NetConnEnum(pipes_struct *p)
}
r.out.resume_handle = r.in.resume_handle;
- r.out.result = _srvsvc_NetConnEnum(p, r.in.server_unc, r.in.path, r.in.level, r.in.ctr, r.in.max_buffer, r.out.totalentries, r.in.resume_handle);
+ r.out.result = _srvsvc_NetConnEnum(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -668,7 +668,7 @@ static BOOL api_srvsvc_NetFileEnum(pipes_struct *p)
}
r.out.resume_handle = r.in.resume_handle;
- r.out.result = _srvsvc_NetFileEnum(p, r.in.server_unc, r.in.path, r.in.user, r.in.level, r.in.ctr, r.in.max_buffer, r.out.totalentries, r.in.resume_handle);
+ r.out.result = _srvsvc_NetFileEnum(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -739,7 +739,7 @@ static BOOL api_srvsvc_NetFileGetInfo(pipes_struct *p)
return False;
}
- r.out.result = _srvsvc_NetFileGetInfo(p, r.in.server_unc, r.in.fid, r.in.level, r.out.info);
+ r.out.result = _srvsvc_NetFileGetInfo(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -803,7 +803,7 @@ static BOOL api_srvsvc_NetFileClose(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NetFileClose, &r);
- r.out.result = _srvsvc_NetFileClose(p, r.in.server_unc, r.in.fid);
+ r.out.result = _srvsvc_NetFileClose(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -877,7 +877,7 @@ static BOOL api_srvsvc_NetSessEnum(pipes_struct *p)
}
r.out.resume_handle = r.in.resume_handle;
- r.out.result = _srvsvc_NetSessEnum(p, r.in.server_unc, r.in.client, r.in.user, r.in.level, r.in.ctr, r.in.max_buffer, r.out.totalentries, r.in.resume_handle);
+ r.out.result = _srvsvc_NetSessEnum(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -941,7 +941,7 @@ static BOOL api_srvsvc_NetSessDel(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NetSessDel, &r);
- r.out.result = _srvsvc_NetSessDel(p, r.in.server_unc, r.in.client, r.in.user);
+ r.out.result = _srvsvc_NetSessDel(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1007,7 +1007,7 @@ static BOOL api_srvsvc_NetShareAdd(pipes_struct *p)
ZERO_STRUCT(r.out);
r.out.parm_error = r.in.parm_error;
- r.out.result = _srvsvc_NetShareAdd(p, r.in.server_unc, r.in.level, r.in.info, r.in.parm_error);
+ r.out.result = _srvsvc_NetShareAdd(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1081,7 +1081,7 @@ static BOOL api_srvsvc_NetShareEnumAll(pipes_struct *p)
}
r.out.resume_handle = r.in.resume_handle;
- r.out.result = _srvsvc_NetShareEnumAll(p, r.in.server_unc, r.in.level, r.in.ctr, r.in.max_buffer, r.out.totalentries, r.in.resume_handle);
+ r.out.result = _srvsvc_NetShareEnumAll(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1152,7 +1152,7 @@ static BOOL api_srvsvc_NetShareGetInfo(pipes_struct *p)
return False;
}
- r.out.result = _srvsvc_NetShareGetInfo(p, r.in.server_unc, r.in.share_name, r.in.level, r.out.info);
+ r.out.result = _srvsvc_NetShareGetInfo(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1218,7 +1218,7 @@ static BOOL api_srvsvc_NetShareSetInfo(pipes_struct *p)
ZERO_STRUCT(r.out);
r.out.parm_error = r.in.parm_error;
- r.out.result = _srvsvc_NetShareSetInfo(p, r.in.server_unc, r.in.share_name, r.in.level, r.in.info, r.in.parm_error);
+ r.out.result = _srvsvc_NetShareSetInfo(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1282,7 +1282,7 @@ static BOOL api_srvsvc_NetShareDel(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NetShareDel, &r);
- r.out.result = _srvsvc_NetShareDel(p, r.in.server_unc, r.in.share_name, r.in.reserved);
+ r.out.result = _srvsvc_NetShareDel(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1346,7 +1346,7 @@ static BOOL api_srvsvc_NetShareDelSticky(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NetShareDelSticky, &r);
- r.out.result = _srvsvc_NetShareDelSticky(p, r.in.server_unc, r.in.share_name, r.in.reserved);
+ r.out.result = _srvsvc_NetShareDelSticky(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1417,7 +1417,7 @@ static BOOL api_srvsvc_NetShareCheck(pipes_struct *p)
return False;
}
- r.out.result = _srvsvc_NetShareCheck(p, r.in.server_unc, r.in.device_name, r.out.type);
+ r.out.result = _srvsvc_NetShareCheck(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1488,7 +1488,7 @@ static BOOL api_srvsvc_NetSrvGetInfo(pipes_struct *p)
return False;
}
- r.out.result = _srvsvc_NetSrvGetInfo(p, r.in.server_unc, r.in.level, r.out.info);
+ r.out.result = _srvsvc_NetSrvGetInfo(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1554,7 +1554,7 @@ static BOOL api_srvsvc_NetSrvSetInfo(pipes_struct *p)
ZERO_STRUCT(r.out);
r.out.parm_error = r.in.parm_error;
- r.out.result = _srvsvc_NetSrvSetInfo(p, r.in.server_unc, r.in.level, r.in.info, r.in.parm_error);
+ r.out.result = _srvsvc_NetSrvSetInfo(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1627,7 +1627,7 @@ static BOOL api_srvsvc_NetDiskEnum(pipes_struct *p)
}
r.out.resume_handle = r.in.resume_handle;
- r.out.result = _srvsvc_NetDiskEnum(p, r.in.server_unc, r.in.level, r.in.info, r.in.maxlen, r.out.totalentries, r.in.resume_handle);
+ r.out.result = _srvsvc_NetDiskEnum(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1698,7 +1698,7 @@ static BOOL api_srvsvc_NetServerStatisticsGet(pipes_struct *p)
return False;
}
- r.out.result = _srvsvc_NetServerStatisticsGet(p, r.in.server_unc, r.in.service, r.in.level, r.in.options, r.out.stats);
+ r.out.result = _srvsvc_NetServerStatisticsGet(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1762,7 +1762,7 @@ static BOOL api_srvsvc_NetTransportAdd(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NetTransportAdd, &r);
- r.out.result = _srvsvc_NetTransportAdd(p, r.in.server_unc, r.in.level, r.in.info);
+ r.out.result = _srvsvc_NetTransportAdd(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1836,7 +1836,7 @@ static BOOL api_srvsvc_NetTransportEnum(pipes_struct *p)
}
r.out.resume_handle = r.in.resume_handle;
- r.out.result = _srvsvc_NetTransportEnum(p, r.in.server_unc, r.in.level, r.in.transports, r.in.max_buffer, r.out.totalentries, r.in.resume_handle);
+ r.out.result = _srvsvc_NetTransportEnum(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1900,7 +1900,7 @@ static BOOL api_srvsvc_NetTransportDel(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NetTransportDel, &r);
- r.out.result = _srvsvc_NetTransportDel(p, r.in.server_unc, r.in.unknown, r.in.transport);
+ r.out.result = _srvsvc_NetTransportDel(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1971,7 +1971,7 @@ static BOOL api_srvsvc_NetRemoteTOD(pipes_struct *p)
return False;
}
- r.out.result = _srvsvc_NetRemoteTOD(p, r.in.server_unc, r.out.info);
+ r.out.result = _srvsvc_NetRemoteTOD(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2035,7 +2035,7 @@ static BOOL api_srvsvc_NetSetServiceBits(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NetSetServiceBits, &r);
- r.out.result = _srvsvc_NetSetServiceBits(p, r.in.server_unc, r.in.transport, r.in.servicebits, r.in.updateimmediately);
+ r.out.result = _srvsvc_NetSetServiceBits(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2106,7 +2106,7 @@ static BOOL api_srvsvc_NetPathType(pipes_struct *p)
return False;
}
- r.out.result = _srvsvc_NetPathType(p, r.in.server_unc, r.in.path, r.in.pathflags, r.out.pathtype);
+ r.out.result = _srvsvc_NetPathType(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2178,7 +2178,7 @@ static BOOL api_srvsvc_NetPathCanonicalize(pipes_struct *p)
}
r.out.pathtype = r.in.pathtype;
- r.out.result = _srvsvc_NetPathCanonicalize(p, r.in.server_unc, r.in.path, r.out.can_path, r.in.maxbuf, r.in.prefix, r.in.pathtype, r.in.pathflags);
+ r.out.result = _srvsvc_NetPathCanonicalize(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2242,7 +2242,7 @@ static BOOL api_srvsvc_NetPathCompare(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NetPathCompare, &r);
- r.out.result = _srvsvc_NetPathCompare(p, r.in.server_unc, r.in.path1, r.in.path2, r.in.pathtype, r.in.pathflags);
+ r.out.result = _srvsvc_NetPathCompare(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2306,7 +2306,7 @@ static BOOL api_srvsvc_NetNameValidate(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NetNameValidate, &r);
- r.out.result = _srvsvc_NetNameValidate(p, r.in.server_unc, r.in.name, r.in.name_type, r.in.flags);
+ r.out.result = _srvsvc_NetNameValidate(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2370,7 +2370,7 @@ static BOOL api_srvsvc_NETRPRNAMECANONICALIZE(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NETRPRNAMECANONICALIZE, &r);
- r.out.result = _srvsvc_NETRPRNAMECANONICALIZE(p);
+ r.out.result = _srvsvc_NETRPRNAMECANONICALIZE(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2434,7 +2434,7 @@ static BOOL api_srvsvc_NetPRNameCompare(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NetPRNameCompare, &r);
- r.out.result = _srvsvc_NetPRNameCompare(p, r.in.server_unc, r.in.name1, r.in.name2, r.in.name_type, r.in.flags);
+ r.out.result = _srvsvc_NetPRNameCompare(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2508,7 +2508,7 @@ static BOOL api_srvsvc_NetShareEnum(pipes_struct *p)
}
r.out.resume_handle = r.in.resume_handle;
- r.out.result = _srvsvc_NetShareEnum(p, r.in.server_unc, r.in.level, r.in.ctr, r.in.max_buffer, r.out.totalentries, r.in.resume_handle);
+ r.out.result = _srvsvc_NetShareEnum(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2579,7 +2579,7 @@ static BOOL api_srvsvc_NetShareDelStart(pipes_struct *p)
return False;
}
- r.out.result = _srvsvc_NetShareDelStart(p, r.in.server_unc, r.in.share, r.in.reserved, r.out.hnd);
+ r.out.result = _srvsvc_NetShareDelStart(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2645,7 +2645,7 @@ static BOOL api_srvsvc_NetShareDelCommit(pipes_struct *p)
ZERO_STRUCT(r.out);
r.out.hnd = r.in.hnd;
- r.out.result = _srvsvc_NetShareDelCommit(p, r.in.hnd);
+ r.out.result = _srvsvc_NetShareDelCommit(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2716,7 +2716,7 @@ static BOOL api_srvsvc_NetGetFileSecurity(pipes_struct *p)
return False;
}
- r.out.result = _srvsvc_NetGetFileSecurity(p, r.in.server_unc, r.in.share, r.in.file, r.in.securityinformation, r.out.sd_buf);
+ r.out.result = _srvsvc_NetGetFileSecurity(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2780,7 +2780,7 @@ static BOOL api_srvsvc_NetSetFileSecurity(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NetSetFileSecurity, &r);
- r.out.result = _srvsvc_NetSetFileSecurity(p, r.in.server_unc, r.in.share, r.in.file, r.in.securityinformation, r.in.sd_buf);
+ r.out.result = _srvsvc_NetSetFileSecurity(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2844,7 +2844,7 @@ static BOOL api_srvsvc_NetServerTransportAddEx(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NetServerTransportAddEx, &r);
- r.out.result = _srvsvc_NetServerTransportAddEx(p, r.in.server_unc, r.in.level, r.in.info);
+ r.out.result = _srvsvc_NetServerTransportAddEx(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2908,7 +2908,7 @@ static BOOL api_srvsvc_NetServerSetServiceBitsEx(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NetServerSetServiceBitsEx, &r);
- r.out.result = _srvsvc_NetServerSetServiceBitsEx(p, r.in.server_unc, r.in.emulated_server_unc, r.in.transport, r.in.servicebitsofinterest, r.in.servicebits, r.in.updateimmediately);
+ r.out.result = _srvsvc_NetServerSetServiceBitsEx(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2972,7 +2972,7 @@ static BOOL api_srvsvc_NETRDFSGETVERSION(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSGETVERSION, &r);
- r.out.result = _srvsvc_NETRDFSGETVERSION(p);
+ r.out.result = _srvsvc_NETRDFSGETVERSION(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3036,7 +3036,7 @@ static BOOL api_srvsvc_NETRDFSCREATELOCALPARTITION(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSCREATELOCALPARTITION, &r);
- r.out.result = _srvsvc_NETRDFSCREATELOCALPARTITION(p);
+ r.out.result = _srvsvc_NETRDFSCREATELOCALPARTITION(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3100,7 +3100,7 @@ static BOOL api_srvsvc_NETRDFSDELETELOCALPARTITION(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSDELETELOCALPARTITION, &r);
- r.out.result = _srvsvc_NETRDFSDELETELOCALPARTITION(p);
+ r.out.result = _srvsvc_NETRDFSDELETELOCALPARTITION(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3164,7 +3164,7 @@ static BOOL api_srvsvc_NETRDFSSETLOCALVOLUMESTATE(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSSETLOCALVOLUMESTATE, &r);
- r.out.result = _srvsvc_NETRDFSSETLOCALVOLUMESTATE(p);
+ r.out.result = _srvsvc_NETRDFSSETLOCALVOLUMESTATE(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3228,7 +3228,7 @@ static BOOL api_srvsvc_NETRDFSSETSERVERINFO(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSSETSERVERINFO, &r);
- r.out.result = _srvsvc_NETRDFSSETSERVERINFO(p);
+ r.out.result = _srvsvc_NETRDFSSETSERVERINFO(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3292,7 +3292,7 @@ static BOOL api_srvsvc_NETRDFSCREATEEXITPOINT(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSCREATEEXITPOINT, &r);
- r.out.result = _srvsvc_NETRDFSCREATEEXITPOINT(p);
+ r.out.result = _srvsvc_NETRDFSCREATEEXITPOINT(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3356,7 +3356,7 @@ static BOOL api_srvsvc_NETRDFSDELETEEXITPOINT(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSDELETEEXITPOINT, &r);
- r.out.result = _srvsvc_NETRDFSDELETEEXITPOINT(p);
+ r.out.result = _srvsvc_NETRDFSDELETEEXITPOINT(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3420,7 +3420,7 @@ static BOOL api_srvsvc_NETRDFSMODIFYPREFIX(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSMODIFYPREFIX, &r);
- r.out.result = _srvsvc_NETRDFSMODIFYPREFIX(p);
+ r.out.result = _srvsvc_NETRDFSMODIFYPREFIX(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3484,7 +3484,7 @@ static BOOL api_srvsvc_NETRDFSFIXLOCALVOLUME(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSFIXLOCALVOLUME, &r);
- r.out.result = _srvsvc_NETRDFSFIXLOCALVOLUME(p);
+ r.out.result = _srvsvc_NETRDFSFIXLOCALVOLUME(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3548,7 +3548,7 @@ static BOOL api_srvsvc_NETRDFSMANAGERREPORTSITEINFO(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NETRDFSMANAGERREPORTSITEINFO, &r);
- r.out.result = _srvsvc_NETRDFSMANAGERREPORTSITEINFO(p);
+ r.out.result = _srvsvc_NETRDFSMANAGERREPORTSITEINFO(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3612,7 +3612,7 @@ static BOOL api_srvsvc_NETRSERVERTRANSPORTDELEX(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(srvsvc_NETRSERVERTRANSPORTDELEX, &r);
- r.out.result = _srvsvc_NETRSERVERTRANSPORTDELEX(p);
+ r.out.result = _srvsvc_NETRSERVERTRANSPORTDELEX(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
diff --git a/source3/librpc/gen_ndr/srv_srvsvc.h b/source3/librpc/gen_ndr/srv_srvsvc.h
index eab237c1fa..1e1ebb1904 100644
--- a/source3/librpc/gen_ndr/srv_srvsvc.h
+++ b/source3/librpc/gen_ndr/srv_srvsvc.h
@@ -1,60 +1,60 @@
#include "librpc/gen_ndr/ndr_srvsvc.h"
#ifndef __SRV_SRVSVC__
#define __SRV_SRVSVC__
-WERROR _srvsvc_NetCharDevEnum(pipes_struct *p, const char *server_unc, uint32_t *level, union srvsvc_NetCharDevCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle);
-WERROR _srvsvc_NetCharDevGetInfo(pipes_struct *p, const char *server_unc, const char *device_name, uint32_t level, union srvsvc_NetCharDevInfo *info);
-WERROR _srvsvc_NetCharDevControl(pipes_struct *p, const char *server_unc, const char *device_name, uint32_t opcode);
-WERROR _srvsvc_NetCharDevQEnum(pipes_struct *p, const char *server_unc, const char *user, uint32_t *level, union srvsvc_NetCharDevQCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle);
-WERROR _srvsvc_NetCharDevQGetInfo(pipes_struct *p, const char *server_unc, const char *queue_name, const char *user, uint32_t level, union srvsvc_NetCharDevQInfo *info);
-WERROR _srvsvc_NetCharDevQSetInfo(pipes_struct *p, const char *server_unc, const char *queue_name, uint32_t level, union srvsvc_NetCharDevQInfo info, uint32_t *parm_error);
-WERROR _srvsvc_NetCharDevQPurge(pipes_struct *p, const char *server_unc, const char *queue_name);
-WERROR _srvsvc_NetCharDevQPurgeSelf(pipes_struct *p, const char *server_unc, const char *queue_name, const char *computer_name);
-WERROR _srvsvc_NetConnEnum(pipes_struct *p, const char *server_unc, const char *path, uint32_t *level, union srvsvc_NetConnCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle);
-WERROR _srvsvc_NetFileEnum(pipes_struct *p, const char *server_unc, const char *path, const char *user, uint32_t *level, union srvsvc_NetFileCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle);
-WERROR _srvsvc_NetFileGetInfo(pipes_struct *p, const char *server_unc, uint32_t fid, uint32_t level, union srvsvc_NetFileInfo *info);
-WERROR _srvsvc_NetFileClose(pipes_struct *p, const char *server_unc, uint32_t fid);
-WERROR _srvsvc_NetSessEnum(pipes_struct *p, const char *server_unc, const char *client, const char *user, uint32_t *level, union srvsvc_NetSessCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle);
-WERROR _srvsvc_NetSessDel(pipes_struct *p, const char *server_unc, const char *client, const char *user);
-WERROR _srvsvc_NetShareAdd(pipes_struct *p, const char *server_unc, uint32_t level, union srvsvc_NetShareInfo info, uint32_t *parm_error);
-WERROR _srvsvc_NetShareEnumAll(pipes_struct *p, const char *server_unc, uint32_t *level, union srvsvc_NetShareCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle);
-WERROR _srvsvc_NetShareGetInfo(pipes_struct *p, const char *server_unc, const char *share_name, uint32_t level, union srvsvc_NetShareInfo *info);
-WERROR _srvsvc_NetShareSetInfo(pipes_struct *p, const char *server_unc, const char *share_name, uint32_t level, union srvsvc_NetShareInfo info, uint32_t *parm_error);
-WERROR _srvsvc_NetShareDel(pipes_struct *p, const char *server_unc, const char *share_name, uint32_t reserved);
-WERROR _srvsvc_NetShareDelSticky(pipes_struct *p, const char *server_unc, const char *share_name, uint32_t reserved);
-WERROR _srvsvc_NetShareCheck(pipes_struct *p, const char *server_unc, const char *device_name, enum srvsvc_ShareType *type);
-WERROR _srvsvc_NetSrvGetInfo(pipes_struct *p, const char *server_unc, uint32_t level, union srvsvc_NetSrvInfo *info);
-WERROR _srvsvc_NetSrvSetInfo(pipes_struct *p, const char *server_unc, uint32_t level, union srvsvc_NetSrvInfo info, uint32_t *parm_error);
-WERROR _srvsvc_NetDiskEnum(pipes_struct *p, const char *server_unc, uint32_t level, struct srvsvc_NetDiskInfo *info, uint32_t maxlen, uint32_t *totalentries, uint32_t *resume_handle);
-WERROR _srvsvc_NetServerStatisticsGet(pipes_struct *p, const char *server_unc, const char *service, uint32_t level, uint32_t options, struct srvsvc_Statistics *stats);
-WERROR _srvsvc_NetTransportAdd(pipes_struct *p, const char *server_unc, uint32_t level, union srvsvc_NetTransportInfo info);
-WERROR _srvsvc_NetTransportEnum(pipes_struct *p, const char *server_unc, uint32_t *level, union srvsvc_NetTransportCtr *transports, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle);
-WERROR _srvsvc_NetTransportDel(pipes_struct *p, const char *server_unc, uint32_t unknown, struct srvsvc_NetTransportInfo0 transport);
-WERROR _srvsvc_NetRemoteTOD(pipes_struct *p, const char *server_unc, struct srvsvc_NetRemoteTODInfo *info);
-WERROR _srvsvc_NetSetServiceBits(pipes_struct *p, const char *server_unc, const char *transport, uint32_t servicebits, uint32_t updateimmediately);
-WERROR _srvsvc_NetPathType(pipes_struct *p, const char *server_unc, const char *path, uint32_t pathflags, uint32_t *pathtype);
-WERROR _srvsvc_NetPathCanonicalize(pipes_struct *p, const char *server_unc, const char *path, uint8_t *can_path, uint32_t maxbuf, const char *prefix, uint32_t *pathtype, uint32_t pathflags);
-WERROR _srvsvc_NetPathCompare(pipes_struct *p, const char *server_unc, const char *path1, const char *path2, uint32_t pathtype, uint32_t pathflags);
-WERROR _srvsvc_NetNameValidate(pipes_struct *p, const char *server_unc, const char *name, uint32_t name_type, uint32_t flags);
-WERROR _srvsvc_NETRPRNAMECANONICALIZE(pipes_struct *p);
-WERROR _srvsvc_NetPRNameCompare(pipes_struct *p, const char *server_unc, const char *name1, const char *name2, uint32_t name_type, uint32_t flags);
-WERROR _srvsvc_NetShareEnum(pipes_struct *p, const char *server_unc, uint32_t *level, union srvsvc_NetShareCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle);
-WERROR _srvsvc_NetShareDelStart(pipes_struct *p, const char *server_unc, const char *share, uint32_t reserved, struct policy_handle *hnd);
-WERROR _srvsvc_NetShareDelCommit(pipes_struct *p, struct policy_handle *hnd);
-WERROR _srvsvc_NetGetFileSecurity(pipes_struct *p, const char *server_unc, const char *share, const char *file, uint32_t securityinformation, struct sec_desc_buf *sd_buf);
-WERROR _srvsvc_NetSetFileSecurity(pipes_struct *p, const char *server_unc, const char *share, const char *file, uint32_t securityinformation, struct sec_desc_buf sd_buf);
-WERROR _srvsvc_NetServerTransportAddEx(pipes_struct *p, const char *server_unc, uint32_t level, union srvsvc_NetTransportInfo info);
-WERROR _srvsvc_NetServerSetServiceBitsEx(pipes_struct *p, const char *server_unc, const char *emulated_server_unc, const char *transport, uint32_t servicebitsofinterest, uint32_t servicebits, uint32_t updateimmediately);
-WERROR _srvsvc_NETRDFSGETVERSION(pipes_struct *p);
-WERROR _srvsvc_NETRDFSCREATELOCALPARTITION(pipes_struct *p);
-WERROR _srvsvc_NETRDFSDELETELOCALPARTITION(pipes_struct *p);
-WERROR _srvsvc_NETRDFSSETLOCALVOLUMESTATE(pipes_struct *p);
-WERROR _srvsvc_NETRDFSSETSERVERINFO(pipes_struct *p);
-WERROR _srvsvc_NETRDFSCREATEEXITPOINT(pipes_struct *p);
-WERROR _srvsvc_NETRDFSDELETEEXITPOINT(pipes_struct *p);
-WERROR _srvsvc_NETRDFSMODIFYPREFIX(pipes_struct *p);
-WERROR _srvsvc_NETRDFSFIXLOCALVOLUME(pipes_struct *p);
-WERROR _srvsvc_NETRDFSMANAGERREPORTSITEINFO(pipes_struct *p);
-WERROR _srvsvc_NETRSERVERTRANSPORTDELEX(pipes_struct *p);
+WERROR _srvsvc_NetCharDevEnum(pipes_struct *p, struct srvsvc_NetCharDevEnum *r);
+WERROR _srvsvc_NetCharDevGetInfo(pipes_struct *p, struct srvsvc_NetCharDevGetInfo *r);
+WERROR _srvsvc_NetCharDevControl(pipes_struct *p, struct srvsvc_NetCharDevControl *r);
+WERROR _srvsvc_NetCharDevQEnum(pipes_struct *p, struct srvsvc_NetCharDevQEnum *r);
+WERROR _srvsvc_NetCharDevQGetInfo(pipes_struct *p, struct srvsvc_NetCharDevQGetInfo *r);
+WERROR _srvsvc_NetCharDevQSetInfo(pipes_struct *p, struct srvsvc_NetCharDevQSetInfo *r);
+WERROR _srvsvc_NetCharDevQPurge(pipes_struct *p, struct srvsvc_NetCharDevQPurge *r);
+WERROR _srvsvc_NetCharDevQPurgeSelf(pipes_struct *p, struct srvsvc_NetCharDevQPurgeSelf *r);
+WERROR _srvsvc_NetConnEnum(pipes_struct *p, struct srvsvc_NetConnEnum *r);
+WERROR _srvsvc_NetFileEnum(pipes_struct *p, struct srvsvc_NetFileEnum *r);
+WERROR _srvsvc_NetFileGetInfo(pipes_struct *p, struct srvsvc_NetFileGetInfo *r);
+WERROR _srvsvc_NetFileClose(pipes_struct *p, struct srvsvc_NetFileClose *r);
+WERROR _srvsvc_NetSessEnum(pipes_struct *p, struct srvsvc_NetSessEnum *r);
+WERROR _srvsvc_NetSessDel(pipes_struct *p, struct srvsvc_NetSessDel *r);
+WERROR _srvsvc_NetShareAdd(pipes_struct *p, struct srvsvc_NetShareAdd *r);
+WERROR _srvsvc_NetShareEnumAll(pipes_struct *p, struct srvsvc_NetShareEnumAll *r);
+WERROR _srvsvc_NetShareGetInfo(pipes_struct *p, struct srvsvc_NetShareGetInfo *r);
+WERROR _srvsvc_NetShareSetInfo(pipes_struct *p, struct srvsvc_NetShareSetInfo *r);
+WERROR _srvsvc_NetShareDel(pipes_struct *p, struct srvsvc_NetShareDel *r);
+WERROR _srvsvc_NetShareDelSticky(pipes_struct *p, struct srvsvc_NetShareDelSticky *r);
+WERROR _srvsvc_NetShareCheck(pipes_struct *p, struct srvsvc_NetShareCheck *r);
+WERROR _srvsvc_NetSrvGetInfo(pipes_struct *p, struct srvsvc_NetSrvGetInfo *r);
+WERROR _srvsvc_NetSrvSetInfo(pipes_struct *p, struct srvsvc_NetSrvSetInfo *r);
+WERROR _srvsvc_NetDiskEnum(pipes_struct *p, struct srvsvc_NetDiskEnum *r);
+WERROR _srvsvc_NetServerStatisticsGet(pipes_struct *p, struct srvsvc_NetServerStatisticsGet *r);
+WERROR _srvsvc_NetTransportAdd(pipes_struct *p, struct srvsvc_NetTransportAdd *r);
+WERROR _srvsvc_NetTransportEnum(pipes_struct *p, struct srvsvc_NetTransportEnum *r);
+WERROR _srvsvc_NetTransportDel(pipes_struct *p, struct srvsvc_NetTransportDel *r);
+WERROR _srvsvc_NetRemoteTOD(pipes_struct *p, struct srvsvc_NetRemoteTOD *r);
+WERROR _srvsvc_NetSetServiceBits(pipes_struct *p, struct srvsvc_NetSetServiceBits *r);
+WERROR _srvsvc_NetPathType(pipes_struct *p, struct srvsvc_NetPathType *r);
+WERROR _srvsvc_NetPathCanonicalize(pipes_struct *p, struct srvsvc_NetPathCanonicalize *r);
+WERROR _srvsvc_NetPathCompare(pipes_struct *p, struct srvsvc_NetPathCompare *r);
+WERROR _srvsvc_NetNameValidate(pipes_struct *p, struct srvsvc_NetNameValidate *r);
+WERROR _srvsvc_NETRPRNAMECANONICALIZE(pipes_struct *p, struct srvsvc_NETRPRNAMECANONICALIZE *r);
+WERROR _srvsvc_NetPRNameCompare(pipes_struct *p, struct srvsvc_NetPRNameCompare *r);
+WERROR _srvsvc_NetShareEnum(pipes_struct *p, struct srvsvc_NetShareEnum *r);
+WERROR _srvsvc_NetShareDelStart(pipes_struct *p, struct srvsvc_NetShareDelStart *r);
+WERROR _srvsvc_NetShareDelCommit(pipes_struct *p, struct srvsvc_NetShareDelCommit *r);
+WERROR _srvsvc_NetGetFileSecurity(pipes_struct *p, struct srvsvc_NetGetFileSecurity *r);
+WERROR _srvsvc_NetSetFileSecurity(pipes_struct *p, struct srvsvc_NetSetFileSecurity *r);
+WERROR _srvsvc_NetServerTransportAddEx(pipes_struct *p, struct srvsvc_NetServerTransportAddEx *r);
+WERROR _srvsvc_NetServerSetServiceBitsEx(pipes_struct *p, struct srvsvc_NetServerSetServiceBitsEx *r);
+WERROR _srvsvc_NETRDFSGETVERSION(pipes_struct *p, struct srvsvc_NETRDFSGETVERSION *r);
+WERROR _srvsvc_NETRDFSCREATELOCALPARTITION(pipes_struct *p, struct srvsvc_NETRDFSCREATELOCALPARTITION *r);
+WERROR _srvsvc_NETRDFSDELETELOCALPARTITION(pipes_struct *p, struct srvsvc_NETRDFSDELETELOCALPARTITION *r);
+WERROR _srvsvc_NETRDFSSETLOCALVOLUMESTATE(pipes_struct *p, struct srvsvc_NETRDFSSETLOCALVOLUMESTATE *r);
+WERROR _srvsvc_NETRDFSSETSERVERINFO(pipes_struct *p, struct srvsvc_NETRDFSSETSERVERINFO *r);
+WERROR _srvsvc_NETRDFSCREATEEXITPOINT(pipes_struct *p, struct srvsvc_NETRDFSCREATEEXITPOINT *r);
+WERROR _srvsvc_NETRDFSDELETEEXITPOINT(pipes_struct *p, struct srvsvc_NETRDFSDELETEEXITPOINT *r);
+WERROR _srvsvc_NETRDFSMODIFYPREFIX(pipes_struct *p, struct srvsvc_NETRDFSMODIFYPREFIX *r);
+WERROR _srvsvc_NETRDFSFIXLOCALVOLUME(pipes_struct *p, struct srvsvc_NETRDFSFIXLOCALVOLUME *r);
+WERROR _srvsvc_NETRDFSMANAGERREPORTSITEINFO(pipes_struct *p, struct srvsvc_NETRDFSMANAGERREPORTSITEINFO *r);
+WERROR _srvsvc_NETRSERVERTRANSPORTDELEX(pipes_struct *p, struct srvsvc_NETRSERVERTRANSPORTDELEX *r);
void srvsvc_get_pipe_fns(struct api_struct **fns, int *n_fns);
NTSTATUS rpc_srvsvc_init(void);
#endif /* __SRV_SRVSVC__ */
diff --git a/source3/librpc/gen_ndr/srv_svcctl.c b/source3/librpc/gen_ndr/srv_svcctl.c
index 92b91d2fae..070a24d670 100644
--- a/source3/librpc/gen_ndr/srv_svcctl.c
+++ b/source3/librpc/gen_ndr/srv_svcctl.c
@@ -38,7 +38,7 @@ static BOOL api_svcctl_CloseServiceHandle(pipes_struct *p)
ZERO_STRUCT(r.out);
r.out.handle = r.in.handle;
- r.out.result = _svcctl_CloseServiceHandle(p, r.in.handle);
+ r.out.result = _svcctl_CloseServiceHandle(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -109,7 +109,7 @@ static BOOL api_svcctl_ControlService(pipes_struct *p)
return False;
}
- r.out.result = _svcctl_ControlService(p, r.in.handle, r.in.control, r.out.status);
+ r.out.result = _svcctl_ControlService(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -173,7 +173,7 @@ static BOOL api_svcctl_DeleteService(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(svcctl_DeleteService, &r);
- r.out.result = _svcctl_DeleteService(p, r.in.handle);
+ r.out.result = _svcctl_DeleteService(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -244,7 +244,7 @@ static BOOL api_svcctl_LockServiceDatabase(pipes_struct *p)
return False;
}
- r.out.result = _svcctl_LockServiceDatabase(p, r.in.handle, r.out.lock);
+ r.out.result = _svcctl_LockServiceDatabase(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -308,7 +308,7 @@ static BOOL api_svcctl_QueryServiceObjectSecurity(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(svcctl_QueryServiceObjectSecurity, &r);
- r.out.result = _svcctl_QueryServiceObjectSecurity(p);
+ r.out.result = _svcctl_QueryServiceObjectSecurity(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -372,7 +372,7 @@ static BOOL api_svcctl_SetServiceObjectSecurity(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(svcctl_SetServiceObjectSecurity, &r);
- r.out.result = _svcctl_SetServiceObjectSecurity(p);
+ r.out.result = _svcctl_SetServiceObjectSecurity(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -443,7 +443,7 @@ static BOOL api_svcctl_QueryServiceStatus(pipes_struct *p)
return False;
}
- r.out.result = _svcctl_QueryServiceStatus(p, r.in.handle, r.out.status);
+ r.out.result = _svcctl_QueryServiceStatus(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -507,7 +507,7 @@ static BOOL api_svcctl_SetServiceStatus(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(svcctl_SetServiceStatus, &r);
- r.out.result = _svcctl_SetServiceStatus(p);
+ r.out.result = _svcctl_SetServiceStatus(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -573,7 +573,7 @@ static BOOL api_svcctl_UnlockServiceDatabase(pipes_struct *p)
ZERO_STRUCT(r.out);
r.out.lock = r.in.lock;
- r.out.result = _svcctl_UnlockServiceDatabase(p, r.in.lock);
+ r.out.result = _svcctl_UnlockServiceDatabase(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -637,7 +637,7 @@ static BOOL api_svcctl_NotifyBootConfigStatus(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(svcctl_NotifyBootConfigStatus, &r);
- r.out.result = _svcctl_NotifyBootConfigStatus(p);
+ r.out.result = _svcctl_NotifyBootConfigStatus(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -701,7 +701,7 @@ static BOOL api_svcctl_SCSetServiceBitsW(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(svcctl_SCSetServiceBitsW, &r);
- r.out.result = _svcctl_SCSetServiceBitsW(p, r.in.handle, r.in.bits, r.in.bitson, r.in.immediate);
+ r.out.result = _svcctl_SCSetServiceBitsW(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -772,7 +772,7 @@ static BOOL api_svcctl_ChangeServiceConfigW(pipes_struct *p)
return False;
}
- r.out.result = _svcctl_ChangeServiceConfigW(p, r.in.handle, r.in.type, r.in.start, r.in.error, r.in.binary_path, r.in.load_order_group, r.out.tag_id, r.in.dependencies, r.in.service_start_name, r.in.password, r.in.display_name);
+ r.out.result = _svcctl_ChangeServiceConfigW(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -844,7 +844,7 @@ static BOOL api_svcctl_CreateServiceW(pipes_struct *p)
return False;
}
- r.out.result = _svcctl_CreateServiceW(p, r.in.scmanager_handle, r.in.ServiceName, r.in.DisplayName, r.in.desired_access, r.in.type, r.in.start_type, r.in.error_control, r.in.binary_path, r.in.LoadOrderGroupKey, r.in.TagId, r.in.dependencies, r.in.dependencies_size, r.in.service_start_name, r.in.password, r.in.password_size, r.out.handle);
+ r.out.result = _svcctl_CreateServiceW(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -927,7 +927,7 @@ static BOOL api_svcctl_EnumDependentServicesW(pipes_struct *p)
return False;
}
- r.out.result = _svcctl_EnumDependentServicesW(p, r.in.service, r.in.state, r.out.status, r.in.buf_size, r.out.bytes_needed, r.out.services_returned);
+ r.out.result = _svcctl_EnumDependentServicesW(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1011,7 +1011,7 @@ static BOOL api_svcctl_EnumServicesStatusW(pipes_struct *p)
}
r.out.resume_handle = r.in.resume_handle;
- r.out.result = _svcctl_EnumServicesStatusW(p, r.in.handle, r.in.type, r.in.state, r.in.buf_size, r.out.service, r.out.bytes_needed, r.out.services_returned, r.in.resume_handle);
+ r.out.result = _svcctl_EnumServicesStatusW(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1082,7 +1082,7 @@ static BOOL api_svcctl_OpenSCManagerW(pipes_struct *p)
return False;
}
- r.out.result = _svcctl_OpenSCManagerW(p, r.in.MachineName, r.in.DatabaseName, r.in.access_mask, r.out.handle);
+ r.out.result = _svcctl_OpenSCManagerW(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1153,7 +1153,7 @@ static BOOL api_svcctl_OpenServiceW(pipes_struct *p)
return False;
}
- r.out.result = _svcctl_OpenServiceW(p, r.in.scmanager_handle, r.in.ServiceName, r.in.access_mask, r.out.handle);
+ r.out.result = _svcctl_OpenServiceW(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1230,7 +1230,7 @@ static BOOL api_svcctl_QueryServiceConfigW(pipes_struct *p)
return False;
}
- r.out.result = _svcctl_QueryServiceConfigW(p, r.in.handle, r.out.query, r.in.buf_size, r.out.bytes_needed);
+ r.out.result = _svcctl_QueryServiceConfigW(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1307,7 +1307,7 @@ static BOOL api_svcctl_QueryServiceLockStatusW(pipes_struct *p)
return False;
}
- r.out.result = _svcctl_QueryServiceLockStatusW(p, r.in.handle, r.in.buf_size, r.out.status, r.out.required_buf_size);
+ r.out.result = _svcctl_QueryServiceLockStatusW(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1371,7 +1371,7 @@ static BOOL api_svcctl_StartServiceW(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(svcctl_StartServiceW, &r);
- r.out.result = _svcctl_StartServiceW(p, r.in.handle, r.in.NumArgs, r.in.Arguments);
+ r.out.result = _svcctl_StartServiceW(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1443,7 +1443,7 @@ static BOOL api_svcctl_GetServiceDisplayNameW(pipes_struct *p)
}
r.out.display_name_length = r.in.display_name_length;
- r.out.result = _svcctl_GetServiceDisplayNameW(p, r.in.handle, r.in.service_name, r.out.display_name, r.in.display_name_length);
+ r.out.result = _svcctl_GetServiceDisplayNameW(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1515,7 +1515,7 @@ static BOOL api_svcctl_GetServiceKeyNameW(pipes_struct *p)
}
r.out.display_name_length = r.in.display_name_length;
- r.out.result = _svcctl_GetServiceKeyNameW(p, r.in.handle, r.in.service_name, r.out.key_name, r.in.display_name_length);
+ r.out.result = _svcctl_GetServiceKeyNameW(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1579,7 +1579,7 @@ static BOOL api_svcctl_SCSetServiceBitsA(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(svcctl_SCSetServiceBitsA, &r);
- r.out.result = _svcctl_SCSetServiceBitsA(p, r.in.handle, r.in.bits, r.in.bitson, r.in.immediate);
+ r.out.result = _svcctl_SCSetServiceBitsA(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1650,7 +1650,7 @@ static BOOL api_svcctl_ChangeServiceConfigA(pipes_struct *p)
return False;
}
- r.out.result = _svcctl_ChangeServiceConfigA(p, r.in.handle, r.in.type, r.in.start, r.in.error, r.in.binary_path, r.in.load_order_group, r.out.tag_id, r.in.dependencies, r.in.service_start_name, r.in.password, r.in.display_name);
+ r.out.result = _svcctl_ChangeServiceConfigA(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1721,7 +1721,7 @@ static BOOL api_svcctl_CreateServiceA(pipes_struct *p)
return False;
}
- r.out.result = _svcctl_CreateServiceA(p, r.in.handle, r.in.ServiceName, r.in.DisplayName, r.in.desired_access, r.in.type, r.in.start_type, r.in.error_control, r.in.binary_path, r.in.LoadOrderGroupKey, r.out.TagId, r.in.dependencies, r.in.service_start_name, r.in.password);
+ r.out.result = _svcctl_CreateServiceA(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1804,7 +1804,7 @@ static BOOL api_svcctl_EnumDependentServicesA(pipes_struct *p)
return False;
}
- r.out.result = _svcctl_EnumDependentServicesA(p, r.in.service, r.in.state, r.out.status, r.in.buf_size, r.out.bytes_needed, r.out.services_returned);
+ r.out.result = _svcctl_EnumDependentServicesA(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1888,7 +1888,7 @@ static BOOL api_svcctl_EnumServicesStatusA(pipes_struct *p)
}
r.out.resume_handle = r.in.resume_handle;
- r.out.result = _svcctl_EnumServicesStatusA(p, r.in.handle, r.in.type, r.in.state, r.in.buf_size, r.out.service, r.out.bytes_needed, r.out.services_returned, r.in.resume_handle);
+ r.out.result = _svcctl_EnumServicesStatusA(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1959,7 +1959,7 @@ static BOOL api_svcctl_OpenSCManagerA(pipes_struct *p)
return False;
}
- r.out.result = _svcctl_OpenSCManagerA(p, r.in.MachineName, r.in.DatabaseName, r.in.access_mask, r.out.handle);
+ r.out.result = _svcctl_OpenSCManagerA(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2023,7 +2023,7 @@ static BOOL api_svcctl_OpenServiceA(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(svcctl_OpenServiceA, &r);
- r.out.result = _svcctl_OpenServiceA(p, r.in.scmanager_handle, r.in.ServiceName, r.in.access_mask);
+ r.out.result = _svcctl_OpenServiceA(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2100,7 +2100,7 @@ static BOOL api_svcctl_QueryServiceConfigA(pipes_struct *p)
return False;
}
- r.out.result = _svcctl_QueryServiceConfigA(p, r.in.handle, r.out.query, r.in.buf_size, r.out.bytes_needed);
+ r.out.result = _svcctl_QueryServiceConfigA(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2177,7 +2177,7 @@ static BOOL api_svcctl_QueryServiceLockStatusA(pipes_struct *p)
return False;
}
- r.out.result = _svcctl_QueryServiceLockStatusA(p, r.in.handle, r.in.buf_size, r.out.status, r.out.required_buf_size);
+ r.out.result = _svcctl_QueryServiceLockStatusA(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2241,7 +2241,7 @@ static BOOL api_svcctl_StartServiceA(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(svcctl_StartServiceA, &r);
- r.out.result = _svcctl_StartServiceA(p, r.in.handle, r.in.NumArgs, r.in.Arguments);
+ r.out.result = _svcctl_StartServiceA(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2313,7 +2313,7 @@ static BOOL api_svcctl_GetServiceDisplayNameA(pipes_struct *p)
}
r.out.display_name_length = r.in.display_name_length;
- r.out.result = _svcctl_GetServiceDisplayNameA(p, r.in.handle, r.in.service_name, r.out.display_name, r.in.display_name_length);
+ r.out.result = _svcctl_GetServiceDisplayNameA(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2385,7 +2385,7 @@ static BOOL api_svcctl_GetServiceKeyNameA(pipes_struct *p)
}
r.out.display_name_length = r.in.display_name_length;
- r.out.result = _svcctl_GetServiceKeyNameA(p, r.in.handle, r.in.service_name, r.out.key_name, r.in.display_name_length);
+ r.out.result = _svcctl_GetServiceKeyNameA(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2449,7 +2449,7 @@ static BOOL api_svcctl_GetCurrentGroupeStateW(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(svcctl_GetCurrentGroupeStateW, &r);
- r.out.result = _svcctl_GetCurrentGroupeStateW(p);
+ r.out.result = _svcctl_GetCurrentGroupeStateW(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2513,7 +2513,7 @@ static BOOL api_svcctl_EnumServiceGroupW(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(svcctl_EnumServiceGroupW, &r);
- r.out.result = _svcctl_EnumServiceGroupW(p);
+ r.out.result = _svcctl_EnumServiceGroupW(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2577,7 +2577,7 @@ static BOOL api_svcctl_ChangeServiceConfig2A(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(svcctl_ChangeServiceConfig2A, &r);
- r.out.result = _svcctl_ChangeServiceConfig2A(p, r.in.handle, r.in.info_level, r.in.info);
+ r.out.result = _svcctl_ChangeServiceConfig2A(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2641,7 +2641,7 @@ static BOOL api_svcctl_ChangeServiceConfig2W(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(svcctl_ChangeServiceConfig2W, &r);
- r.out.result = _svcctl_ChangeServiceConfig2W(p, r.in.handle, r.in.info_level, r.in.info);
+ r.out.result = _svcctl_ChangeServiceConfig2W(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2718,7 +2718,7 @@ static BOOL api_svcctl_QueryServiceConfig2A(pipes_struct *p)
return False;
}
- r.out.result = _svcctl_QueryServiceConfig2A(p, r.in.handle, r.in.info_level, r.out.buffer, r.in.buf_size, r.out.bytes_needed);
+ r.out.result = _svcctl_QueryServiceConfig2A(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2795,7 +2795,7 @@ static BOOL api_svcctl_QueryServiceConfig2W(pipes_struct *p)
return False;
}
- r.out.result = _svcctl_QueryServiceConfig2W(p, r.in.handle, r.in.info_level, r.out.buffer, r.in.buf_size, r.out.bytes_needed);
+ r.out.result = _svcctl_QueryServiceConfig2W(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2872,7 +2872,7 @@ static BOOL api_svcctl_QueryServiceStatusEx(pipes_struct *p)
return False;
}
- r.out.result = _svcctl_QueryServiceStatusEx(p, r.in.handle, r.in.info_level, r.out.buffer, r.in.buf_size, r.out.bytes_needed);
+ r.out.result = _svcctl_QueryServiceStatusEx(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2962,7 +2962,7 @@ static BOOL api_EnumServicesStatusExA(pipes_struct *p)
return False;
}
- r.out.result = _EnumServicesStatusExA(p, r.in.scmanager, r.in.info_level, r.in.type, r.in.state, r.out.services, r.in.buf_size, r.out.bytes_needed, r.out.service_returned, r.in.resume_handle, r.out.group_name);
+ r.out.result = _EnumServicesStatusExA(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3052,7 +3052,7 @@ static BOOL api_EnumServicesStatusExW(pipes_struct *p)
return False;
}
- r.out.result = _EnumServicesStatusExW(p, r.in.scmanager, r.in.info_level, r.in.type, r.in.state, r.out.services, r.in.buf_size, r.out.bytes_needed, r.out.service_returned, r.in.resume_handle, r.out.group_name);
+ r.out.result = _EnumServicesStatusExW(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -3116,7 +3116,7 @@ static BOOL api_svcctl_SCSendTSMessage(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(svcctl_SCSendTSMessage, &r);
- r.out.result = _svcctl_SCSendTSMessage(p);
+ r.out.result = _svcctl_SCSendTSMessage(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
diff --git a/source3/librpc/gen_ndr/srv_svcctl.h b/source3/librpc/gen_ndr/srv_svcctl.h
index 20b77ba5b0..ca63ebe970 100644
--- a/source3/librpc/gen_ndr/srv_svcctl.h
+++ b/source3/librpc/gen_ndr/srv_svcctl.h
@@ -1,50 +1,50 @@
#include "librpc/gen_ndr/ndr_svcctl.h"
#ifndef __SRV_SVCCTL__
#define __SRV_SVCCTL__
-WERROR _svcctl_CloseServiceHandle(pipes_struct *p, struct policy_handle *handle);
-WERROR _svcctl_ControlService(pipes_struct *p, struct policy_handle *handle, uint32_t control, struct SERVICE_STATUS *status);
-WERROR _svcctl_DeleteService(pipes_struct *p, struct policy_handle *handle);
-WERROR _svcctl_LockServiceDatabase(pipes_struct *p, struct policy_handle *handle, struct policy_handle *lock);
-WERROR _svcctl_QueryServiceObjectSecurity(pipes_struct *p);
-WERROR _svcctl_SetServiceObjectSecurity(pipes_struct *p);
-WERROR _svcctl_QueryServiceStatus(pipes_struct *p, struct policy_handle *handle, struct SERVICE_STATUS *status);
-WERROR _svcctl_SetServiceStatus(pipes_struct *p);
-WERROR _svcctl_UnlockServiceDatabase(pipes_struct *p, struct policy_handle *lock);
-WERROR _svcctl_NotifyBootConfigStatus(pipes_struct *p);
-WERROR _svcctl_SCSetServiceBitsW(pipes_struct *p, struct policy_handle *handle, uint32_t bits, uint32_t bitson, uint32_t immediate);
-WERROR _svcctl_ChangeServiceConfigW(pipes_struct *p, struct policy_handle *handle, uint32_t type, uint32_t start, uint32_t error, const char *binary_path, const char *load_order_group, uint32_t *tag_id, const char *dependencies, const char *service_start_name, const char *password, const char *display_name);
-WERROR _svcctl_CreateServiceW(pipes_struct *p, struct policy_handle *scmanager_handle, const char *ServiceName, const char *DisplayName, uint32_t desired_access, uint32_t type, uint32_t start_type, uint32_t error_control, const char *binary_path, const char *LoadOrderGroupKey, uint32_t *TagId, uint8_t *dependencies, uint32_t dependencies_size, const char *service_start_name, uint8_t *password, uint32_t password_size, struct policy_handle *handle);
-WERROR _svcctl_EnumDependentServicesW(pipes_struct *p, struct policy_handle *service, uint32_t state, struct ENUM_SERVICE_STATUS *status, uint32_t buf_size, uint32_t *bytes_needed, uint32_t *services_returned);
-WERROR _svcctl_EnumServicesStatusW(pipes_struct *p, struct policy_handle *handle, uint32_t type, uint32_t state, uint32_t buf_size, uint8_t *service, uint32_t *bytes_needed, uint32_t *services_returned, uint32_t *resume_handle);
-WERROR _svcctl_OpenSCManagerW(pipes_struct *p, const char *MachineName, const char *DatabaseName, uint32_t access_mask, struct policy_handle *handle);
-WERROR _svcctl_OpenServiceW(pipes_struct *p, struct policy_handle *scmanager_handle, const char *ServiceName, uint32_t access_mask, struct policy_handle *handle);
-WERROR _svcctl_QueryServiceConfigW(pipes_struct *p, struct policy_handle *handle, uint8_t *query, uint32_t buf_size, uint32_t *bytes_needed);
-WERROR _svcctl_QueryServiceLockStatusW(pipes_struct *p, struct policy_handle *handle, uint32_t buf_size, struct SERVICE_LOCK_STATUS *status, uint32_t *required_buf_size);
-WERROR _svcctl_StartServiceW(pipes_struct *p, struct policy_handle *handle, uint32_t NumArgs, const char *Arguments);
-WERROR _svcctl_GetServiceDisplayNameW(pipes_struct *p, struct policy_handle *handle, const char *service_name, const char **display_name, uint32_t *display_name_length);
-WERROR _svcctl_GetServiceKeyNameW(pipes_struct *p, struct policy_handle *handle, const char *service_name, const char **key_name, uint32_t *display_name_length);
-WERROR _svcctl_SCSetServiceBitsA(pipes_struct *p, struct policy_handle *handle, uint32_t bits, uint32_t bitson, uint32_t immediate);
-WERROR _svcctl_ChangeServiceConfigA(pipes_struct *p, struct policy_handle *handle, uint32_t type, uint32_t start, uint32_t error, const char *binary_path, const char *load_order_group, uint32_t *tag_id, const char *dependencies, const char *service_start_name, const char *password, const char *display_name);
-WERROR _svcctl_CreateServiceA(pipes_struct *p, struct policy_handle *handle, const char *ServiceName, const char *DisplayName, uint32_t desired_access, uint32_t type, uint32_t start_type, uint32_t error_control, const char *binary_path, const char *LoadOrderGroupKey, uint32_t *TagId, const char *dependencies, const char *service_start_name, const char *password);
-WERROR _svcctl_EnumDependentServicesA(pipes_struct *p, struct policy_handle *service, uint32_t state, struct ENUM_SERVICE_STATUS *status, uint32_t buf_size, uint32_t *bytes_needed, uint32_t *services_returned);
-WERROR _svcctl_EnumServicesStatusA(pipes_struct *p, struct policy_handle *handle, uint32_t type, uint32_t state, uint32_t buf_size, uint8_t *service, uint32_t *bytes_needed, uint32_t *services_returned, uint32_t *resume_handle);
-WERROR _svcctl_OpenSCManagerA(pipes_struct *p, const char *MachineName, const char *DatabaseName, uint32_t access_mask, struct policy_handle *handle);
-WERROR _svcctl_OpenServiceA(pipes_struct *p, struct policy_handle *scmanager_handle, const char *ServiceName, uint32_t access_mask);
-WERROR _svcctl_QueryServiceConfigA(pipes_struct *p, struct policy_handle *handle, uint8_t *query, uint32_t buf_size, uint32_t *bytes_needed);
-WERROR _svcctl_QueryServiceLockStatusA(pipes_struct *p, struct policy_handle *handle, uint32_t buf_size, struct SERVICE_LOCK_STATUS *status, uint32_t *required_buf_size);
-WERROR _svcctl_StartServiceA(pipes_struct *p, struct policy_handle *handle, uint32_t NumArgs, const char *Arguments);
-WERROR _svcctl_GetServiceDisplayNameA(pipes_struct *p, struct policy_handle *handle, const char *service_name, const char **display_name, uint32_t *display_name_length);
-WERROR _svcctl_GetServiceKeyNameA(pipes_struct *p, struct policy_handle *handle, const char *service_name, const char **key_name, uint32_t *display_name_length);
-WERROR _svcctl_GetCurrentGroupeStateW(pipes_struct *p);
-WERROR _svcctl_EnumServiceGroupW(pipes_struct *p);
-WERROR _svcctl_ChangeServiceConfig2A(pipes_struct *p, struct policy_handle *handle, uint32_t info_level, uint8_t *info);
-WERROR _svcctl_ChangeServiceConfig2W(pipes_struct *p, struct policy_handle *handle, uint32_t info_level, uint8_t *info);
-WERROR _svcctl_QueryServiceConfig2A(pipes_struct *p, struct policy_handle *handle, uint32_t info_level, uint8_t *buffer, uint32_t buf_size, uint32_t *bytes_needed);
-WERROR _svcctl_QueryServiceConfig2W(pipes_struct *p, struct policy_handle *handle, uint32_t info_level, uint8_t *buffer, uint32_t buf_size, uint32_t *bytes_needed);
-WERROR _svcctl_QueryServiceStatusEx(pipes_struct *p, struct policy_handle *handle, uint32_t info_level, uint8_t *buffer, uint32_t buf_size, uint32_t *bytes_needed);
-WERROR _EnumServicesStatusExA(pipes_struct *p, struct policy_handle *scmanager, uint32_t info_level, uint32_t type, uint32_t state, uint8_t *services, uint32_t buf_size, uint32_t *bytes_needed, uint32_t *service_returned, uint32_t *resume_handle, const char **group_name);
-WERROR _EnumServicesStatusExW(pipes_struct *p, struct policy_handle *scmanager, uint32_t info_level, uint32_t type, uint32_t state, uint8_t *services, uint32_t buf_size, uint32_t *bytes_needed, uint32_t *service_returned, uint32_t *resume_handle, const char **group_name);
-WERROR _svcctl_SCSendTSMessage(pipes_struct *p);
+WERROR _svcctl_CloseServiceHandle(pipes_struct *p, struct svcctl_CloseServiceHandle *r);
+WERROR _svcctl_ControlService(pipes_struct *p, struct svcctl_ControlService *r);
+WERROR _svcctl_DeleteService(pipes_struct *p, struct svcctl_DeleteService *r);
+WERROR _svcctl_LockServiceDatabase(pipes_struct *p, struct svcctl_LockServiceDatabase *r);
+WERROR _svcctl_QueryServiceObjectSecurity(pipes_struct *p, struct svcctl_QueryServiceObjectSecurity *r);
+WERROR _svcctl_SetServiceObjectSecurity(pipes_struct *p, struct svcctl_SetServiceObjectSecurity *r);
+WERROR _svcctl_QueryServiceStatus(pipes_struct *p, struct svcctl_QueryServiceStatus *r);
+WERROR _svcctl_SetServiceStatus(pipes_struct *p, struct svcctl_SetServiceStatus *r);
+WERROR _svcctl_UnlockServiceDatabase(pipes_struct *p, struct svcctl_UnlockServiceDatabase *r);
+WERROR _svcctl_NotifyBootConfigStatus(pipes_struct *p, struct svcctl_NotifyBootConfigStatus *r);
+WERROR _svcctl_SCSetServiceBitsW(pipes_struct *p, struct svcctl_SCSetServiceBitsW *r);
+WERROR _svcctl_ChangeServiceConfigW(pipes_struct *p, struct svcctl_ChangeServiceConfigW *r);
+WERROR _svcctl_CreateServiceW(pipes_struct *p, struct svcctl_CreateServiceW *r);
+WERROR _svcctl_EnumDependentServicesW(pipes_struct *p, struct svcctl_EnumDependentServicesW *r);
+WERROR _svcctl_EnumServicesStatusW(pipes_struct *p, struct svcctl_EnumServicesStatusW *r);
+WERROR _svcctl_OpenSCManagerW(pipes_struct *p, struct svcctl_OpenSCManagerW *r);
+WERROR _svcctl_OpenServiceW(pipes_struct *p, struct svcctl_OpenServiceW *r);
+WERROR _svcctl_QueryServiceConfigW(pipes_struct *p, struct svcctl_QueryServiceConfigW *r);
+WERROR _svcctl_QueryServiceLockStatusW(pipes_struct *p, struct svcctl_QueryServiceLockStatusW *r);
+WERROR _svcctl_StartServiceW(pipes_struct *p, struct svcctl_StartServiceW *r);
+WERROR _svcctl_GetServiceDisplayNameW(pipes_struct *p, struct svcctl_GetServiceDisplayNameW *r);
+WERROR _svcctl_GetServiceKeyNameW(pipes_struct *p, struct svcctl_GetServiceKeyNameW *r);
+WERROR _svcctl_SCSetServiceBitsA(pipes_struct *p, struct svcctl_SCSetServiceBitsA *r);
+WERROR _svcctl_ChangeServiceConfigA(pipes_struct *p, struct svcctl_ChangeServiceConfigA *r);
+WERROR _svcctl_CreateServiceA(pipes_struct *p, struct svcctl_CreateServiceA *r);
+WERROR _svcctl_EnumDependentServicesA(pipes_struct *p, struct svcctl_EnumDependentServicesA *r);
+WERROR _svcctl_EnumServicesStatusA(pipes_struct *p, struct svcctl_EnumServicesStatusA *r);
+WERROR _svcctl_OpenSCManagerA(pipes_struct *p, struct svcctl_OpenSCManagerA *r);
+WERROR _svcctl_OpenServiceA(pipes_struct *p, struct svcctl_OpenServiceA *r);
+WERROR _svcctl_QueryServiceConfigA(pipes_struct *p, struct svcctl_QueryServiceConfigA *r);
+WERROR _svcctl_QueryServiceLockStatusA(pipes_struct *p, struct svcctl_QueryServiceLockStatusA *r);
+WERROR _svcctl_StartServiceA(pipes_struct *p, struct svcctl_StartServiceA *r);
+WERROR _svcctl_GetServiceDisplayNameA(pipes_struct *p, struct svcctl_GetServiceDisplayNameA *r);
+WERROR _svcctl_GetServiceKeyNameA(pipes_struct *p, struct svcctl_GetServiceKeyNameA *r);
+WERROR _svcctl_GetCurrentGroupeStateW(pipes_struct *p, struct svcctl_GetCurrentGroupeStateW *r);
+WERROR _svcctl_EnumServiceGroupW(pipes_struct *p, struct svcctl_EnumServiceGroupW *r);
+WERROR _svcctl_ChangeServiceConfig2A(pipes_struct *p, struct svcctl_ChangeServiceConfig2A *r);
+WERROR _svcctl_ChangeServiceConfig2W(pipes_struct *p, struct svcctl_ChangeServiceConfig2W *r);
+WERROR _svcctl_QueryServiceConfig2A(pipes_struct *p, struct svcctl_QueryServiceConfig2A *r);
+WERROR _svcctl_QueryServiceConfig2W(pipes_struct *p, struct svcctl_QueryServiceConfig2W *r);
+WERROR _svcctl_QueryServiceStatusEx(pipes_struct *p, struct svcctl_QueryServiceStatusEx *r);
+WERROR _EnumServicesStatusExA(pipes_struct *p, struct EnumServicesStatusExA *r);
+WERROR _EnumServicesStatusExW(pipes_struct *p, struct EnumServicesStatusExW *r);
+WERROR _svcctl_SCSendTSMessage(pipes_struct *p, struct svcctl_SCSendTSMessage *r);
void svcctl_get_pipe_fns(struct api_struct **fns, int *n_fns);
NTSTATUS rpc_svcctl_init(void);
#endif /* __SRV_SVCCTL__ */
diff --git a/source3/librpc/gen_ndr/srv_unixinfo.c b/source3/librpc/gen_ndr/srv_unixinfo.c
index 8cb6e567ac..3fbe815870 100644
--- a/source3/librpc/gen_ndr/srv_unixinfo.c
+++ b/source3/librpc/gen_ndr/srv_unixinfo.c
@@ -43,7 +43,7 @@ static BOOL api_unixinfo_SidToUid(pipes_struct *p)
return False;
}
- r.out.result = _unixinfo_SidToUid(p, r.in.sid, r.out.uid);
+ r.out.result = _unixinfo_SidToUid(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -114,7 +114,7 @@ static BOOL api_unixinfo_UidToSid(pipes_struct *p)
return False;
}
- r.out.result = _unixinfo_UidToSid(p, r.in.uid, r.out.sid);
+ r.out.result = _unixinfo_UidToSid(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -185,7 +185,7 @@ static BOOL api_unixinfo_SidToGid(pipes_struct *p)
return False;
}
- r.out.result = _unixinfo_SidToGid(p, r.in.sid, r.out.gid);
+ r.out.result = _unixinfo_SidToGid(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -256,7 +256,7 @@ static BOOL api_unixinfo_GidToSid(pipes_struct *p)
return False;
}
- r.out.result = _unixinfo_GidToSid(p, r.in.gid, r.out.sid);
+ r.out.result = _unixinfo_GidToSid(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -328,7 +328,7 @@ static BOOL api_unixinfo_GetPWUid(pipes_struct *p)
return False;
}
- r.out.result = _unixinfo_GetPWUid(p, r.in.count, r.in.uids, r.out.infos);
+ r.out.result = _unixinfo_GetPWUid(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
diff --git a/source3/librpc/gen_ndr/srv_unixinfo.h b/source3/librpc/gen_ndr/srv_unixinfo.h
index d21fb839ad..6e5c033b61 100644
--- a/source3/librpc/gen_ndr/srv_unixinfo.h
+++ b/source3/librpc/gen_ndr/srv_unixinfo.h
@@ -1,11 +1,11 @@
#include "librpc/gen_ndr/ndr_unixinfo.h"
#ifndef __SRV_UNIXINFO__
#define __SRV_UNIXINFO__
-NTSTATUS _unixinfo_SidToUid(pipes_struct *p, struct dom_sid sid, uint64_t *uid);
-NTSTATUS _unixinfo_UidToSid(pipes_struct *p, uint64_t uid, struct dom_sid *sid);
-NTSTATUS _unixinfo_SidToGid(pipes_struct *p, struct dom_sid sid, uint64_t *gid);
-NTSTATUS _unixinfo_GidToSid(pipes_struct *p, uint64_t gid, struct dom_sid *sid);
-NTSTATUS _unixinfo_GetPWUid(pipes_struct *p, uint32_t *count, uint64_t *uids, struct unixinfo_GetPWUidInfo *infos);
+NTSTATUS _unixinfo_SidToUid(pipes_struct *p, struct unixinfo_SidToUid *r);
+NTSTATUS _unixinfo_UidToSid(pipes_struct *p, struct unixinfo_UidToSid *r);
+NTSTATUS _unixinfo_SidToGid(pipes_struct *p, struct unixinfo_SidToGid *r);
+NTSTATUS _unixinfo_GidToSid(pipes_struct *p, struct unixinfo_GidToSid *r);
+NTSTATUS _unixinfo_GetPWUid(pipes_struct *p, struct unixinfo_GetPWUid *r);
void unixinfo_get_pipe_fns(struct api_struct **fns, int *n_fns);
NTSTATUS rpc_unixinfo_init(void);
#endif /* __SRV_UNIXINFO__ */
diff --git a/source3/librpc/gen_ndr/srv_winreg.c b/source3/librpc/gen_ndr/srv_winreg.c
index dbf1919e59..cc161c91d7 100644
--- a/source3/librpc/gen_ndr/srv_winreg.c
+++ b/source3/librpc/gen_ndr/srv_winreg.c
@@ -43,7 +43,7 @@ static BOOL api_winreg_OpenHKCR(pipes_struct *p)
return False;
}
- r.out.result = _winreg_OpenHKCR(p, r.in.system_name, r.in.access_mask, r.out.handle);
+ r.out.result = _winreg_OpenHKCR(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -114,7 +114,7 @@ static BOOL api_winreg_OpenHKCU(pipes_struct *p)
return False;
}
- r.out.result = _winreg_OpenHKCU(p, r.in.system_name, r.in.access_mask, r.out.handle);
+ r.out.result = _winreg_OpenHKCU(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -185,7 +185,7 @@ static BOOL api_winreg_OpenHKLM(pipes_struct *p)
return False;
}
- r.out.result = _winreg_OpenHKLM(p, r.in.system_name, r.in.access_mask, r.out.handle);
+ r.out.result = _winreg_OpenHKLM(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -256,7 +256,7 @@ static BOOL api_winreg_OpenHKPD(pipes_struct *p)
return False;
}
- r.out.result = _winreg_OpenHKPD(p, r.in.system_name, r.in.access_mask, r.out.handle);
+ r.out.result = _winreg_OpenHKPD(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -327,7 +327,7 @@ static BOOL api_winreg_OpenHKU(pipes_struct *p)
return False;
}
- r.out.result = _winreg_OpenHKU(p, r.in.system_name, r.in.access_mask, r.out.handle);
+ r.out.result = _winreg_OpenHKU(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -393,7 +393,7 @@ static BOOL api_winreg_CloseKey(pipes_struct *p)
ZERO_STRUCT(r.out);
r.out.handle = r.in.handle;
- r.out.result = _winreg_CloseKey(p, r.in.handle);
+ r.out.result = _winreg_CloseKey(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -465,7 +465,7 @@ static BOOL api_winreg_CreateKey(pipes_struct *p)
}
r.out.action_taken = r.in.action_taken;
- r.out.result = _winreg_CreateKey(p, r.in.handle, r.in.name, r.in.keyclass, r.in.options, r.in.access_mask, r.in.secdesc, r.out.new_handle, r.in.action_taken);
+ r.out.result = _winreg_CreateKey(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -529,7 +529,7 @@ static BOOL api_winreg_DeleteKey(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(winreg_DeleteKey, &r);
- r.out.result = _winreg_DeleteKey(p, r.in.handle, r.in.key);
+ r.out.result = _winreg_DeleteKey(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -593,7 +593,7 @@ static BOOL api_winreg_DeleteValue(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(winreg_DeleteValue, &r);
- r.out.result = _winreg_DeleteValue(p, r.in.handle, r.in.value);
+ r.out.result = _winreg_DeleteValue(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -661,7 +661,7 @@ static BOOL api_winreg_EnumKey(pipes_struct *p)
r.out.name = r.in.name;
r.out.keyclass = r.in.keyclass;
r.out.last_changed_time = r.in.last_changed_time;
- r.out.result = _winreg_EnumKey(p, r.in.handle, r.in.enum_index, r.in.name, r.in.keyclass, r.in.last_changed_time);
+ r.out.result = _winreg_EnumKey(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -731,7 +731,7 @@ static BOOL api_winreg_EnumValue(pipes_struct *p)
r.out.data = r.in.data;
r.out.data_size = r.in.data_size;
r.out.value_length = r.in.value_length;
- r.out.result = _winreg_EnumValue(p, r.in.handle, r.in.enum_index, r.in.name, r.in.type, r.in.data, r.in.data_size, r.in.value_length);
+ r.out.result = _winreg_EnumValue(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -795,7 +795,7 @@ static BOOL api_winreg_FlushKey(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(winreg_FlushKey, &r);
- r.out.result = _winreg_FlushKey(p, r.in.handle);
+ r.out.result = _winreg_FlushKey(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -861,7 +861,7 @@ static BOOL api_winreg_GetKeySecurity(pipes_struct *p)
ZERO_STRUCT(r.out);
r.out.sd = r.in.sd;
- r.out.result = _winreg_GetKeySecurity(p, r.in.handle, r.in.sec_info, r.in.sd);
+ r.out.result = _winreg_GetKeySecurity(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -925,7 +925,7 @@ static BOOL api_winreg_LoadKey(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(winreg_LoadKey, &r);
- r.out.result = _winreg_LoadKey(p, r.in.handle, r.in.keyname, r.in.filename);
+ r.out.result = _winreg_LoadKey(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -989,7 +989,7 @@ static BOOL api_winreg_NotifyChangeKeyValue(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(winreg_NotifyChangeKeyValue, &r);
- r.out.result = _winreg_NotifyChangeKeyValue(p, r.in.handle, r.in.watch_subtree, r.in.notify_filter, r.in.unknown, r.in.string1, r.in.string2, r.in.unknown2);
+ r.out.result = _winreg_NotifyChangeKeyValue(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1060,7 +1060,7 @@ static BOOL api_winreg_OpenKey(pipes_struct *p)
return False;
}
- r.out.result = _winreg_OpenKey(p, r.in.parent_handle, r.in.keyname, r.in.unknown, r.in.access_mask, r.out.handle);
+ r.out.result = _winreg_OpenKey(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1174,7 +1174,7 @@ static BOOL api_winreg_QueryInfoKey(pipes_struct *p)
return False;
}
- r.out.result = _winreg_QueryInfoKey(p, r.in.handle, r.in.classname, r.out.num_subkeys, r.out.max_subkeylen, r.out.max_classlen, r.out.num_values, r.out.max_valnamelen, r.out.max_valbufsize, r.out.secdescsize, r.out.last_changed_time);
+ r.out.result = _winreg_QueryInfoKey(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1243,7 +1243,7 @@ static BOOL api_winreg_QueryValue(pipes_struct *p)
r.out.data = r.in.data;
r.out.data_size = r.in.data_size;
r.out.value_length = r.in.value_length;
- r.out.result = _winreg_QueryValue(p, r.in.handle, r.in.value_name, r.in.type, r.in.data, r.in.data_size, r.in.value_length);
+ r.out.result = _winreg_QueryValue(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1307,7 +1307,7 @@ static BOOL api_winreg_ReplaceKey(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(winreg_ReplaceKey, &r);
- r.out.result = _winreg_ReplaceKey(p);
+ r.out.result = _winreg_ReplaceKey(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1371,7 +1371,7 @@ static BOOL api_winreg_RestoreKey(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(winreg_RestoreKey, &r);
- r.out.result = _winreg_RestoreKey(p, r.in.handle, r.in.filename, r.in.flags);
+ r.out.result = _winreg_RestoreKey(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1435,7 +1435,7 @@ static BOOL api_winreg_SaveKey(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(winreg_SaveKey, &r);
- r.out.result = _winreg_SaveKey(p, r.in.handle, r.in.filename, r.in.sec_attrib);
+ r.out.result = _winreg_SaveKey(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1499,7 +1499,7 @@ static BOOL api_winreg_SetKeySecurity(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(winreg_SetKeySecurity, &r);
- r.out.result = _winreg_SetKeySecurity(p, r.in.handle, r.in.access_mask, r.in.sd);
+ r.out.result = _winreg_SetKeySecurity(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1563,7 +1563,7 @@ static BOOL api_winreg_SetValue(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(winreg_SetValue, &r);
- r.out.result = _winreg_SetValue(p, r.in.handle, r.in.name, r.in.type, r.in.data, r.in.size);
+ r.out.result = _winreg_SetValue(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1627,7 +1627,7 @@ static BOOL api_winreg_UnLoadKey(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(winreg_UnLoadKey, &r);
- r.out.result = _winreg_UnLoadKey(p);
+ r.out.result = _winreg_UnLoadKey(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1691,7 +1691,7 @@ static BOOL api_winreg_InitiateSystemShutdown(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(winreg_InitiateSystemShutdown, &r);
- r.out.result = _winreg_InitiateSystemShutdown(p, r.in.hostname, r.in.message, r.in.timeout, r.in.force_apps, r.in.reboot);
+ r.out.result = _winreg_InitiateSystemShutdown(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1755,7 +1755,7 @@ static BOOL api_winreg_AbortSystemShutdown(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(winreg_AbortSystemShutdown, &r);
- r.out.result = _winreg_AbortSystemShutdown(p, r.in.server);
+ r.out.result = _winreg_AbortSystemShutdown(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1826,7 +1826,7 @@ static BOOL api_winreg_GetVersion(pipes_struct *p)
return False;
}
- r.out.result = _winreg_GetVersion(p, r.in.handle, r.out.version);
+ r.out.result = _winreg_GetVersion(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1897,7 +1897,7 @@ static BOOL api_winreg_OpenHKCC(pipes_struct *p)
return False;
}
- r.out.result = _winreg_OpenHKCC(p, r.in.system_name, r.in.access_mask, r.out.handle);
+ r.out.result = _winreg_OpenHKCC(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1968,7 +1968,7 @@ static BOOL api_winreg_OpenHKDD(pipes_struct *p)
return False;
}
- r.out.result = _winreg_OpenHKDD(p, r.in.system_name, r.in.access_mask, r.out.handle);
+ r.out.result = _winreg_OpenHKDD(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2036,7 +2036,7 @@ static BOOL api_winreg_QueryMultipleValues(pipes_struct *p)
r.out.values = r.in.values;
r.out.buffer = r.in.buffer;
r.out.buffer_size = r.in.buffer_size;
- r.out.result = _winreg_QueryMultipleValues(p, r.in.key_handle, r.in.values, r.in.num_values, r.in.buffer, r.in.buffer_size);
+ r.out.result = _winreg_QueryMultipleValues(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2100,7 +2100,7 @@ static BOOL api_winreg_InitiateSystemShutdownEx(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(winreg_InitiateSystemShutdownEx, &r);
- r.out.result = _winreg_InitiateSystemShutdownEx(p, r.in.hostname, r.in.message, r.in.timeout, r.in.force_apps, r.in.reboot, r.in.reason);
+ r.out.result = _winreg_InitiateSystemShutdownEx(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2164,7 +2164,7 @@ static BOOL api_winreg_SaveKeyEx(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(winreg_SaveKeyEx, &r);
- r.out.result = _winreg_SaveKeyEx(p);
+ r.out.result = _winreg_SaveKeyEx(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2235,7 +2235,7 @@ static BOOL api_winreg_OpenHKPT(pipes_struct *p)
return False;
}
- r.out.result = _winreg_OpenHKPT(p, r.in.system_name, r.in.access_mask, r.out.handle);
+ r.out.result = _winreg_OpenHKPT(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2306,7 +2306,7 @@ static BOOL api_winreg_OpenHKPN(pipes_struct *p)
return False;
}
- r.out.result = _winreg_OpenHKPN(p, r.in.system_name, r.in.access_mask, r.out.handle);
+ r.out.result = _winreg_OpenHKPN(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -2370,7 +2370,7 @@ static BOOL api_winreg_QueryMultipleValues2(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(winreg_QueryMultipleValues2, &r);
- r.out.result = _winreg_QueryMultipleValues2(p);
+ r.out.result = _winreg_QueryMultipleValues2(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
diff --git a/source3/librpc/gen_ndr/srv_winreg.h b/source3/librpc/gen_ndr/srv_winreg.h
index 9b935631d4..decfb2589d 100644
--- a/source3/librpc/gen_ndr/srv_winreg.h
+++ b/source3/librpc/gen_ndr/srv_winreg.h
@@ -1,41 +1,41 @@
#include "librpc/gen_ndr/ndr_winreg.h"
#ifndef __SRV_WINREG__
#define __SRV_WINREG__
-WERROR _winreg_OpenHKCR(pipes_struct *p, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle);
-WERROR _winreg_OpenHKCU(pipes_struct *p, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle);
-WERROR _winreg_OpenHKLM(pipes_struct *p, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle);
-WERROR _winreg_OpenHKPD(pipes_struct *p, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle);
-WERROR _winreg_OpenHKU(pipes_struct *p, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle);
-WERROR _winreg_CloseKey(pipes_struct *p, struct policy_handle *handle);
-WERROR _winreg_CreateKey(pipes_struct *p, struct policy_handle *handle, struct winreg_String name, struct winreg_String keyclass, uint32_t options, uint32_t access_mask, struct winreg_SecBuf *secdesc, struct policy_handle *new_handle, enum winreg_CreateAction *action_taken);
-WERROR _winreg_DeleteKey(pipes_struct *p, struct policy_handle *handle, struct winreg_String key);
-WERROR _winreg_DeleteValue(pipes_struct *p, struct policy_handle *handle, struct winreg_String value);
-WERROR _winreg_EnumKey(pipes_struct *p, struct policy_handle *handle, uint32_t enum_index, struct winreg_StringBuf *name, struct winreg_StringBuf *keyclass, NTTIME *last_changed_time);
-WERROR _winreg_EnumValue(pipes_struct *p, struct policy_handle *handle, uint32_t enum_index, struct winreg_ValNameBuf *name, enum winreg_Type *type, uint8_t **data, uint32_t *data_size, uint32_t *value_length);
-WERROR _winreg_FlushKey(pipes_struct *p, struct policy_handle *handle);
-WERROR _winreg_GetKeySecurity(pipes_struct *p, struct policy_handle *handle, uint32_t sec_info, struct KeySecurityData *sd);
-WERROR _winreg_LoadKey(pipes_struct *p, struct policy_handle *handle, struct winreg_String *keyname, struct winreg_String *filename);
-WERROR _winreg_NotifyChangeKeyValue(pipes_struct *p, struct policy_handle *handle, uint8_t watch_subtree, uint32_t notify_filter, uint32_t unknown, struct winreg_String string1, struct winreg_String string2, uint32_t unknown2);
-WERROR _winreg_OpenKey(pipes_struct *p, struct policy_handle *parent_handle, struct winreg_String keyname, uint32_t unknown, uint32_t access_mask, struct policy_handle *handle);
-WERROR _winreg_QueryInfoKey(pipes_struct *p, struct policy_handle *handle, struct winreg_String *classname, uint32_t *num_subkeys, uint32_t *max_subkeylen, uint32_t *max_classlen, uint32_t *num_values, uint32_t *max_valnamelen, uint32_t *max_valbufsize, uint32_t *secdescsize, NTTIME *last_changed_time);
-WERROR _winreg_QueryValue(pipes_struct *p, struct policy_handle *handle, struct winreg_String value_name, enum winreg_Type *type, uint8_t *data, uint32_t *data_size, uint32_t *value_length);
-WERROR _winreg_ReplaceKey(pipes_struct *p);
-WERROR _winreg_RestoreKey(pipes_struct *p, struct policy_handle *handle, struct winreg_String *filename, uint32_t flags);
-WERROR _winreg_SaveKey(pipes_struct *p, struct policy_handle *handle, struct winreg_String *filename, struct KeySecurityAttribute *sec_attrib);
-WERROR _winreg_SetKeySecurity(pipes_struct *p, struct policy_handle *handle, uint32_t access_mask, struct KeySecurityData *sd);
-WERROR _winreg_SetValue(pipes_struct *p, struct policy_handle *handle, struct winreg_String name, enum winreg_Type type, uint8_t *data, uint32_t size);
-WERROR _winreg_UnLoadKey(pipes_struct *p);
-WERROR _winreg_InitiateSystemShutdown(pipes_struct *p, uint16_t *hostname, struct initshutdown_String *message, uint32_t timeout, uint8_t force_apps, uint8_t reboot);
-WERROR _winreg_AbortSystemShutdown(pipes_struct *p, uint16_t *server);
-WERROR _winreg_GetVersion(pipes_struct *p, struct policy_handle *handle, uint32_t *version);
-WERROR _winreg_OpenHKCC(pipes_struct *p, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle);
-WERROR _winreg_OpenHKDD(pipes_struct *p, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle);
-WERROR _winreg_QueryMultipleValues(pipes_struct *p, struct policy_handle *key_handle, struct QueryMultipleValue *values, uint32_t num_values, uint8_t *buffer, uint32_t *buffer_size);
-WERROR _winreg_InitiateSystemShutdownEx(pipes_struct *p, uint16_t *hostname, struct initshutdown_String *message, uint32_t timeout, uint8_t force_apps, uint8_t reboot, uint32_t reason);
-WERROR _winreg_SaveKeyEx(pipes_struct *p);
-WERROR _winreg_OpenHKPT(pipes_struct *p, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle);
-WERROR _winreg_OpenHKPN(pipes_struct *p, uint16_t *system_name, uint32_t access_mask, struct policy_handle *handle);
-WERROR _winreg_QueryMultipleValues2(pipes_struct *p);
+WERROR _winreg_OpenHKCR(pipes_struct *p, struct winreg_OpenHKCR *r);
+WERROR _winreg_OpenHKCU(pipes_struct *p, struct winreg_OpenHKCU *r);
+WERROR _winreg_OpenHKLM(pipes_struct *p, struct winreg_OpenHKLM *r);
+WERROR _winreg_OpenHKPD(pipes_struct *p, struct winreg_OpenHKPD *r);
+WERROR _winreg_OpenHKU(pipes_struct *p, struct winreg_OpenHKU *r);
+WERROR _winreg_CloseKey(pipes_struct *p, struct winreg_CloseKey *r);
+WERROR _winreg_CreateKey(pipes_struct *p, struct winreg_CreateKey *r);
+WERROR _winreg_DeleteKey(pipes_struct *p, struct winreg_DeleteKey *r);
+WERROR _winreg_DeleteValue(pipes_struct *p, struct winreg_DeleteValue *r);
+WERROR _winreg_EnumKey(pipes_struct *p, struct winreg_EnumKey *r);
+WERROR _winreg_EnumValue(pipes_struct *p, struct winreg_EnumValue *r);
+WERROR _winreg_FlushKey(pipes_struct *p, struct winreg_FlushKey *r);
+WERROR _winreg_GetKeySecurity(pipes_struct *p, struct winreg_GetKeySecurity *r);
+WERROR _winreg_LoadKey(pipes_struct *p, struct winreg_LoadKey *r);
+WERROR _winreg_NotifyChangeKeyValue(pipes_struct *p, struct winreg_NotifyChangeKeyValue *r);
+WERROR _winreg_OpenKey(pipes_struct *p, struct winreg_OpenKey *r);
+WERROR _winreg_QueryInfoKey(pipes_struct *p, struct winreg_QueryInfoKey *r);
+WERROR _winreg_QueryValue(pipes_struct *p, struct winreg_QueryValue *r);
+WERROR _winreg_ReplaceKey(pipes_struct *p, struct winreg_ReplaceKey *r);
+WERROR _winreg_RestoreKey(pipes_struct *p, struct winreg_RestoreKey *r);
+WERROR _winreg_SaveKey(pipes_struct *p, struct winreg_SaveKey *r);
+WERROR _winreg_SetKeySecurity(pipes_struct *p, struct winreg_SetKeySecurity *r);
+WERROR _winreg_SetValue(pipes_struct *p, struct winreg_SetValue *r);
+WERROR _winreg_UnLoadKey(pipes_struct *p, struct winreg_UnLoadKey *r);
+WERROR _winreg_InitiateSystemShutdown(pipes_struct *p, struct winreg_InitiateSystemShutdown *r);
+WERROR _winreg_AbortSystemShutdown(pipes_struct *p, struct winreg_AbortSystemShutdown *r);
+WERROR _winreg_GetVersion(pipes_struct *p, struct winreg_GetVersion *r);
+WERROR _winreg_OpenHKCC(pipes_struct *p, struct winreg_OpenHKCC *r);
+WERROR _winreg_OpenHKDD(pipes_struct *p, struct winreg_OpenHKDD *r);
+WERROR _winreg_QueryMultipleValues(pipes_struct *p, struct winreg_QueryMultipleValues *r);
+WERROR _winreg_InitiateSystemShutdownEx(pipes_struct *p, struct winreg_InitiateSystemShutdownEx *r);
+WERROR _winreg_SaveKeyEx(pipes_struct *p, struct winreg_SaveKeyEx *r);
+WERROR _winreg_OpenHKPT(pipes_struct *p, struct winreg_OpenHKPT *r);
+WERROR _winreg_OpenHKPN(pipes_struct *p, struct winreg_OpenHKPN *r);
+WERROR _winreg_QueryMultipleValues2(pipes_struct *p, struct winreg_QueryMultipleValues2 *r);
void winreg_get_pipe_fns(struct api_struct **fns, int *n_fns);
NTSTATUS rpc_winreg_init(void);
#endif /* __SRV_WINREG__ */
diff --git a/source3/librpc/gen_ndr/srv_wkssvc.c b/source3/librpc/gen_ndr/srv_wkssvc.c
index 97b3857f4c..d0535d41c9 100644
--- a/source3/librpc/gen_ndr/srv_wkssvc.c
+++ b/source3/librpc/gen_ndr/srv_wkssvc.c
@@ -43,7 +43,7 @@ static BOOL api_wkssvc_NetWkstaGetInfo(pipes_struct *p)
return False;
}
- r.out.result = _wkssvc_NetWkstaGetInfo(p, r.in.server_name, r.in.level, r.out.info);
+ r.out.result = _wkssvc_NetWkstaGetInfo(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -109,7 +109,7 @@ static BOOL api_wkssvc_NetWkstaSetInfo(pipes_struct *p)
ZERO_STRUCT(r.out);
r.out.parm_error = r.in.parm_error;
- r.out.result = _wkssvc_NetWkstaSetInfo(p, r.in.server_name, r.in.level, r.in.info, r.in.parm_error);
+ r.out.result = _wkssvc_NetWkstaSetInfo(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -188,7 +188,7 @@ static BOOL api_wkssvc_NetWkstaEnumUsers(pipes_struct *p)
}
r.out.resumehandle = r.in.resumehandle;
- r.out.result = _wkssvc_NetWkstaEnumUsers(p, r.in.server_name, r.in.level, r.in.users, r.in.prefmaxlen, r.out.entriesread, r.out.totalentries, r.in.resumehandle);
+ r.out.result = _wkssvc_NetWkstaEnumUsers(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -252,7 +252,7 @@ static BOOL api_WKSSVC_NETRWKSTAUSERGETINFO(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(WKSSVC_NETRWKSTAUSERGETINFO, &r);
- r.out.result = _WKSSVC_NETRWKSTAUSERGETINFO(p);
+ r.out.result = _WKSSVC_NETRWKSTAUSERGETINFO(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -316,7 +316,7 @@ static BOOL api_WKSSVC_NETRWKSTAUSERSETINFO(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(WKSSVC_NETRWKSTAUSERSETINFO, &r);
- r.out.result = _WKSSVC_NETRWKSTAUSERSETINFO(p);
+ r.out.result = _WKSSVC_NETRWKSTAUSERSETINFO(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -390,7 +390,7 @@ static BOOL api_wkssvc_NetWkstaTransportEnum(pipes_struct *p)
}
r.out.resume_handle = r.in.resume_handle;
- r.out.result = _wkssvc_NetWkstaTransportEnum(p, r.in.server_name, r.in.level, r.in.ctr, r.in.max_buffer, r.out.totalentries, r.in.resume_handle);
+ r.out.result = _wkssvc_NetWkstaTransportEnum(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -454,7 +454,7 @@ static BOOL api_WKSSVC_NETRWKSTATRANSPORTADD(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(WKSSVC_NETRWKSTATRANSPORTADD, &r);
- r.out.result = _WKSSVC_NETRWKSTATRANSPORTADD(p);
+ r.out.result = _WKSSVC_NETRWKSTATRANSPORTADD(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -518,7 +518,7 @@ static BOOL api_WKSSVC_NETRWKSTATRANSPORTDEL(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(WKSSVC_NETRWKSTATRANSPORTDEL, &r);
- r.out.result = _WKSSVC_NETRWKSTATRANSPORTDEL(p);
+ r.out.result = _WKSSVC_NETRWKSTATRANSPORTDEL(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -582,7 +582,7 @@ static BOOL api_WKSSVC_NETRUSEADD(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(WKSSVC_NETRUSEADD, &r);
- r.out.result = _WKSSVC_NETRUSEADD(p);
+ r.out.result = _WKSSVC_NETRUSEADD(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -646,7 +646,7 @@ static BOOL api_WKSSVC_NETRUSEGETINFO(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(WKSSVC_NETRUSEGETINFO, &r);
- r.out.result = _WKSSVC_NETRUSEGETINFO(p);
+ r.out.result = _WKSSVC_NETRUSEGETINFO(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -710,7 +710,7 @@ static BOOL api_WKSSVC_NETRUSEDEL(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(WKSSVC_NETRUSEDEL, &r);
- r.out.result = _WKSSVC_NETRUSEDEL(p);
+ r.out.result = _WKSSVC_NETRUSEDEL(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -774,7 +774,7 @@ static BOOL api_WKSSVC_NETRUSEENUM(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(WKSSVC_NETRUSEENUM, &r);
- r.out.result = _WKSSVC_NETRUSEENUM(p);
+ r.out.result = _WKSSVC_NETRUSEENUM(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -838,7 +838,7 @@ static BOOL api_WKSSVC_NETRMESSAGEBUFFERSEND(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(WKSSVC_NETRMESSAGEBUFFERSEND, &r);
- r.out.result = _WKSSVC_NETRMESSAGEBUFFERSEND(p);
+ r.out.result = _WKSSVC_NETRMESSAGEBUFFERSEND(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -902,7 +902,7 @@ static BOOL api_WKSSVC_NETRWORKSTATIONSTATISTICSGET(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(WKSSVC_NETRWORKSTATIONSTATISTICSGET, &r);
- r.out.result = _WKSSVC_NETRWORKSTATIONSTATISTICSGET(p);
+ r.out.result = _WKSSVC_NETRWORKSTATIONSTATISTICSGET(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -966,7 +966,7 @@ static BOOL api_WKSSVC_NETRLOGONDOMAINNAMEADD(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(WKSSVC_NETRLOGONDOMAINNAMEADD, &r);
- r.out.result = _WKSSVC_NETRLOGONDOMAINNAMEADD(p);
+ r.out.result = _WKSSVC_NETRLOGONDOMAINNAMEADD(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1030,7 +1030,7 @@ static BOOL api_WKSSVC_NETRLOGONDOMAINNAMEDEL(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(WKSSVC_NETRLOGONDOMAINNAMEDEL, &r);
- r.out.result = _WKSSVC_NETRLOGONDOMAINNAMEDEL(p);
+ r.out.result = _WKSSVC_NETRLOGONDOMAINNAMEDEL(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1094,7 +1094,7 @@ static BOOL api_WKSSVC_NETRJOINDOMAIN(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(WKSSVC_NETRJOINDOMAIN, &r);
- r.out.result = _WKSSVC_NETRJOINDOMAIN(p);
+ r.out.result = _WKSSVC_NETRJOINDOMAIN(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1158,7 +1158,7 @@ static BOOL api_WKSSVC_NETRUNJOINDOMAIN(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(WKSSVC_NETRUNJOINDOMAIN, &r);
- r.out.result = _WKSSVC_NETRUNJOINDOMAIN(p);
+ r.out.result = _WKSSVC_NETRUNJOINDOMAIN(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1222,7 +1222,7 @@ static BOOL api_WKSSVC_NETRRENAMEMACHINEINDOMAIN(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(WKSSVC_NETRRENAMEMACHINEINDOMAIN, &r);
- r.out.result = _WKSSVC_NETRRENAMEMACHINEINDOMAIN(p);
+ r.out.result = _WKSSVC_NETRRENAMEMACHINEINDOMAIN(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1286,7 +1286,7 @@ static BOOL api_WKSSVC_NETRVALIDATENAME(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(WKSSVC_NETRVALIDATENAME, &r);
- r.out.result = _WKSSVC_NETRVALIDATENAME(p);
+ r.out.result = _WKSSVC_NETRVALIDATENAME(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1350,7 +1350,7 @@ static BOOL api_WKSSVC_NETRGETJOININFORMATION(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(WKSSVC_NETRGETJOININFORMATION, &r);
- r.out.result = _WKSSVC_NETRGETJOININFORMATION(p);
+ r.out.result = _WKSSVC_NETRGETJOININFORMATION(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1414,7 +1414,7 @@ static BOOL api_WKSSVC_NETRGETJOINABLEOUS(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(WKSSVC_NETRGETJOINABLEOUS, &r);
- r.out.result = _WKSSVC_NETRGETJOINABLEOUS(p);
+ r.out.result = _WKSSVC_NETRGETJOINABLEOUS(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1478,7 +1478,7 @@ static BOOL api_wkssvc_NetrJoinDomain2(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(wkssvc_NetrJoinDomain2, &r);
- r.out.result = _wkssvc_NetrJoinDomain2(p, r.in.server_name, r.in.domain_name, r.in.account_name, r.in.admin_account, r.in.encrypted_password, r.in.join_flags);
+ r.out.result = _wkssvc_NetrJoinDomain2(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1542,7 +1542,7 @@ static BOOL api_wkssvc_NetrUnjoinDomain2(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(wkssvc_NetrUnjoinDomain2, &r);
- r.out.result = _wkssvc_NetrUnjoinDomain2(p, r.in.server_name, r.in.account, r.in.encrypted_password, r.in.unjoin_flags);
+ r.out.result = _wkssvc_NetrUnjoinDomain2(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1606,7 +1606,7 @@ static BOOL api_wkssvc_NetrRenameMachineInDomain2(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(wkssvc_NetrRenameMachineInDomain2, &r);
- r.out.result = _wkssvc_NetrRenameMachineInDomain2(p, r.in.server_name, r.in.NewMachineName, r.in.Account, r.in.EncryptedPassword, r.in.RenameOptions);
+ r.out.result = _wkssvc_NetrRenameMachineInDomain2(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1670,7 +1670,7 @@ static BOOL api_WKSSVC_NETRVALIDATENAME2(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(WKSSVC_NETRVALIDATENAME2, &r);
- r.out.result = _WKSSVC_NETRVALIDATENAME2(p);
+ r.out.result = _WKSSVC_NETRVALIDATENAME2(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1734,7 +1734,7 @@ static BOOL api_WKSSVC_NETRGETJOINABLEOUS2(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(WKSSVC_NETRGETJOINABLEOUS2, &r);
- r.out.result = _WKSSVC_NETRGETJOINABLEOUS2(p);
+ r.out.result = _WKSSVC_NETRGETJOINABLEOUS2(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1798,7 +1798,7 @@ static BOOL api_wkssvc_NetrAddAlternateComputerName(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(wkssvc_NetrAddAlternateComputerName, &r);
- r.out.result = _wkssvc_NetrAddAlternateComputerName(p, r.in.server_name, r.in.NewAlternateMachineName, r.in.Account, r.in.EncryptedPassword, r.in.Reserved);
+ r.out.result = _wkssvc_NetrAddAlternateComputerName(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1862,7 +1862,7 @@ static BOOL api_wkssvc_NetrRemoveAlternateComputerName(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(wkssvc_NetrRemoveAlternateComputerName, &r);
- r.out.result = _wkssvc_NetrRemoveAlternateComputerName(p, r.in.server_name, r.in.AlternateMachineNameToRemove, r.in.Account, r.in.EncryptedPassword, r.in.Reserved);
+ r.out.result = _wkssvc_NetrRemoveAlternateComputerName(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1926,7 +1926,7 @@ static BOOL api_WKSSVC_NETRSETPRIMARYCOMPUTERNAME(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(WKSSVC_NETRSETPRIMARYCOMPUTERNAME, &r);
- r.out.result = _WKSSVC_NETRSETPRIMARYCOMPUTERNAME(p);
+ r.out.result = _WKSSVC_NETRSETPRIMARYCOMPUTERNAME(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
@@ -1990,7 +1990,7 @@ static BOOL api_WKSSVC_NETRENUMERATECOMPUTERNAMES(pipes_struct *p)
if (DEBUGLEVEL >= 10)
NDR_PRINT_IN_DEBUG(WKSSVC_NETRENUMERATECOMPUTERNAMES, &r);
- r.out.result = _WKSSVC_NETRENUMERATECOMPUTERNAMES(p);
+ r.out.result = _WKSSVC_NETRENUMERATECOMPUTERNAMES(p, &r);
if (p->rng_fault_state) {
talloc_free(mem_ctx);
diff --git a/source3/librpc/gen_ndr/srv_wkssvc.h b/source3/librpc/gen_ndr/srv_wkssvc.h
index 95cf7b3a55..4633152eac 100644
--- a/source3/librpc/gen_ndr/srv_wkssvc.h
+++ b/source3/librpc/gen_ndr/srv_wkssvc.h
@@ -1,37 +1,37 @@
#include "librpc/gen_ndr/ndr_wkssvc.h"
#ifndef __SRV_WKSSVC__
#define __SRV_WKSSVC__
-WERROR _wkssvc_NetWkstaGetInfo(pipes_struct *p, const char *server_name, uint32_t level, union wkssvc_NetWkstaInfo *info);
-WERROR _wkssvc_NetWkstaSetInfo(pipes_struct *p, const char *server_name, uint32_t level, union wkssvc_NetWkstaInfo *info, uint32_t *parm_error);
-WERROR _wkssvc_NetWkstaEnumUsers(pipes_struct *p, const char *server_name, uint32_t level, union WKS_USER_ENUM_UNION *users, uint32_t prefmaxlen, uint32_t *entriesread, uint32_t *totalentries, uint32_t *resumehandle);
-WERROR _WKSSVC_NETRWKSTAUSERGETINFO(pipes_struct *p);
-WERROR _WKSSVC_NETRWKSTAUSERSETINFO(pipes_struct *p);
-WERROR _wkssvc_NetWkstaTransportEnum(pipes_struct *p, const char *server_name, uint32_t *level, union wkssvc_NetWkstaTransportCtr *ctr, uint32_t max_buffer, uint32_t *totalentries, uint32_t *resume_handle);
-WERROR _WKSSVC_NETRWKSTATRANSPORTADD(pipes_struct *p);
-WERROR _WKSSVC_NETRWKSTATRANSPORTDEL(pipes_struct *p);
-WERROR _WKSSVC_NETRUSEADD(pipes_struct *p);
-WERROR _WKSSVC_NETRUSEGETINFO(pipes_struct *p);
-WERROR _WKSSVC_NETRUSEDEL(pipes_struct *p);
-WERROR _WKSSVC_NETRUSEENUM(pipes_struct *p);
-WERROR _WKSSVC_NETRMESSAGEBUFFERSEND(pipes_struct *p);
-WERROR _WKSSVC_NETRWORKSTATIONSTATISTICSGET(pipes_struct *p);
-WERROR _WKSSVC_NETRLOGONDOMAINNAMEADD(pipes_struct *p);
-WERROR _WKSSVC_NETRLOGONDOMAINNAMEDEL(pipes_struct *p);
-WERROR _WKSSVC_NETRJOINDOMAIN(pipes_struct *p);
-WERROR _WKSSVC_NETRUNJOINDOMAIN(pipes_struct *p);
-WERROR _WKSSVC_NETRRENAMEMACHINEINDOMAIN(pipes_struct *p);
-WERROR _WKSSVC_NETRVALIDATENAME(pipes_struct *p);
-WERROR _WKSSVC_NETRGETJOININFORMATION(pipes_struct *p);
-WERROR _WKSSVC_NETRGETJOINABLEOUS(pipes_struct *p);
-WERROR _wkssvc_NetrJoinDomain2(pipes_struct *p, const char *server_name, const char *domain_name, const char *account_name, const char *admin_account, struct wkssvc_PasswordBuffer *encrypted_password, uint32_t join_flags);
-WERROR _wkssvc_NetrUnjoinDomain2(pipes_struct *p, const char *server_name, const char *account, struct wkssvc_PasswordBuffer *encrypted_password, uint32_t unjoin_flags);
-WERROR _wkssvc_NetrRenameMachineInDomain2(pipes_struct *p, const char *server_name, const char *NewMachineName, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t RenameOptions);
-WERROR _WKSSVC_NETRVALIDATENAME2(pipes_struct *p);
-WERROR _WKSSVC_NETRGETJOINABLEOUS2(pipes_struct *p);
-WERROR _wkssvc_NetrAddAlternateComputerName(pipes_struct *p, const char *server_name, const char *NewAlternateMachineName, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t Reserved);
-WERROR _wkssvc_NetrRemoveAlternateComputerName(pipes_struct *p, const char *server_name, const char *AlternateMachineNameToRemove, const char *Account, struct wkssvc_PasswordBuffer *EncryptedPassword, uint32_t Reserved);
-WERROR _WKSSVC_NETRSETPRIMARYCOMPUTERNAME(pipes_struct *p);
-WERROR _WKSSVC_NETRENUMERATECOMPUTERNAMES(pipes_struct *p);
+WERROR _wkssvc_NetWkstaGetInfo(pipes_struct *p, struct wkssvc_NetWkstaGetInfo *r);
+WERROR _wkssvc_NetWkstaSetInfo(pipes_struct *p, struct wkssvc_NetWkstaSetInfo *r);
+WERROR _wkssvc_NetWkstaEnumUsers(pipes_struct *p, struct wkssvc_NetWkstaEnumUsers *r);
+WERROR _WKSSVC_NETRWKSTAUSERGETINFO(pipes_struct *p, struct WKSSVC_NETRWKSTAUSERGETINFO *r);
+WERROR _WKSSVC_NETRWKSTAUSERSETINFO(pipes_struct *p, struct WKSSVC_NETRWKSTAUSERSETINFO *r);
+WERROR _wkssvc_NetWkstaTransportEnum(pipes_struct *p, struct wkssvc_NetWkstaTransportEnum *r);
+WERROR _WKSSVC_NETRWKSTATRANSPORTADD(pipes_struct *p, struct WKSSVC_NETRWKSTATRANSPORTADD *r);
+WERROR _WKSSVC_NETRWKSTATRANSPORTDEL(pipes_struct *p, struct WKSSVC_NETRWKSTATRANSPORTDEL *r);
+WERROR _WKSSVC_NETRUSEADD(pipes_struct *p, struct WKSSVC_NETRUSEADD *r);
+WERROR _WKSSVC_NETRUSEGETINFO(pipes_struct *p, struct WKSSVC_NETRUSEGETINFO *r);
+WERROR _WKSSVC_NETRUSEDEL(pipes_struct *p, struct WKSSVC_NETRUSEDEL *r);
+WERROR _WKSSVC_NETRUSEENUM(pipes_struct *p, struct WKSSVC_NETRUSEENUM *r);
+WERROR _WKSSVC_NETRMESSAGEBUFFERSEND(pipes_struct *p, struct WKSSVC_NETRMESSAGEBUFFERSEND *r);
+WERROR _WKSSVC_NETRWORKSTATIONSTATISTICSGET(pipes_struct *p, struct WKSSVC_NETRWORKSTATIONSTATISTICSGET *r);
+WERROR _WKSSVC_NETRLOGONDOMAINNAMEADD(pipes_struct *p, struct WKSSVC_NETRLOGONDOMAINNAMEADD *r);
+WERROR _WKSSVC_NETRLOGONDOMAINNAMEDEL(pipes_struct *p, struct WKSSVC_NETRLOGONDOMAINNAMEDEL *r);
+WERROR _WKSSVC_NETRJOINDOMAIN(pipes_struct *p, struct WKSSVC_NETRJOINDOMAIN *r);
+WERROR _WKSSVC_NETRUNJOINDOMAIN(pipes_struct *p, struct WKSSVC_NETRUNJOINDOMAIN *r);
+WERROR _WKSSVC_NETRRENAMEMACHINEINDOMAIN(pipes_struct *p, struct WKSSVC_NETRRENAMEMACHINEINDOMAIN *r);
+WERROR _WKSSVC_NETRVALIDATENAME(pipes_struct *p, struct WKSSVC_NETRVALIDATENAME *r);
+WERROR _WKSSVC_NETRGETJOININFORMATION(pipes_struct *p, struct WKSSVC_NETRGETJOININFORMATION *r);
+WERROR _WKSSVC_NETRGETJOINABLEOUS(pipes_struct *p, struct WKSSVC_NETRGETJOINABLEOUS *r);
+WERROR _wkssvc_NetrJoinDomain2(pipes_struct *p, struct wkssvc_NetrJoinDomain2 *r);
+WERROR _wkssvc_NetrUnjoinDomain2(pipes_struct *p, struct wkssvc_NetrUnjoinDomain2 *r);
+WERROR _wkssvc_NetrRenameMachineInDomain2(pipes_struct *p, struct wkssvc_NetrRenameMachineInDomain2 *r);
+WERROR _WKSSVC_NETRVALIDATENAME2(pipes_struct *p, struct WKSSVC_NETRVALIDATENAME2 *r);
+WERROR _WKSSVC_NETRGETJOINABLEOUS2(pipes_struct *p, struct WKSSVC_NETRGETJOINABLEOUS2 *r);
+WERROR _wkssvc_NetrAddAlternateComputerName(pipes_struct *p, struct wkssvc_NetrAddAlternateComputerName *r);
+WERROR _wkssvc_NetrRemoveAlternateComputerName(pipes_struct *p, struct wkssvc_NetrRemoveAlternateComputerName *r);
+WERROR _WKSSVC_NETRSETPRIMARYCOMPUTERNAME(pipes_struct *p, struct WKSSVC_NETRSETPRIMARYCOMPUTERNAME *r);
+WERROR _WKSSVC_NETRENUMERATECOMPUTERNAMES(pipes_struct *p, struct WKSSVC_NETRENUMERATECOMPUTERNAMES *r);
void wkssvc_get_pipe_fns(struct api_struct **fns, int *n_fns);
NTSTATUS rpc_wkssvc_init(void);
#endif /* __SRV_WKSSVC__ */