159{
160 static const WCHAR fmtid_clsidW[] = {
'S',
't',
'd',
'F',
'o',
'n',
't',
' ',
'1',0};
161 static const WCHAR fmtid_truncatedW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
162 '1','2','3','4','-',0};
163 static const WCHAR fmtid_nobracketsW[] = {
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
164 '1','2','3','4','-','1','2','3','4','-',
165 '1','2','3','4','5','6','7','8','9','0','1','2',0};
166 static const WCHAR fmtid_badbracketW[] = {
'X',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
167 '1','2','3','4','-','1','2','3','4','-',
168 '1','2','3','4','5','6','7','8','9','0','1','2','}',0};
169 static const WCHAR fmtid_badcharW[] = {
'{',
'X',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
170 '1','2','3','4','-','1','2','3','4','-',
171 '1','2','3','4','5','6','7','8','9','0','1','2','}',0};
172 static const WCHAR fmtid_badchar2W[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'X',
'-',
'1',
'2',
'3',
'4',
'-',
173 '1','2','3','4','-','1','2','3','4','-',
174 '1','2','3','4','5','6','7','8','9','0','1','2','}',0};
175 static const WCHAR fmtid_baddashW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'X',
'1',
'2',
'3',
'4',
'-',
176 '1','2','3','4','-','1','2','3','4','-',
177 '1','2','3','4','5','6','7','8','9','0','1','2','}',0};
178 static const WCHAR fmtid_badchar3W[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'X',
'2',
'3',
'4',
'-',
179 '1','2','3','4','-','1','2','3','4','-',
180 '1','2','3','4','5','6','7','8','9','0','1','2','}',0};
181 static const WCHAR fmtid_badchar4W[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'X',
'-',
182 '1','2','3','4','-','1','2','3','4','-',
183 '1','2','3','4','5','6','7','8','9','0','1','2','}',0};
184 static const WCHAR fmtid_baddash2W[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'X',
185 '1','2','3','4','-','1','2','3','4','-',
186 '1','2','3','4','5','6','7','8','9','0','1','2','}',0};
187 static const WCHAR fmtid_badchar5W[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
188 'X','2','3','4','-','1','2','3','4','-',
189 '1','2','3','4','5','6','7','8','9','0','1','2','}',0};
190 static const WCHAR fmtid_badchar6W[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
191 '1','2','3','X','-','1','2','3','4','-',
192 '1','2','3','4','5','6','7','8','9','0','1','2','}',0};
193 static const WCHAR fmtid_baddash3W[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
194 '1','2','3','4','X','1','2','3','4','-',
195 '1','2','3','4','5','6','7','8','9','0','1','2','}',0};
196 static const WCHAR fmtid_badchar7W[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
197 '1','2','3','4','-','X','2','3','4','-',
198 '1','2','3','4','5','6','7','8','9','0','1','2','}',0};
199 static const WCHAR fmtid_badchar8W[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
200 '1','2','3','4','-','1','2','3','X','-',
201 '1','2','3','4','5','6','7','8','9','0','1','2','}',0};
202 static const WCHAR fmtid_baddash4W[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
203 '1','2','3','4','-','1','2','3','4','X',
204 '1','2','3','4','5','6','7','8','9','0','1','2','}',0};
205 static const WCHAR fmtid_badchar9W[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
206 '1','2','3','4','-','1','2','3','4','-',
207 'X','2','3','4','5','6','7','8','9','0','1','2','}',0};
208 static const WCHAR fmtid_badchar9_adjW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
209 '1','2','3','4','-','1','2','3','4','-',
210 '1','X','3','4','5','6','7','8','9','0','1','2','}',0};
211 static const WCHAR fmtid_badchar10W[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
212 '1','2','3','4','-','1','2','3','4','-',
213 '1','2','X','4','5','6','7','8','9','0','1','2','}',0};
214 static const WCHAR fmtid_badchar11W[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
215 '1','2','3','4','-','1','2','3','4','-',
216 '1','2','3','4','X','6','7','8','9','0','1','2','}',0};
217 static const WCHAR fmtid_badchar12W[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
218 '1','2','3','4','-','1','2','3','4','-',
219 '1','2','3','4','5','6','X','8','9','0','1','2','}',0};
220 static const WCHAR fmtid_badchar13W[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
221 '1','2','3','4','-','1','2','3','4','-',
222 '1','2','3','4','5','6','7','8','X','0','1','2','}',0};
223 static const WCHAR fmtid_badchar14W[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
224 '1','2','3','4','-','1','2','3','4','-',
225 '1','2','3','4','5','6','7','8','9','0','X','2','}',0};
226 static const WCHAR fmtid_badbracket2W[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
227 '1','2','3','4','-','1','2','3','4','-',
228 '1','2','3','4','5','6','7','8','9','0','1','2','X',0};
229 static const WCHAR fmtid_spaceW[] = {
' ',
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
230 '1','2','3','4','-','1','2','3','4','-',
231 '1','2','3','4','5','6','7','8','9','0','1','2','}',0};
232 static const WCHAR fmtid_spaceendW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
233 '1','2','3','4','-','1','2','3','4','-',
234 '1','2','3','4','5','6','7','8','9','0','1','2','}',' ',0};
235 static const WCHAR fmtid_spacesendW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
236 '1','2','3','4','-','1','2','3','4','-',
237 '1','2','3','4','5','6','7','8','9','0','1','2','}',' ',' ',' ',0};
238 static const WCHAR fmtid_nopidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
239 '1','2','3','4','-','1','2','3','4','-',
240 '1','2','3','4','5','6','7','8','9','0','1','2','}',0};
241 static const WCHAR fmtid_badpidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
242 '1','2','3','4','-','1','2','3','4','-',
243 '1','2','3','4','5','6','7','8','9','0','1','2','}',' ','D','E','A','D',0};
244 static const WCHAR fmtid_adjpidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
245 '1','2','3','4','-','1','2','3','4','-',
246 '1','2','3','4','5','6','7','8','9','0','1','2','}','1','3','5','7','9',0};
247 static const WCHAR fmtid_spacespidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
248 '1','2','3','4','-','1','2','3','4','-',
249 '1','2','3','4','5','6','7','8','9','0','1','2','}',' ',' ',' ','1','3','5','7','9',0};
250 static const WCHAR fmtid_negpidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
251 '1','2','3','4','-','1','2','3','4','-',
252 '1','2','3','4','5','6','7','8','9','0','1','2','}',' ','-','1','3','5','7','9',0};
253 static const WCHAR fmtid_negnegpidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
254 '1','2','3','4','-','1','2','3','4','-',
255 '1','2','3','4','5','6','7','8','9','0','1','2','}',' ','-','-','1','3','5','7','9',0};
256 static const WCHAR fmtid_negnegnegpidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
257 '1','2','3','4','-','1','2','3','4','-',
258 '1','2','3','4','5','6','7','8','9','0','1','2','}',' ','-','-','-','1','3','5','7','9',0};
259 static const WCHAR fmtid_negspacepidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
260 '1','2','3','4','-','1','2','3','4','-',
261 '1','2','3','4','5','6','7','8','9','0','1','2','}',' ','-',' ','1','3','5','7','9',0};
262 static const WCHAR fmtid_negspacenegpidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
263 '1','2','3','4','-','1','2','3','4','-',
264 '1','2','3','4','5','6','7','8','9','0','1','2','}',' ','-',' ','-','1','3','5','7','9',0};
265 static const WCHAR fmtid_negspacespidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
266 '1','2','3','4','-','1','2','3','4','-',
267 '1','2','3','4','5','6','7','8','9','0','1','2','}',' ','-',' ','-',' ','-','1','3','5','7','9',0};
268 static const WCHAR fmtid_pospidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
269 '1','2','3','4','-','1','2','3','4','-',
270 '1','2','3','4','5','6','7','8','9','0','1','2','}',' ','+','1','3','5','7','9',0};
271 static const WCHAR fmtid_posnegpidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
272 '1','2','3','4','-','1','2','3','4','-',
273 '1','2','3','4','5','6','7','8','9','0','1','2','}',' ','+','-','+','-','1','3','5','7','9',0};
274 static const WCHAR fmtid_symbolpidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
275 '1','2','3','4','-','1','2','3','4','-',
276 '1','2','3','4','5','6','7','8','9','0','1','2','}',' ','+','/','$','-','1','3','5','7','9',0};
277 static const WCHAR fmtid_letterpidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
278 '1','2','3','4','-','1','2','3','4','-',
279 '1','2','3','4','5','6','7','8','9','0','1','2','}',' ','A','B','C','D','1','3','5','7','9',0};
280 static const WCHAR fmtid_spacepadpidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
281 '1','2','3','4','-','1','2','3','4','-',
282 '1','2','3','4','5','6','7','8','9','0','1','2','}',' ','1','3','5','7','9',' ',' ',' ',0};
283 static const WCHAR fmtid_spacemixpidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
284 '1','2','3','4','-','1','2','3','4','-',
285 '1','2','3','4','5','6','7','8','9','0','1','2','}',' ','1',' ','3',' ','5','7','9',' ',' ',' ',0};
286 static const WCHAR fmtid_tabpidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
287 '1','2','3','4','-','1','2','3','4','-',
288 '1','2','3','4','5','6','7','8','9','0','1','2','}','\t','1','3','5','7','9',0};
289 static const WCHAR fmtid_hexpidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
290 '1','2','3','4','-','1','2','3','4','-',
291 '1','2','3','4','5','6','7','8','9','0','1','2','}',' ','0','x','D','E','A','D',0};
292 static const WCHAR fmtid_mixedpidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
293 '1','2','3','4','-','1','2','3','4','-',
294 '1','2','3','4','5','6','7','8','9','0','1','2','}',' ','A','9','B','5','C','3','D','1',0};
295 static const WCHAR fmtid_overflowpidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
296 '1','2','3','4','-','1','2','3','4','-',
297 '1','2','3','4','5','6','7','8','9','0','1','2','}',' ','1','2','3','4','5','6','7','8','9','0','1',0};
298 static const WCHAR fmtid_commapidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
299 '1','2','3','4','-','1','2','3','4','-',
300 '1','2','3','4','5','6','7','8','9','0','1','2','}',',','1','3','5','7','9',0};
301 static const WCHAR fmtid_commaspidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
302 '1','2','3','4','-','1','2','3','4','-',
303 '1','2','3','4','5','6','7','8','9','0','1','2','}',',',',',',','1','3','5','7','9',0};
304 static const WCHAR fmtid_commaspacepidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
305 '1','2','3','4','-','1','2','3','4','-',
306 '1','2','3','4','5','6','7','8','9','0','1','2','}',',',' ','1','3','5','7','9',0};
307 static const WCHAR fmtid_spacecommapidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
308 '1','2','3','4','-','1','2','3','4','-',
309 '1','2','3','4','5','6','7','8','9','0','1','2','}',' ',',','1','3','5','7','9',0};
310 static const WCHAR fmtid_spccommaspcpidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
311 '1','2','3','4','-','1','2','3','4','-',
312 '1','2','3','4','5','6','7','8','9','0','1','2','}',' ',',',' ','1','3','5','7','9',0};
313 static const WCHAR fmtid_spacescommaspidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
314 '1','2','3','4','-','1','2','3','4','-',
315 '1','2','3','4','5','6','7','8','9','0','1','2','}',' ',',',' ',',','1','3','5','7','9',0};
316 static const WCHAR fmtid_commanegpidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
317 '1','2','3','4','-','1','2','3','4','-',
318 '1','2','3','4','5','6','7','8','9','0','1','2','}',',','-','1','3','5','7','9',0};
319 static const WCHAR fmtid_spccommanegpidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
320 '1','2','3','4','-','1','2','3','4','-',
321 '1','2','3','4','5','6','7','8','9','0','1','2','}',' ',',','-','1','3','5','7','9',0};
322 static const WCHAR fmtid_commaspcnegpidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
323 '1','2','3','4','-','1','2','3','4','-',
324 '1','2','3','4','5','6','7','8','9','0','1','2','}',',',' ','-','1','3','5','7','9',0};
325 static const WCHAR fmtid_spccommaspcnegpidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
326 '1','2','3','4','-','1','2','3','4','-',
327 '1','2','3','4','5','6','7','8','9','0','1','2','}',' ',',',' ','-','1','3','5','7','9',0};
328 static const WCHAR fmtid_commanegspcpidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
329 '1','2','3','4','-','1','2','3','4','-',
330 '1','2','3','4','5','6','7','8','9','0','1','2','}',',','-',' ','1','3','5','7','9',0};
331 static const WCHAR fmtid_negcommapidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
332 '1','2','3','4','-','1','2','3','4','-',
333 '1','2','3','4','5','6','7','8','9','0','1','2','}','-',',','1','3','5','7','9',0};
334 static const WCHAR fmtid_normalpidW[] = {
'{',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'-',
'1',
'2',
'3',
'4',
'-',
335 '1','2','3','4','-','1','2','3','4','-',
336 '1','2','3','4','5','6','7','8','9','0','1','2','}',' ','1','3','5','7','9',0};
337 PROPERTYKEY out_init = {
GUID_MEMBERS(dummy_guid), 0xdeadbeef};
340
341 const struct
342 {
344 PROPERTYKEY *pkey;
346 PROPERTYKEY pkey_expect;
347 } testcases[] =
348 {
354 {fmtid_truncatedW, &
out,
E_INVALIDARG, { {0x12345678,0x1234,0x1234,{0,0,0,0,0,0,0,0}}, 0}},
359 {fmtid_baddashW, &
out,
E_INVALIDARG, { {0x12345678,0,0,{0,0,0,0,0,0,0,0}}, 0}},
360 {fmtid_badchar3W, &
out,
E_INVALIDARG, { {0x12345678,0,0,{0,0,0,0,0,0,0,0}}, 0}},
361 {fmtid_badchar4W, &
out,
E_INVALIDARG, { {0x12345678,0,0,{0,0,0,0,0,0,0,0}}, 0}},
362 {fmtid_baddash2W, &
out,
E_INVALIDARG, { {0x12345678,0,0,{0,0,0,0,0,0,0,0}}, 0}},
363 {fmtid_badchar5W, &
out,
E_INVALIDARG, { {0x12345678,0x1234,0,{0,0,0,0,0,0,0,0}}, 0}},
364 {fmtid_badchar6W, &
out,
E_INVALIDARG, { {0x12345678,0x1234,0,{0,0,0,0,0,0,0,0}}, 0}},
365 {fmtid_baddash3W, &
out,
E_INVALIDARG, { {0x12345678,0x1234,0,{0,0,0,0,0,0,0,0}}, 0}},
366 {fmtid_badchar7W, &
out,
E_INVALIDARG, { {0x12345678,0x1234,0x1234,{0,0,0,0,0,0,0,0}}, 0}},
367 {fmtid_badchar8W, &
out,
E_INVALIDARG, { {0x12345678,0x1234,0x1234,{0x12,0,0,0,0,0,0,0}}, 0}},
368 {fmtid_baddash4W, &
out,
E_INVALIDARG, { {0x12345678,0x1234,0x1234,{0x12,0,0,0,0,0,0,0}}, 0}},
369 {fmtid_badchar9W, &
out,
E_INVALIDARG, { {0x12345678,0x1234,0x1234,{0x12,0x34,0,0,0,0,0,0}}, 0}},
370 {fmtid_badchar9_adjW, &
out,
E_INVALIDARG, { {0x12345678,0x1234,0x1234,{0x12,0x34,0,0,0,0,0,0}}, 0}},
371 {fmtid_badchar10W, &
out,
E_INVALIDARG, { {0x12345678,0x1234,0x1234,{0x12,0x34,0x12,0,0,0,0,0}}, 0}},
372 {fmtid_badchar11W, &
out,
E_INVALIDARG, { {0x12345678,0x1234,0x1234,{0x12,0x34,0x12,0x34,0,0,0,0}}, 0}},
373 {fmtid_badchar12W, &
out,
E_INVALIDARG, { {0x12345678,0x1234,0x1234,{0x12,0x34,0x12,0x34,0x56,0,0,0}}, 0}},
374 {fmtid_badchar13W, &
out,
E_INVALIDARG, { {0x12345678,0x1234,0x1234,{0x12,0x34,0x12,0x34,0x56,0x78,0,0}}, 0}},
375 {fmtid_badchar14W, &
out,
E_INVALIDARG, { {0x12345678,0x1234,0x1234,{0x12,0x34,0x12,0x34,0x56,0x78,0x90,0}}, 0}},
376 {fmtid_badbracket2W, &
out,
E_INVALIDARG, { {0x12345678,0x1234,0x1234,{0x12,0x34,0x12,0x34,0x56,0x78,0x90,0x00}}, 0 }},
413 };
414
416
418 {
419 if (testcases[
i].pkey)
420 *testcases[
i].pkey = out_init;
421
423 ok(
ret == testcases[
i].hr_expect,
424 "[%d] Expected PSPropertyKeyFromString to return 0x%08x, got 0x%08x\n",
425 i, testcases[
i].hr_expect,
ret);
426
427 if (testcases[
i].pkey)
428 {
429 ok(
IsEqualGUID(&testcases[
i].pkey->fmtid, &testcases[
i].pkey_expect.fmtid),
430 "[%d] Expected GUID %s, got %s\n",
432 ok(testcases[
i].pkey->pid == testcases[
i].pkey_expect.pid,
433 "[%d] Expected property ID %u, got %u\n",
434 i, testcases[
i].pkey_expect.pid, testcases[
i].pkey->pid);
435 }
436 }
437}
#define expect_guid(expected, guid)
HRESULT WINAPI PSPropertyKeyFromString(LPCWSTR pszString, PROPERTYKEY *pkey)