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