Share security.idl.
[ira/wip.git] / source3 / librpc / idl / initshutdown.idl
1 #include "idl_types.h"
2
3 /*
4   initshutdown interface definition
5 */
6
7 import "lsa.idl";
8
9
10   uuid("894de0c0-0d55-11d3-a322-00c04fa321a1"),
11   version(1.0),
12   endpoint("ncacn_np:[\\pipe\\InitShutdown]"),
13   pointer_default(unique),
14   helpstring("Init shutdown service")
15 ] interface initshutdown
16 {
17         typedef struct {
18                 [value(strlen_m_term(name))] uint32 name_size;
19                 [flag(STR_LEN4|STR_NOTERM)] string name;
20         } initshutdown_String_sub;
21
22         typedef [public] struct {
23                 [value(strlen_m(name->name)*2)] uint16 name_len;
24                 [value(strlen_m_term(name->name)*2)] uint16 name_size;
25                 initshutdown_String_sub *name;
26         } initshutdown_String;
27
28         WERROR initshutdown_Init(
29                 [in,unique] uint16 *hostname,
30                 [in,unique] initshutdown_String *message,
31                 [in] uint32 timeout,
32                 [in] uint8 force_apps,
33                 [in] uint8 do_reboot
34         );
35
36         WERROR initshutdown_Abort(
37                 [in,unique] uint16 *server
38         );
39
40         WERROR initshutdown_InitEx(
41                 [in,unique] uint16 *hostname,
42                 [in,unique] initshutdown_String *message,
43                 [in] uint32 timeout,
44                 [in] uint8 force_apps,
45                 [in] uint8 do_reboot,
46                 [in] uint32 reason
47         );
48 }