379{
390
391 lstrcpyA(
exp[0],
"wine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=16a3fcd171e93a8d");
392 lstrcpyA(
exp[1],
"wine, Version=1.0.1.2, Culture=neutral, PublicKeyToken=123456789abcdef0");
393 lstrcpyA(
exp[2],
"wine, Version=1.0.1.2, Culture=neutral, PublicKeyToken=16a3fcd171e93a8d");
394 lstrcpyA(
exp[3],
"Wine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=16a3fcd171e93a8d");
395 lstrcpyA(
exp[4],
"Wine, Version=1.0.1.2, Culture=neutral, PublicKeyToken=123456789abcdef0");
396 lstrcpyA(
exp[5],
"Wine, Version=1.0.1.2, Culture=neutral, PublicKeyToken=16a3fcd171e93a8d");
397
400 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
401
404
407
408 sprintf(
path,
"%s\\Wine\\1.0.0.0__16a3fcd171e93a8d", gac);
410
413 {
414 win_skip(
"Failed to open file %s, skipping name enumeration tests\n",
path);
415 goto done;
416 }
417
418 sprintf(
path,
"%s\\Wine\\1.0.1.2__16a3fcd171e93a8d", gac);
420
423 {
424 win_skip(
"Failed to open file %s, skipping name enumeration tests\n",
path);
425 goto done;
426 }
427
428 sprintf(
path,
"%s\\Wine\\1.0.1.2__123456789abcdef0", gac);
430
433 {
434 win_skip(
"Failed to open file %s, skipping name enumeration tests\n",
path);
435 goto done;
436 }
437
438
442 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
443 ok(asmname !=
NULL,
"Expected non-NULL asmname\n");
444
447 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
448 ok(asmenum !=
NULL,
"Expected non-NULL asmenum\n");
449
451 hr = IAssemblyEnum_GetNextAssembly(asmenum,
NULL, &
next, 0);
452 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
454
458 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
460 "Expected \"%s\" or \"%s\", got \"%s\"\n",
exp[0],
exp[1], disp);
461
462 IAssemblyName_Release(
next);
463
465 hr = IAssemblyEnum_GetNextAssembly(asmenum,
NULL, &
next, 0);
466 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
468
472 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
475 "Expected \"%s\" or \"%s\", got \"%s\"\n",
exp[1],
exp[2], disp);
476
477 IAssemblyName_Release(
next);
478
480 hr = IAssemblyEnum_GetNextAssembly(asmenum,
NULL, &
next, 0);
481 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
483
487 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
490 "Expected \"%s\" or \"%s\", got \"%s\"\n",
exp[2],
exp[1], disp);
491
492 IAssemblyName_Release(
next);
493
495 hr = IAssemblyEnum_GetNextAssembly(asmenum,
NULL, &
next, 0);
498 "Expected next to be unchanged, got %p\n",
next);
499
500 IAssemblyEnum_Release(asmenum);
501 IAssemblyName_Release(asmname);
502
503
507 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
508 ok(asmname !=
NULL,
"Expected non-NULL asmname\n");
509
512 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
513 ok(asmenum !=
NULL,
"Expected non-NULL asmenum\n");
514
516 hr = IAssemblyEnum_GetNextAssembly(asmenum,
NULL, &
next, 0);
517 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
519
523 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
526 "Expected \"%s\" or \"%s\", got \"%s\"\n",
exp[4],
exp[5], disp);
527
528 IAssemblyName_Release(
next);
529
531 hr = IAssemblyEnum_GetNextAssembly(asmenum,
NULL, &
next, 0);
532 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
534
538 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
541 "Expected \"%s\" or \"%s\", got \"%s\"\n",
exp[5],
exp[4], disp);
542
543 IAssemblyName_Release(
next);
544
546 hr = IAssemblyEnum_GetNextAssembly(asmenum,
NULL, &
next, 0);
549 "Expected next to be unchanged, got %p\n",
next);
550
551 IAssemblyEnum_Release(asmenum);
552 IAssemblyName_Release(asmname);
553
554
555 to_widechar(namestr,
"Wine, PublicKeyToken=16a3fcd171e93a8d");
558 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
559 ok(asmname !=
NULL,
"Expected non-NULL asmname\n");
560
563 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
564 ok(asmenum !=
NULL,
"Expected non-NULL asmenum\n");
565
567 hr = IAssemblyEnum_GetNextAssembly(asmenum,
NULL, &
next, 0);
568 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
570
574 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
576
577 IAssemblyName_Release(
next);
578
580 hr = IAssemblyEnum_GetNextAssembly(asmenum,
NULL, &
next, 0);
581 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
583
587 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
589
590 IAssemblyName_Release(
next);
591
593 hr = IAssemblyEnum_GetNextAssembly(asmenum,
NULL, &
next, 0);
596 "Expected next to be unchanged, got %p\n",
next);
597
598 IAssemblyEnum_Release(asmenum);
599 IAssemblyName_Release(asmname);
600
601
605 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
606 ok(asmname !=
NULL,
"Expected non-NULL asmname\n");
607
610 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
611 ok(asmenum !=
NULL,
"Expected non-NULL asmenum\n");
612
614 hr = IAssemblyEnum_GetNextAssembly(asmenum,
NULL, &
next, 0);
615 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
617
621 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
623
624 IAssemblyName_Release(
next);
625
627 hr = IAssemblyEnum_GetNextAssembly(asmenum,
NULL, &
next, 0);
628 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
630
634 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
637 "Expected \"%s\" or \"%s\", got \"%s\"\n",
exp[1],
exp[2], disp);
638
639 IAssemblyName_Release(
next);
640
642 hr = IAssemblyEnum_GetNextAssembly(asmenum,
NULL, &
next, 0);
643 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
645
649 ok(
hr ==
S_OK,
"Expected S_OK, got %08x\n",
hr);
652 "Expected \"%s\" or \"%s\", got \"%s\"\n",
exp[2],
exp[1], disp);
653
654 IAssemblyName_Release(
next);
655
657 hr = IAssemblyEnum_GetNextAssembly(asmenum,
NULL, &
next, 0);
660 "Expected next to be unchanged, got %p\n",
next);
661
662 IAssemblyEnum_Release(asmenum);
663 IAssemblyName_Release(asmname);
664
665done:
666 sprintf(
path,
"%s\\Wine\\1.0.0.0__16a3fcd171e93a8d\\Wine.dll", gac);
668 sprintf(
path,
"%s\\Wine\\1.0.1.2__16a3fcd171e93a8d\\Wine.dll", gac);
670 sprintf(
path,
"%s\\Wine\\1.0.1.2__123456789abcdef0\\Wine.dll", gac);
672 sprintf(
path,
"%s\\Wine\\1.0.0.0__16a3fcd171e93a8d", gac);
674 sprintf(
path,
"%s\\Wine\\1.0.1.2__16a3fcd171e93a8d", gac);
676 sprintf(
path,
"%s\\Wine\\1.0.1.2__123456789abcdef0", gac);
680}
BOOL WINAPI DeleteFileA(IN LPCSTR lpFileName)
BOOL WINAPI RemoveDirectoryA(IN LPCSTR lpPathName)