WHATSNEW: Update changes.
[Samba/gebeck_regimport.git] / librpc / idl / misc.idl
bloba60d30bef2c450e02c5ab008f45b07ebc74f0653
1 #include "idl_types.h"
3 /*
4 miscellaneous IDL structures
5 */
9 pyhelper("librpc/ndr/py_misc.c"),
10 pointer_default(unique)
12 interface misc
14 typedef [public,noprint,gensize] struct {
15 uint32 time_low;
16 uint16 time_mid;
17 uint16 time_hi_and_version;
18 uint8 clock_seq[2];
19 uint8 node[6];
20 } GUID;
22 typedef [public] struct {
23 GUID uuid;
24 /* The major version is encoded in the 16 least significant bits,
25 the minor in the 16 most significant bits.
26 http://www.opengroup.org/onlinepubs/9629399/chap12.htm */
27 uint32 if_version;
28 } ndr_syntax_id;
30 typedef [public] struct {
31 uint32 handle_type;
32 GUID uuid;
33 } policy_handle;
35 /* secure channel types */
36 /* Only SEC_CHAN_WKSTA can forward requests to other domains. */
38 typedef [public] enum {
39 SEC_CHAN_NULL = 0,
40 SEC_CHAN_WKSTA = 2,
41 SEC_CHAN_DNS_DOMAIN = 3,
42 SEC_CHAN_DOMAIN = 4,
43 SEC_CHAN_BDC = 6
44 } netr_SchannelType;
46 typedef [public] struct {
47 NTSTATUS ntstatus;
48 uint32 unknown1;
49 uint32 unknown2; /* 0x00000001 */
50 } KRB5_EDATA_NTSTATUS;
52 typedef [public,v1_enum] enum {
53 REG_NONE = 0,
54 REG_SZ = 1,
55 REG_EXPAND_SZ = 2,
56 REG_BINARY = 3,
57 REG_DWORD = 4,
58 REG_DWORD_BIG_ENDIAN = 5,
59 REG_LINK = 6,
60 REG_MULTI_SZ = 7,
61 REG_RESOURCE_LIST = 8,
62 REG_FULL_RESOURCE_DESCRIPTOR = 9,
63 REG_RESOURCE_REQUIREMENTS_LIST = 10,
64 REG_QWORD = 11
65 } winreg_Type;
67 typedef [nodiscriminant,public,flag(NDR_LITTLE_ENDIAN)] union {
68 [case(REG_NONE)];
69 [case(REG_SZ)] nstring string;
70 [case(REG_EXPAND_SZ)] nstring string;
71 [case(REG_BINARY),flag(NDR_REMAINING)] DATA_BLOB binary;
72 [case(REG_DWORD)] uint32 value;
73 [case(REG_DWORD_BIG_ENDIAN),flag(NDR_BIG_ENDIAN)] uint32 value;
74 [case(REG_MULTI_SZ)] nstring_array string_array;
75 [default,flag(NDR_REMAINING)] DATA_BLOB data;
76 } winreg_Data;