summaryrefslogtreecommitdiffstats
path: root/librpc/idl/wsp_data.idl
blob: fde754aef81debc897a9d84c501027e33a407082 (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
#include "idl_types.h"
[
	pointer_default(unique)
]

interface constants
{
	/*
	 * Use en-us as default locale
	 * see MS-LCID 'Section 2.2 LCID Structure;
	 * for details of this and other language id(s)
	 */
	const uint32_t WSP_DEFAULT_LCID = 0x00000409;
	/*
	 * Max size of rows buffer in getrowsout response
	 * see MS-WSP 2.2.3.11
	 */
	const uint32_t MAX_ROW_BUFF_SIZE = 0x0004000;

	/* values for guidPropertySet */
	const char* DBPROPSET_FSCIFRMWRK_EXT = "A9BD1526-6A80-11D0-8C9D-0020AF1D740E";
	const char* DBPROPSET_QUERYEXT = "A7AC77ED-F8D7-11CE-A798-0020F8008025";
	const char* DBPROPSET_CIFRMWRKCORE_EXT = "AFAFACA5-B5D1-11D0-8C62-00C04FC2DB8D";
	const char* DBPROPSET_MSIDXS_ROWSETEXT = "AA6EE6B0-E828-11D0-B23E-00AA0047FC01";

	/* Chapter and bookmark handle well known values */
	const uint32_t DB_NULL_HCHAPTER			= 0x00000000;
	const uint32_t DBBMK_FIRST			= 0xFFFFFFFC;
	const uint32_t DBBMK_LAST			= 0xFFFFFFFD;
	/* properties of DBPROPSET_FSCIFRMWRK_EXT propertyset */
	const uint32_t DBPROP_CI_CATALOG_NAME		= 0x00000002;
	const uint32_t DBPROP_CI_INCLUDE_SCOPES		= 0x00000003;
	const uint32_t DBPROP_CI_SCOPE_FLAGS		= 0x00000004;
	const uint32_t DBPROP_CI_QUERY_TYPE		= 0x00000007;
	const uint32_t DBPROP_GENERICOPTIONS_STRING	= 0x00000006;
	const uint32_t DBPROP_USECONTENTINDEX		= 0x00000002;
	const uint32_t DBPROP_IGNORENOISEONLYCLAUSES	= 0x00000005;
	const uint32_t DBPROP_DEFERCATALOGVERIFICATION	= 0x00000008;
	const uint32_t DBPROP_IGNORESBRI		= 0x0000000E;
	const uint32_t DBPROP_GENERATEPARSETREE		= 0x0000000A;
	const uint32_t DBPROP_FREETEXTANYTERM		= 0x0000000C;
	const uint32_t DBPROP_FREETEXTUSESTEMMING	= 0x0000000D;

	/* properties of DBPROPSET_QUERYEXT propertyset */
	const uint32_t DBPROP_DEFERNONINDEXEDTRIMMING	= 0x00000003;
	const uint32_t DBPROP_USEEXTENDEDDBTYPES	= 0x00000004;
	const uint32_t DBPROP_FIRSTROWS			= 0x00000007;
	const uint32_t DBPROP_ENABLEROWSETEVENTS	= 0x00000010;

	/* properties of DBPROPSET_MSIDXS_ROWSETEXT */

	const uint32_t MSIDXSPROP_ROWSETQUERYSTATUS	= 0x02;
	const uint32_t MSIDXSPROP_COMMAND_LOCALE_STRING	= 0x03;
	const uint32_t MSIDXSPROP_QUERY_RESTRICTION	= 0x04;
	const uint32_t MSIDXSPROP_PARSE_TREE		= 0x05;
	const uint32_t MSIDXSPROP_MAX_RANK		= 0x06;
	const uint32_t MSIDXSPROP_RESULTS_FOUND		= 0x07;

	/* flags of DBPROP_CI_SCOPE_FLAGS property */
	const uint32_t QUERY_DEEP			= 0x01;
	const uint32_t QUERY_VIRTUAL_PATH		= 0x02;

	/* query type for BPROP_CI_QUERY_TYPE property */
	const uint32_t CINORMAL			= 0x00000000;

	/* properties of DBPROPSET_CIFRMWRKCORE_EXT propertyset */

	const uint32_t DBPROP_MACHINE			= 0x00000002;
	const uint32_t DBPROP_CLIENT_CLSID		= 0x00000003;

	/*
	 * STAT bit constants
	 */

	/* The asynchronous query is still running. */
	const uint32_t STAT_BUSY			= 0x00000000;
	/* The query is in an error state. */
	const uint32_t STAT_ERROR			= 0x00000001;
	/* The query is complete and rows can be requested. */
	const uint32_t STAT_DONE			= 0x00000002;
	/* The query is comp*/
	const uint32_t STAT_REFRESH			= 0x00000003;
	/*
	 * Noise words were replaced by wildcard characters in the
	 * content query.
	 */
	const uint32_t STAT_NOISE_WORDS			= 0x00000010;
	/*
	 * The results of the query might be incorrect because the
	 * query involved modified but unindexed files.
	 */
	const uint32_t STAT_CONTENT_OUT_OF_DATE		= 0x00000020;
	/*
	 * The content query was too complex to complete or
	 * required enumeration instead of use of the content index.
	 */
	const uint32_t STAT_CONTENT_QUERY_INCOMPLETE	= 0x00000080;
	/*
	 * The results of the query might be incorrect because the
	 * query execution reached the maximum allowable time.
	 */
	const uint32_t STAT_TIME_LIMIT_EXCEEDED		= 0x00000100;

	/*
	 * a const to force an inline array to be evaluated at runtime to
	 * to get around an incomplete type error
	 */
	const uint32 SINGLE_ITEM = 1;

	/* WSP message types */

	/* CPMConnectIn or CPMConnectOut */
	const uint32 CPMCONNECT = 0x000000C8;
	/* CPMDisconnect */
	const uint32 CPMDISCONNECT = 0x000000C9;
	/* CPMCreateQueryIn or CPMCreateQueryOut */
	const uint32 CPMCREATEQUERY = 0x000000CA;
	/* CPMFreeCursorIn or CPMFreeCursorOut */
	const uint32 CPMFREECURSOR = 0x000000CB;
	/* CPMGetRowsIn or CPMGetRowsOut */
	const uint32 CPMGETROWS = 0x000000CC;
	/* CPMRatioFinishedIn or CPMRatioFinishedOut */
	const uint32 CPMRATIOFINISHED = 0x000000CD;
	/* CPMCompareBmkIn or CPMCompareBmkOut */
	const uint32 CPMCOMPAREBMK = 0x000000CE;
	/* CPMGetApproximatePositionIn or CPMGetApproximatePositionOut */
	const uint32 CPMGETAPPROXIMATEPOSITION = 0x000000CF;
	/* CPMSetBindingsIn */
	const uint32 CPMSETBINDINGSIN = 0x000000D0;
	/* CPMGetNotify */
	const uint32 CPMGETNOTIFY = 0x000000D1;
	/* CPMSendNotifyOut */
	const uint32 CPMSENDNOTIFYOUT = 0x000000D2;
	/* CPMGetQueryStatusIn or CPMGetQueryStatusOut */
	const uint32 CPMGETQUERYSTATUS = 0x000000D7;
	/* CPMCiStateInOut */
	const uint32 CPMCISTATEOUT = 0x000000D9;
	/* CPMFetchValueIn or CPMFetchValueOut */
	const uint32 CPMFETCHVALUE = 0x000000E4;
	/* CPMGetQueryStatusExIn or CPMGetQueryStatusExOut */
	const uint32 CPMGETQUERYSTATUSEX = 0x000000E7;
	/* CPMRestartPositionIn */
	const uint32 CPMRESTARTPOSITIONIN = 0x000000E8;
	/* CPMSetCatStateIn (not supported) */
	const uint32 CPMSETCATSTATEIN = 0x000000EC;
	/* CPMGetRowsetNotifyIn or CPMGetRowsetNotifyOut */
	const uint32 CPMGETROWSETNOTIFY = 0x000000F1;
	/* CPMFindIndicesIn, or CPMFindIndicesOut */
	const uint32 CPMFINDINDICES = 0x000000F2;
	/* CPMSetScopePrioritizationIn or CPMSetScopePrioritizationOut */
	const uint32 CPMSETSCOPEPRIORITIZATION = 0x000000F3;
	/* CPMGetScopeStatisticsIn or CPMGetScopeStatisticsOut */
	const uint32 CPMGETSCOPESTATISTICS = 0x000000F4;

	const uint32 DBKIND_GUID_NAME		= 0x00000000;
	const uint32 DBKIND_GUID_PROPID		= 0x00000001;
	const uint32 PRSPEC_LPWSTR		= 0x00000000;
	const uint32 PRSPEC_PROPID		= 0x00000001;
	/* type constants for variant types */

	const uint32 VT_EMPTY			= 0x0000;
	const uint32 VT_NULL			= 0x0001;
	const uint32 VT_I2			= 0x0002;
	const uint32 VT_I4			= 0x0003;
	const uint32 VT_R4			= 0x0004;
	const uint32 VT_R8			= 0x0005;
	const uint32 VT_CY			= 0x0006;
	const uint32 VT_DATE			= 0x0007;
	const uint32 VT_BSTR			= 0x0008;
	const uint32 VT_I1			= 0x0010;
	const uint32 VT_UI1			= 0x0011;
	const uint32 VT_UI2			= 0x0012;
	const uint32 VT_UI4			= 0x0013;
	const uint32 VT_I8			= 0x0014;
	const uint32 VT_UI8			= 0x0015;
	const uint32 VT_INT			= 0x0016;
	const uint32 VT_UINT			= 0x0017;
	const uint32 VT_ERROR			= 0x000A;
	const uint32 VT_BOOL			= 0x000B;
	const uint32 VT_VARIANT			= 0x000C;
	const uint32 VT_DECIMAL			= 0x000E;
	const uint32 VT_FILETIME		= 0x0040;
	const uint32 VT_BLOB			= 0x0041;
	const uint32 VT_BLOB_OBJECT		= 0x0046;
	const uint32 VT_CLSID			= 0x0048;
	const uint32 VT_LPSTR			= 0x001E;
	const uint32 VT_LPWSTR			= 0x001F;
	const uint32 VT_COMPRESSED_LPWSTR	= 0x0023;
	const uint32 VT_VECTOR			= 0x1000;
	const uint32 VT_ARRAY			= 0x2000;

	/* restriction types */
	const uint32 RTNONE			= 0x00000000;
	const uint32 RTAND			= 0x00000001;
	const uint32 RTOR			= 0x00000002;
	const uint32 RTNOT			= 0x00000003;
	const uint32 RTCONTENT			= 0x00000004;
	const uint32 RTPROPERTY			= 0x00000005;
	const uint32 RTPROXIMITY		= 0x00000006;
	const uint32 RTVECTOR 			= 0x00000007;
	const uint32 RTNATLANGUAGE		= 0x00000008;
	const uint32 RTSCOPE			= 0x00000009;
	const uint32 RTREUSEWHERE		= 0x00000011;
	const uint32 RTINTERNALPROP		= 0x00FFFFFA;
	const uint32 RTPHRASE			= 0x00FFFFFD;
	const uint32 RTCOERCE_ADD	 	= 0x0000000A;
	const uint32 RTCOERCE_MULTIPLY		= 0x0000000B;
	const uint32 RTCOERCE_ABSOLUTE		= 0x0000000C;
	const uint32 RTPROB			= 0x0000000D;
	const uint32 RTFEEDBACK			= 0x0000000E;
	const uint32 RTRELDOC			= 0x0000000F;


	/* Row seek types */
	const uint32 EROWSEEKNONE		= 0x00000000;
	const uint32 EROWSEEKNEXT		= 0x00000001;
	const uint32 EROWSEEKAT			= 0x00000002;
	const uint32 EROWSEEKATRATIO		= 0x00000003;
	const uint32 EROWSEEKBYBOOKMARK		= 0x00000004;

	const uint32 WINDOWS_7			= 0x00000700;
	const uint32 WINDOWS_2008		= 0x00010700;

	/* Relops */
	const uint32 PRLT 	= 0x00000000;
	const uint32 PRLE 	= 0x00000001;
	const uint32 PRGT 	= 0x00000002;
	const uint32 PRGE 	= 0x00000003;
	const uint32 PREQ 	= 0x00000004;
	const uint32 PRNE 	= 0x00000005;
	const uint32 PRRE 	= 0x00000006;
	const uint32 PRALLBITS	= 0x00000007;
	const uint32 PRSOMEBITS = 0x00000008;
	const uint32 PRALL 	= 0x00000100;
	const uint32 PRANY 	= 0x00000200;

	const uint32 PROPAGATE_NONE	= 0;
	const uint32 PROPAGATE_ADD	= 1;
	const uint32 PROPAGATE_DELETE	= 2;
	const uint32 PROPAGATE_MODIFY	= 3;
	const uint32 PROPAGATE_ROWSET	= 4;

	const uint32 ROWSETEVENT_ITEMSTATE_NOTINROWSET	= 0;
	const uint32 ROWSETEVENT_ITEMSTATE_INROWSET	= 1;
	const uint32 ROWSETEVENT_ITEMSTATE_UNKNOWN	= 2;

	const uint32 ROWSETEVENT_TYPE_DATAEXPIRED	= 0;
	const uint32 ROWSETEVENT_TYPE_FOREGROUNDLOST	= 1;
	const uint32 ROWSETEVENT_TYPE_SCOPESTATISTICS	= 2;

	const uint32 DBCOMPARE_LT 		= 0x00000000;
	const uint32 DBCOMPARE_EQ 		= 0x00000001;
	const uint32 DBCOMPARE_GT 		= 0x00000002;
	const uint32 DBCOMPARE_NE 		= 0x00000003;
	const uint32 DBCOMPARE_NOTCOMPARABLE 	= 0x00000004;

	const uint32 VECTOR_RANK_MIN 		= 0x00000000;
	const uint32 VECTOR_RANK_MAX 		= 0x00000001;
	const uint32 VECTOR_RANK_INNER 		= 0x00000002;
	const uint32 VECTOR_RANK_DICE 		= 0x00000003;
	const uint32 VECTOR_RANK_JACCARD	= 0x00000004;

	const uint32 DBAGGTTYPE_BYNONE 		= 0x00000000;
	const uint32 DBAGGTTYPE_SUM 		= 0x00000001;
	const uint32 DBAGGTTYPE_MAX 		= 0x00000002;
	const uint32 DBAGGTTYPE_MIN 		= 0x00000003;
	const uint32 DBAGGTTYPE_AVG 		= 0x00000004;
	const uint32 DBAGGTTYPE_COUNT 		= 0x00000005;
	const uint32 DBAGGTTYPE_CHILDCOUNT	= 0x00000006;
	const uint32 DBAGGTTYPE_BYFREQ 		= 0x00000007;
	const uint32 DBAGGTTYPE_FIRST 		= 0x00000008;
	const uint32 DBAGGTTYPE_DATERANGE 	= 0x00000009;
	const uint32 DBAGGTTYPE_REPRESENTATIVEOF= 0x0000000a;
	const uint32 DBAGGTTYPE_EDITDISTANCE 	= 0x0000000b;

	const uint32 ESEQUENTIAL 			= 0x00000001;
	const uint32 ELOCATEABLE 			= 0x00000003;
	const uint32 ESCROLLABLE 			= 0x00000007;
	const uint32 EASYNCHRONOUS 			= 0x00000008;
	const uint32 EFIRSTROWS				= 0x00000080;
	const uint32 EHOLDROWS				= 0x00000200;
	const uint32 ECHAPTERED				= 0x00000800;
	const uint32 EUSECI				= 0x00001000;
	const uint32 EDEFERTRIMMING			= 0x00002000;
	const uint32 ENABLEROWSETEVENTS			= 0x00800000;
	const uint32 EDONOTCOMPUTEEXPENSIVEPROPS	= 0x00400000;

	const uint32 CI_STATE_SHADOW_MERGE 		= 0x00000001;
	const uint32 CI_STATE_MASTER_MERGE 		= 0x00000002;
	const uint32 CI_STATE_ANNEALING_MERGE 		= 0x00000008;
	const uint32 CI_STATE_SCANNING 			= 0x00000010;
	const uint32 CI_STATE_LOW_MEMORY 		= 0x00000080;
	const uint32 CI_STATE_HIGH_IO 			= 0x00000100;
	const uint32 CI_STATE_MASTER_MERGE_PAUSED 	= 0x00000200;
	const uint32 CI_STATE_READ_ONLY 		= 0x00000400;
	const uint32 CI_STATE_BATTERY_POWER 		= 0x00000800;
	const uint32 CI_STATE_USER_ACTIVE 		= 0x00001000;
	const uint32 CI_STATE_LOW_DISK  		= 0x00010000;
	const uint32 CI_STATE_HIGH_CPU	 		= 0x00020000;

	const uint32 STORESTATUSOK			= 0x00000000;
	const uint32 STORESTATUSDEFERRED		= 0x00000001;
	const uint32 STORESTATUSNULL			= 0x00000002;

	const uint32 DB_S_ENDOFROWSET			= 0x00040EC6;

	const uint32 XOR_CONST				= 0x59533959;
	const uint32 E_UNEXPECTED			= 0x8000FFFF;
	const uint32 WIN_UPDATE_ERR			= 0x80070003;

	const uint32 QUERY_SORTASCEND			= 0x00000000;
	const uint32 QUERY_DESCEND			= 0x00000001;
}