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 lsa_StringLarge
*message
/* [in] [unique] */,
13 uint32_t timeout
/* [in] */,
14 uint8_t force_apps
/* [in] */,
15 uint8_t do_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
;
26 r
.in
.do_reboot
= do_reboot
;
28 if (DEBUGLEVEL
>= 10) {
29 NDR_PRINT_IN_DEBUG(initshutdown_Init
, &r
);
32 status
= cli
->dispatch(cli
,
34 &ndr_table_initshutdown
,
35 NDR_INITSHUTDOWN_INIT
,
38 if (!NT_STATUS_IS_OK(status
)) {
42 if (DEBUGLEVEL
>= 10) {
43 NDR_PRINT_OUT_DEBUG(initshutdown_Init
, &r
);
46 if (NT_STATUS_IS_ERR(status
)) {
50 /* Return variables */
54 *werror
= r
.out
.result
;
57 return werror_to_ntstatus(r
.out
.result
);
60 NTSTATUS
rpccli_initshutdown_Abort(struct rpc_pipe_client
*cli
,
62 uint16_t *server
/* [in] [unique] */,
65 struct initshutdown_Abort r
;
71 if (DEBUGLEVEL
>= 10) {
72 NDR_PRINT_IN_DEBUG(initshutdown_Abort
, &r
);
75 status
= cli
->dispatch(cli
,
77 &ndr_table_initshutdown
,
78 NDR_INITSHUTDOWN_ABORT
,
81 if (!NT_STATUS_IS_OK(status
)) {
85 if (DEBUGLEVEL
>= 10) {
86 NDR_PRINT_OUT_DEBUG(initshutdown_Abort
, &r
);
89 if (NT_STATUS_IS_ERR(status
)) {
93 /* Return variables */
97 *werror
= r
.out
.result
;
100 return werror_to_ntstatus(r
.out
.result
);
103 NTSTATUS
rpccli_initshutdown_InitEx(struct rpc_pipe_client
*cli
,
105 uint16_t *hostname
/* [in] [unique] */,
106 struct lsa_StringLarge
*message
/* [in] [unique] */,
107 uint32_t timeout
/* [in] */,
108 uint8_t force_apps
/* [in] */,
109 uint8_t do_reboot
/* [in] */,
110 uint32_t reason
/* [in] */,
113 struct initshutdown_InitEx r
;
117 r
.in
.hostname
= hostname
;
118 r
.in
.message
= message
;
119 r
.in
.timeout
= timeout
;
120 r
.in
.force_apps
= force_apps
;
121 r
.in
.do_reboot
= do_reboot
;
122 r
.in
.reason
= reason
;
124 if (DEBUGLEVEL
>= 10) {
125 NDR_PRINT_IN_DEBUG(initshutdown_InitEx
, &r
);
128 status
= cli
->dispatch(cli
,
130 &ndr_table_initshutdown
,
131 NDR_INITSHUTDOWN_INITEX
,
134 if (!NT_STATUS_IS_OK(status
)) {
138 if (DEBUGLEVEL
>= 10) {
139 NDR_PRINT_OUT_DEBUG(initshutdown_InitEx
, &r
);
142 if (NT_STATUS_IS_ERR(status
)) {
146 /* Return variables */
150 *werror
= r
.out
.result
;
153 return werror_to_ntstatus(r
.out
.result
);