summaryrefslogtreecommitdiff
path: root/source4/librpc/idl/mgmt.idl
blob: 2bc752da3d79d583ec88d825e418845bc05ca1c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#include "idl_types.h"

/*
  dcerpc remote management interface
*/


[
  uuid(afa8bd80-7d8a-11c9-bef4-08002b102989), 
  version(1)
] 
interface mgmt
{
	typedef struct {
		dcerpc_syntax_id *id;
	} dcerpc_syntax_id_p;

	typedef struct {
		unsigned32              count;
		[size_is(count)] dcerpc_syntax_id_p if_id[*];
	} rpc_if_id_vector_t;


	/***********************/
	/* Function 0x00       */
	void mgmt_inq_if_ids (
		[out]       rpc_if_id_vector_t      *if_id_vector,
		[out]       error_status_t          status
		);



	/***********************/
	/* Function 0x01       */

	const int mgmt_stats_calls_in       = 0;
	const int mgmt_stats_calls_out      = 1;
	const int mgmt_stats_pkts_in        = 2;
	const int mgmt_stats_pkts_out       = 3;
	const int mgmt_stats_array_max_size = 4;

	typedef struct {
		uint32 count;
		[size_is(count)] uint32 statistics[*];
	} mgmt_statistics;

	void mgmt_inq_stats (
		[in]        uint32             max_count,
		[in]        uint32             unknown,
		[out]       mgmt_statistics        statistics,
		[out]       error_status_t         status
		);


	/***********************/
	/* Function 0x02       */
	boolean32 mgmt_is_server_listening (
		[out]       error_status_t          status
		);


	/***********************/
	/* Function 0x03       */
	void mgmt_stop_server_listening (
		[out]       error_status_t          status
		);


	/***********************/
	/* Function 0x04       */
	void mgmt_inq_princ_name (
		[in]        unsigned32              authn_proto,
		[in]        unsigned32              princ_name_size,
		[out]       ascstr2                 princ_name,
		[out]       error_status_t          status
		);
}