summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dcerpc-iwbemloginclientidex.c
blob: ddb45ffd0f3c4e07795a417e63ac9db4583bb12c (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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
/* DO NOT EDIT
	This file was automatically generated by Pidl
	from iwbemloginclientidex.idl and iwbemloginclientidex.cnf.

	Pidl is a perl based IDL compiler for DCE/RPC idl files.
	It is maintained by the Samba team, not the Wireshark team.
	Instructions on how to download and install Pidl can be
	found at https://wiki.wireshark.org/Pidl
*/


#include "config.h"
#include <string.h>
#include <wsutil/array.h>
#include <epan/packet.h>
#include <epan/tfs.h>

#include "packet-dcerpc.h"
#include "packet-dcerpc-nt.h"
#include "packet-windows-common.h"
#include "packet-dcerpc-iwbemloginclientidex.h"
void proto_register_dcerpc_IWbemLoginClientIDEx(void);
void proto_reg_handoff_dcerpc_IWbemLoginClientIDEx(void);

/* Ett declarations */
static int ett_IWbemLoginClientIDEx_SetClientInfoEx_orpcthis;
static int ett_IWbemLoginClientIDEx_SetClientInfoEx_orpcthat;
static int ett_dcerpc_IWbemLoginClientIDEx;
static int ett_IWbemLoginClientIDEx_ORPCTHIS;
static int ett_IWbemLoginClientIDEx_ORPCTHAT;
static int ett_IWbemLoginClientIDEx_FILETIME;


/* Header field declarations */
static int hf_IWbemLoginClientIDEx_FILETIME_dwHighDateTime;
static int hf_IWbemLoginClientIDEx_FILETIME_dwLowDateTime;
static int hf_IWbemLoginClientIDEx_SetClientInfoEx_ClientMachine;
static int hf_IWbemLoginClientIDEx_SetClientInfoEx_ClientMachineFQDN;
static int hf_IWbemLoginClientIDEx_SetClientInfoEx_ClientProcId;
static int hf_IWbemLoginClientIDEx_SetClientInfoEx_ClientProcessCreationTime;
static int hf_IWbemLoginClientIDEx_SetClientInfoEx_Reserved;
static int hf_IWbemLoginClientIDEx_SetClientInfoEx_orpcthat;
static int hf_IWbemLoginClientIDEx_SetClientInfoEx_orpcthis;
static int hf_IWbemLoginClientIDEx_opnum;
static int hf_IWbemLoginClientIDEx_werror;

static int proto_dcerpc_IWbemLoginClientIDEx;
/* Version information */


static e_guid_t uuid_dcerpc_IWbemLoginClientIDEx = {
	0x9f6c78ef, 0xfce5, 0x42fa,
	{ 0xab, 0xea, 0x3e, 0x7d, 0xf9, 0x19, 0x21, 0xdc }
};
static uint16_t ver_dcerpc_IWbemLoginClientIDEx = 0;

static int IWbemLoginClientIDEx_dissect_element_FILETIME_dwLowDateTime(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_);
static int IWbemLoginClientIDEx_dissect_element_FILETIME_dwHighDateTime(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_);
static int IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_orpcthis(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_);
static int IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_ClientMachine(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_);
static int IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_ClientMachine_(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_);
static int IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_ClientMachineFQDN(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_);
static int IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_ClientMachineFQDN_(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_);
static int IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_ClientProcId(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_);
static int IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_ClientProcessCreationTime(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_);
static int IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_Reserved(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_);
static int IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_orpcthat(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_);
static int IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_orpcthat_(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_);
	#include "packet-dcom.h"
/* SetClientInfoEx */
static int
IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_orpcthis(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
{
	proto_item *sub_item;
	proto_tree *sub_tree;
	sub_item = proto_tree_add_item(tree, hf_IWbemLoginClientIDEx_SetClientInfoEx_orpcthis, tvb, offset, 0, ENC_NA);
	sub_tree = proto_item_add_subtree(sub_item, ett_IWbemLoginClientIDEx_SetClientInfoEx_orpcthis);
	offset = dissect_dcom_this(tvb, offset, pinfo, sub_tree, di, drep);
	return offset;
}
static int
IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_orpcthat_(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
{
	proto_item *sub_item;
	proto_tree *sub_tree;
	sub_item = proto_tree_add_item(tree, hf_IWbemLoginClientIDEx_SetClientInfoEx_orpcthat, tvb, offset, 0, ENC_NA);
	sub_tree = proto_item_add_subtree(sub_item, ett_IWbemLoginClientIDEx_SetClientInfoEx_orpcthat);
	offset = dissect_dcom_that(tvb, offset, pinfo, sub_tree, di, drep);
	return offset;
}


/* IDL: struct { */
/* IDL: } */

int
IWbemLoginClientIDEx_dissect_struct_ORPCTHIS(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_, int hf_index _U_, uint32_t param _U_)
{
	proto_item *item = NULL;
	int old_offset;

	old_offset = offset;

	if (parent_tree) {
		item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
	}


	proto_item_set_len(item, offset-old_offset);


	return offset;
}


/* IDL: struct { */
/* IDL: } */

int
IWbemLoginClientIDEx_dissect_struct_ORPCTHAT(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_, int hf_index _U_, uint32_t param _U_)
{
	proto_item *item = NULL;
	int old_offset;

	old_offset = offset;

	if (parent_tree) {
		item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
	}


	proto_item_set_len(item, offset-old_offset);


	return offset;
}


/* IDL: struct { */
/* IDL: 	uint32 dwLowDateTime; */
/* IDL: 	uint32 dwHighDateTime; */
/* IDL: } */

static int
IWbemLoginClientIDEx_dissect_element_FILETIME_dwLowDateTime(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
{
	offset = PIDL_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_IWbemLoginClientIDEx_FILETIME_dwLowDateTime, 0);

	return offset;
}

static int
IWbemLoginClientIDEx_dissect_element_FILETIME_dwHighDateTime(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
{
	offset = PIDL_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_IWbemLoginClientIDEx_FILETIME_dwHighDateTime, 0);

	return offset;
}

int
IWbemLoginClientIDEx_dissect_struct_FILETIME(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_, int hf_index _U_, uint32_t param _U_)
{
	proto_item *item = NULL;
	proto_tree *tree = NULL;
	int old_offset;

	ALIGN_TO_4_BYTES;

	old_offset = offset;

	if (parent_tree) {
		item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
		tree = proto_item_add_subtree(item, ett_IWbemLoginClientIDEx_FILETIME);
	}

	offset = IWbemLoginClientIDEx_dissect_element_FILETIME_dwLowDateTime(tvb, offset, pinfo, tree, di, drep);

	offset = IWbemLoginClientIDEx_dissect_element_FILETIME_dwHighDateTime(tvb, offset, pinfo, tree, di, drep);


	proto_item_set_len(item, offset-old_offset);


	if (di->call_data->flags & DCERPC_IS_NDR64) {
		ALIGN_TO_4_BYTES;
	}

	return offset;
}

/* IDL: WERROR iwbemloginclientidex_opnum0( */
/* IDL:  */
/* IDL: ); */

static int
IWbemLoginClientIDEx_dissect_iwbemloginclientidex_opnum0_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
{
	uint32_t status;

	di->dcerpc_procedure_name="iwbemloginclientidex_opnum0";
	offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, di, drep, hf_IWbemLoginClientIDEx_werror, &status);

	if (status != 0)
		col_append_fstr(pinfo->cinfo, COL_INFO, ", Error: %s", val_to_str_ext(status, &WERR_errors_ext, "Unknown DOS error 0x%08x"));

	return offset;
}

static int
IWbemLoginClientIDEx_dissect_iwbemloginclientidex_opnum0_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
{
	di->dcerpc_procedure_name="iwbemloginclientidex_opnum0";
	return offset;
}

/* IDL: WERROR iwbemloginclientidex_opnum1( */
/* IDL:  */
/* IDL: ); */

static int
IWbemLoginClientIDEx_dissect_iwbemloginclientidex_opnum1_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
{
	uint32_t status;

	di->dcerpc_procedure_name="iwbemloginclientidex_opnum1";
	offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, di, drep, hf_IWbemLoginClientIDEx_werror, &status);

	if (status != 0)
		col_append_fstr(pinfo->cinfo, COL_INFO, ", Error: %s", val_to_str_ext(status, &WERR_errors_ext, "Unknown DOS error 0x%08x"));

	return offset;
}

static int
IWbemLoginClientIDEx_dissect_iwbemloginclientidex_opnum1_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
{
	di->dcerpc_procedure_name="iwbemloginclientidex_opnum1";
	return offset;
}

/* IDL: WERROR iwbemloginclientidex_opnum2( */
/* IDL:  */
/* IDL: ); */

static int
IWbemLoginClientIDEx_dissect_iwbemloginclientidex_opnum2_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
{
	uint32_t status;

	di->dcerpc_procedure_name="iwbemloginclientidex_opnum2";
	offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, di, drep, hf_IWbemLoginClientIDEx_werror, &status);

	if (status != 0)
		col_append_fstr(pinfo->cinfo, COL_INFO, ", Error: %s", val_to_str_ext(status, &WERR_errors_ext, "Unknown DOS error 0x%08x"));

	return offset;
}

