epan/dissectors/pidl/samr/samr.cnf cnf_dissect_lsa_BinaryString => lsarpc_dissect_str...
[wireshark-sm.git] / epan / dissectors / pidl / iwbemservices / iwbemservices.cnf
blobc35df28c0ca2111112c6d736a21eeb38b7145dc6
1 # Conformance file for iwbemservices
3 MANUAL IWbemServices_dissect_element_GetObject_orpcthis
4 MANUAL IWbemServices_dissect_element_GetObject_orpcthat_
6 MANUAL IWbemServices_dissect_element_ExecMethod_orpcthis
7 MANUAL IWbemServices_dissect_element_ExecMethod_orpcthat_
9 MANUAL IWbemServices_dissect_element_IWbemClassObject_objects
10 NOEMIT IWbemServices_dissect_element_IWbemClassObject_objects_
11 NOEMIT IWbemServices_dissect_element_GetObject_strObjectPath_
13 ETT_FIELD ett_IWbemServices_GetObject_orpcthis
14 ETT_FIELD ett_IWbemServices_GetObject_orpcthat
16 ETT_FIELD ett_IWbemServices_ExecMethod_orpcthis
17 ETT_FIELD ett_IWbemServices_ExecMethod_orpcthat
19 CODE START
21         #include "packet-dcom.h"
23 static int
24 IWbemServices_dissect_element_IWbemClassObject_objects_(tvbuff_t *tvb, int offset, int length, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep);
25 static int
26 IWbemServices_dissect_element_GetObject_strObjectPath_(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, uint8_t *drep);
28 extern void register_dcom_wmio (void);
30 /* GetObject */
31 static int
32 IWbemServices_dissect_element_GetObject_orpcthis(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, uint8_t *drep)
34         proto_item *sub_item;
35         proto_tree *sub_tree;
37         sub_item = proto_tree_add_item(tree, hf_IWbemServices_GetObject_orpcthis, tvb, offset, 0, ENC_NA);
38         sub_tree = proto_item_add_subtree(sub_item, ett_IWbemServices_GetObject_orpcthis);
40         return dissect_dcom_this(tvb, offset, pinfo, sub_tree, di, drep);
43 static int
44 IWbemServices_dissect_element_GetObject_orpcthat_(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, uint8_t *drep)
46         proto_item *sub_item;
47         proto_tree *sub_tree;
49         register_dcom_wmio();
51         sub_item = proto_tree_add_item(tree, hf_IWbemServices_GetObject_orpcthat, tvb, offset, 0, ENC_NA);
52         sub_tree = proto_item_add_subtree(sub_item, ett_IWbemServices_GetObject_orpcthat);
54         return dissect_dcom_that(tvb, offset, pinfo, sub_tree, di, drep);
57 /* ExecMethod */
58 static int
59 IWbemServices_dissect_element_ExecMethod_orpcthis(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, uint8_t *drep)
61         proto_item *sub_item;
62         proto_tree *sub_tree;
64         sub_item = proto_tree_add_item(tree, hf_IWbemServices_ExecMethod_orpcthis, tvb, offset, 0, ENC_NA);
65         sub_tree = proto_item_add_subtree(sub_item, ett_IWbemServices_ExecMethod_orpcthis);
67         return dissect_dcom_this(tvb, offset, pinfo, sub_tree, di, drep);
70 static int
71 IWbemServices_dissect_element_ExecMethod_orpcthat_(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, uint8_t *drep)
73         proto_item *sub_item;
74         proto_tree *sub_tree;
76         register_dcom_wmio();
78         sub_item = proto_tree_add_item(tree, hf_IWbemServices_ExecMethod_orpcthat, tvb, offset, 0, ENC_NA);
79         sub_tree = proto_item_add_subtree(sub_item, ett_IWbemServices_ExecMethod_orpcthat);
81         return dissect_dcom_that(tvb, offset, pinfo, sub_tree, di, drep);
84 static int
85 IWbemServices_dissect_element_IWbemClassObject_objects(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, uint8_t *drep)
87         return dissect_ndr_ucarray_block(tvb, offset, pinfo, tree, di, drep, &IWbemServices_dissect_element_IWbemClassObject_objects_);
90 static int
91 IWbemServices_dissect_element_IWbemClassObject_objects_(tvbuff_t *tvb, int offset, int length, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
93         dissect_dcom_OBJREF(tvb, offset, pinfo, tree, di, drep, hf_IWbemServices_IWbemClassObject_objects, NULL);
94         return offset + length;
97 static int
98 IWbemServices_dissect_element_GetObject_strObjectPath_(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, uint8_t *drep)
100         char *data = NULL;
102         offset = dissect_ndr_cvstring(tvb, offset, pinfo, tree, di, drep, sizeof(uint16_t), hf_IWbemServices_GetObject_strObjectPath, false, &data);
103         if (data){
104                 proto_item_append_text(tree, ": %s", data);
105                 col_append_fstr(pinfo->cinfo, COL_INFO, " Object=%s", data);
106         }
108         return offset;
111 CODE END