1/*
2   Unix SMB/CIFS implementation.
3   SMB parameters and setup
4   Copyright (C) Jim McDonough (jmcd@us.ibm.com)      2003.
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2 of the License, or
9   (at your option) any later version.
10
11   This program is distributed in the hope that it will be useful,
12   but WITHOUT ANY WARRANTY; without even the implied warranty of
13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   GNU General Public License for more details.
15
16   You should have received a copy of the GNU General Public License
17   along with this program; if not, write to the Free Software
18   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19*/
20
21#ifndef _RPC_SHUTDOWN_H /* _RPC_SHUTDOWN_H */
22#define _RPC_SHUTDOWN_H
23
24
25/* Implemented */
26#define SHUTDOWN_INIT		0x00
27#define SHUTDOWN_ABORT		0x01
28/* NOT IMPLEMENTED
29#define SHUTDOWN_INIT_EX	0x02
30*/
31
32/* SHUTDOWN_Q_INIT */
33typedef struct q_shutodwn_init_info
34{
35	uint32 ptr_server;
36	uint16 server;
37	uint32 ptr_msg;
38	UNIHDR hdr_msg;		/* shutdown message */
39	UNISTR2 uni_msg;	/* seconds */
40	uint32 timeout;		/* seconds */
41	uint8 force;		/* boolean: force shutdown */
42	uint8 reboot;		/* boolean: reboot on shutdown */
43
44} SHUTDOWN_Q_INIT;
45
46/* SHUTDOWN_R_INIT */
47typedef struct r_shutdown_init_info
48{
49	NTSTATUS status;		/* return status */
50
51} SHUTDOWN_R_INIT;
52
53/* SHUTDOWN_Q_ABORT */
54typedef struct q_shutdown_abort_info
55{
56	uint32 ptr_server;
57	uint16 server;
58
59} SHUTDOWN_Q_ABORT;
60
61/* SHUTDOWN_R_ABORT */
62typedef struct r_shutdown_abort_info
63{
64	NTSTATUS status; /* return status */
65
66} SHUTDOWN_R_ABORT;
67
68
69#endif /* _RPC_SHUTDOWN_H */
70
71