forked from openchange/openchange
-
Notifications
You must be signed in to change notification settings - Fork 0
/
property.idl
489 lines (441 loc) · 14.2 KB
/
property.idl
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
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
#include "idl_types.h"
cpp_quote("#include <gen_ndr/ndr_misc.h>")
import "exchange.idl";
[
pointer_default(unique)
]
interface property
{
typedef [v1_enum] enum {
afNone = 0x00000000,
afByValue = 0x00000001,
afByReference = 0x00000002,
afByReferenceOnly = 0x00000004,
afEmbeddedMessage = 0x00000005,
afStorage = 0x00000006
} AttachmentMethod;
typedef [v1_enum] enum {
seOpenToDelete = 0x00000001,
seNoFrame = 0x00000008,
seCoerceToInbox = 0x00000010,
seOpenToCopy = 0x00000020,
seOpenToMove = 0x00000040,
seOpenForCtxMenu = 0x00000100,
seCannotUndoDelete = 0x00000400,
seCannotUndoCopy = 0x00000800,
seCannotUndoMove = 0x00001000,
seHasScript = 0x00002000,
seOpenToPermDelete = 0x00004000
} SideEffects;
typedef [enum16bit] enum {
RecurFrequency_Daily = 0x200A,
RecurFrequency_Weekly = 0x200B,
RecurFrequency_Monthly = 0x200C,
RecurFrequency_Yearly = 0x200D
} RecurFrequency;
typedef [v1_enum] enum {
rectypeNone = 0x00000000,
rectypeDaily = 0x00000001,
rectypeWeekly = 0x00000002,
rectypeMonthly = 0x00000003,
rectypeYearly = 0x00000004
} RecurrenceType;
typedef [enum16bit] enum {
PatternType_Day = 0x0,
PatternType_Week = 0x1,
PatternType_Month = 0x2,
PatternType_MonthNth = 0x3,
PatternType_MonthEnd = 0x4,
PatternType_HjMonth = 0xA,
PatternType_HjMonthNth = 0xB,
PatternType_HjMonthEnd = 0xC
} PatternType;
typedef [enum16bit] enum {
CAL_DEFAULT = 0x0,
CAL_GREGORIAN = 0x1,
CAL_GREGORIAN_US = 0x2,
CAL_JAPAN = 0x3,
CAL_TAIWAN = 0x4,
CAL_KOREA = 0x5,
CAL_HIJRI = 0x6,
CAL_THAI = 0x7,
CAL_HEBREW = 0x8,
CAL_GREGORIAN_ME_FRENCH = 0x9,
CAL_GREGORIAN_ARABIC = 0xA,
CAL_GREGORIAN_XLIT_ENGLISH = 0xB,
CAL_GREGORIAN_XLIT_FRENCH = 0xC,
CAL_LUNAR_JAPANESE = 0xE,
CAL_CHINESE_LUNAR = 0xF,
CAL_SAKA = 0x10,
CAL_LUNAR_KOREAN = 0x14
} CalendarType;
/* [MS-OXOCAL] 2.2.2.4 */
typedef [v1_enum] enum {
CI_MANAGER = 0x00000001,
CI_DELEGATE = 0x00000002,
CI_DEL_NO_RESPONSE = 0x00000004,
CI_DEL_EXCEPTION_NO_RESPONSE = 0x00000008,
CI_RESP_TENTATIVE = 0x00000010,
CI_RESP_ACCEPT = 0x00000020,
CI_RESP_DECLINE = 0x00000040,
CI_MOD_START_TIME = 0x00000080,
CI_MOD_END_TIME = 0x00000100,
CI_MOD_LOCATION = 0x00000200,
CI_RESP_EXCEPTION_DECLINE = 0x00000400,
CI_CANCELED = 0x00000800,
CI_EXCEPTION_CANCELED = 0x00001000
} ClientIntent;
/* [MS-OXOCAL] 2.2.6.5 */
typedef [v1_enum] enum {
mtgEmpty = 0x00000000,
mtgRequest = 0x00000001,
mtgFull = 0x00010000,
mtgInfo = 0x00020000,
mtgOutOfDate = 0x00080000,
mtgDelegatorCopy = 0x00100000
} MeetingType;
typedef [bitmap32bit] bitmap {
Su = 0x00000001,
M = 0x00000002,
Tu = 0x00000004,
W = 0x00000008,
Th = 0x00000010,
F = 0x00000020,
Sa = 0x00000040
} WeekRecurrencePattern;
typedef [v1_enum] enum {
olFree = 0x00000000,
olTentative = 0x00000001,
olBusy = 0x00000002,
olOutOfOffice = 0x00000003
} FreeBusyStatus; /* oxocal - 2.2.1.2 */
typedef [v1_enum] enum {
RecurrenceN_First = 0x1,
RecurrenceN_Second = 0x2,
RecurrenceN_Third = 0x3,
RecurrenceN_Fourth = 0x4,
RecurrenceN_Last = 0x5
} RecurrenceN;
typedef [flag(NDR_NOALIGN)] struct {
WeekRecurrencePattern WeekRecurrencePattern;
RecurrenceN N;
} MonthRecurrencePattern;
typedef [nodiscriminant,flag(NDR_NOALIGN)] union {
[case(0x1)] WeekRecurrencePattern WeekRecurrencePattern;
[case(0x2)] uint32 Day;
[case(0x3)] MonthRecurrencePattern MonthRecurrencePattern;
[case(0x4)] uint32 Day;
[case(0xA)] uint32 Day;
[case(0xB)] MonthRecurrencePattern MonthRecurrencePattern;
[case(0xC)] uint32 Day;
[case(0x0)];
[default];
} PatternTypeSpecific;
typedef [v1_enum] enum {
END_AFTER_DATE = 0x00002021,
END_AFTER_N_OCCURRENCES = 0x00002022,
END_NEVER_END = 0x00002023,
NEVER_END = 0xFFFFFFFF
} EndType;
typedef [v1_enum] enum {
FirstDOW_Sunday = 0x0,
FirstDOW_Monday = 0x1,
FirstDOW_Tuesday = 0x2,
FirstDOW_Wednesday = 0x3,
FirstDOW_Thursday = 0x4,
FirstDOW_Friday = 0x5,
FirstDOW_Saturday = 0x6
} FirstDOW;
typedef [enum16bit] enum {
ARO_SUBJECT = 0x0001,
ARO_MEETINGTYPE = 0x0002,
ARO_REMINDERDELTA = 0x0004,
ARO_REMINDER = 0x0008,
ARO_LOCATION = 0x0010,
ARO_BUSYSTATUS = 0x0020,
ARO_ATTACHMENT = 0x0040,
ARO_SUBTYPE = 0x0080,
ARO_APPTCOLOR = 0x0100,
ARO_EXCEPTIONAL_BODY = 0x0200
} OverrideFlags;
typedef [public,flag(NDR_NOALIGN)] struct {
uint16 ReaderVersion;
uint16 WriterVersion;
RecurFrequency RecurFrequency;
PatternType PatternType;
CalendarType CalendarType;
uint32 FirstDateTime;
uint32 Period;
uint32 SlidingFlag;
[switch_is(PatternType)] PatternTypeSpecific PatternTypeSpecific;
EndType EndType;
uint32 OccurrenceCount;
FirstDOW FirstDOW;
uint32 DeletedInstanceCount;
uint32 DeletedInstanceDates[DeletedInstanceCount];
uint32 ModifiedInstanceCount;
uint32 ModifiedInstanceDates[ModifiedInstanceCount];
uint32 StartDate;
uint32 EndDate;
} RecurrencePattern;
typedef [public,flag(NDR_NOALIGN)] struct {
uint16 msgLength;
uint16 msgLength2;
uint8 msg[msgLength2];
} Exception_Msg;
typedef [nodiscriminant, flag(NDR_NOALIGN)] union {
[case(0x0000)] ;
[case(0x0001)] Exception_Msg subjectMsg;
[case(0x0002)] uint32 mType;
[case(0x0004)] uint32 rDelta;
[case(0x0008)] uint32 rSet;
[case(0x0010)] Exception_Msg locationMsg;
[case(0x0020)] uint32 bStatus;
[case(0x0040)] uint32 attachment;
[case(0x0080)] uint32 sType;
[case(0x0100)] uint32 aColor;
[default];
} Exception_Value;
typedef [public,flag(NDR_NOALIGN)] struct {
uint32 StartDateTime;
uint32 EndDateTime;
uint32 OriginalStartDate;
OverrideFlags OverrideFlags;
[switch_is(OverrideFlags & 0x0001)] Exception_Value Subject;
[switch_is(OverrideFlags & 0x0002)] Exception_Value MeetingType;
[switch_is(OverrideFlags & 0x0004)] Exception_Value ReminderDelta;
[switch_is(OverrideFlags & 0x0008)] Exception_Value ReminderSet;
[switch_is(OverrideFlags & 0x0010)] Exception_Value Location;
[switch_is(OverrideFlags & 0x0020)] Exception_Value BusyStatus;
[switch_is(OverrideFlags & 0x0040)] Exception_Value Attachment;
[switch_is(OverrideFlags & 0x0080)] Exception_Value SubType;
[switch_is(OverrideFlags & 0x0100)] Exception_Value AppointmentColor;
/* Those are fantom fields: even if they are mentionned in the documentation, they must not be read/written to. */
// uint32 ReservedBlock1Size;
// uint8 ReservedBlock1[ReservedBlock1Size];
} ExceptionInfo;
typedef [v1_enum] enum {
BIT_CH_START = 0x00000001,
BIT_CH_END = 0x00000002,
BIT_CH_RECUR = 0x00000004,
BIT_CH_LOCATION = 0x00000008,
BIT_CH_SUBJECT = 0x00000010,
BIT_CH_REQATT = 0x00000020,
BIT_CH_OPTATT = 0x00000040,
BIT_CH_BODY = 0x00000080,
BIT_CH_RESPONSE = 0x00000200,
BIT_CH_PROPOSE = 0x00000400
} ChangeHighlightFlags;
typedef [public,flag(NDR_NOALIGN)] struct {
uint32 Size;
ChangeHighlightFlags Value;
uint8 Reserved[Size-4];
} ChangeHighlight;
typedef [nopull,nopush,noprint,flag(NDR_NOALIGN)] struct {
ChangeHighlight ChangeHighlight;
uint32 ReservedBlockEE1Size;
uint8 ReservedBlockEE1[ReservedBlockEE1Size];
uint32 StartDateTime;
uint32 EndDateTime;
uint32 OriginalStartDate;
[flag(LIBNDR_FLAG_STR_SIZE2|LIBNDR_FLAG_STR_NOTERM|LIBNDR_FLAG_STR_CHARLEN)] string Subject;
[flag(LIBNDR_FLAG_STR_SIZE2|LIBNDR_FLAG_STR_NOTERM|LIBNDR_FLAG_STR_CHARLEN)] string Location;
uint32 ReservedBlockEE2Size;
uint8 ReservedBlockEE2[ReservedBlockEE2Size];
} ExtendedException;
typedef [nopull,nopush,flag(NDR_NOALIGN)] struct {
RecurrencePattern RecurrencePattern;
uint32 ReaderVersion2;
uint32 WriterVersion2;
uint32 StartTimeOffset;
uint32 EndTimeOffset;
uint16 ExceptionCount;
ExceptionInfo ExceptionInfo[ExceptionCount];
uint32 ReservedBlock1Size;
uint32 ReservedBlock1[ReservedBlock1Size];
ExtendedException ExtendedException[ExceptionCount];
uint32 ReservedBlock2Size;
uint32 ReservedBlock2[ReservedBlock2Size];
} AppointmentRecurrencePattern;
/* [MS-DIF].pdf Section 2.3.6 */
typedef [public,flag(NDR_NOALIGN)] struct {
uint16 wYear;
uint16 wMonth;
uint16 wDayOfWeek;
uint16 wDay;
uint16 wHour;
uint16 wMinute;
uint16 wSecond;
uint16 wMilliseconds;
} SYSTEMTIME;
/* pidLidTimeZoneStruct */
typedef [public,flag(NDR_NOALIGN)] struct {
int32 lBias;
int32 lStandardBias;
int32 lDaylightBias;
uint16 wStandardYear;
SYSTEMTIME stStandardDate;
uint16 wDaylightYear;
SYSTEMTIME stDaylightDate;
} TimeZoneStruct;
typedef [enum16bit] enum {
TZRULE_FLAG_RECUR_CURRENT_TZREG = 0x0001,
TZRULE_FLAG_EFFECTIVE_TZREG = 0x0002
} TZRuleFlag;
/* pidLidAppointmentTimeZoneDefinitionRecur,
* PidLidAppointmentTimeZoneDefinitionStartDisplay,
* PidLidAppointmentTimeZoneDefinitionEndDisplay */
typedef [public,flag(NDR_NOALIGN)] struct {
uint8 major; /* 0x02 */
uint8 minor; /* 0x01 */
uint16 reserved; /* must be 0x003E */
TZRuleFlag flags;
uint16 wYear;
uint8 X[14]; /* all zeroes */
int32 lBias;
int32 lStandardBias;
int32 lDaylightBias;
SYSTEMTIME stStandardDate;
SYSTEMTIME stDaylightDate;
} TZRule;
typedef [public,flag(NDR_NOALIGN)] struct {
uint8 major; /* 0x02 */
uint8 minor; /* 0x01 */
uint16 cbHeader;
uint16 reserved; /* 0x0002 */
[flag(LIBNDR_FLAG_STR_SIZE2|LIBNDR_FLAG_STR_NOTERM)] string keyName;
uint16 cRules;
TZRule TZRules[cRules];
} TimeZoneDefinition;
/* pidLidGlobalObjectId */
typedef [public,flag(NDR_NOALIGN)] struct {
uint8 ByteArrayID[16];
uint8 YH;
uint8 YL;
uint8 Month;
uint8 D;
FILETIME CreationTime;
uint8 X[8];
uint32 Size;
uint8 Data[Size];
} GlobalObjectId;
typedef [enum16bit] enum {
eitLTPrivateFolder = 0x01,
eitLTPPublicFolder = 0x03,
eitLTPMappedPublicFolder = 0x05,
eitLTPPrivateMessage = 0x07,
eitLTPPublicMessage = 0x09,
eitLTPMappedPublicMessage = 0x0b,
eitLTPPublicNewsgroupFolder = 0x0c
} EntryIdFolderType;
/* PtypServerId */
typedef [public,flag(NDR_NOALIGN)] struct {
uint8 ours;
dlong FolderId;
dlong MessageId;
int32 Instance;
} PtypServerId;
/* FolderEntryId */
typedef [public,flag(NDR_NOALIGN)] struct {
uint32 Flags;
GUID ProviderUID;
EntryIdFolderType FolderType;
GUID FolderDatabaseGuid;
[switch_is(1)] GLOBCNT FolderGlobalCounter;
uint16 Pad;
} FolderEntryId;
/* PR_ENTRYID/PR_TARGET_ENTRYID (messages) */
typedef [public,flag(NDR_NOALIGN)] struct {
uint32 Flags;
GUID ProviderUID;
EntryIdFolderType MessageType;
GUID FolderDatabaseGuid;
[switch_is(1)] GLOBCNT FolderGlobalCounter;
uint16 Pad1;
GUID MessageDatabaseGuid;
[switch_is(1)] GLOBCNT MessageGlobalCounter;
uint16 Pad2;
} MessageEntryId;
/* AddressBookEntryId [MS-OXCDATA] 2.2.5.2 */
typedef [public,flag(NDR_NOALIGN)] struct {
uint32 Flags;
GUID ProviderUID;
uint32 Version;
uint32 Type;
astring X500DN;
} AddressBookEntryId;
/* OneOffEntryId [MS-OXCDATA] 2.2.5.1 */
typedef [nodiscriminant, flag(NDR_NOALIGN)] union {
[case(0x0)] astring lpszA;
[case(0x8000)][flag(STR_NULLTERM)] string lpszW;
[default];
} OneOffEntryId_String;
typedef [public,flag(NDR_NOALIGN)] struct {
uint32 Flags;
GUID ProviderUID;
uint16 Version;
uint16 OneOffEntryIdFlags;
[switch_is(OneOffEntryIdFlags & 0x8000)] OneOffEntryId_String DisplayName;
[switch_is(OneOffEntryIdFlags & 0x8000)] OneOffEntryId_String AddressType;
[switch_is(OneOffEntryIdFlags & 0x8000)] OneOffEntryId_String EmailAddress;
} OneOffEntryId;
typedef [bitmap32bit] bitmap {
FolderFlags_IPM = 0x00000001,
FolderFlags_Search = 0x00000002,
FolderFlags_Normal = 0x00000004,
FolderFlags_Rules = 0x00000008
} FolderFlags;
/* See [MS-OXSHARE] Section 2.2.2.5 */
typedef [v1_enum] enum {
SHARING_INVITATION_SPECIAL_FOLDER = 0x20310,
SHARING_INVITATION_FOLDER = 0x310,
SHARING_REQUEST_SPECIAL_FOLDER = 0x20500,
SHARING_INVITATION_REQUEST_FOLDER = 0x20710,
SHARING_DENY_REQUEST = 0x25100,
SHARING_ACCEPT_REQUEST = 0x23310,
/* Union of flavours to match as a request */
SHARING_REQUEST = 0x20400
} sharing_flavor_type;
/* PersistElement [MS-OXOSFLD] 2.2.5.2 */
typedef [enum16bit] enum {
RSF_ELID_HEADER = 0x2,
RSF_ELID_ENTRYID = 0x1,
ELEMENT_SENTINEL = 0x0
} ElementID;
typedef [nodiscriminant, flag(NDR_NOALIGN|NDR_REMAINING)] union {
[case(0x1)] DATA_BLOB rsf_elid_entryid;
[case(0x2)] uint32 rsf_elid_header;
[default];
} PersistElementData;
typedef [public,flag(NDR_NOALIGN)] struct {
ElementID ElementID;
uint16 ElementDataSize;
[subcontext(0),subcontext_size(ElementDataSize),switch_is(ElementID)] PersistElementData ElementData;
} PersistElement;
typedef [nopull,nopush,flag(NDR_NOALIGN)] struct {
[range(0, 10000)] uint32 cValues;
[size_is(cValues)] PersistElement lpPersistElement[];
} PersistElementArray;
/* PersistData [MS-OXOSFLD] 2.2.5.1 */
typedef [enum16bit] enum {
RSF_PID_RSS_SUBSCRIPTION = 0x8001,
RSF_PID_SEND_AND_TRACK = 0x8002,
RSF_PID_TODO_SEARCH = 0x8004,
RSF_PID_CONV_ACTIONS = 0x8006,
RSF_PID_COMBINED_ACTIONS = 0x8007,
RSF_PID_SUGGESTED_CONTACTS = 0x8008,
RSF_PID_CONTACT_SEARCH = 0x8009,
RSF_PID_BUDDYLIST_PDLS = 0x800A,
RSF_PID_BUDDYLIST_CONTACTS = 0x800B,
PERSIST_SENTINEL = 0x0000
} PersistID;
typedef [public,flag(NDR_NOALIGN)] struct {
PersistID PersistID;
uint16 DataElementsSize;
[subcontext(0), subcontext_size(DataElementsSize)] PersistElementArray DataElements;
} PersistData;
typedef [nopull,nopush,noprint,flag(NDR_NOALIGN)] struct {
[range(0, 100000)] uint32 cValues;
[size_is(cValues)] PersistData *lpPersistData;
} PersistDataArray;
}