2006-09-20 20:32:29 +04:00
/*
* Unix SMB / CIFS implementation .
* client auto - generated by pidl . DO NOT MODIFY !
*/
# include "includes.h"
# include "librpc/gen_ndr/cli_srvsvc.h"
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetCharDevEnum ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , uint32_t * level , union srvsvc_NetCharDevCtr * ctr , uint32_t max_buffer , uint32_t * totalentries , uint32_t * resume_handle , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetCharDevEnum r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . level = level ;
r . in . ctr = ctr ;
r . in . max_buffer = max_buffer ;
2007-01-16 18:42:03 +03:00
r . in . resume_handle = resume_handle ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetCharDevEnum , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETCHARDEVENUM , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetCharDevEnum , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
* level = * r . out . level ;
* ctr = * r . out . ctr ;
* totalentries = * r . out . totalentries ;
2007-10-17 12:35:51 +04:00
if ( resume_handle & & r . out . resume_handle ) {
2007-01-16 18:42:03 +03:00
* resume_handle = * r . out . resume_handle ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetCharDevGetInfo ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * device_name , uint32_t level , union srvsvc_NetCharDevInfo * info , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetCharDevGetInfo r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . device_name = device_name ;
r . in . level = level ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetCharDevGetInfo , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETCHARDEVGETINFO , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetCharDevGetInfo , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
* info = * r . out . info ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetCharDevControl ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * device_name , uint32_t opcode , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetCharDevControl r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . device_name = device_name ;
r . in . opcode = opcode ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetCharDevControl , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETCHARDEVCONTROL , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetCharDevControl , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetCharDevQEnum ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * user , uint32_t * level , union srvsvc_NetCharDevQCtr * ctr , uint32_t max_buffer , uint32_t * totalentries , uint32_t * resume_handle , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetCharDevQEnum r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . user = user ;
r . in . level = level ;
r . in . ctr = ctr ;
r . in . max_buffer = max_buffer ;
2007-01-16 18:42:03 +03:00
r . in . resume_handle = resume_handle ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetCharDevQEnum , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETCHARDEVQENUM , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetCharDevQEnum , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
* level = * r . out . level ;
* ctr = * r . out . ctr ;
* totalentries = * r . out . totalentries ;
2007-10-17 12:35:51 +04:00
if ( resume_handle & & r . out . resume_handle ) {
2007-01-16 18:42:03 +03:00
* resume_handle = * r . out . resume_handle ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetCharDevQGetInfo ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * queue_name , const char * user , uint32_t level , union srvsvc_NetCharDevQInfo * info , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetCharDevQGetInfo r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . queue_name = queue_name ;
r . in . user = user ;
r . in . level = level ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetCharDevQGetInfo , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETCHARDEVQGETINFO , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetCharDevQGetInfo , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
* info = * r . out . info ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetCharDevQSetInfo ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * queue_name , uint32_t level , union srvsvc_NetCharDevQInfo info , uint32_t * parm_error , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetCharDevQSetInfo r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . queue_name = queue_name ;
r . in . level = level ;
r . in . info = info ;
2007-01-16 18:42:03 +03:00
r . in . parm_error = parm_error ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetCharDevQSetInfo , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETCHARDEVQSETINFO , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetCharDevQSetInfo , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2007-10-17 12:35:51 +04:00
if ( parm_error & & r . out . parm_error ) {
2007-01-16 18:42:03 +03:00
* parm_error = * r . out . parm_error ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetCharDevQPurge ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * queue_name , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetCharDevQPurge r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . queue_name = queue_name ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetCharDevQPurge , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETCHARDEVQPURGE , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetCharDevQPurge , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetCharDevQPurgeSelf ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * queue_name , const char * computer_name , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetCharDevQPurgeSelf r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . queue_name = queue_name ;
r . in . computer_name = computer_name ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetCharDevQPurgeSelf , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETCHARDEVQPURGESELF , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetCharDevQPurgeSelf , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetConnEnum ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * path , uint32_t * level , union srvsvc_NetConnCtr * ctr , uint32_t max_buffer , uint32_t * totalentries , uint32_t * resume_handle , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetConnEnum r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . path = path ;
r . in . level = level ;
r . in . ctr = ctr ;
r . in . max_buffer = max_buffer ;
2007-01-16 18:42:03 +03:00
r . in . resume_handle = resume_handle ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetConnEnum , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETCONNENUM , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetConnEnum , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
* level = * r . out . level ;
* ctr = * r . out . ctr ;
* totalentries = * r . out . totalentries ;
2007-10-17 12:35:51 +04:00
if ( resume_handle & & r . out . resume_handle ) {
2007-01-16 18:42:03 +03:00
* resume_handle = * r . out . resume_handle ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetFileEnum ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * path , const char * user , uint32_t * level , union srvsvc_NetFileCtr * ctr , uint32_t max_buffer , uint32_t * totalentries , uint32_t * resume_handle , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetFileEnum r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . path = path ;
r . in . user = user ;
r . in . level = level ;
r . in . ctr = ctr ;
r . in . max_buffer = max_buffer ;
2007-01-16 18:42:03 +03:00
r . in . resume_handle = resume_handle ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetFileEnum , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETFILEENUM , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetFileEnum , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
* level = * r . out . level ;
* ctr = * r . out . ctr ;
* totalentries = * r . out . totalentries ;
2007-10-17 12:35:51 +04:00
if ( resume_handle & & r . out . resume_handle ) {
2007-01-16 18:42:03 +03:00
* resume_handle = * r . out . resume_handle ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetFileGetInfo ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , uint32_t fid , uint32_t level , union srvsvc_NetFileInfo * info , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetFileGetInfo r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . fid = fid ;
r . in . level = level ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetFileGetInfo , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETFILEGETINFO , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetFileGetInfo , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
* info = * r . out . info ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetFileClose ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , uint32_t fid , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetFileClose r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . fid = fid ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetFileClose , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETFILECLOSE , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetFileClose , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetSessEnum ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * client , const char * user , uint32_t * level , union srvsvc_NetSessCtr * ctr , uint32_t max_buffer , uint32_t * totalentries , uint32_t * resume_handle , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetSessEnum r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . client = client ;
r . in . user = user ;
r . in . level = level ;
r . in . ctr = ctr ;
r . in . max_buffer = max_buffer ;
2007-01-16 18:42:03 +03:00
r . in . resume_handle = resume_handle ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetSessEnum , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETSESSENUM , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetSessEnum , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
* level = * r . out . level ;
* ctr = * r . out . ctr ;
* totalentries = * r . out . totalentries ;
2007-10-17 12:35:51 +04:00
if ( resume_handle & & r . out . resume_handle ) {
2007-01-16 18:42:03 +03:00
* resume_handle = * r . out . resume_handle ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetSessDel ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * client , const char * user , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetSessDel r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . client = client ;
r . in . user = user ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetSessDel , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETSESSDEL , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetSessDel , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetShareAdd ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , uint32_t level , union srvsvc_NetShareInfo info , uint32_t * parm_error , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetShareAdd r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . level = level ;
r . in . info = info ;
2007-01-16 18:42:03 +03:00
r . in . parm_error = parm_error ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetShareAdd , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETSHAREADD , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetShareAdd , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2007-10-17 12:35:51 +04:00
if ( parm_error & & r . out . parm_error ) {
2007-01-16 18:42:03 +03:00
* parm_error = * r . out . parm_error ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetShareEnumAll ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , uint32_t * level , union srvsvc_NetShareCtr * ctr , uint32_t max_buffer , uint32_t * totalentries , uint32_t * resume_handle , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetShareEnumAll r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . level = level ;
r . in . ctr = ctr ;
r . in . max_buffer = max_buffer ;
2007-01-16 18:42:03 +03:00
r . in . resume_handle = resume_handle ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetShareEnumAll , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETSHAREENUMALL , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetShareEnumAll , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
* level = * r . out . level ;
* ctr = * r . out . ctr ;
* totalentries = * r . out . totalentries ;
2007-10-17 12:35:51 +04:00
if ( resume_handle & & r . out . resume_handle ) {
2007-01-16 18:42:03 +03:00
* resume_handle = * r . out . resume_handle ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetShareGetInfo ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * share_name , uint32_t level , union srvsvc_NetShareInfo * info , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetShareGetInfo r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . share_name = share_name ;
r . in . level = level ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetShareGetInfo , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETSHAREGETINFO , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetShareGetInfo , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
* info = * r . out . info ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetShareSetInfo ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * share_name , uint32_t level , union srvsvc_NetShareInfo info , uint32_t * parm_error , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetShareSetInfo r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . share_name = share_name ;
r . in . level = level ;
r . in . info = info ;
2007-01-16 18:42:03 +03:00
r . in . parm_error = parm_error ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetShareSetInfo , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETSHARESETINFO , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetShareSetInfo , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2007-10-17 12:35:51 +04:00
if ( parm_error & & r . out . parm_error ) {
2007-01-16 18:42:03 +03:00
* parm_error = * r . out . parm_error ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetShareDel ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * share_name , uint32_t reserved , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetShareDel r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . share_name = share_name ;
r . in . reserved = reserved ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetShareDel , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETSHAREDEL , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetShareDel , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetShareDelSticky ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * share_name , uint32_t reserved , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetShareDelSticky r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . share_name = share_name ;
r . in . reserved = reserved ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetShareDelSticky , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETSHAREDELSTICKY , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetShareDelSticky , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetShareCheck ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * device_name , enum srvsvc_ShareType * type , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetShareCheck r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . device_name = device_name ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetShareCheck , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETSHARECHECK , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetShareCheck , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
* type = * r . out . type ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetSrvGetInfo ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , uint32_t level , union srvsvc_NetSrvInfo * info , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetSrvGetInfo r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . level = level ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetSrvGetInfo , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETSRVGETINFO , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetSrvGetInfo , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
* info = * r . out . info ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetSrvSetInfo ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , uint32_t level , union srvsvc_NetSrvInfo info , uint32_t * parm_error , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetSrvSetInfo r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . level = level ;
r . in . info = info ;
2007-01-16 18:42:03 +03:00
r . in . parm_error = parm_error ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetSrvSetInfo , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETSRVSETINFO , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetSrvSetInfo , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2007-10-17 12:35:51 +04:00
if ( parm_error & & r . out . parm_error ) {
2007-01-16 18:42:03 +03:00
* parm_error = * r . out . parm_error ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetDiskEnum ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , uint32_t level , struct srvsvc_NetDiskInfo * info , uint32_t maxlen , uint32_t * totalentries , uint32_t * resume_handle , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetDiskEnum r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . level = level ;
r . in . info = info ;
r . in . maxlen = maxlen ;
2007-01-16 18:42:03 +03:00
r . in . resume_handle = resume_handle ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetDiskEnum , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETDISKENUM , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetDiskEnum , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
* info = * r . out . info ;
* totalentries = * r . out . totalentries ;
2007-10-17 12:35:51 +04:00
if ( resume_handle & & r . out . resume_handle ) {
2007-01-16 18:42:03 +03:00
* resume_handle = * r . out . resume_handle ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetServerStatisticsGet ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * service , uint32_t level , uint32_t options , struct srvsvc_Statistics * stats , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetServerStatisticsGet r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . service = service ;
r . in . level = level ;
r . in . options = options ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetServerStatisticsGet , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETSERVERSTATISTICSGET , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetServerStatisticsGet , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2006-09-22 08:31:11 +04:00
* stats = * r . out . stats ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetTransportAdd ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , uint32_t level , union srvsvc_NetTransportInfo info , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetTransportAdd r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . level = level ;
r . in . info = info ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetTransportAdd , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETTRANSPORTADD , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetTransportAdd , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetTransportEnum ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , uint32_t * level , union srvsvc_NetTransportCtr * transports , uint32_t max_buffer , uint32_t * totalentries , uint32_t * resume_handle , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetTransportEnum r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . level = level ;
r . in . transports = transports ;
r . in . max_buffer = max_buffer ;
2007-01-16 18:42:03 +03:00
r . in . resume_handle = resume_handle ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetTransportEnum , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETTRANSPORTENUM , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetTransportEnum , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
* level = * r . out . level ;
* transports = * r . out . transports ;
* totalentries = * r . out . totalentries ;
2007-10-17 12:35:51 +04:00
if ( resume_handle & & r . out . resume_handle ) {
2007-01-16 18:42:03 +03:00
* resume_handle = * r . out . resume_handle ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetTransportDel ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , uint32_t unknown , struct srvsvc_NetTransportInfo0 transport , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetTransportDel r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . unknown = unknown ;
r . in . transport = transport ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetTransportDel , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETTRANSPORTDEL , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetTransportDel , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetRemoteTOD ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , struct srvsvc_NetRemoteTODInfo * info , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetRemoteTOD r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetRemoteTOD , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETREMOTETOD , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetRemoteTOD , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2007-10-17 12:35:51 +04:00
if ( info & & r . out . info ) {
2007-01-16 18:42:03 +03:00
* info = * r . out . info ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetSetServiceBits ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * transport , uint32_t servicebits , uint32_t updateimmediately , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetSetServiceBits r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . transport = transport ;
r . in . servicebits = servicebits ;
r . in . updateimmediately = updateimmediately ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetSetServiceBits , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETSETSERVICEBITS , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetSetServiceBits , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetPathType ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * path , uint32_t pathflags , uint32_t * pathtype , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetPathType r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . path = path ;
r . in . pathflags = pathflags ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetPathType , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETPATHTYPE , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetPathType , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
* pathtype = * r . out . pathtype ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetPathCanonicalize ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * path , uint8_t * can_path , uint32_t maxbuf , const char * prefix , uint32_t * pathtype , uint32_t pathflags , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetPathCanonicalize r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . path = path ;
r . in . maxbuf = maxbuf ;
r . in . prefix = prefix ;
r . in . pathtype = pathtype ;
r . in . pathflags = pathflags ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetPathCanonicalize , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETPATHCANONICALIZE , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetPathCanonicalize , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2007-02-16 17:50:57 +03:00
memcpy ( can_path , r . out . can_path , r . in . maxbuf ) ;
2006-09-20 20:32:29 +04:00
* pathtype = * r . out . pathtype ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetPathCompare ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * path1 , const char * path2 , uint32_t pathtype , uint32_t pathflags , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetPathCompare r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . path1 = path1 ;
r . in . path2 = path2 ;
r . in . pathtype = pathtype ;
r . in . pathflags = pathflags ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetPathCompare , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETPATHCOMPARE , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetPathCompare , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetNameValidate ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * name , uint32_t name_type , uint32_t flags , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetNameValidate r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . name = name ;
r . in . name_type = name_type ;
r . in . flags = flags ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetNameValidate , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETNAMEVALIDATE , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetNameValidate , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NETRPRNAMECANONICALIZE ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NETRPRNAMECANONICALIZE r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NETRPRNAMECANONICALIZE , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETRPRNAMECANONICALIZE , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NETRPRNAMECANONICALIZE , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetPRNameCompare ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * name1 , const char * name2 , uint32_t name_type , uint32_t flags , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetPRNameCompare r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . name1 = name1 ;
r . in . name2 = name2 ;
r . in . name_type = name_type ;
r . in . flags = flags ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetPRNameCompare , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETPRNAMECOMPARE , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetPRNameCompare , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetShareEnum ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , uint32_t * level , union srvsvc_NetShareCtr * ctr , uint32_t max_buffer , uint32_t * totalentries , uint32_t * resume_handle , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetShareEnum r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . level = level ;
r . in . ctr = ctr ;
r . in . max_buffer = max_buffer ;
2007-01-16 18:42:03 +03:00
r . in . resume_handle = resume_handle ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetShareEnum , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETSHAREENUM , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetShareEnum , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
* level = * r . out . level ;
* ctr = * r . out . ctr ;
* totalentries = * r . out . totalentries ;
2007-10-17 12:35:51 +04:00
if ( resume_handle & & r . out . resume_handle ) {
2007-01-16 18:42:03 +03:00
* resume_handle = * r . out . resume_handle ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetShareDelStart ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * share , uint32_t reserved , struct policy_handle * hnd , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetShareDelStart r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . share = share ;
r . in . reserved = reserved ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetShareDelStart , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETSHAREDELSTART , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetShareDelStart , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2007-10-17 12:35:51 +04:00
if ( hnd & & r . out . hnd ) {
2007-01-16 18:42:03 +03:00
* hnd = * r . out . hnd ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetShareDelCommit ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , struct policy_handle * hnd , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetShareDelCommit r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
2007-01-16 18:42:03 +03:00
r . in . hnd = hnd ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetShareDelCommit , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETSHAREDELCOMMIT , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetShareDelCommit , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2007-10-17 12:35:51 +04:00
if ( hnd & & r . out . hnd ) {
2007-01-16 18:42:03 +03:00
* hnd = * r . out . hnd ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetGetFileSecurity ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * share , const char * file , uint32_t securityinformation , struct sec_desc_buf * sd_buf , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetGetFileSecurity r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . share = share ;
r . in . file = file ;
r . in . securityinformation = securityinformation ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetGetFileSecurity , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETGETFILESECURITY , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetGetFileSecurity , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2007-10-17 12:35:51 +04:00
if ( sd_buf & & r . out . sd_buf ) {
2007-01-16 18:42:03 +03:00
* sd_buf = * r . out . sd_buf ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetSetFileSecurity ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * share , const char * file , uint32_t securityinformation , struct sec_desc_buf sd_buf , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetSetFileSecurity r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . share = share ;
r . in . file = file ;
r . in . securityinformation = securityinformation ;
r . in . sd_buf = sd_buf ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetSetFileSecurity , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETSETFILESECURITY , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetSetFileSecurity , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetServerTransportAddEx ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , uint32_t level , union srvsvc_NetTransportInfo info , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetServerTransportAddEx r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . level = level ;
r . in . info = info ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetServerTransportAddEx , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETSERVERTRANSPORTADDEX , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetServerTransportAddEx , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NetServerSetServiceBitsEx ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , const char * server_unc , const char * emulated_server_unc , const char * transport , uint32_t servicebitsofinterest , uint32_t servicebits , uint32_t updateimmediately , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NetServerSetServiceBitsEx r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
r . in . server_unc = server_unc ;
r . in . emulated_server_unc = emulated_server_unc ;
r . in . transport = transport ;
r . in . servicebitsofinterest = servicebitsofinterest ;
r . in . servicebits = servicebits ;
r . in . updateimmediately = updateimmediately ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NetServerSetServiceBitsEx , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETSERVERSETSERVICEBITSEX , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NetServerSetServiceBitsEx , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NETRDFSGETVERSION ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NETRDFSGETVERSION r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NETRDFSGETVERSION , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETRDFSGETVERSION , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NETRDFSGETVERSION , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NETRDFSCREATELOCALPARTITION ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NETRDFSCREATELOCALPARTITION r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NETRDFSCREATELOCALPARTITION , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETRDFSCREATELOCALPARTITION , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NETRDFSCREATELOCALPARTITION , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NETRDFSDELETELOCALPARTITION ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NETRDFSDELETELOCALPARTITION r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NETRDFSDELETELOCALPARTITION , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETRDFSDELETELOCALPARTITION , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NETRDFSDELETELOCALPARTITION , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NETRDFSSETLOCALVOLUMESTATE ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NETRDFSSETLOCALVOLUMESTATE r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NETRDFSSETLOCALVOLUMESTATE , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETRDFSSETLOCALVOLUMESTATE , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NETRDFSSETLOCALVOLUMESTATE , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NETRDFSSETSERVERINFO ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NETRDFSSETSERVERINFO r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NETRDFSSETSERVERINFO , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETRDFSSETSERVERINFO , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NETRDFSSETSERVERINFO , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NETRDFSCREATEEXITPOINT ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NETRDFSCREATEEXITPOINT r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NETRDFSCREATEEXITPOINT , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETRDFSCREATEEXITPOINT , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NETRDFSCREATEEXITPOINT , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NETRDFSDELETEEXITPOINT ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NETRDFSDELETEEXITPOINT r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NETRDFSDELETEEXITPOINT , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETRDFSDELETEEXITPOINT , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NETRDFSDELETEEXITPOINT , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NETRDFSMODIFYPREFIX ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NETRDFSMODIFYPREFIX r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NETRDFSMODIFYPREFIX , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETRDFSMODIFYPREFIX , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NETRDFSMODIFYPREFIX , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NETRDFSFIXLOCALVOLUME ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NETRDFSFIXLOCALVOLUME r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NETRDFSFIXLOCALVOLUME , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETRDFSFIXLOCALVOLUME , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NETRDFSFIXLOCALVOLUME , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NETRDFSMANAGERREPORTSITEINFO ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NETRDFSMANAGERREPORTSITEINFO r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NETRDFSMANAGERREPORTSITEINFO , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETRDFSMANAGERREPORTSITEINFO , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NETRDFSMANAGERREPORTSITEINFO , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}
2007-12-03 20:19:20 +03:00
NTSTATUS rpccli_srvsvc_NETRSERVERTRANSPORTDELEX ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , WERROR * werror )
2006-09-20 20:32:29 +04:00
{
struct srvsvc_NETRSERVERTRANSPORTDELEX r ;
NTSTATUS status ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* In parameters */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( srvsvc_NETRSERVERTRANSPORTDELEX , & r ) ;
2008-01-08 20:07:55 +03:00
2007-08-21 16:20:33 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_SRVSVC , & ndr_table_srvsvc , NDR_SRVSVC_NETRSERVERTRANSPORTDELEX , & r ) ;
2008-01-08 20:07:55 +03:00
2007-02-16 17:50:57 +03:00
if ( ! NT_STATUS_IS_OK ( status ) ) {
2006-09-29 01:19:08 +04:00
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( srvsvc_NETRSERVERTRANSPORTDELEX , & r ) ;
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return variables */
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
/* Return result */
2007-12-03 20:19:20 +03:00
if ( werror ) {
* werror = r . out . result ;
}
2008-01-08 20:07:55 +03:00
2006-09-20 20:32:29 +04:00
return werror_to_ntstatus ( r . out . result ) ;
}