3 pointer_default(unique)
9 * Use en-us as default locale
10 * see MS-LCID 'Section 2.2 LCID Structure;
11 * for details of this and other language id(s)
13 const uint32_t WSP_DEFAULT_LCID
= 0x00000409;
15 * Max size of rows buffer in getrowsout response
18 const uint32_t MAX_ROW_BUFF_SIZE
= 0x0004000;
20 /* values for guidPropertySet */
21 const char* DBPROPSET_FSCIFRMWRK_EXT
= "A9BD1526-6A80-11D0-8C9D-0020AF1D740E";
22 const char* DBPROPSET_QUERYEXT
= "A7AC77ED-F8D7-11CE-A798-0020F8008025";
23 const char* DBPROPSET_CIFRMWRKCORE_EXT
= "AFAFACA5-B5D1-11D0-8C62-00C04FC2DB8D";
24 const char* DBPROPSET_MSIDXS_ROWSETEXT
= "AA6EE6B0-E828-11D0-B23E-00AA0047FC01";
26 /* Chapter and bookmark handle well known values */
27 const uint32_t DB_NULL_HCHAPTER
= 0x00000000;
28 const uint32_t DBBMK_FIRST
= 0xFFFFFFFC;
29 const uint32_t DBBMK_LAST
= 0xFFFFFFFD;
30 /* properties of DBPROPSET_FSCIFRMWRK_EXT propertyset */
31 const uint32_t DBPROP_CI_CATALOG_NAME
= 0x00000002;
32 const uint32_t DBPROP_CI_INCLUDE_SCOPES
= 0x00000003;
33 const uint32_t DBPROP_CI_SCOPE_FLAGS
= 0x00000004;
34 const uint32_t DBPROP_CI_QUERY_TYPE
= 0x00000007;
35 const uint32_t DBPROP_GENERICOPTIONS_STRING
= 0x00000006;
36 const uint32_t DBPROP_USECONTENTINDEX
= 0x00000002;
37 const uint32_t DBPROP_IGNORENOISEONLYCLAUSES
= 0x00000005;
38 const uint32_t DBPROP_DEFERCATALOGVERIFICATION
= 0x00000008;
39 const uint32_t DBPROP_IGNORESBRI
= 0x0000000E;
40 const uint32_t DBPROP_GENERATEPARSETREE
= 0x0000000A;
41 const uint32_t DBPROP_FREETEXTANYTERM
= 0x0000000C;
42 const uint32_t DBPROP_FREETEXTUSESTEMMING
= 0x0000000D;
44 /* properties of DBPROPSET_QUERYEXT propertyset */
45 const uint32_t DBPROP_DEFERNONINDEXEDTRIMMING
= 0x00000003;
46 const uint32_t DBPROP_USEEXTENDEDDBTYPES
= 0x00000004;
47 const uint32_t DBPROP_FIRSTROWS
= 0x00000007;
48 const uint32_t DBPROP_ENABLEROWSETEVENTS
= 0x00000010;
50 /* properties of DBPROPSET_MSIDXS_ROWSETEXT */
52 const uint32_t MSIDXSPROP_ROWSETQUERYSTATUS
= 0x02;
53 const uint32_t MSIDXSPROP_COMMAND_LOCALE_STRING
= 0x03;
54 const uint32_t MSIDXSPROP_QUERY_RESTRICTION
= 0x04;
55 const uint32_t MSIDXSPROP_PARSE_TREE
= 0x05;
56 const uint32_t MSIDXSPROP_MAX_RANK
= 0x06;
57 const uint32_t MSIDXSPROP_RESULTS_FOUND
= 0x07;
59 /* flags of DBPROP_CI_SCOPE_FLAGS property */
60 const uint32_t QUERY_DEEP
= 0x01;
61 const uint32_t QUERY_VIRTUAL_PATH
= 0x02;
63 /* query type for BPROP_CI_QUERY_TYPE property */
64 const uint32_t CINORMAL
= 0x00000000;
66 /* properties of DBPROPSET_CIFRMWRKCORE_EXT propertyset */
68 const uint32_t DBPROP_MACHINE
= 0x00000002;
69 const uint32_t DBPROP_CLIENT_CLSID
= 0x00000003;
75 /* The asynchronous query is still running. */
76 const uint32_t STAT_BUSY
= 0x00000000;
77 /* The query is in an error state. */
78 const uint32_t STAT_ERROR
= 0x00000001;
79 /* The query is complete and rows can be requested. */
80 const uint32_t STAT_DONE
= 0x00000002;
81 /* The query is comp*/
82 const uint32_t STAT_REFRESH
= 0x00000003;
84 * Noise words were replaced by wildcard characters in the
87 const uint32_t STAT_NOISE_WORDS
= 0x00000010;
89 * The results of the query might be incorrect because the
90 * query involved modified but unindexed files.
92 const uint32_t STAT_CONTENT_OUT_OF_DATE
= 0x00000020;
94 * The content query was too complex to complete or
95 * required enumeration instead of use of the content index.
97 const uint32_t STAT_CONTENT_QUERY_INCOMPLETE
= 0x00000080;
99 * The results of the query might be incorrect because the
100 * query execution reached the maximum allowable time.
102 const uint32_t STAT_TIME_LIMIT_EXCEEDED
= 0x00000100;
105 * a const to force an inline array to be evaluated at runtime to
106 * to get around an incomplete type error
108 const uint32 SINGLE_ITEM
= 1;
110 /* WSP message types */
112 /* CPMConnectIn or CPMConnectOut */
113 const uint32 CPMCONNECT
= 0x000000C8;
115 const uint32 CPMDISCONNECT
= 0x000000C9;
116 /* CPMCreateQueryIn or CPMCreateQueryOut */
117 const uint32 CPMCREATEQUERY
= 0x000000CA;
118 /* CPMFreeCursorIn or CPMFreeCursorOut */
119 const uint32 CPMFREECURSOR
= 0x000000CB;
120 /* CPMGetRowsIn or CPMGetRowsOut */
121 const uint32 CPMGETROWS
= 0x000000CC;
122 /* CPMRatioFinishedIn or CPMRatioFinishedOut */
123 const uint32 CPMRATIOFINISHED
= 0x000000CD;
124 /* CPMCompareBmkIn or CPMCompareBmkOut */
125 const uint32 CPMCOMPAREBMK
= 0x000000CE;
126 /* CPMGetApproximatePositionIn or CPMGetApproximatePositionOut */
127 const uint32 CPMGETAPPROXIMATEPOSITION
= 0x000000CF;
128 /* CPMSetBindingsIn */
129 const uint32 CPMSETBINDINGSIN
= 0x000000D0;
131 const uint32 CPMGETNOTIFY
= 0x000000D1;
132 /* CPMSendNotifyOut */
133 const uint32 CPMSENDNOTIFYOUT
= 0x000000D2;
134 /* CPMGetQueryStatusIn or CPMGetQueryStatusOut */
135 const uint32 CPMGETQUERYSTATUS
= 0x000000D7;
136 /* CPMCiStateInOut */
137 const uint32 CPMCISTATEOUT
= 0x000000D9;
138 /* CPMFetchValueIn or CPMFetchValueOut */
139 const uint32 CPMFETCHVALUE
= 0x000000E4;
140 /* CPMGetQueryStatusExIn or CPMGetQueryStatusExOut */
141 const uint32 CPMGETQUERYSTATUSEX
= 0x000000E7;
142 /* CPMRestartPositionIn */
143 const uint32 CPMRESTARTPOSITIONIN
= 0x000000E8;
144 /* CPMSetCatStateIn (not supported) */
145 const uint32 CPMSETCATSTATEIN
= 0x000000EC;
146 /* CPMGetRowsetNotifyIn or CPMGetRowsetNotifyOut */
147 const uint32 CPMGETROWSETNOTIFY
= 0x000000F1;
148 /* CPMFindIndicesIn, or CPMFindIndicesOut */
149 const uint32 CPMFINDINDICES
= 0x000000F2;
150 /* CPMSetScopePrioritizationIn or CPMSetScopePrioritizationOut */
151 const uint32 CPMSETSCOPEPRIORITIZATION
= 0x000000F3;
152 /* CPMGetScopeStatisticsIn or CPMGetScopeStatisticsOut */
153 const uint32 CPMGETSCOPESTATISTICS
= 0x000000F4;
155 const uint32 DBKIND_GUID_NAME
= 0x00000000;
156 const uint32 DBKIND_GUID_PROPID
= 0x00000001;
157 const uint32 PRSPEC_LPWSTR
= 0x00000000;
158 const uint32 PRSPEC_PROPID
= 0x00000001;
159 /* type constants for variant types */
161 const uint32 VT_EMPTY
= 0x0000;
162 const uint32 VT_NULL
= 0x0001;
163 const uint32 VT_I2
= 0x0002;
164 const uint32 VT_I4
= 0x0003;
165 const uint32 VT_R4
= 0x0004;
166 const uint32 VT_R8
= 0x0005;
167 const uint32 VT_CY
= 0x0006;
168 const uint32 VT_DATE
= 0x0007;
169 const uint32 VT_BSTR
= 0x0008;
170 const uint32 VT_I1
= 0x0010;
171 const uint32 VT_UI1
= 0x0011;
172 const uint32 VT_UI2
= 0x0012;
173 const uint32 VT_UI4
= 0x0013;
174 const uint32 VT_I8
= 0x0014;
175 const uint32 VT_UI8
= 0x0015;
176 const uint32 VT_INT
= 0x0016;
177 const uint32 VT_UINT
= 0x0017;
178 const uint32 VT_ERROR
= 0x000A;
179 const uint32 VT_BOOL
= 0x000B;
180 const uint32 VT_VARIANT
= 0x000C;
181 const uint32 VT_DECIMAL
= 0x000E;
182 const uint32 VT_FILETIME
= 0x0040;
183 const uint32 VT_BLOB
= 0x0041;
184 const uint32 VT_BLOB_OBJECT
= 0x0046;
185 const uint32 VT_CLSID
= 0x0048;
186 const uint32 VT_LPSTR
= 0x001E;
187 const uint32 VT_LPWSTR
= 0x001F;
188 const uint32 VT_COMPRESSED_LPWSTR
= 0x0023;
189 const uint32 VT_VECTOR
= 0x1000;
190 const uint32 VT_ARRAY
= 0x2000;
192 /* restriction types */
193 const uint32 RTNONE
= 0x00000000;
194 const uint32 RTAND
= 0x00000001;
195 const uint32 RTOR
= 0x00000002;
196 const uint32 RTNOT
= 0x00000003;
197 const uint32 RTCONTENT
= 0x00000004;
198 const uint32 RTPROPERTY
= 0x00000005;
199 const uint32 RTPROXIMITY
= 0x00000006;
200 const uint32 RTVECTOR
= 0x00000007;
201 const uint32 RTNATLANGUAGE
= 0x00000008;
202 const uint32 RTSCOPE
= 0x00000009;
203 const uint32 RTREUSEWHERE
= 0x00000011;
204 const uint32 RTINTERNALPROP
= 0x00FFFFFA;
205 const uint32 RTPHRASE
= 0x00FFFFFD;
206 const uint32 RTCOERCE_ADD
= 0x0000000A;
207 const uint32 RTCOERCE_MULTIPLY
= 0x0000000B;
208 const uint32 RTCOERCE_ABSOLUTE
= 0x0000000C;
209 const uint32 RTPROB
= 0x0000000D;
210 const uint32 RTFEEDBACK
= 0x0000000E;
211 const uint32 RTRELDOC
= 0x0000000F;
215 const uint32 EROWSEEKNONE
= 0x00000000;
216 const uint32 EROWSEEKNEXT
= 0x00000001;
217 const uint32 EROWSEEKAT
= 0x00000002;
218 const uint32 EROWSEEKATRATIO
= 0x00000003;
219 const uint32 EROWSEEKBYBOOKMARK
= 0x00000004;
221 const uint32 WINDOWS_7
= 0x00000700;
222 const uint32 WINDOWS_2008
= 0x00010700;
225 const uint32 PRLT
= 0x00000000;
226 const uint32 PRLE
= 0x00000001;
227 const uint32 PRGT
= 0x00000002;
228 const uint32 PRGE
= 0x00000003;
229 const uint32 PREQ
= 0x00000004;
230 const uint32 PRNE
= 0x00000005;
231 const uint32 PRRE
= 0x00000006;
232 const uint32 PRALLBITS
= 0x00000007;
233 const uint32 PRSOMEBITS
= 0x00000008;
234 const uint32 PRALL
= 0x00000100;
235 const uint32 PRANY
= 0x00000200;
237 const uint32 PROPAGATE_NONE
= 0;
238 const uint32 PROPAGATE_ADD
= 1;
239 const uint32 PROPAGATE_DELETE
= 2;
240 const uint32 PROPAGATE_MODIFY
= 3;
241 const uint32 PROPAGATE_ROWSET
= 4;
243 const uint32 ROWSETEVENT_ITEMSTATE_NOTINROWSET
= 0;
244 const uint32 ROWSETEVENT_ITEMSTATE_INROWSET
= 1;
245 const uint32 ROWSETEVENT_ITEMSTATE_UNKNOWN
= 2;
247 const uint32 ROWSETEVENT_TYPE_DATAEXPIRED
= 0;
248 const uint32 ROWSETEVENT_TYPE_FOREGROUNDLOST
= 1;
249 const uint32 ROWSETEVENT_TYPE_SCOPESTATISTICS
= 2;
251 const uint32 DBCOMPARE_LT
= 0x00000000;
252 const uint32 DBCOMPARE_EQ
= 0x00000001;
253 const uint32 DBCOMPARE_GT
= 0x00000002;
254 const uint32 DBCOMPARE_NE
= 0x00000003;
255 const uint32 DBCOMPARE_NOTCOMPARABLE
= 0x00000004;
257 const uint32 VECTOR_RANK_MIN
= 0x00000000;
258 const uint32 VECTOR_RANK_MAX
= 0x00000001;
259 const uint32 VECTOR_RANK_INNER
= 0x00000002;
260 const uint32 VECTOR_RANK_DICE
= 0x00000003;
261 const uint32 VECTOR_RANK_JACCARD
= 0x00000004;
263 const uint32 DBAGGTTYPE_BYNONE
= 0x00000000;
264 const uint32 DBAGGTTYPE_SUM
= 0x00000001;
265 const uint32 DBAGGTTYPE_MAX
= 0x00000002;
266 const uint32 DBAGGTTYPE_MIN
= 0x00000003;
267 const uint32 DBAGGTTYPE_AVG
= 0x00000004;
268 const uint32 DBAGGTTYPE_COUNT
= 0x00000005;
269 const uint32 DBAGGTTYPE_CHILDCOUNT
= 0x00000006;
270 const uint32 DBAGGTTYPE_BYFREQ
= 0x00000007;
271 const uint32 DBAGGTTYPE_FIRST
= 0x00000008;
272 const uint32 DBAGGTTYPE_DATERANGE
= 0x00000009;
273 const uint32 DBAGGTTYPE_REPRESENTATIVEOF
= 0x0000000a;
274 const uint32 DBAGGTTYPE_EDITDISTANCE
= 0x0000000b;
276 const uint32 ESEQUENTIAL
= 0x00000001;
277 const uint32 ELOCATEABLE
= 0x00000003;
278 const uint32 ESCROLLABLE
= 0x00000007;
279 const uint32 EASYNCHRONOUS
= 0x00000008;
280 const uint32 EFIRSTROWS
= 0x00000080;
281 const uint32 EHOLDROWS
= 0x00000200;
282 const uint32 ECHAPTERED
= 0x00000800;
283 const uint32 EUSECI
= 0x00001000;
284 const uint32 EDEFERTRIMMING
= 0x00002000;
285 const uint32 ENABLEROWSETEVENTS
= 0x00800000;
286 const uint32 EDONOTCOMPUTEEXPENSIVEPROPS
= 0x00400000;
288 const uint32 CI_STATE_SHADOW_MERGE
= 0x00000001;
289 const uint32 CI_STATE_MASTER_MERGE
= 0x00000002;
290 const uint32 CI_STATE_ANNEALING_MERGE
= 0x00000008;
291 const uint32 CI_STATE_SCANNING
= 0x00000010;
292 const uint32 CI_STATE_LOW_MEMORY
= 0x00000080;
293 const uint32 CI_STATE_HIGH_IO
= 0x00000100;
294 const uint32 CI_STATE_MASTER_MERGE_PAUSED
= 0x00000200;
295 const uint32 CI_STATE_READ_ONLY
= 0x00000400;
296 const uint32 CI_STATE_BATTERY_POWER
= 0x00000800;
297 const uint32 CI_STATE_USER_ACTIVE
= 0x00001000;
298 const uint32 CI_STATE_LOW_DISK
= 0x00010000;
299 const uint32 CI_STATE_HIGH_CPU
= 0x00020000;
301 const uint32 STORESTATUSOK
= 0x00000000;
302 const uint32 STORESTATUSDEFERRED
= 0x00000001;
303 const uint32 STORESTATUSNULL
= 0x00000002;
305 const uint32 DB_S_ENDOFROWSET
= 0x00040EC6;
307 const uint32 XOR_CONST
= 0x59533959;
308 const uint32 E_UNEXPECTED
= 0x8000FFFF;
309 const uint32 WIN_UPDATE_ERR
= 0x80070003;
311 const uint32 QUERY_SORTASCEND
= 0x00000000;
312 const uint32 QUERY_DESCEND
= 0x00000001;