push 2f3ca95c4974ba229fa47d638b3044f50788f3bd
[wine/hacks.git] / dlls / shlwapi / tests / clist.c
blob84a05e6f26f2b91f4177b5e2f41cf811ac8121d4
1 /* Unit test suite for SHLWAPI Compact List and IStream ordinal functions
3 * Copyright 2002 Jon Griffiths
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #include <stdarg.h>
22 #include "wine/test.h"
23 #include "windef.h"
24 #include "winbase.h"
25 #include "objbase.h"
27 typedef struct tagSHLWAPI_CLIST
29 ULONG ulSize;
30 ULONG ulId;
31 } SHLWAPI_CLIST, *LPSHLWAPI_CLIST;
33 typedef const SHLWAPI_CLIST* LPCSHLWAPI_CLIST;
35 /* Items to add */
36 static const SHLWAPI_CLIST SHLWAPI_CLIST_items[] =
38 {4, 1},
39 {8, 3},
40 {12, 2},
41 {16, 8},
42 {20, 9},
43 {3, 11},
44 {9, 82},
45 {33, 16},
46 {32, 55},
47 {24, 100},
48 {39, 116},
49 { 0, 0}
52 /* Dummy IStream object for testing calls */
53 typedef struct
55 void* lpVtbl;
56 LONG ref;
57 int readcalls;
58 BOOL failreadcall;
59 BOOL failreadsize;
60 BOOL readbeyondend;
61 BOOL readreturnlarge;
62 int writecalls;
63 BOOL failwritecall;
64 BOOL failwritesize;
65 int seekcalls;
66 int statcalls;
67 BOOL failstatcall;
68 LPCSHLWAPI_CLIST item;
69 ULARGE_INTEGER pos;
70 } _IDummyStream;
72 static
73 HRESULT WINAPI QueryInterface(_IDummyStream *This,REFIID riid, LPVOID *ppvObj)
75 return S_OK;
78 static ULONG WINAPI AddRef(_IDummyStream *This)
80 return InterlockedIncrement(&This->ref);
83 static ULONG WINAPI Release(_IDummyStream *This)
85 return InterlockedDecrement(&This->ref);
88 static HRESULT WINAPI Read(_IDummyStream* This, LPVOID lpMem, ULONG ulSize,
89 PULONG lpRead)
91 HRESULT hRet = S_OK;
92 ++This->readcalls;
94 if (This->failreadcall)
96 return STG_E_ACCESSDENIED;
98 else if (This->failreadsize)
100 *lpRead = ulSize + 8;
101 return S_OK;
103 else if (This->readreturnlarge)
105 *((ULONG*)lpMem) = 0xffff01;
106 *lpRead = ulSize;
107 This->readreturnlarge = FALSE;
108 return S_OK;
110 if (ulSize == sizeof(ULONG))
112 /* Read size of item */
113 *((ULONG*)lpMem) = This->item->ulSize ? This->item->ulSize + sizeof(SHLWAPI_CLIST) : 0;
114 *lpRead = ulSize;
116 else
118 unsigned int i;
119 char* buff = lpMem;
121 /* Read item data */
122 if (!This->item->ulSize)
124 This->readbeyondend = TRUE;
125 *lpRead = 0;
126 return E_FAIL; /* Should never happen */
128 *((ULONG*)lpMem) = This->item->ulId;
129 *lpRead = ulSize;
131 for (i = 0; i < This->item->ulSize; i++)
132 buff[4+i] = i*2;
134 This->item++;
136 return hRet;
139 static HRESULT WINAPI Write(_IDummyStream* This, LPVOID lpMem, ULONG ulSize,
140 PULONG lpWritten)
142 HRESULT hRet = S_OK;
144 ++This->writecalls;
145 if (This->failwritecall)
147 return STG_E_ACCESSDENIED;
149 else if (This->failwritesize)
151 *lpWritten = 0;
153 else
154 *lpWritten = ulSize;
155 return hRet;
158 static HRESULT WINAPI Seek(_IDummyStream* This, LARGE_INTEGER dlibMove,
159 DWORD dwOrigin, ULARGE_INTEGER* plibNewPosition)
161 ++This->seekcalls;
162 This->pos.QuadPart = dlibMove.QuadPart;
163 if (plibNewPosition)
164 plibNewPosition->QuadPart = dlibMove.QuadPart;
165 return S_OK;
168 static HRESULT WINAPI Stat(_IDummyStream* This, STATSTG* pstatstg,
169 DWORD grfStatFlag)
171 ++This->statcalls;
172 if (This->failstatcall)
173 return E_FAIL;
174 if (pstatstg)
175 pstatstg->cbSize.QuadPart = This->pos.QuadPart;
176 return S_OK;
179 /* VTable */
180 static void* iclvt[] =
182 QueryInterface,
183 AddRef,
184 Release,
185 Read,
186 Write,
187 Seek,
188 NULL, /* SetSize */
189 NULL, /* CopyTo */
190 NULL, /* Commit */
191 NULL, /* Revert */
192 NULL, /* LockRegion */
193 NULL, /* UnlockRegion */
194 Stat,
195 NULL /* Clone */
198 /* Function ptrs for ordinal calls */
199 static HMODULE SHLWAPI_hshlwapi = 0;
201 static VOID (WINAPI *pSHLWAPI_19)(LPSHLWAPI_CLIST);
202 static HRESULT (WINAPI *pSHLWAPI_20)(LPSHLWAPI_CLIST*,LPCSHLWAPI_CLIST);
203 static BOOL (WINAPI *pSHLWAPI_21)(LPSHLWAPI_CLIST*,ULONG);
204 static LPSHLWAPI_CLIST (WINAPI *pSHLWAPI_22)(LPSHLWAPI_CLIST,ULONG);
205 static HRESULT (WINAPI *pSHLWAPI_17)(_IDummyStream*,LPSHLWAPI_CLIST);
206 static HRESULT (WINAPI *pSHLWAPI_18)(_IDummyStream*,LPSHLWAPI_CLIST*);
208 static BOOL (WINAPI *pSHLWAPI_166)(_IDummyStream*);
209 static HRESULT (WINAPI *pSHLWAPI_184)(_IDummyStream*,LPVOID,ULONG);
210 static HRESULT (WINAPI *pSHLWAPI_212)(_IDummyStream*,LPCVOID,ULONG);
211 static HRESULT (WINAPI *pSHLWAPI_213)(_IDummyStream*);
212 static HRESULT (WINAPI *pSHLWAPI_214)(_IDummyStream*,ULARGE_INTEGER*);
215 static void InitFunctionPtrs(void)
217 SHLWAPI_hshlwapi = GetModuleHandleA("shlwapi.dll");
219 pSHLWAPI_17 = (void *)GetProcAddress( SHLWAPI_hshlwapi, (LPSTR)17);
220 ok(pSHLWAPI_17 != 0, "No Ordinal 17\n");
221 pSHLWAPI_18 = (void *)GetProcAddress( SHLWAPI_hshlwapi, (LPSTR)18);
222 ok(pSHLWAPI_18 != 0, "No Ordinal 18\n");
223 pSHLWAPI_19 = (void *)GetProcAddress( SHLWAPI_hshlwapi, (LPSTR)19);
224 ok(pSHLWAPI_19 != 0, "No Ordinal 19\n");
225 pSHLWAPI_20 = (void *)GetProcAddress( SHLWAPI_hshlwapi, (LPSTR)20);
226 ok(pSHLWAPI_20 != 0, "No Ordinal 20\n");
227 pSHLWAPI_21 = (void *)GetProcAddress( SHLWAPI_hshlwapi, (LPSTR)21);
228 ok(pSHLWAPI_21 != 0, "No Ordinal 21\n");
229 pSHLWAPI_22 = (void *)GetProcAddress( SHLWAPI_hshlwapi, (LPSTR)22);
230 ok(pSHLWAPI_22 != 0, "No Ordinal 22\n");
231 pSHLWAPI_166 = (void *)GetProcAddress( SHLWAPI_hshlwapi, (LPSTR)166);
232 ok(pSHLWAPI_166 != 0, "No Ordinal 166\n");
233 pSHLWAPI_184 = (void *)GetProcAddress( SHLWAPI_hshlwapi, (LPSTR)184);
234 ok(pSHLWAPI_184 != 0, "No Ordinal 184\n");
235 pSHLWAPI_212 = (void *)GetProcAddress( SHLWAPI_hshlwapi, (LPSTR)212);
236 ok(pSHLWAPI_212 != 0, "No Ordinal 212\n");
237 pSHLWAPI_213 = (void *)GetProcAddress( SHLWAPI_hshlwapi, (LPSTR)213);
238 ok(pSHLWAPI_213 != 0, "No Ordinal 213\n");
239 pSHLWAPI_214 = (void *)GetProcAddress( SHLWAPI_hshlwapi, (LPSTR)214);
240 ok(pSHLWAPI_214 != 0, "No Ordinal 214\n");
243 static void InitDummyStream(_IDummyStream* iface)
245 iface->lpVtbl = (void*)iclvt;
246 iface->ref = 1;
247 iface->readcalls = 0;
248 iface->failreadcall = FALSE;
249 iface->failreadsize = FALSE;
250 iface->readbeyondend = FALSE;
251 iface->readreturnlarge = FALSE;
252 iface->writecalls = 0;
253 iface->failwritecall = FALSE;
254 iface->failwritesize = FALSE;
255 iface->seekcalls = 0;
256 iface->statcalls = 0;
257 iface->failstatcall = FALSE;
258 iface->item = SHLWAPI_CLIST_items;
259 iface->pos.QuadPart = 0;
263 static void test_CList(void)
265 _IDummyStream streamobj;
266 LPSHLWAPI_CLIST list = NULL;
267 LPCSHLWAPI_CLIST item = SHLWAPI_CLIST_items;
268 HRESULT hRet;
269 LPSHLWAPI_CLIST inserted;
270 BYTE buff[64];
271 unsigned int i;
273 if (!pSHLWAPI_17 || !pSHLWAPI_18 || !pSHLWAPI_19 || !pSHLWAPI_20 ||
274 !pSHLWAPI_21 || !pSHLWAPI_22)
275 return;
277 /* Populate a list and test the items are added correctly */
278 while (item->ulSize)
280 /* Create item and fill with data */
281 inserted = (LPSHLWAPI_CLIST)buff;
282 inserted->ulSize = item->ulSize + sizeof(SHLWAPI_CLIST);
283 inserted->ulId = item->ulId;
284 for (i = 0; i < item->ulSize; i++)
285 buff[sizeof(SHLWAPI_CLIST)+i] = i*2;
287 /* Add it */
288 hRet = pSHLWAPI_20(&list, inserted);
289 ok(hRet > S_OK, "failed list add\n");
291 if (hRet > S_OK)
293 ok(list && list->ulSize, "item not added\n");
295 /* Find it */
296 inserted = pSHLWAPI_22(list, item->ulId);
297 ok(inserted != NULL, "lost after adding\n");
299 ok(!inserted || inserted->ulId != ~0U, "find returned a container\n");
301 /* Check size */
302 if (inserted && inserted->ulSize & 0x3)
304 /* Contained */
305 ok(inserted[-1].ulId == ~0U, "invalid size is not countained\n");
306 ok(inserted[-1].ulSize > inserted->ulSize+sizeof(SHLWAPI_CLIST),
307 "container too small\n");
309 else if (inserted)
311 ok(inserted->ulSize==item->ulSize+sizeof(SHLWAPI_CLIST),
312 "id %d wrong size %d\n", inserted->ulId, inserted->ulSize);
314 if (inserted)
316 BOOL bDataOK = TRUE;
317 LPBYTE bufftest = (LPBYTE)inserted;
319 for (i = 0; i < inserted->ulSize - sizeof(SHLWAPI_CLIST); i++)
320 if (bufftest[sizeof(SHLWAPI_CLIST)+i] != i*2)
321 bDataOK = FALSE;
323 ok(bDataOK == TRUE, "data corrupted on insert\n");
325 ok(!inserted || inserted->ulId==item->ulId, "find got wrong item\n");
327 item++;
330 /* Write the list */
331 InitDummyStream(&streamobj);
333 hRet = pSHLWAPI_17(&streamobj, list);
334 ok(hRet == S_OK, "write failed\n");
335 if (hRet == S_OK)
337 /* 1 call for each element, + 1 for OK (use our null element for this) */
338 ok(streamobj.writecalls == sizeof(SHLWAPI_CLIST_items)/sizeof(SHLWAPI_CLIST),
339 "wrong call count\n");
340 ok(streamobj.readcalls == 0,"called Read() in write\n");
341 ok(streamobj.seekcalls == 0,"called Seek() in write\n");
344 /* Failure cases for writing */
345 InitDummyStream(&streamobj);
346 streamobj.failwritecall = TRUE;
347 hRet = pSHLWAPI_17(&streamobj, list);
348 ok(hRet == STG_E_ACCESSDENIED, "changed object failure return\n");
349 ok(streamobj.writecalls == 1, "called object after failure\n");
350 ok(streamobj.readcalls == 0,"called Read() after failure\n");
351 ok(streamobj.seekcalls == 0,"called Seek() after failure\n");
353 InitDummyStream(&streamobj);
354 streamobj.failwritesize = TRUE;
355 hRet = pSHLWAPI_17(&streamobj, list);
356 ok(hRet == STG_E_MEDIUMFULL, "changed size failure return\n");
357 ok(streamobj.writecalls == 1, "called object after size failure\n");
358 ok(streamobj.readcalls == 0,"called Read() after failure\n");
359 ok(streamobj.seekcalls == 0,"called Seek() after failure\n");
361 /* Invalid inputs for adding */
362 inserted = (LPSHLWAPI_CLIST)buff;
363 inserted->ulSize = sizeof(SHLWAPI_CLIST) -1;
364 inserted->ulId = 33;
365 hRet = pSHLWAPI_20(&list, inserted);
366 /* The call succeeds but the item is not inserted, except on some early
367 * versions which return failure. Wine behaves like later versions.
369 if (0)
371 ok(hRet == S_OK, "failed bad element size\n");
373 inserted = pSHLWAPI_22(list, 33);
374 ok(inserted == NULL, "inserted bad element size\n");
376 inserted = (LPSHLWAPI_CLIST)buff;
377 inserted->ulSize = 44;
378 inserted->ulId = ~0U;
379 hRet = pSHLWAPI_20(&list, inserted);
380 /* See comment above, some early versions fail this call */
381 if (0)
383 ok(hRet == S_OK, "failed adding a container\n");
385 item = SHLWAPI_CLIST_items;
387 /* Look for nonexistent item in populated list */
388 inserted = pSHLWAPI_22(list, 99999999);
389 ok(inserted == NULL, "found a nonexistent item\n");
391 while (item->ulSize)
393 /* Delete items */
394 BOOL bRet = pSHLWAPI_21(&list, item->ulId);
395 ok(bRet == TRUE, "couldn't find item to delete\n");
396 item++;
399 /* Look for nonexistent item in empty list */
400 inserted = pSHLWAPI_22(list, 99999999);
401 ok(inserted == NULL, "found an item in empty list\n");
403 /* Create a list by reading in data */
404 InitDummyStream(&streamobj);
406 hRet = pSHLWAPI_18(&streamobj, &list);
407 ok(hRet == S_OK, "failed create from Read()\n");
408 if (hRet == S_OK)
410 ok(streamobj.readbeyondend == FALSE, "read beyond end\n");
411 /* 2 calls per item, but only 1 for the terminator */
412 ok(streamobj.readcalls == sizeof(SHLWAPI_CLIST_items)/sizeof(SHLWAPI_CLIST)*2-1,
413 "wrong call count\n");
414 ok(streamobj.writecalls == 0, "called Write() from create\n");
415 ok(streamobj.seekcalls == 0,"called Seek() from create\n");
417 item = SHLWAPI_CLIST_items;
419 /* Check the items were added correctly */
420 while (item->ulSize)
422 inserted = pSHLWAPI_22(list, item->ulId);
423 ok(inserted != NULL, "lost after adding\n");
425 ok(!inserted || inserted->ulId != ~0U, "find returned a container\n");
427 /* Check size */
428 if (inserted && inserted->ulSize & 0x3)
430 /* Contained */
431 ok(inserted[-1].ulId == ~0U, "invalid size is not countained\n");
432 ok(inserted[-1].ulSize > inserted->ulSize+sizeof(SHLWAPI_CLIST),
433 "container too small\n");
435 else if (inserted)
437 ok(inserted->ulSize==item->ulSize+sizeof(SHLWAPI_CLIST),
438 "id %d wrong size %d\n", inserted->ulId, inserted->ulSize);
440 ok(!inserted || inserted->ulId==item->ulId, "find got wrong item\n");
441 if (inserted)
443 BOOL bDataOK = TRUE;
444 LPBYTE bufftest = (LPBYTE)inserted;
446 for (i = 0; i < inserted->ulSize - sizeof(SHLWAPI_CLIST); i++)
447 if (bufftest[sizeof(SHLWAPI_CLIST)+i] != i*2)
448 bDataOK = FALSE;
450 ok(bDataOK == TRUE, "data corrupted on insert\n");
452 item++;
456 /* Failure cases for reading */
457 InitDummyStream(&streamobj);
458 streamobj.failreadcall = TRUE;
459 hRet = pSHLWAPI_18(&streamobj, &list);
460 ok(hRet == STG_E_ACCESSDENIED, "changed object failure return\n");
461 ok(streamobj.readbeyondend == FALSE, "read beyond end\n");
462 ok(streamobj.readcalls == 1, "called object after read failure\n");
463 ok(streamobj.writecalls == 0,"called Write() after read failure\n");
464 ok(streamobj.seekcalls == 0,"called Seek() after read failure\n");
466 /* Read returns large object */
467 InitDummyStream(&streamobj);
468 streamobj.readreturnlarge = TRUE;
469 hRet = pSHLWAPI_18(&streamobj, &list);
470 ok(hRet == S_OK, "failed create from Read() with large item\n");
471 ok(streamobj.readbeyondend == FALSE, "read beyond end\n");
472 ok(streamobj.readcalls == 1,"wrong call count\n");
473 ok(streamobj.writecalls == 0,"called Write() after read failure\n");
474 ok(streamobj.seekcalls == 2,"wrong Seek() call count (%d)\n", streamobj.seekcalls);
476 pSHLWAPI_19(list);
479 static BOOL test_SHLWAPI_166(void)
481 _IDummyStream streamobj;
482 BOOL bRet;
484 if (!pSHLWAPI_166)
485 return FALSE;
487 InitDummyStream(&streamobj);
488 bRet = pSHLWAPI_166(&streamobj);
490 if (bRet != TRUE)
491 return FALSE; /* This version doesn't support stream ops on clists */
493 ok(streamobj.readcalls == 0, "called Read()\n");
494 ok(streamobj.writecalls == 0, "called Write()\n");
495 ok(streamobj.seekcalls == 0, "called Seek()\n");
496 ok(streamobj.statcalls == 1, "wrong call count\n");
498 streamobj.statcalls = 0;
499 streamobj.pos.QuadPart = 50001;
501 bRet = pSHLWAPI_166(&streamobj);
503 ok(bRet == FALSE, "failed after seek adjusted\n");
504 ok(streamobj.readcalls == 0, "called Read()\n");
505 ok(streamobj.writecalls == 0, "called Write()\n");
506 ok(streamobj.seekcalls == 0, "called Seek()\n");
507 ok(streamobj.statcalls == 1, "wrong call count\n");
509 /* Failure cases */
510 InitDummyStream(&streamobj);
511 streamobj.pos.QuadPart = 50001;
512 streamobj.failstatcall = TRUE; /* 1: Stat() Bad, Read() OK */
513 bRet = pSHLWAPI_166(&streamobj);
514 ok(bRet == FALSE, "should be FALSE after read is OK\n");
515 ok(streamobj.readcalls == 1, "wrong call count\n");
516 ok(streamobj.writecalls == 0, "called Write()\n");
517 ok(streamobj.seekcalls == 1, "wrong call count\n");
518 ok(streamobj.statcalls == 1, "wrong call count\n");
519 ok(streamobj.pos.QuadPart == 0, "Didn't seek to start\n");
521 InitDummyStream(&streamobj);
522 streamobj.pos.QuadPart = 50001;
523 streamobj.failstatcall = TRUE;
524 streamobj.failreadcall = TRUE; /* 2: Stat() Bad, Read() Bad Also */
525 bRet = pSHLWAPI_166(&streamobj);
526 ok(bRet == TRUE, "Should be true after read fails\n");
527 ok(streamobj.readcalls == 1, "wrong call count\n");
528 ok(streamobj.writecalls == 0, "called Write()\n");
529 ok(streamobj.seekcalls == 0, "Called Seek()\n");
530 ok(streamobj.statcalls == 1, "wrong call count\n");
531 ok(streamobj.pos.QuadPart == 50001, "called Seek() after read failed\n");
532 return TRUE;
535 static void test_SHLWAPI_184(void)
537 _IDummyStream streamobj;
538 char buff[256];
539 HRESULT hRet;
541 if (!pSHLWAPI_184)
542 return;
544 InitDummyStream(&streamobj);
545 hRet = pSHLWAPI_184(&streamobj, buff, sizeof(buff));
547 ok(hRet == S_OK, "failed Read()\n");
548 ok(streamobj.readcalls == 1, "wrong call count\n");
549 ok(streamobj.writecalls == 0, "called Write()\n");
550 ok(streamobj.seekcalls == 0, "called Seek()\n");
553 static void test_SHLWAPI_212(void)
555 _IDummyStream streamobj;
556 char buff[256];
557 HRESULT hRet;
559 if (!pSHLWAPI_212)
560 return;
562 InitDummyStream(&streamobj);
563 hRet = pSHLWAPI_212(&streamobj, buff, sizeof(buff));
565 ok(hRet == S_OK, "failed Write()\n");
566 ok(streamobj.readcalls == 0, "called Read()\n");
567 ok(streamobj.writecalls == 1, "wrong call count\n");
568 ok(streamobj.seekcalls == 0, "called Seek()\n");
571 static void test_SHLWAPI_213(void)
573 _IDummyStream streamobj;
574 ULARGE_INTEGER ul;
575 LARGE_INTEGER ll;
576 HRESULT hRet;
578 if (!pSHLWAPI_213 || !pSHLWAPI_214)
579 return;
581 InitDummyStream(&streamobj);
582 ll.QuadPart = 5000l;
583 Seek(&streamobj, ll, 0, NULL); /* Seek to 5000l */
585 streamobj.seekcalls = 0;
586 pSHLWAPI_213(&streamobj); /* Should rewind */
587 ok(streamobj.statcalls == 0, "called Stat()\n");
588 ok(streamobj.readcalls == 0, "called Read()\n");
589 ok(streamobj.writecalls == 0, "called Write()\n");
590 ok(streamobj.seekcalls == 1, "wrong call count\n");
592 ul.QuadPart = 50001;
593 hRet = pSHLWAPI_214(&streamobj, &ul);
594 ok(hRet == S_OK, "failed Stat()\n");
595 ok(ul.QuadPart == 0, "213 didn't rewind stream\n");
598 static void test_SHLWAPI_214(void)
600 _IDummyStream streamobj;
601 ULARGE_INTEGER ul;
602 LARGE_INTEGER ll;
603 HRESULT hRet;
605 if (!pSHLWAPI_214)
606 return;
608 InitDummyStream(&streamobj);
609 ll.QuadPart = 5000l;
610 Seek(&streamobj, ll, 0, NULL);
611 ul.QuadPart = 0;
612 streamobj.seekcalls = 0;
613 hRet = pSHLWAPI_214(&streamobj, &ul);
615 ok(hRet == S_OK, "failed Stat()\n");
616 ok(streamobj.statcalls == 1, "wrong call count\n");
617 ok(streamobj.readcalls == 0, "called Read()\n");
618 ok(streamobj.writecalls == 0, "called Write()\n");
619 ok(streamobj.seekcalls == 0, "called Seek()\n");
620 ok(ul.QuadPart == 5000l, "Stat gave wrong size\n");
623 START_TEST(clist)
625 InitFunctionPtrs();
627 test_CList();
629 /* Test streaming if this version supports it */
630 if (test_SHLWAPI_166())
632 test_SHLWAPI_184();
633 test_SHLWAPI_212();
634 test_SHLWAPI_213();
635 test_SHLWAPI_214();