summaryrefslogtreecommitdiffstats
path: root/librpc/idl/mgmt.idl
blob: 17c8cc4bde0de2148fef3b15f7f08c7726742be9 (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
/*
  dcerpc remote management interface
*/

import "misc.idl";

[
  uuid("afa8bd80-7d8a-11c9-bef4-08002b102989"), 
  version(1.0),
  pointer_default(unique),
  helpstring("DCE/RPC Remote Management")
] 
interface mgmt
{
	typedef struct {
		ndr_syntax_id *id;
	} ndr_syntax_id_p;

	typedef struct {
		uint32              count;
		[size_is(count)] ndr_syntax_id_p if_id[*];
	} rpc_if_id_vector_t;


	/***********************/
	/* Function 0x00       */
	WERROR mgmt_inq_if_ids (
		[out]       rpc_if_id_vector_t      **if_id_vector
		);



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


	/* these are the array indexes in the statistics array */
	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;

	WERROR mgmt_inq_stats (
		[in]        uint32             max_count,
		[in]        uint32             unknown,
		[out,ref]   mgmt_statistics    *statistics
		);


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


	/***********************/
	/* Function 0x03       */
	WERROR mgmt_stop_server_listening ();


	/***********************/
	/* Function 0x04       */
	WERROR mgmt_inq_princ_name (
		[in]        uint32                  authn_proto,
		[in]        uint32                  princ_name_size,
		[out]       [string,size_is(princ_name_size),charset(DOS)] uint8 princ_name[]
		);
}