r13637: Adding more netr_UserFlags.
[samba.git] / source / librpc / idl / mgmt.idl
1 #include "idl_types.h"
2
3 /*
4   dcerpc remote management interface
5 */
6
7 [
8   uuid("afa8bd80-7d8a-11c9-bef4-08002b102989"), 
9   version(1.0),
10   pointer_default(unique),
11   endpoint("ncalrpc:[EPMAPPER]", "ncacn_ip_tcp:[135]", "ncacn_np:[\\pipe\\epmapper]"),
12   helpstring("DCE/RPC Remote Management")
13
14 interface mgmt
15 {
16         typedef struct {
17                 dcerpc_syntax_id *id;
18         } dcerpc_syntax_id_p;
19
20         typedef struct {
21                 uint32              count;
22                 [size_is(count)] dcerpc_syntax_id_p if_id[*];
23         } rpc_if_id_vector_t;
24
25
26         /***********************/
27         /* Function 0x00       */
28         WERROR mgmt_inq_if_ids (
29                 [out,unique]       rpc_if_id_vector_t      *if_id_vector
30                 );
31
32
33
34         /***********************/
35         /* Function 0x01       */
36
37
38         /* these are the array indexes in the statistics array */
39         const int MGMT_STATS_CALLS_IN       = 0;
40         const int MGMT_STATS_CALLS_OUT      = 1;
41         const int MGMT_STATS_PKTS_IN        = 2;
42         const int MGMT_STATS_PKTS_OUT       = 3;
43         const int MGMT_STATS_ARRAY_MAX_SIZE = 4;
44
45         typedef struct {
46                 uint32 count;
47                 [size_is(count)] uint32 statistics[*];
48         } mgmt_statistics;
49
50         WERROR mgmt_inq_stats (
51                 [in]        uint32             max_count,
52                 [in]        uint32             unknown,
53                 [out]       mgmt_statistics        statistics
54                 );
55
56
57         /***********************/
58         /* Function 0x02       */
59         boolean32 mgmt_is_server_listening (
60                 [out]       error_status_t          status
61                 );
62
63
64         /***********************/
65         /* Function 0x03       */
66         WERROR mgmt_stop_server_listening ();
67
68
69         /***********************/
70         /* Function 0x04       */
71         WERROR mgmt_inq_princ_name (
72                 [in]        uint32                  authn_proto,
73                 [in]        uint32                  princ_name_size,
74                 [out]       [string,charset(DOS)] uint8 princ_name[]
75                 );
76 }