34static IDxDiagProvider *
pddp;
35static IDxDiagContainer *
pddc;
37static const WCHAR DxDiag_SystemInfo[] = {
'D',
'x',
'D',
'i',
'a',
'g',
'_',
'S',
'y',
's',
't',
'e',
'm',
'I',
'n',
'f',
'o',0};
38static const WCHAR DxDiag_DisplayDevices[] = {
'D',
'x',
'D',
'i',
'a',
'g',
'_',
'D',
'i',
's',
'p',
'l',
'a',
'y',
'D',
'e',
'v',
'i',
'c',
'e',
's',0};
39static const WCHAR DxDiag_SoundDevices[] = {
'D',
'x',
'D',
'i',
'a',
'g',
'_',
'D',
'i',
'r',
'e',
'c',
't',
'S',
'o',
'u',
'n',
'd',
'.',
40 'D',
'x',
'D',
'i',
'a',
'g',
'_',
'S',
'o',
'u',
'n',
'd',
'D',
'e',
'v',
'i',
'c',
'e',
's',0};
41static const WCHAR DxDiag_SoundCaptureDevices[] = {
'D',
'x',
'D',
'i',
'a',
'g',
'_',
'D',
'i',
'r',
'e',
'c',
't',
'S',
'o',
'u',
'n',
'd',
'.',
42 'D',
'x',
'D',
'i',
'a',
'g',
'_',
'S',
'o',
'u',
'n',
'd',
'C',
'a',
'p',
't',
'u',
'r',
'e',
43 'D',
'e',
'v',
'i',
'c',
'e',
's',0};
77 skip(
"Unable to create the root IDxDiagContainer\n");
83 "Expected IDxDiagContainer::GetNumberOfChildContainers to return E_INVALIDARG, got 0x%08x\n",
hr);
87 "Expected IDxDiagContainer::GetNumberOfChildContainers to return S_OK, got 0x%08x\n",
hr);
89 ok(
count != 0,
"Expected the number of child containers for the root container to be non-zero\n");
102 skip(
"Unable to create the root IDxDiagContainer\n");
107 ok(
hr ==
E_INVALIDARG,
"Expected IDxDiagContainer::GetNumberOfProps to return E_INVALIDARG, got 0x%08x\n",
hr);
110 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfProps to return S_OK, got 0x%08x\n",
hr);
112 ok(
count == 0,
"Expected the number of properties for the root container to be zero\n");
123 static const WCHAR testW[] = {
't',
'e',
's',
't',0};
124 static const WCHAR zerotestW[] = {0,
'e',
's',
't',0};
128 skip(
"Unable to create the root IDxDiagContainer\n");
135 "Expected IDxDiagContainer::EnumChildContainerNames to return E_INVALIDARG, got 0x%08x\n",
hr);
139 "Expected IDxDiagContainer::EnumChildContainerNames to return E_INVALIDARG, got 0x%08x\n",
hr);
145 "Expected IDxDiagContainer::EnumChildContainerNames to return E_INVALIDARG, got 0x%08x\n",
hr);
152 "Expected IDxDiagContainer::EnumChildContainerNames to return E_INVALIDARG, got 0x%08x\n",
hr);
159 "Expected IDxDiagContainer::EnumChildContainerNames to return E_INVALIDARG, got 0x%08x\n",
hr);
164 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfChildContainers to return S_OK, got 0x%08x\n",
hr);
167 skip(
"IDxDiagContainer::GetNumberOfChildContainers failed\n");
171 trace(
"Starting child container enumeration of the root container:\n");
179 DWORD buffersize = 1;
186 "Expected IDxDiagContainer::EnumChildContainerNames to return E_INVALIDARG "
187 "on the last index %d, got 0x%08x\n",
index,
hr);
202 "Expected IDxDiagContainer::EnumChildContainerNames to return S_OK, got 0x%08x\n",
hr);
209 for (buffersize = 2; buffersize <= 256; buffersize++)
221 "Expected IDxDiagContainer::EnumChildContainerNames to return S_OK, "
222 "got hr = 0x%08x, buffersize = %d\n",
hr, buffersize);
228 ok(0,
"IDxDiagContainer::EnumChildContainerNames unexpectedly returned 0x%08x\n",
hr);
242 IDxDiagContainer *
child;
246 skip(
"Unable to create the root IDxDiagContainer\n");
253 "Expected IDxDiagContainer::GetChildContainer to return E_INVALIDARG, got 0x%08x\n",
hr);
255 child = (
void*)0xdeadbeef;
258 "Expected IDxDiagContainer::GetChildContainer to return E_INVALIDARG, got 0x%08x\n",
hr);
259 ok(
child == (
void*)0xdeadbeef,
"Expected output pointer to be unchanged, got %p\n",
child);
263 "Expected IDxDiagContainer::GetChildContainer to return E_INVALIDARG, got 0x%08x\n",
hr);
265 child = (
void*)0xdeadbeef;
268 "Expected IDxDiagContainer::GetChildContainer to return E_INVALIDARG, got 0x%08x\n",
hr);
274 "Expected IDxDiagContainer::EnumChildContainerNames to return S_OK, got 0x%08x\n",
hr);
277 skip(
"IDxDiagContainer::EnumChildContainerNames failed\n");
281 child = (
void*)0xdeadbeef;
284 "Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
289 IDxDiagContainer *
ptr;
295 "Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
297 ok(
ptr !=
child,
"Expected the two pointers (%p vs. %p) to be unequal\n",
child,
ptr);
311 WCHAR containerbufW[256] = {0}, childbufW[256] = {0};
329 skip(
"Unable to create the root IDxDiagContainer\n");
335 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfChildContainers to return S_OK, got 0x%08x\n",
hr);
338 skip(
"IDxDiagContainer::GetNumberOfChildContainers failed\n");
344 IDxDiagContainer *
child;
347 ok(
hr ==
S_OK,
"Expected IDxDiagContainer_EnumChildContainerNames to return S_OK, got 0x%08x\n",
hr);
350 skip(
"IDxDiagContainer::EnumChildContainerNames failed\n");
355 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
361 "Expected IDxDiagContainer::EnumChildContainerNames to return S_OK or E_INVALIDARG, got 0x%08x\n",
hr);
369 if (!*containerbufW || !*childbufW)
371 skip(
"Unable to find a suitable container\n");
375 trace(
"Testing IDxDiagContainer::GetChildContainer dot parsing with container %s and child container %s.\n",
380 IDxDiagContainer *
child;
381 char containerbufA[256];
383 char dotbufferA[255 + 255 + 3 + 1];
384 WCHAR dotbufferW[255 + 255 + 3 + 1];
388 sprintf(dotbufferA, test_strings[
i].
format, containerbufA, childbufA);
394 "Expected IDxDiagContainer::GetChildContainer to return 0x%08x for %s, got 0x%08x\n",
411 static const WCHAR testW[] = {
't',
'e',
's',
't',0};
415 skip(
"Unable to create the root IDxDiagContainer\n");
421 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfChildContainers to return S_OK, got 0x%08x\n",
hr);
424 skip(
"IDxDiagContainer::GetNumberOfChildContainers failed\n");
431 ok(
hr ==
S_OK,
"Expected IDxDiagContainer_EnumChildContainerNames to return S_OK, got 0x%08x\n",
hr);
434 skip(
"IDxDiagContainer::EnumChildContainerNames failed\n");
439 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
444 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfProps to return S_OK, got 0x%08x\n",
hr);
458 skip(
"Unable to find a container with non-zero property count\n");
463 ok(
hr ==
E_INVALIDARG,
"Expected IDxDiagContainer::EnumPropNames to return E_INVALIDARG, got 0x%08x\n",
hr);
467 ok(
hr ==
E_INVALIDARG,
"Expected IDxDiagContainer::EnumPropNames to return E_INVALIDARG, got 0x%08x\n",
hr);
473 ok(
hr ==
E_INVALIDARG,
"Expected IDxDiagContainer::EnumPropNames to return E_INVALIDARG, got 0x%08x\n",
hr);
485 DWORD buffersize = 1;
493 "Expected IDxDiagContainer::EnumPropNames to return E_INVALIDARG "
494 "on the last index %d, got 0x%08x\n",
index,
hr);
507 "Expected IDxDiagContainer::EnumPropNames to return S_OK, got 0x%08x\n",
hr);
514 for (buffersize = 2; buffersize <= 256; buffersize++)
526 "Expected IDxDiagContainer::EnumPropNames to return S_OK, "
527 "got hr = 0x%08x, buffersize = %d\n",
hr, buffersize);
533 ok(0,
"IDxDiagContainer::EnumPropNames unexpectedly returned 0x%08x\n",
hr);
556 static const WCHAR testW[] = {
't',
'e',
's',
't',0};
560 skip(
"Unable to create the root IDxDiagContainer\n");
566 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfChildContainers to return S_OK, got 0x%08x\n",
hr);
569 skip(
"IDxDiagContainer::GetNumberOfChildContainers failed\n");
576 ok(
hr ==
S_OK,
"Expected IDxDiagContainer_EnumChildContainerNames to return S_OK, got 0x%08x\n",
hr);
579 skip(
"IDxDiagContainer::EnumChildContainerNames failed\n");
584 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
590 "Expected IDxDiagContainer::EnumPropNames to return S_OK or E_INVALIDARG, got 0x%08x\n",
hr);
604 skip(
"Unable to find a suitable container\n");
609 ok(
hr ==
E_INVALIDARG,
"Expected IDxDiagContainer::GetProp to return E_INVALIDARG, got 0x%08x\n",
hr);
613 ok(
hr ==
E_INVALIDARG,
"Expected IDxDiagContainer::GetProp to return E_INVALIDARG, got 0x%08x\n",
hr);
614 ok(
V_VT(&
var) == 0xdead,
"Expected the variant to be untouched, got %u\n",
V_VT(&
var));
617 ok(
hr ==
E_INVALIDARG,
"Expected IDxDiagContainer::GetProp to return E_INVALIDARG, got 0x%08x\n",
hr);
621 ok(
hr ==
E_INVALIDARG,
"Expected IDxDiagContainer::GetProp to return E_INVALIDARG, got 0x%08x\n",
hr);
622 ok(
V_VT(&
var) == 0xdead,
"Expected the variant to be untouched, got %u\n",
V_VT(&
var));
625 ok(
hr ==
E_INVALIDARG,
"Expected IDxDiagContainer::GetProp to return E_INVALIDARG, got 0x%08x\n",
hr);
629 ok(
hr ==
E_INVALIDARG,
"Expected IDxDiagContainer::GetProp to return E_INVALIDARG, got 0x%08x\n",
hr);
630 ok(
V_VT(&
var) == 0xdead,
"Expected the variant to be untouched, got %u\n",
V_VT(&
var));
634 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetProp to return S_OK, got 0x%08x\n",
hr);
644 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetProp to return S_OK, got 0x%08x\n",
hr);
645 ok(
V_VT(&
var) != 0xdead,
"Expected the variant to be modified, got %d\n",
V_VT(&
var));
651 ok(
sa !=
NULL,
"Expected SafeArrayCreate to return a valid pointer\n");
657 ok(
hr ==
S_OK,
"Expected SafeArrayLock to return S_OK, got 0x%08x\n",
hr);
660 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetProp to return S_OK, got 0x%08x\n",
hr);
664 ok(
hr ==
S_OK,
"Expected SafeArrayUnlock to return S_OK, got 0x%08x\n",
hr);
666 ok(
hr ==
S_OK,
"Expected SafeArrayDestroy to return S_OK, got 0x%08x\n",
hr);
674 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetProp to return S_OK, got 0x%08x\n",
hr);
679 ok(
ref == 2,
"Expected reference count to be 2, got %u\n",
ref);
690 static const WCHAR DxDiag_DirectSound[] = {
'D',
'x',
'D',
'i',
'a',
'g',
'_',
'D',
'i',
'r',
'e',
'c',
't',
'S',
'o',
'u',
'n',
'd',0};
691 static const WCHAR DxDiag_DirectMusic[] = {
'D',
'x',
'D',
'i',
'a',
'g',
'_',
'D',
'i',
'r',
'e',
'c',
't',
'M',
'u',
's',
'i',
'c',0};
692 static const WCHAR DxDiag_DirectInput[] = {
'D',
'x',
'D',
'i',
'a',
'g',
'_',
'D',
'i',
'r',
'e',
'c',
't',
'I',
'n',
'p',
'u',
't',0};
693 static const WCHAR DxDiag_DirectPlay[] = {
'D',
'x',
'D',
'i',
'a',
'g',
'_',
'D',
'i',
'r',
'e',
'c',
't',
'P',
'l',
'a',
'y',0};
694 static const WCHAR DxDiag_SystemDevices[] = {
'D',
'x',
'D',
'i',
'a',
'g',
'_',
'S',
'y',
's',
't',
'e',
'm',
'D',
'e',
'v',
'i',
'c',
'e',
's',0};
695 static const WCHAR DxDiag_DirectXFiles[] = {
'D',
'x',
'D',
'i',
'a',
'g',
'_',
'D',
'i',
'r',
'e',
'c',
't',
'X',
'F',
'i',
'l',
'e',
's',0};
696 static const WCHAR DxDiag_DirectShowFilters[] = {
'D',
'x',
'D',
'i',
'a',
'g',
'_',
'D',
'i',
'r',
'e',
'c',
't',
'S',
'h',
'o',
'w',
'F',
'i',
'l',
't',
'e',
'r',
's',0};
697 static const WCHAR DxDiag_LogicalDisks[] = {
'D',
'x',
'D',
'i',
'a',
'g',
'_',
'L',
'o',
'g',
'i',
'c',
'a',
'l',
'D',
'i',
's',
'k',
's',0};
702 static const WCHAR *root_children[] = {
704 DxDiag_DirectMusic, DxDiag_DirectInput, DxDiag_DirectPlay,
705 DxDiag_SystemDevices, DxDiag_DirectXFiles, DxDiag_DirectShowFilters,
711 skip(
"Unable to create the root IDxDiagContainer\n");
717 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfChildContainers to return S_OK, got 0x%08x\n",
hr);
720 skip(
"IDxDiagContainer::GetNumberOfChildContainers failed\n");
725 "Got unexpected count %u for the number of child containers\n",
count);
729 skip(
"Received unexpected number of child containers\n");
741 "Expected IDxDiagContainer::EnumChildContainerNames to return "
742 "E_INVALIDARG on the last index %u\n",
count);
748 "Expected container %s for index %u, got %s\n",
753 ok(0,
"IDxDiagContainer::EnumChildContainerNames unexpectedly returned 0x%08x\n",
hr);
773 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfProps to return S_OK, got 0x%08x\n",
hr);
775 ok(prop_count == 0,
"Expected container property count to be zero, got %u\n", prop_count);
788 ok(
hr ==
S_OK,
"[%d] Expected IDxDiagContainer::GetProp to return S_OK for %s, got 0x%08x\n",
794 "[%d] Expected variant type %d, got %d\n",
i, property_tests[
i].
vt,
V_VT(&
var));
804 static const WCHAR dwOSMajorVersion[] = {
'd',
'w',
'O',
'S',
'M',
'a',
'j',
'o',
'r',
'V',
'e',
'r',
's',
'i',
'o',
'n',0};
805 static const WCHAR dwOSMinorVersion[] = {
'd',
'w',
'O',
'S',
'M',
'i',
'n',
'o',
'r',
'V',
'e',
'r',
's',
'i',
'o',
'n',0};
806 static const WCHAR dwOSBuildNumber[] = {
'd',
'w',
'O',
'S',
'B',
'u',
'i',
'l',
'd',
'N',
'u',
'm',
'b',
'e',
'r',0};
807 static const WCHAR dwOSPlatformID[] = {
'd',
'w',
'O',
'S',
'P',
'l',
'a',
't',
'f',
'o',
'r',
'm',
'I',
'D',0};
808 static const WCHAR dwDirectXVersionMajor[] = {
'd',
'w',
'D',
'i',
'r',
'e',
'c',
't',
'X',
'V',
'e',
'r',
's',
'i',
'o',
'n',
'M',
'a',
'j',
'o',
'r',0};
809 static const WCHAR dwDirectXVersionMinor[] = {
'd',
'w',
'D',
'i',
'r',
'e',
'c',
't',
'X',
'V',
'e',
'r',
's',
'i',
'o',
'n',
'M',
'i',
'n',
'o',
'r',0};
810 static const WCHAR szDirectXVersionLetter[] = {
's',
'z',
'D',
'i',
'r',
'e',
'c',
't',
'X',
'V',
'e',
'r',
's',
'i',
'o',
'n',
'L',
'e',
't',
't',
'e',
'r',0};
811 static const WCHAR bDebug[] = {
'b',
'D',
'e',
'b',
'u',
'g',0};
812 static const WCHAR bNECPC98[] = {
'b',
'N',
'E',
'C',
'P',
'C',
'9',
'8',0};
813 static const WCHAR ullPhysicalMemory[] = {
'u',
'l',
'l',
'P',
'h',
'y',
's',
'i',
'c',
'a',
'l',
'M',
'e',
'm',
'o',
'r',
'y',0};
814 static const WCHAR ullUsedPageFile[] = {
'u',
'l',
'l',
'U',
's',
'e',
'd',
'P',
'a',
'g',
'e',
'F',
'i',
'l',
'e',0};
815 static const WCHAR ullAvailPageFile[] = {
'u',
'l',
'l',
'A',
'v',
'a',
'i',
'l',
'P',
'a',
'g',
'e',
'F',
'i',
'l',
'e',0};
816 static const WCHAR szWindowsDir[] = {
's',
'z',
'W',
'i',
'n',
'd',
'o',
'w',
's',
'D',
'i',
'r',0};
817 static const WCHAR szCSDVersion[] = {
's',
'z',
'C',
'S',
'D',
'V',
'e',
'r',
's',
'i',
'o',
'n',0};
818 static const WCHAR szDirectXVersionEnglish[] = {
's',
'z',
'D',
'i',
'r',
'e',
'c',
't',
'X',
'V',
'e',
'r',
's',
'i',
'o',
'n',
'E',
'n',
'g',
'l',
'i',
's',
'h',0};
819 static const WCHAR szDirectXVersionLongEnglish[] = {
's',
'z',
'D',
'i',
'r',
'e',
'c',
't',
'X',
'V',
'e',
'r',
's',
'i',
'o',
'n',
'L',
'o',
'n',
'g',
'E',
'n',
'g',
'l',
'i',
's',
'h',0};
820 static const WCHAR bNetMeetingRunning[] = {
'b',
'N',
'e',
't',
'M',
'e',
'e',
't',
'i',
'n',
'g',
'R',
'u',
'n',
'n',
'i',
'n',
'g',0};
821 static const WCHAR szMachineNameLocalized[] = {
's',
'z',
'M',
'a',
'c',
'h',
'i',
'n',
'e',
'N',
'a',
'm',
'e',
'L',
'o',
'c',
'a',
'l',
'i',
'z',
'e',
'd',0};
822 static const WCHAR szMachineNameEnglish[] = {
's',
'z',
'M',
'a',
'c',
'h',
'i',
'n',
'e',
'N',
'a',
'm',
'e',
'E',
'n',
'g',
'l',
'i',
's',
'h',0};
823 static const WCHAR szLanguagesLocalized[] = {
's',
'z',
'L',
'a',
'n',
'g',
'u',
'a',
'g',
'e',
's',
'L',
'o',
'c',
'a',
'l',
'i',
'z',
'e',
'd',0};
824 static const WCHAR szLanguagesEnglish[] = {
's',
'z',
'L',
'a',
'n',
'g',
'u',
'a',
'g',
'e',
's',
'E',
'n',
'g',
'l',
'i',
's',
'h',0};
825 static const WCHAR szTimeLocalized[] = {
's',
'z',
'T',
'i',
'm',
'e',
'L',
'o',
'c',
'a',
'l',
'i',
'z',
'e',
'd',0};
826 static const WCHAR szTimeEnglish[] = {
's',
'z',
'T',
'i',
'm',
'e',
'E',
'n',
'g',
'l',
'i',
's',
'h',0};
827 static const WCHAR szPhysicalMemoryEnglish[] = {
's',
'z',
'P',
'h',
'y',
's',
'i',
'c',
'a',
'l',
'M',
'e',
'm',
'o',
'r',
'y',
'E',
'n',
'g',
'l',
'i',
's',
'h',0};
828 static const WCHAR szPageFileLocalized[] = {
's',
'z',
'P',
'a',
'g',
'e',
'F',
'i',
'l',
'e',
'L',
'o',
'c',
'a',
'l',
'i',
'z',
'e',
'd',0};
829 static const WCHAR szPageFileEnglish[] = {
's',
'z',
'P',
'a',
'g',
'e',
'F',
'i',
'l',
'e',
'E',
'n',
'g',
'l',
'i',
's',
'h',0};
830 static const WCHAR szOSLocalized[] = {
's',
'z',
'O',
'S',
'L',
'o',
'c',
'a',
'l',
'i',
'z',
'e',
'd',0};
831 static const WCHAR szOSExLocalized[] = {
's',
'z',
'O',
'S',
'E',
'x',
'L',
'o',
'c',
'a',
'l',
'i',
'z',
'e',
'd',0};
832 static const WCHAR szOSExLongLocalized[] = {
's',
'z',
'O',
'S',
'E',
'x',
'L',
'o',
'n',
'g',
'L',
'o',
'c',
'a',
'l',
'i',
'z',
'e',
'd',0};
833 static const WCHAR szOSEnglish[] = {
's',
'z',
'O',
'S',
'E',
'n',
'g',
'l',
'i',
's',
'h',0};
834 static const WCHAR szOSExEnglish[] = {
's',
'z',
'O',
'S',
'E',
'x',
'E',
'n',
'g',
'l',
'i',
's',
'h',0};
835 static const WCHAR szOSExLongEnglish[] = {
's',
'z',
'O',
'S',
'E',
'x',
'L',
'o',
'n',
'g',
'E',
'n',
'g',
'l',
'i',
's',
'h',0};
836 static const WCHAR szProcessorEnglish[] = {
's',
'z',
'P',
'r',
'o',
'c',
'e',
's',
's',
'o',
'r',
'E',
'n',
'g',
'l',
'i',
's',
'h',0};
840 {dwOSMajorVersion,
VT_UI4},
841 {dwOSMinorVersion,
VT_UI4},
842 {dwOSBuildNumber,
VT_UI4},
844 {dwDirectXVersionMajor,
VT_UI4},
845 {dwDirectXVersionMinor,
VT_UI4},
846 {szDirectXVersionLetter,
VT_BSTR},
854 {szDirectXVersionEnglish,
VT_BSTR},
855 {szDirectXVersionLongEnglish,
VT_BSTR},
857 {szMachineNameLocalized,
VT_BSTR},
858 {szMachineNameEnglish,
VT_BSTR},
859 {szLanguagesLocalized,
VT_BSTR},
863 {szPhysicalMemoryEnglish,
VT_BSTR},
864 {szPageFileLocalized,
VT_BSTR},
868 {szOSExLongLocalized,
VT_BSTR},
875 IDxDiagContainer *
container, *container2;
881 skip(
"Unable to create the root IDxDiagContainer\n");
886 ok(
hr ==
E_INVALIDARG,
"Expected IDxDiagContainer::GetChildContainer to return E_INVALIDARG, got 0x%08x\n",
hr);
889 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
893 trace(
"Testing container DxDiag_SystemInfo\n");
898 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
899 ok(container2 !=
NULL,
"Expected container2 != NULL\n");
900 ok(container2 !=
container,
"Expected container != container2\n");
912 static const WCHAR szDescription[] = {
's',
'z',
'D',
'e',
's',
'c',
'r',
'i',
'p',
't',
'i',
'o',
'n',0};
913 static const WCHAR szDeviceName[] = {
's',
'z',
'D',
'e',
'v',
'i',
'c',
'e',
'N',
'a',
'm',
'e',0};
914 static const WCHAR szKeyDeviceID[] = {
's',
'z',
'K',
'e',
'y',
'D',
'e',
'v',
'i',
'c',
'e',
'I',
'D',0};
915 static const WCHAR szKeyDeviceKey[] = {
's',
'z',
'K',
'e',
'y',
'D',
'e',
'v',
'i',
'c',
'e',
'K',
'e',
'y',0};
916 static const WCHAR szVendorId[] = {
's',
'z',
'V',
'e',
'n',
'd',
'o',
'r',
'I',
'd',0};
917 static const WCHAR szDeviceId[] = {
's',
'z',
'D',
'e',
'v',
'i',
'c',
'e',
'I',
'd',0};
918 static const WCHAR szDeviceIdentifier[] = {
's',
'z',
'D',
'e',
'v',
'i',
'c',
'e',
'I',
'd',
'e',
'n',
't',
'i',
'f',
'i',
'e',
'r',0};
919 static const WCHAR dwWidth[] = {
'd',
'w',
'W',
'i',
'd',
't',
'h',0};
920 static const WCHAR dwHeight[] = {
'd',
'w',
'H',
'e',
'i',
'g',
'h',
't',0};
921 static const WCHAR dwBpp[] = {
'd',
'w',
'B',
'p',
'p',0};
922 static const WCHAR szDisplayMemoryLocalized[] = {
's',
'z',
'D',
'i',
's',
'p',
'l',
'a',
'y',
'M',
'e',
'm',
'o',
'r',
'y',
'L',
'o',
'c',
'a',
'l',
'i',
'z',
'e',
'd',0};
923 static const WCHAR szDisplayMemoryEnglish[] = {
's',
'z',
'D',
'i',
's',
'p',
'l',
'a',
'y',
'M',
'e',
'm',
'o',
'r',
'y',
'E',
'n',
'g',
'l',
'i',
's',
'h',0};
924 static const WCHAR szDriverName[] = {
's',
'z',
'D',
'r',
'i',
'v',
'e',
'r',
'N',
'a',
'm',
'e',0};
925 static const WCHAR szDriverVersion[] = {
's',
'z',
'D',
'r',
'i',
'v',
'e',
'r',
'V',
'e',
'r',
's',
'i',
'o',
'n',0};
926 static const WCHAR szSubSysId[] = {
's',
'z',
'S',
'u',
'b',
'S',
'y',
's',
'I',
'd',0};
927 static const WCHAR szRevisionId[] = {
's',
'z',
'R',
'e',
'v',
'i',
's',
'i',
'o',
'n',
'I',
'd',0};
928 static const WCHAR dwRefreshRate[] = {
'd',
'w',
'R',
'e',
'f',
'r',
'e',
's',
'h',
'R',
'a',
't',
'e',0};
929 static const WCHAR szManufacturer[] = {
's',
'z',
'M',
'a',
'n',
'u',
'f',
'a',
'c',
't',
'u',
'r',
'e',
'r',0};
930 static const WCHAR b3DAccelerationExists[] = {
'b',
'3',
'D',
'A',
'c',
'c',
'e',
'l',
'e',
'r',
'a',
't',
'i',
'o',
'n',
'E',
'x',
'i',
's',
't',
's',0};
931 static const WCHAR b3DAccelerationEnabled[] = {
'b',
'3',
'D',
'A',
'c',
'c',
'e',
'l',
'e',
'r',
'a',
't',
'i',
'o',
'n',
'E',
'n',
'a',
'b',
'l',
'e',
'd',0};
932 static const WCHAR bDDAccelerationEnabled[] = {
'b',
'D',
'D',
'A',
'c',
'c',
'e',
'l',
'e',
'r',
'a',
't',
'i',
'o',
'n',
'E',
'n',
'a',
'b',
'l',
'e',
'd',0};
933 static const WCHAR iAdapter[] = {
'i',
'A',
'd',
'a',
'p',
't',
'e',
'r',0};
955 {b3DAccelerationExists,
VT_BOOL},
956 {b3DAccelerationEnabled,
VT_BOOL},
957 {bDDAccelerationEnabled,
VT_BOOL},
961 IDxDiagContainer *display_cont =
NULL;
967 skip(
"Unable to create the root IDxDiagContainer\n");
972 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
978 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfProps to return S_OK, got 0x%08x\n",
hr);
980 ok(
count == 0,
"Expected count to be 0, got %u\n",
count);
983 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfChildContainers to return S_OK, got 0x%08x\n",
hr);
990 WCHAR child_container[256];
991 IDxDiagContainer *
child;
994 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::EnumChildContainerNames to return S_OK, got 0x%08x\n",
hr);
997 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
1015 static const WCHAR szDescription[] = {
's',
'z',
'D',
'e',
's',
'c',
'r',
'i',
'p',
't',
'i',
'o',
'n',0};
1016 static const WCHAR szGuidDeviceID[] = {
's',
'z',
'G',
'u',
'i',
'd',
'D',
'e',
'v',
'i',
'c',
'e',
'I',
'D',0};
1017 static const WCHAR szDriverPath[] = {
's',
'z',
'D',
'r',
'i',
'v',
'e',
'r',
'P',
'a',
't',
'h',0};
1018 static const WCHAR szDriverName[] = {
's',
'z',
'D',
'r',
'i',
'v',
'e',
'r',
'N',
'a',
'm',
'e',0};
1029 IDxDiagContainer *sound_cont =
NULL;
1035 skip(
"Unable to create the root IDxDiagContainer\n");
1040 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
1046 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfProps to return S_OK, got 0x%08x\n",
hr);
1048 ok(
count == 0,
"Expected count to be 0, got %u\n",
count);
1051 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfChildContainers to return S_OK, got 0x%08x\n",
hr);
1058 WCHAR child_container[256];
1059 IDxDiagContainer *
child, *child2;
1062 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::EnumChildContainerNames to return S_OK, got 0x%08x\n",
hr);
1065 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
1075 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
1076 ok(child2 !=
NULL,
"Expected child2 != NULL\n");
1077 ok(child2 !=
child,
"Expected child != child2\n");
1091 static const WCHAR szDescription[] = {
's',
'z',
'D',
'e',
's',
'c',
'r',
'i',
'p',
't',
'i',
'o',
'n',0};
1092 static const WCHAR szGuidDeviceID[] = {
's',
'z',
'G',
'u',
'i',
'd',
'D',
'e',
'v',
'i',
'c',
'e',
'I',
'D',0};
1093 static const WCHAR szDriverPath[] = {
's',
'z',
'D',
'r',
'i',
'v',
'e',
'r',
'P',
'a',
't',
'h',0};
1094 static const WCHAR szDriverName[] = {
's',
'z',
'D',
'r',
'i',
'v',
'e',
'r',
'N',
'a',
'm',
'e',0};
1104 IDxDiagContainer *sound_cont =
NULL;
1110 skip(
"Unable to create the root IDxDiagContainer\n");
1115 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
1121 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfProps to return S_OK, got 0x%08x\n",
hr);
1123 ok(
count == 0,
"Expected count to be 0, got %u\n",
count);
1126 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfChildContainers to return S_OK, got 0x%08x\n",
hr);
1133 WCHAR child_container[256];
1134 IDxDiagContainer *
child;
1137 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::EnumChildContainerNames to return S_OK, got 0x%08x\n",
hr);
1140 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
static struct sockaddr_in sa
static const WCHAR dwBpp[]
static const WCHAR szDisplayMemoryLocalized[]
static const WCHAR dwWidth[]
static const WCHAR szKeyDeviceID[]
static const WCHAR szRevisionId[]
static const WCHAR dwHeight[]
static const WCHAR dwRefreshRate[]
static const WCHAR szDisplayMemoryEnglish[]
static const WCHAR szSubSysId[]
static const WCHAR szDriverVersion[]
static const WCHAR szKeyDeviceKey[]
static const WCHAR szVendorId[]
static const WCHAR szDeviceName[]
static const WCHAR szManufacturer[]
static const WCHAR szDescription[]
static const WCHAR szDeviceId[]
static const WCHAR iAdapter[]
static const WCHAR szDeviceIdentifier[]
static const WCHAR szDriverName[]
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, IUnknown *outer, DWORD cls_context, REFIID riid, void **obj)
static const WCHAR empty[1]
#define WideCharToMultiByte
#define MultiByteToWideChar
static void cleanup(void)
int WINAPI lstrcmpW(LPCWSTR str1, LPCWSTR str2)
static REFPROPVARIANT PROPVAR_CHANGE_FLAGS VARTYPE vt
_ACRTIMP int __cdecl memcmp(const void *, const void *, size_t)
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
HRESULT WINAPI SafeArrayUnlock(SAFEARRAY *psa)
HRESULT WINAPI SafeArrayLock(SAFEARRAY *psa)
HRESULT WINAPI SafeArrayDestroy(SAFEARRAY *psa)
SAFEARRAY *WINAPI SafeArrayCreate(VARTYPE vt, UINT cDims, SAFEARRAYBOUND *rgsabound)
static const char * debugstr_variant(const VARIANT *var)
#define IDxDiagContainer_Release(p)
#define IDxDiagProvider_Release(p)
#define IDxDiagContainer_GetProp(p, a, b)
#define IDxDiagContainer_GetChildContainer(p, a, b)
#define IDxDiagContainer_GetNumberOfProps(p, a)
#define IDxDiagContainer_AddRef(p)
#define IDxDiagProvider_GetRootContainer(p, a)
#define DXDIAG_DX9_SDK_VERSION
#define IDxDiagContainer_GetNumberOfChildContainers(p, a)
#define IDxDiagProvider_Initialize(p, a, b)
#define DXDIAG_E_INSUFFICIENT_BUFFER
#define IDxDiagContainer_EnumChildContainerNames(p, a, b, c)
GLuint GLuint GLsizei count
GLenum const GLfloat * params
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static const WCHAR emptyW[]
static const WCHAR testW[]
#define memcpy(s1, s2, n)
static const WCHAR DxDiag_SystemInfo[]
static void test_DxDiag_SoundDevices(void)
static void test_DxDiag_SystemInfo(void)
static void test_dot_parsing(void)
static void test_root_children(void)
static const WCHAR DxDiag_SoundDevices[]
static const WCHAR DxDiag_DisplayDevices[]
static const WCHAR DxDiag_SoundCaptureDevices[]
static void test_GetChildContainer(void)
static void test_container_properties(IDxDiagContainer *container, const struct property_test *property_tests, size_t len)
static void test_GetProp(void)
static IDxDiagContainer * pddc
static void test_GetNumberOfChildContainers(void)
static IDxDiagProvider * pddp
static void test_EnumChildContainerNames(void)
static void test_DxDiag_SoundCaptureDevices(void)
static BOOL create_root_IDxDiagContainer(void)
static void test_GetNumberOfProps(void)
static void test_DxDiag_DisplayDevices(void)
static void test_EnumPropNames(void)
HRESULT WINAPI DECLSPEC_HOTPATCH VariantClear(VARIANTARG *pVarg)
void WINAPI VariantInit(VARIANTARG *pVarg)
#define IDxDiagContainer_EnumPropNames(p, a, b, c)