dxdiagn: Implemented ullPhysicalMemory property for DXDiagSystemInfoContainer.
This commit is contained in:
parent
628e4eece3
commit
2a87ef68c5
|
@ -269,6 +269,7 @@ static HRESULT DXDiag_InitDXDiagSystemInfoContainer(IDxDiagContainer* pSubCont)
|
||||||
static const WCHAR szDirectXVersionEnglish_v[] = {'4','.','0','9','.','0','0','0','0','.','0','9','0','4',0};
|
static const WCHAR szDirectXVersionEnglish_v[] = {'4','.','0','9','.','0','0','0','0','.','0','9','0','4',0};
|
||||||
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};
|
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};
|
||||||
static const WCHAR szDirectXVersionLongEnglish_v[] = {'=',' ','"','D','i','r','e','c','t','X',' ','9','.','0','c',' ','(','4','.','0','9','.','0','0','0','0','.','0','9','0','4',')',0};
|
static const WCHAR szDirectXVersionLongEnglish_v[] = {'=',' ','"','D','i','r','e','c','t','X',' ','9','.','0','c',' ','(','4','.','0','9','.','0','0','0','0','.','0','9','0','4',')',0};
|
||||||
|
static const WCHAR ullPhysicalMemory[] = {'u','l','l','P','h','y','s','i','c','a','l','M','e','m','o','r','y',0};
|
||||||
/*static const WCHAR szDxDiagVersion[] = {'s','z','D','x','D','i','a','g','V','e','r','s','i','o','n',0};*/
|
/*static const WCHAR szDxDiagVersion[] = {'s','z','D','x','D','i','a','g','V','e','r','s','i','o','n',0};*/
|
||||||
/*szWindowsDir*/
|
/*szWindowsDir*/
|
||||||
/*szWindowsDir*/
|
/*szWindowsDir*/
|
||||||
|
@ -276,6 +277,7 @@ static HRESULT DXDiag_InitDXDiagSystemInfoContainer(IDxDiagContainer* pSubCont)
|
||||||
/*"dwOSMinorVersion"*/
|
/*"dwOSMinorVersion"*/
|
||||||
/*"dwOSBuildNumber"*/
|
/*"dwOSBuildNumber"*/
|
||||||
/*"dwOSPlatformID"*/
|
/*"dwOSPlatformID"*/
|
||||||
|
MEMORYSTATUSEX msex;
|
||||||
VARIANT v;
|
VARIANT v;
|
||||||
|
|
||||||
V_VT(&v) = VT_UI4; V_UI4(&v) = 9;
|
V_VT(&v) = VT_UI4; V_UI4(&v) = 9;
|
||||||
|
@ -297,6 +299,13 @@ static HRESULT DXDiag_InitDXDiagSystemInfoContainer(IDxDiagContainer* pSubCont)
|
||||||
hr = IDxDiagContainerImpl_AddProp(pSubCont, bDebug, &v);
|
hr = IDxDiagContainerImpl_AddProp(pSubCont, bDebug, &v);
|
||||||
VariantClear(&v);
|
VariantClear(&v);
|
||||||
|
|
||||||
|
msex.dwLength = sizeof(msex);
|
||||||
|
GlobalMemoryStatusEx( &msex );
|
||||||
|
V_VT(&v) = VT_UI8;
|
||||||
|
V_UI8(&v) = msex.ullTotalPhys;
|
||||||
|
hr = IDxDiagContainerImpl_AddProp(pSubCont, ullPhysicalMemory, &v);
|
||||||
|
VariantClear(&v);
|
||||||
|
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue