2 * Unix SMB/CIFS implementation.
3 * client auto-generated by pidl. DO NOT MODIFY!
7 #include "librpc/gen_ndr/cli_initshutdown.h"
9 NTSTATUS
rpccli_initshutdown_Init(struct rpc_pipe_client
*cli
,
11 uint16_t *hostname
/* [in] [unique] */,
12 struct initshutdown_String
*message
/* [in] [unique] */,
13 uint32_t timeout
/* [in] */,
14 uint8_t force_apps
/* [in] */,
15 uint8_t reboot
/* [in] */,
18 struct initshutdown_Init r
;
22 r
.in
.hostname
= hostname
;
23 r
.in
.message
= message
;
24 r
.in
.timeout
= timeout
;
25 r
.in
.force_apps
= force_apps
;
28 if (DEBUGLEVEL
>= 10) {
29 NDR_PRINT_IN_DEBUG(initshutdown_Init
, &r
);
32 status
= cli_do_rpc_ndr(cli
,
35 &ndr_table_initshutdown
,
36 NDR_INITSHUTDOWN_INIT
,
39 if (!NT_STATUS_IS_OK(status
)) {
43 if (DEBUGLEVEL
>= 10) {
44 NDR_PRINT_OUT_DEBUG(initshutdown_Init
, &r
);
47 if (NT_STATUS_IS_ERR(status
)) {
51 /* Return variables */
55 *werror
= r
.out
.result
;
58 return werror_to_ntstatus(r
.out
.result
);
61 NTSTATUS
rpccli_initshutdown_Abort(struct rpc_pipe_client
*cli
,
63 uint16_t *server
/* [in] [unique] */,
66 struct initshutdown_Abort r
;
72 if (DEBUGLEVEL
>= 10) {
73 NDR_PRINT_IN_DEBUG(initshutdown_Abort
, &r
);
76 status
= cli_do_rpc_ndr(cli
,
79 &ndr_table_initshutdown
,
80 NDR_INITSHUTDOWN_ABORT
,
83 if (!NT_STATUS_IS_OK(status
)) {
87 if (DEBUGLEVEL
>= 10) {
88 NDR_PRINT_OUT_DEBUG(initshutdown_Abort
, &r
);
91 if (NT_STATUS_IS_ERR(status
)) {
95 /* Return variables */
99 *werror
= r
.out
.result
;
102 return werror_to_ntstatus(r
.out
.result
);
105 NTSTATUS
rpccli_initshutdown_InitEx(struct rpc_pipe_client
*cli
,
107 uint16_t *hostname
/* [in] [unique] */,
108 struct initshutdown_String
*message
/* [in] [unique] */,
109 uint32_t timeout
/* [in] */,
110 uint8_t force_apps
/* [in] */,
111 uint8_t reboot
/* [in] */,
112 uint32_t reason
/* [in] */,
115 struct initshutdown_InitEx r
;
119 r
.in
.hostname
= hostname
;
120 r
.in
.message
= message
;
121 r
.in
.timeout
= timeout
;
122 r
.in
.force_apps
= force_apps
;
123 r
.in
.reboot
= reboot
;
124 r
.in
.reason
= reason
;
126 if (DEBUGLEVEL
>= 10) {
127 NDR_PRINT_IN_DEBUG(initshutdown_InitEx
, &r
);
130 status
= cli_do_rpc_ndr(cli
,
133 &ndr_table_initshutdown
,
134 NDR_INITSHUTDOWN_INITEX
,
137 if (!NT_STATUS_IS_OK(status
)) {
141 if (DEBUGLEVEL
>= 10) {
142 NDR_PRINT_OUT_DEBUG(initshutdown_InitEx
, &r
);
145 if (NT_STATUS_IS_ERR(status
)) {
149 /* Return variables */
153 *werror
= r
.out
.result
;
156 return werror_to_ntstatus(r
.out
.result
);