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};
106 skip(
"Unable to create the root IDxDiagContainer\n");
112 "Expected IDxDiagContainer::GetNumberOfChildContainers to return E_INVALIDARG, got 0x%08x\n",
hr);
116 "Expected IDxDiagContainer::GetNumberOfChildContainers to return S_OK, got 0x%08x\n",
hr);
118 ok(
count != 0,
"Expected the number of child containers for the root container to be non-zero\n");
131 skip(
"Unable to create the root IDxDiagContainer\n");
136 ok(
hr ==
E_INVALIDARG,
"Expected IDxDiagContainer::GetNumberOfProps to return E_INVALIDARG, got 0x%08x\n",
hr);
139 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfProps to return S_OK, got 0x%08x\n",
hr);
141 ok(
count == 0,
"Expected the number of properties for the root container to be zero\n");
152 static const WCHAR testW[] = {
't',
'e',
's',
't',0};
153 static const WCHAR zerotestW[] = {0,
'e',
's',
't',0};
157 skip(
"Unable to create the root IDxDiagContainer\n");
164 "Expected IDxDiagContainer::EnumChildContainerNames to return E_INVALIDARG, got 0x%08x\n",
hr);
168 "Expected IDxDiagContainer::EnumChildContainerNames to return E_INVALIDARG, got 0x%08x\n",
hr);
174 "Expected IDxDiagContainer::EnumChildContainerNames to return E_INVALIDARG, got 0x%08x\n",
hr);
181 "Expected IDxDiagContainer::EnumChildContainerNames to return E_INVALIDARG, got 0x%08x\n",
hr);
188 "Expected IDxDiagContainer::EnumChildContainerNames to return E_INVALIDARG, got 0x%08x\n",
hr);
193 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfChildContainers to return S_OK, got 0x%08x\n",
hr);
196 skip(
"IDxDiagContainer::GetNumberOfChildContainers failed\n");
200 trace(
"Starting child container enumeration of the root container:\n");
208 DWORD buffersize = 1;
215 "Expected IDxDiagContainer::EnumChildContainerNames to return E_INVALIDARG "
216 "on the last index %d, got 0x%08x\n",
index,
hr);
231 "Expected IDxDiagContainer::EnumChildContainerNames to return S_OK, got 0x%08x\n",
hr);
238 for (buffersize = 2; buffersize <= 256; buffersize++)
250 "Expected IDxDiagContainer::EnumChildContainerNames to return S_OK, "
251 "got hr = 0x%08x, buffersize = %d\n",
hr, buffersize);
257 ok(0,
"IDxDiagContainer::EnumChildContainerNames unexpectedly returned 0x%08x\n",
hr);
271 IDxDiagContainer *
child;
275 skip(
"Unable to create the root IDxDiagContainer\n");
282 "Expected IDxDiagContainer::GetChildContainer to return E_INVALIDARG, got 0x%08x\n",
hr);
284 child = (
void*)0xdeadbeef;
287 "Expected IDxDiagContainer::GetChildContainer to return E_INVALIDARG, got 0x%08x\n",
hr);
288 ok(
child == (
void*)0xdeadbeef,
"Expected output pointer to be unchanged, got %p\n",
child);
292 "Expected IDxDiagContainer::GetChildContainer to return E_INVALIDARG, got 0x%08x\n",
hr);
294 child = (
void*)0xdeadbeef;
297 "Expected IDxDiagContainer::GetChildContainer to return E_INVALIDARG, got 0x%08x\n",
hr);
303 "Expected IDxDiagContainer::EnumChildContainerNames to return S_OK, got 0x%08x\n",
hr);
306 skip(
"IDxDiagContainer::EnumChildContainerNames failed\n");
310 child = (
void*)0xdeadbeef;
313 "Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
318 IDxDiagContainer *
ptr;
324 "Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
326 ok(
ptr !=
child,
"Expected the two pointers (%p vs. %p) to be unequal\n",
child,
ptr);
340 WCHAR containerbufW[256] = {0}, childbufW[256] = {0};
358 skip(
"Unable to create the root IDxDiagContainer\n");
364 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfChildContainers to return S_OK, got 0x%08x\n",
hr);
367 skip(
"IDxDiagContainer::GetNumberOfChildContainers failed\n");
373 IDxDiagContainer *
child;
376 ok(
hr ==
S_OK,
"Expected IDxDiagContainer_EnumChildContainerNames to return S_OK, got 0x%08x\n",
hr);
379 skip(
"IDxDiagContainer::EnumChildContainerNames failed\n");
384 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
390 "Expected IDxDiagContainer::EnumChildContainerNames to return S_OK or E_INVALIDARG, got 0x%08x\n",
hr);
398 if (!*containerbufW || !*childbufW)
400 skip(
"Unable to find a suitable container\n");
404 trace(
"Testing IDxDiagContainer::GetChildContainer dot parsing with container %s and child container %s.\n",
409 IDxDiagContainer *
child;
410 char containerbufA[256];
412 char dotbufferA[255 + 255 + 3 + 1];
413 WCHAR dotbufferW[255 + 255 + 3 + 1];
417 sprintf(dotbufferA, test_strings[
i].
format, containerbufA, childbufA);
423 "Expected IDxDiagContainer::GetChildContainer to return 0x%08x for %s, got 0x%08x\n",
440 static const WCHAR testW[] = {
't',
'e',
's',
't',0};
444 skip(
"Unable to create the root IDxDiagContainer\n");
450 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfChildContainers to return S_OK, got 0x%08x\n",
hr);
453 skip(
"IDxDiagContainer::GetNumberOfChildContainers failed\n");
460 ok(
hr ==
S_OK,
"Expected IDxDiagContainer_EnumChildContainerNames to return S_OK, got 0x%08x\n",
hr);
463 skip(
"IDxDiagContainer::EnumChildContainerNames failed\n");
468 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
473 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfProps to return S_OK, got 0x%08x\n",
hr);
487 skip(
"Unable to find a container with non-zero property count\n");
492 ok(
hr ==
E_INVALIDARG,
"Expected IDxDiagContainer::EnumPropNames to return E_INVALIDARG, got 0x%08x\n",
hr);
496 ok(
hr ==
E_INVALIDARG,
"Expected IDxDiagContainer::EnumPropNames to return E_INVALIDARG, got 0x%08x\n",
hr);
502 ok(
hr ==
E_INVALIDARG,
"Expected IDxDiagContainer::EnumPropNames to return E_INVALIDARG, got 0x%08x\n",
hr);
514 DWORD buffersize = 1;
522 "Expected IDxDiagContainer::EnumPropNames to return E_INVALIDARG "
523 "on the last index %d, got 0x%08x\n",
index,
hr);
536 "Expected IDxDiagContainer::EnumPropNames to return S_OK, got 0x%08x\n",
hr);
543 for (buffersize = 2; buffersize <= 256; buffersize++)
555 "Expected IDxDiagContainer::EnumPropNames to return S_OK, "
556 "got hr = 0x%08x, buffersize = %d\n",
hr, buffersize);
562 ok(0,
"IDxDiagContainer::EnumPropNames unexpectedly returned 0x%08x\n",
hr);
585 static const WCHAR testW[] = {
't',
'e',
's',
't',0};
589 skip(
"Unable to create the root IDxDiagContainer\n");
595 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfChildContainers to return S_OK, got 0x%08x\n",
hr);
598 skip(
"IDxDiagContainer::GetNumberOfChildContainers failed\n");
605 ok(
hr ==
S_OK,
"Expected IDxDiagContainer_EnumChildContainerNames to return S_OK, got 0x%08x\n",
hr);
608 skip(
"IDxDiagContainer::EnumChildContainerNames failed\n");
613 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
619 "Expected IDxDiagContainer::EnumPropNames to return S_OK or E_INVALIDARG, got 0x%08x\n",
hr);
633 skip(
"Unable to find a suitable container\n");
638 ok(
hr ==
E_INVALIDARG,
"Expected IDxDiagContainer::GetProp to return E_INVALIDARG, got 0x%08x\n",
hr);
642 ok(
hr ==
E_INVALIDARG,
"Expected IDxDiagContainer::GetProp to return E_INVALIDARG, got 0x%08x\n",
hr);
643 ok(
V_VT(&
var) == 0xdead,
"Expected the variant to be untouched, got %u\n",
V_VT(&
var));
646 ok(
hr ==
E_INVALIDARG,
"Expected IDxDiagContainer::GetProp to return E_INVALIDARG, got 0x%08x\n",
hr);
650 ok(
hr ==
E_INVALIDARG,
"Expected IDxDiagContainer::GetProp to return E_INVALIDARG, got 0x%08x\n",
hr);
651 ok(
V_VT(&
var) == 0xdead,
"Expected the variant to be untouched, got %u\n",
V_VT(&
var));
654 ok(
hr ==
E_INVALIDARG,
"Expected IDxDiagContainer::GetProp to return E_INVALIDARG, got 0x%08x\n",
hr);
658 ok(
hr ==
E_INVALIDARG,
"Expected IDxDiagContainer::GetProp to return E_INVALIDARG, got 0x%08x\n",
hr);
659 ok(
V_VT(&
var) == 0xdead,
"Expected the variant to be untouched, got %u\n",
V_VT(&
var));
663 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetProp to return S_OK, got 0x%08x\n",
hr);
673 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetProp to return S_OK, got 0x%08x\n",
hr);
674 ok(
V_VT(&
var) != 0xdead,
"Expected the variant to be modified, got %d\n",
V_VT(&
var));
680 ok(
sa !=
NULL,
"Expected SafeArrayCreate to return a valid pointer\n");
686 ok(
hr ==
S_OK,
"Expected SafeArrayLock to return S_OK, got 0x%08x\n",
hr);
689 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetProp to return S_OK, got 0x%08x\n",
hr);
693 ok(
hr ==
S_OK,
"Expected SafeArrayUnlock to return S_OK, got 0x%08x\n",
hr);
695 ok(
hr ==
S_OK,
"Expected SafeArrayDestroy to return S_OK, got 0x%08x\n",
hr);
703 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetProp to return S_OK, got 0x%08x\n",
hr);
708 ok(
ref == 2,
"Expected reference count to be 2, got %u\n",
ref);
719 static const WCHAR DxDiag_DirectSound[] = {
'D',
'x',
'D',
'i',
'a',
'g',
'_',
'D',
'i',
'r',
'e',
'c',
't',
'S',
'o',
'u',
'n',
'd',0};
720 static const WCHAR DxDiag_DirectMusic[] = {
'D',
'x',
'D',
'i',
'a',
'g',
'_',
'D',
'i',
'r',
'e',
'c',
't',
'M',
'u',
's',
'i',
'c',0};
721 static const WCHAR DxDiag_DirectInput[] = {
'D',
'x',
'D',
'i',
'a',
'g',
'_',
'D',
'i',
'r',
'e',
'c',
't',
'I',
'n',
'p',
'u',
't',0};
722 static const WCHAR DxDiag_DirectPlay[] = {
'D',
'x',
'D',
'i',
'a',
'g',
'_',
'D',
'i',
'r',
'e',
'c',
't',
'P',
'l',
'a',
'y',0};
723 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};
724 static const WCHAR DxDiag_DirectXFiles[] = {
'D',
'x',
'D',
'i',
'a',
'g',
'_',
'D',
'i',
'r',
'e',
'c',
't',
'X',
'F',
'i',
'l',
'e',
's',0};
725 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};
726 static const WCHAR DxDiag_LogicalDisks[] = {
'D',
'x',
'D',
'i',
'a',
'g',
'_',
'L',
'o',
'g',
'i',
'c',
'a',
'l',
'D',
'i',
's',
'k',
's',0};
731 static const WCHAR *root_children[] = {
733 DxDiag_DirectMusic, DxDiag_DirectInput, DxDiag_DirectPlay,
734 DxDiag_SystemDevices, DxDiag_DirectXFiles, DxDiag_DirectShowFilters,
740 skip(
"Unable to create the root IDxDiagContainer\n");
746 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfChildContainers to return S_OK, got 0x%08x\n",
hr);
749 skip(
"IDxDiagContainer::GetNumberOfChildContainers failed\n");
754 "Got unexpected count %u for the number of child containers\n",
count);
758 skip(
"Received unexpected number of child containers\n");
770 "Expected IDxDiagContainer::EnumChildContainerNames to return "
771 "E_INVALIDARG on the last index %u\n",
count);
777 "Expected container %s for index %u, got %s\n",
782 ok(0,
"IDxDiagContainer::EnumChildContainerNames unexpectedly returned 0x%08x\n",
hr);
802 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfProps to return S_OK, got 0x%08x\n",
hr);
804 ok(prop_count == 0,
"Expected container property count to be zero, got %u\n", prop_count);
817 ok(
hr ==
S_OK,
"[%d] Expected IDxDiagContainer::GetProp to return S_OK for %s, got 0x%08x\n",
823 "[%d] Expected variant type %d, got %d\n",
i, property_tests[
i].
vt,
V_VT(&
var));
833 static const WCHAR dwOSMajorVersion[] = {
'd',
'w',
'O',
'S',
'M',
'a',
'j',
'o',
'r',
'V',
'e',
'r',
's',
'i',
'o',
'n',0};
834 static const WCHAR dwOSMinorVersion[] = {
'd',
'w',
'O',
'S',
'M',
'i',
'n',
'o',
'r',
'V',
'e',
'r',
's',
'i',
'o',
'n',0};
835 static const WCHAR dwOSBuildNumber[] = {
'd',
'w',
'O',
'S',
'B',
'u',
'i',
'l',
'd',
'N',
'u',
'm',
'b',
'e',
'r',0};
836 static const WCHAR dwOSPlatformID[] = {
'd',
'w',
'O',
'S',
'P',
'l',
'a',
't',
'f',
'o',
'r',
'm',
'I',
'D',0};
837 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};
838 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};
839 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};
840 static const WCHAR bDebug[] = {
'b',
'D',
'e',
'b',
'u',
'g',0};
841 static const WCHAR bNECPC98[] = {
'b',
'N',
'E',
'C',
'P',
'C',
'9',
'8',0};
842 static const WCHAR ullPhysicalMemory[] = {
'u',
'l',
'l',
'P',
'h',
'y',
's',
'i',
'c',
'a',
'l',
'M',
'e',
'm',
'o',
'r',
'y',0};
843 static const WCHAR ullUsedPageFile[] = {
'u',
'l',
'l',
'U',
's',
'e',
'd',
'P',
'a',
'g',
'e',
'F',
'i',
'l',
'e',0};
844 static const WCHAR ullAvailPageFile[] = {
'u',
'l',
'l',
'A',
'v',
'a',
'i',
'l',
'P',
'a',
'g',
'e',
'F',
'i',
'l',
'e',0};
845 static const WCHAR szWindowsDir[] = {
's',
'z',
'W',
'i',
'n',
'd',
'o',
'w',
's',
'D',
'i',
'r',0};
846 static const WCHAR szCSDVersion[] = {
's',
'z',
'C',
'S',
'D',
'V',
'e',
'r',
's',
'i',
'o',
'n',0};
847 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};
848 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};
849 static const WCHAR bNetMeetingRunning[] = {
'b',
'N',
'e',
't',
'M',
'e',
'e',
't',
'i',
'n',
'g',
'R',
'u',
'n',
'n',
'i',
'n',
'g',0};
850 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};
851 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};
852 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};
853 static const WCHAR szLanguagesEnglish[] = {
's',
'z',
'L',
'a',
'n',
'g',
'u',
'a',
'g',
'e',
's',
'E',
'n',
'g',
'l',
'i',
's',
'h',0};
854 static const WCHAR szTimeLocalized[] = {
's',
'z',
'T',
'i',
'm',
'e',
'L',
'o',
'c',
'a',
'l',
'i',
'z',
'e',
'd',0};
855 static const WCHAR szTimeEnglish[] = {
's',
'z',
'T',
'i',
'm',
'e',
'E',
'n',
'g',
'l',
'i',
's',
'h',0};
856 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};
857 static const WCHAR szPageFileLocalized[] = {
's',
'z',
'P',
'a',
'g',
'e',
'F',
'i',
'l',
'e',
'L',
'o',
'c',
'a',
'l',
'i',
'z',
'e',
'd',0};
858 static const WCHAR szPageFileEnglish[] = {
's',
'z',
'P',
'a',
'g',
'e',
'F',
'i',
'l',
'e',
'E',
'n',
'g',
'l',
'i',
's',
'h',0};
859 static const WCHAR szOSLocalized[] = {
's',
'z',
'O',
'S',
'L',
'o',
'c',
'a',
'l',
'i',
'z',
'e',
'd',0};
860 static const WCHAR szOSExLocalized[] = {
's',
'z',
'O',
'S',
'E',
'x',
'L',
'o',
'c',
'a',
'l',
'i',
'z',
'e',
'd',0};
861 static const WCHAR szOSExLongLocalized[] = {
's',
'z',
'O',
'S',
'E',
'x',
'L',
'o',
'n',
'g',
'L',
'o',
'c',
'a',
'l',
'i',
'z',
'e',
'd',0};
862 static const WCHAR szOSEnglish[] = {
's',
'z',
'O',
'S',
'E',
'n',
'g',
'l',
'i',
's',
'h',0};
863 static const WCHAR szOSExEnglish[] = {
's',
'z',
'O',
'S',
'E',
'x',
'E',
'n',
'g',
'l',
'i',
's',
'h',0};
864 static const WCHAR szOSExLongEnglish[] = {
's',
'z',
'O',
'S',
'E',
'x',
'L',
'o',
'n',
'g',
'E',
'n',
'g',
'l',
'i',
's',
'h',0};
865 static const WCHAR szProcessorEnglish[] = {
's',
'z',
'P',
'r',
'o',
'c',
'e',
's',
's',
'o',
'r',
'E',
'n',
'g',
'l',
'i',
's',
'h',0};
869 {dwOSMajorVersion,
VT_UI4},
870 {dwOSMinorVersion,
VT_UI4},
871 {dwOSBuildNumber,
VT_UI4},
873 {dwDirectXVersionMajor,
VT_UI4},
874 {dwDirectXVersionMinor,
VT_UI4},
875 {szDirectXVersionLetter,
VT_BSTR},
883 {szDirectXVersionEnglish,
VT_BSTR},
884 {szDirectXVersionLongEnglish,
VT_BSTR},
886 {szMachineNameLocalized,
VT_BSTR},
887 {szMachineNameEnglish,
VT_BSTR},
888 {szLanguagesLocalized,
VT_BSTR},
892 {szPhysicalMemoryEnglish,
VT_BSTR},
893 {szPageFileLocalized,
VT_BSTR},
897 {szOSExLongLocalized,
VT_BSTR},
904 IDxDiagContainer *
container, *container2;
910 skip(
"Unable to create the root IDxDiagContainer\n");
915 ok(
hr ==
E_INVALIDARG,
"Expected IDxDiagContainer::GetChildContainer to return E_INVALIDARG, got 0x%08x\n",
hr);
918 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
922 trace(
"Testing container DxDiag_SystemInfo\n");
927 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
928 ok(container2 !=
NULL,
"Expected container2 != NULL\n");
929 ok(container2 !=
container,
"Expected container != container2\n");
941 static const WCHAR szDescription[] = {
's',
'z',
'D',
'e',
's',
'c',
'r',
'i',
'p',
't',
'i',
'o',
'n',0};
942 static const WCHAR szDeviceName[] = {
's',
'z',
'D',
'e',
'v',
'i',
'c',
'e',
'N',
'a',
'm',
'e',0};
943 static const WCHAR szKeyDeviceID[] = {
's',
'z',
'K',
'e',
'y',
'D',
'e',
'v',
'i',
'c',
'e',
'I',
'D',0};
944 static const WCHAR szKeyDeviceKey[] = {
's',
'z',
'K',
'e',
'y',
'D',
'e',
'v',
'i',
'c',
'e',
'K',
'e',
'y',0};
945 static const WCHAR szVendorId[] = {
's',
'z',
'V',
'e',
'n',
'd',
'o',
'r',
'I',
'd',0};
946 static const WCHAR szDeviceId[] = {
's',
'z',
'D',
'e',
'v',
'i',
'c',
'e',
'I',
'd',0};
947 static const WCHAR szDeviceIdentifier[] = {
's',
'z',
'D',
'e',
'v',
'i',
'c',
'e',
'I',
'd',
'e',
'n',
't',
'i',
'f',
'i',
'e',
'r',0};
948 static const WCHAR dwWidth[] = {
'd',
'w',
'W',
'i',
'd',
't',
'h',0};
949 static const WCHAR dwHeight[] = {
'd',
'w',
'H',
'e',
'i',
'g',
'h',
't',0};
950 static const WCHAR dwBpp[] = {
'd',
'w',
'B',
'p',
'p',0};
951 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};
952 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};
953 static const WCHAR szDriverName[] = {
's',
'z',
'D',
'r',
'i',
'v',
'e',
'r',
'N',
'a',
'm',
'e',0};
954 static const WCHAR szDriverVersion[] = {
's',
'z',
'D',
'r',
'i',
'v',
'e',
'r',
'V',
'e',
'r',
's',
'i',
'o',
'n',0};
955 static const WCHAR szSubSysId[] = {
's',
'z',
'S',
'u',
'b',
'S',
'y',
's',
'I',
'd',0};
956 static const WCHAR szRevisionId[] = {
's',
'z',
'R',
'e',
'v',
'i',
's',
'i',
'o',
'n',
'I',
'd',0};
957 static const WCHAR dwRefreshRate[] = {
'd',
'w',
'R',
'e',
'f',
'r',
'e',
's',
'h',
'R',
'a',
't',
'e',0};
958 static const WCHAR szManufacturer[] = {
's',
'z',
'M',
'a',
'n',
'u',
'f',
'a',
'c',
't',
'u',
'r',
'e',
'r',0};
959 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};
960 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};
961 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};
962 static const WCHAR iAdapter[] = {
'i',
'A',
'd',
'a',
'p',
't',
'e',
'r',0};
984 {b3DAccelerationExists,
VT_BOOL},
985 {b3DAccelerationEnabled,
VT_BOOL},
986 {bDDAccelerationEnabled,
VT_BOOL},
990 IDxDiagContainer *display_cont =
NULL;
996 skip(
"Unable to create the root IDxDiagContainer\n");
1001 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
1007 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfProps to return S_OK, got 0x%08x\n",
hr);
1009 ok(
count == 0,
"Expected count to be 0, got %u\n",
count);
1012 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfChildContainers to return S_OK, got 0x%08x\n",
hr);
1019 WCHAR child_container[256];
1020 IDxDiagContainer *
child;
1023 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::EnumChildContainerNames to return S_OK, got 0x%08x\n",
hr);
1026 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
1044 static const WCHAR szDescription[] = {
's',
'z',
'D',
'e',
's',
'c',
'r',
'i',
'p',
't',
'i',
'o',
'n',0};
1045 static const WCHAR szGuidDeviceID[] = {
's',
'z',
'G',
'u',
'i',
'd',
'D',
'e',
'v',
'i',
'c',
'e',
'I',
'D',0};
1046 static const WCHAR szDriverPath[] = {
's',
'z',
'D',
'r',
'i',
'v',
'e',
'r',
'P',
'a',
't',
'h',0};
1047 static const WCHAR szDriverName[] = {
's',
'z',
'D',
'r',
'i',
'v',
'e',
'r',
'N',
'a',
'm',
'e',0};
1058 IDxDiagContainer *sound_cont =
NULL;
1064 skip(
"Unable to create the root IDxDiagContainer\n");
1069 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
1075 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfProps to return S_OK, got 0x%08x\n",
hr);
1077 ok(
count == 0,
"Expected count to be 0, got %u\n",
count);
1080 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfChildContainers to return S_OK, got 0x%08x\n",
hr);
1087 WCHAR child_container[256];
1088 IDxDiagContainer *
child, *child2;
1091 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::EnumChildContainerNames to return S_OK, got 0x%08x\n",
hr);
1094 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
1104 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
1105 ok(child2 !=
NULL,
"Expected child2 != NULL\n");
1106 ok(child2 !=
child,
"Expected child != child2\n");
1120 static const WCHAR szDescription[] = {
's',
'z',
'D',
'e',
's',
'c',
'r',
'i',
'p',
't',
'i',
'o',
'n',0};
1121 static const WCHAR szGuidDeviceID[] = {
's',
'z',
'G',
'u',
'i',
'd',
'D',
'e',
'v',
'i',
'c',
'e',
'I',
'D',0};
1122 static const WCHAR szDriverPath[] = {
's',
'z',
'D',
'r',
'i',
'v',
'e',
'r',
'P',
'a',
't',
'h',0};
1123 static const WCHAR szDriverName[] = {
's',
'z',
'D',
'r',
'i',
'v',
'e',
'r',
'N',
'a',
'm',
'e',0};
1133 IDxDiagContainer *sound_cont =
NULL;
1139 skip(
"Unable to create the root IDxDiagContainer\n");
1144 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
1150 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfProps to return S_OK, got 0x%08x\n",
hr);
1152 ok(
count == 0,
"Expected count to be 0, got %u\n",
count);
1155 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetNumberOfChildContainers to return S_OK, got 0x%08x\n",
hr);
1162 WCHAR child_container[256];
1163 IDxDiagContainer *
child;
1166 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::EnumChildContainerNames to return S_OK, got 0x%08x\n",
hr);
1169 ok(
hr ==
S_OK,
"Expected IDxDiagContainer::GetChildContainer to return S_OK, got 0x%08x\n",
hr);
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
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[]
static const WCHAR empty[]
#define WideCharToMultiByte
#define MultiByteToWideChar
static void cleanup(void)
int WINAPI lstrcmpW(LPCWSTR str1, LPCWSTR str2)
static REFPROPVARIANT PROPVAR_CHANGE_FLAGS VARTYPE vt
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
HRESULT WINAPI SafeArrayUnlock(SAFEARRAY *psa)
HRESULT WINAPI SafeArrayLock(SAFEARRAY *psa)
HRESULT WINAPI SafeArrayDestroy(SAFEARRAY *psa)
SAFEARRAY *WINAPI SafeArrayCreate(VARTYPE vt, UINT cDims, SAFEARRAYBOUND *rgsabound)
#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
GLenum GLuint GLenum GLsizei const GLchar * buf
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)
#define sprintf(buf, format,...)
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 const char * debugstr_variant(const VARIANT *var)
static BOOL create_root_IDxDiagContainer(void)
static void test_GetNumberOfProps(void)
static void test_DxDiag_DisplayDevices(void)
static void test_EnumPropNames(void)
#define IDxDiagContainer_EnumPropNames(p, a, b, c)
HRESULT WINAPI DECLSPEC_HOTPATCH VariantClear(VARIANTARG *pVarg)
void WINAPI VariantInit(VARIANTARG *pVarg)