4 endpoint mapper interface
8 uuid(e1af8308-5d1f-11c9-91a4-08002b14a0fa),
10 pointer_default(unique)
16 note that the following IDL won't work in MIDL, and in fact
17 that the full towers/floors representation of epm cannot be
18 represented in MIDL at all. I decided to represent it using
19 the extended IDL syntax in pidl to make it easier to work
23 /* this guid indicates NDR encoding in a protocol tower */
24 const string NDR_GUID = "8a885d04-1ceb-11c9-9fe8-08002b104860";
25 const string NDR_GUID_VERSION = 2;
27 const uint32 EPMAPPER_PORT = 135;
35 EPM_PROTOCOL_TCP = 0x07,
36 EPM_PROTOCOL_IP = 0x09,
37 EPM_PROTOCOL_PIPE = 0x10,
38 EPM_PROTOCOL_NETBIOS = 0x11,
39 EPM_PROTOCOL_RPC_C = 0x0b,
40 EPM_PROTOCOL_UUID = 0x0d,
41 EPM_PROTOCOL_SMB = 0x0f,
42 EPM_PROTOCOL_HTTP = 0x1f
45 typedef [nodiscriminant] union {
46 [case(13)] epm_prot_uuid uuid;
47 [default] [flag(NDR_REMAINING)] DATA_BLOB lhs_data;
52 [switch_is(protocol)] epm_protocol_info info;
56 [flag(NDR_REMAINING)] DATA_BLOB rhs_data;
60 [subcontext(2)] epm_lhs lhs;
61 [subcontext(2)] epm_rhs rhs;
64 /* note that the NDR_NOALIGN flag is inherited by all nested
65 structures. All of the towers/floors stuff is
66 non-aligned. I wonder what sort of wicked substance these
69 typedef [flag(NDR_NOALIGN)] struct {
71 epm_floor floors[num_floors];
75 [value(ndr_size_epm_towers(&r->towers))] uint32 tower_length;
76 [subcontext(4)] epm_towers towers;
91 /**********************/
95 [in,size_is(num_ents)] epm_entry_t entries[],
97 [out] error_status_t status
100 /**********************/
103 [in] uint32 num_ents,
104 [in, size_is(num_ents)] epm_entry_t entries[],
105 [out] error_status_t status
108 /**********************/
111 [in] uint32 inquiry_type,
113 [in] rpc_if_id_t *interface_id,
114 [in] uint32 vers_option,
115 [in,out,ref] policy_handle *entry_handle,
116 [in] uint32 max_ents,
117 [out] uint32 num_ents,
118 [out, length_is(num_ents), size_is(max_ents)] epm_entry_t entries[],
119 [out] error_status_t status
123 /**********************/
132 [in] epm_twr_t *map_tower,
133 [in,out,ref] policy_handle *entry_handle,
134 [in] uint32 max_towers,
135 [out] uint32 num_towers,
136 [out, length_is(num_towers), size_is(max_towers)] epm_twr_p_t towers[],
137 [out] error_status_t status
141 /**********************/
143 void epm_LookupHandleFree(
144 [in,out,ref] policy_handle *entry_handle,
145 [out] error_status_t status
148 /**********************/
151 [out] GUID *epm_object,
152 [out] error_status_t status
156 /**********************/
159 [in] uint32 object_speced,
161 [in] epm_twr_t *tower,
162 [out] error_status_t status