2006-09-15 22:32:43 +04:00
/*
* Unix SMB / CIFS implementation .
* client auto - generated by pidl . DO NOT MODIFY !
*/
# include "includes.h"
# include "librpc/gen_ndr/cli_initshutdown.h"
NTSTATUS rpccli_initshutdown_Init ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , uint16_t * hostname , struct initshutdown_String * message , uint32_t timeout , uint8_t force_apps , uint8_t reboot )
{
struct initshutdown_Init r ;
NTSTATUS status ;
/* In parameters */
r . in . hostname = hostname ;
r . in . message = message ;
r . in . timeout = timeout ;
r . in . force_apps = force_apps ;
r . in . reboot = reboot ;
2006-09-20 02:39:15 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( initshutdown_Init , & r ) ;
2006-09-15 22:32:43 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_INITSHUTDOWN , DCERPC_INITSHUTDOWN_INIT , & r , ( ndr_pull_flags_fn_t ) ndr_pull_initshutdown_Init , ( ndr_push_flags_fn_t ) ndr_push_initshutdown_Init ) ;
2006-09-20 02:39:15 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( initshutdown_Init , & r ) ;
2006-09-15 22:32:43 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus ( r . out . result ) ;
}
NTSTATUS rpccli_initshutdown_Abort ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , uint16_t * server )
{
struct initshutdown_Abort r ;
NTSTATUS status ;
/* In parameters */
r . in . server = server ;
2006-09-20 02:39:15 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( initshutdown_Abort , & r ) ;
2006-09-15 22:32:43 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_INITSHUTDOWN , DCERPC_INITSHUTDOWN_ABORT , & r , ( ndr_pull_flags_fn_t ) ndr_pull_initshutdown_Abort , ( ndr_push_flags_fn_t ) ndr_push_initshutdown_Abort ) ;
2006-09-20 02:39:15 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( initshutdown_Abort , & r ) ;
2006-09-15 22:32:43 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus ( r . out . result ) ;
}
NTSTATUS rpccli_initshutdown_InitEx ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , uint16_t * hostname , struct initshutdown_String * message , uint32_t timeout , uint8_t force_apps , uint8_t reboot , uint32_t reason )
{
struct initshutdown_InitEx r ;
NTSTATUS status ;
/* In parameters */
r . in . hostname = hostname ;
r . in . message = message ;
r . in . timeout = timeout ;
r . in . force_apps = force_apps ;
r . in . reboot = reboot ;
r . in . reason = reason ;
2006-09-20 02:39:15 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_IN_DEBUG ( initshutdown_InitEx , & r ) ;
2006-09-15 22:32:43 +04:00
status = cli_do_rpc_ndr ( cli , mem_ctx , PI_INITSHUTDOWN , DCERPC_INITSHUTDOWN_INITEX , & r , ( ndr_pull_flags_fn_t ) ndr_pull_initshutdown_InitEx , ( ndr_push_flags_fn_t ) ndr_push_initshutdown_InitEx ) ;
2006-09-20 02:39:15 +04:00
if ( DEBUGLEVEL > = 10 )
NDR_PRINT_OUT_DEBUG ( initshutdown_InitEx , & r ) ;
2006-09-15 22:32:43 +04:00
if ( NT_STATUS_IS_ERR ( status ) ) {
return status ;
}
/* Return variables */
/* Return result */
return werror_to_ntstatus ( r . out . result ) ;
}