static int
IWbemLoginClientIDEx_dissect_iwbemloginclientidex_opnum2_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
{
	di->dcerpc_procedure_name="iwbemloginclientidex_opnum2";
	return offset;
}

static int
IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_ClientMachine(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
{
	offset = dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_ClientMachine_, NDR_POINTER_UNIQUE, "Pointer to ClientMachine (uint16)",hf_IWbemLoginClientIDEx_SetClientInfoEx_ClientMachine);

	return offset;
}

static int
IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_ClientMachine_(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
{
	char *data;

	offset = dissect_ndr_cvstring(tvb, offset, pinfo, tree, di, drep, sizeof(uint16_t), hf_IWbemLoginClientIDEx_SetClientInfoEx_ClientMachine, false, &data);
	proto_item_append_text(tree, ": %s", data);

	return offset;
}

static int
IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_ClientMachineFQDN(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
{
	offset = dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_ClientMachineFQDN_, NDR_POINTER_UNIQUE, "Pointer to ClientMachineFQDN (uint16)",hf_IWbemLoginClientIDEx_SetClientInfoEx_ClientMachineFQDN);

	return offset;
}

static int
IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_ClientMachineFQDN_(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
{
	char *data;

	offset = dissect_ndr_cvstring(tvb, offset, pinfo, tree, di, drep, sizeof(uint16_t), hf_IWbemLoginClientIDEx_SetClientInfoEx_ClientMachineFQDN, false, &data);
	proto_item_append_text(tree, ": %s", data);

	return offset;
}

static int
IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_ClientProcId(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
{
	offset = PIDL_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_IWbemLoginClientIDEx_SetClientInfoEx_ClientProcId, 0);

	return offset;
}

static int
IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_ClientProcessCreationTime(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
{
	offset = IWbemLoginClientIDEx_dissect_struct_FILETIME(tvb,offset,pinfo,tree,di,drep,hf_IWbemLoginClientIDEx_SetClientInfoEx_ClientProcessCreationTime,0);

	return offset;
}

static int
IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_Reserved(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
{
	offset = PIDL_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_IWbemLoginClientIDEx_SetClientInfoEx_Reserved, 0);

	return offset;
}

static int
IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_orpcthat(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
{
	offset = dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_orpcthat_, NDR_POINTER_REF, "Pointer to Orpcthat (ORPCTHAT)",hf_IWbemLoginClientIDEx_SetClientInfoEx_orpcthat);

	return offset;
}

/* IDL: WERROR SetClientInfoEx( */
/* IDL: [in] ORPCTHIS orpcthis, */
/* IDL: [charset(UTF16)] [in] [unique(1)] uint16 *ClientMachine, */
/* IDL: [charset(UTF16)] [in] [unique(1)] uint16 *ClientMachineFQDN, */
/* IDL: [in] uint32 ClientProcId, */
/* IDL: [in] FILETIME ClientProcessCreationTime, */
/* IDL: [in] uint32 Reserved, */
/* IDL: [out] [ref] ORPCTHAT *orpcthat */
/* IDL: ); */

static int
IWbemLoginClientIDEx_dissect_SetClientInfoEx_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
{
	uint32_t status;

	di->dcerpc_procedure_name="SetClientInfoEx";
	offset = IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_orpcthat(tvb, offset, pinfo, tree, di, drep);
	offset = dissect_deferred_pointers(pinfo, tvb, offset, di, drep);

	offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, di, drep, hf_IWbemLoginClientIDEx_werror, &status);

	if (status != 0)
		col_append_fstr(pinfo->cinfo, COL_INFO, ", Error: %s", val_to_str_ext(status, &WERR_errors_ext, "Unknown DOS error 0x%08x"));

	return offset;
}

static int
IWbemLoginClientIDEx_dissect_SetClientInfoEx_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
{
	di->dcerpc_procedure_name="SetClientInfoEx";
	offset = IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_orpcthis(tvb, offset, pinfo, tree, di, drep);
	offset = dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
	offset = IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_ClientMachine(tvb, offset, pinfo, tree, di, drep);
	offset = dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
	offset = IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_ClientMachineFQDN(tvb, offset, pinfo, tree, di, drep);
	offset = dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
	offset = IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_ClientProcId(tvb, offset, pinfo, tree, di, drep);
	offset = dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
	offset = IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_ClientProcessCreationTime(tvb, offset, pinfo, tree, di, drep);
	offset = dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
	offset = IWbemLoginClientIDEx_dissect_element_SetClientInfoEx_Reserved(tvb, offset, pinfo, tree, di, drep);
	offset = dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
	return offset;
}


static const dcerpc_sub_dissector IWbemLoginClientIDEx_dissectors[] = {
	{ 0, "iwbemloginclientidex_opnum0",
	   IWbemLoginClientIDEx_dissect_iwbemloginclientidex_opnum0_request, IWbemLoginClientIDEx_dissect_iwbemloginclientidex_opnum0_response},
	{ 1, "iwbemloginclientidex_opnum1",
	   IWbemLoginClientIDEx_dissect_iwbemloginclientidex_opnum1_request, IWbemLoginClientIDEx_dissect_iwbemloginclientidex_opnum1_response},
	{ 2, "iwbemloginclientidex_opnum2",
	   IWbemLoginClientIDEx_dissect_iwbemloginclientidex_opnum2_request, IWbemLoginClientIDEx_dissect_iwbemloginclientidex_opnum2_response},
	{ 3, "SetClientInfoEx",
	   IWbemLoginClientIDEx_dissect_SetClientInfoEx_request, IWbemLoginClientIDEx_dissect_SetClientInfoEx_response},
	{ 0, NULL, NULL, NULL }
};

void proto_register_dcerpc_IWbemLoginClientIDEx(void)
{
	static hf_register_info hf[] = {
	{ &hf_IWbemLoginClientIDEx_FILETIME_dwHighDateTime,
	  { "DwHighDateTime", "IWbemLoginClientIDEx.FILETIME.dwHighDateTime", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
	{ &hf_IWbemLoginClientIDEx_FILETIME_dwLowDateTime,
	  { "DwLowDateTime", "IWbemLoginClientIDEx.FILETIME.dwLowDateTime", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
	{ &hf_IWbemLoginClientIDEx_SetClientInfoEx_ClientMachine,
	  { "ClientMachine", "IWbemLoginClientIDEx.SetClientInfoEx.ClientMachine", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }},
	{ &hf_IWbemLoginClientIDEx_SetClientInfoEx_ClientMachineFQDN,
	  { "ClientMachineFQDN", "IWbemLoginClientIDEx.SetClientInfoEx.ClientMachineFQDN", FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }},
	{ &hf_IWbemLoginClientIDEx_SetClientInfoEx_ClientProcId,
	  { "ClientProcId", "IWbemLoginClientIDEx.SetClientInfoEx.ClientProcId", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
	{ &hf_IWbemLoginClientIDEx_SetClientInfoEx_ClientProcessCreationTime,
	  { "ClientProcessCreationTime", "IWbemLoginClientIDEx.SetClientInfoEx.ClientProcessCreationTime", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
	{ &hf_IWbemLoginClientIDEx_SetClientInfoEx_Reserved,
	  { "Reserved", "IWbemLoginClientIDEx.SetClientInfoEx.Reserved", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }},
	{ &hf_IWbemLoginClientIDEx_SetClientInfoEx_orpcthat,
	  { "Orpcthat", "IWbemLoginClientIDEx.SetClientInfoEx.orpcthat", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
	{ &hf_IWbemLoginClientIDEx_SetClientInfoEx_orpcthis,
	  { "Orpcthis", "IWbemLoginClientIDEx.SetClientInfoEx.orpcthis", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }},
	{ &hf_IWbemLoginClientIDEx_opnum,
	  { "Operation", "IWbemLoginClientIDEx.opnum", FT_UINT16, BASE_DEC, NULL, 0, NULL, HFILL }},
	{ &hf_IWbemLoginClientIDEx_werror,
	  { "Windows Error", "IWbemLoginClientIDEx.werror", FT_UINT32, BASE_HEX|BASE_EXT_STRING, &WERR_errors_ext, 0, NULL, HFILL }},
	};


	static int *ett[] = {
		&ett_IWbemLoginClientIDEx_SetClientInfoEx_orpcthis,
		&ett_IWbemLoginClientIDEx_SetClientInfoEx_orpcthat,
		&ett_dcerpc_IWbemLoginClientIDEx,
		&ett_IWbemLoginClientIDEx_ORPCTHIS,
		&ett_IWbemLoginClientIDEx_ORPCTHAT,
		&ett_IWbemLoginClientIDEx_FILETIME,
	};

	proto_dcerpc_IWbemLoginClientIDEx = proto_register_protocol("IWBEMLOGINCLIENTIDEX (pidl)", "IWBEMLOGINCLIENTIDEX", "IWbemLoginClientIDEx");
	proto_register_field_array(proto_dcerpc_IWbemLoginClientIDEx, hf, array_length (hf));
	proto_register_subtree_array(ett, array_length(ett));
}

void proto_reg_handoff_dcerpc_IWbemLoginClientIDEx(void)
{
	dcerpc_init_uuid(proto_dcerpc_IWbemLoginClientIDEx, ett_dcerpc_IWbemLoginClientIDEx,
		&uuid_dcerpc_IWbemLoginClientIDEx, ver_dcerpc_IWbemLoginClientIDEx,
		IWbemLoginClientIDEx_dissectors, hf_IWbemLoginClientIDEx_opnum);
}