V
Vegan Fanatic
Guest
been expanding the capability again, but the video card ID now
so now to figure out how many of them
not so sure what is wrong with my call to get that information
std::string getGPUstring(void) { // DirectX 9c, XP SP3 or better
DWORD vendorID = 0;
DWORD deviceID = 0;
std::string temp;
IDirect3D9* direct3D9 = Direct3DCreate9(D3D_SDK_VERSION);
if (0 != direct3D9) {
D3DADAPTER_IDENTIFIER9 adapterIdentifier;
HRESULT hr = direct3D9->GetAdapterIdentifier(0, 0, &adapterIdentifier);
if (S_OK == hr) {
vendorID = adapterIdentifier.VendorId;
deviceID = adapterIdentifier.DeviceId;
temp = adapterIdentifier.Description;
}
//direct3D9->Release();
}
UINT icnt = direct3D9->GetAdapterCount();
if (icnt > 1) { // SLI or CFX
if (vendorID == 0x10DE)
temp += " SLI";
else
temp += " CFX";
}
direct3D9->Release();
return temp;
}
Corsair Carbide 300R with window & Corsair TX850V2 70A@12V
Asus M5A99FX PRO R2.0 CFX/SLI & AMD Phenom II 965 C3 Black Edition @ 4.0 GHz & G.SKILL RipjawsX DDR3-2133 8 GB
GTX 260 SLI 216 core (GT200 Tesla) & Asus PA238QR IPS LED HDMI DP 1080p
ST2000DM001 & Windows 7 x64 Enterprise
Microsoft Wireless Desktop 2000 & Wacom Bamboo CHT470M
Place your rig specifics into your signature like I have, makes it 100x easier to understand!
Hardcore Games, Legendary is the Only Way to Play
Continue reading...
so now to figure out how many of them
not so sure what is wrong with my call to get that information
std::string getGPUstring(void) { // DirectX 9c, XP SP3 or better
DWORD vendorID = 0;
DWORD deviceID = 0;
std::string temp;
IDirect3D9* direct3D9 = Direct3DCreate9(D3D_SDK_VERSION);
if (0 != direct3D9) {
D3DADAPTER_IDENTIFIER9 adapterIdentifier;
HRESULT hr = direct3D9->GetAdapterIdentifier(0, 0, &adapterIdentifier);
if (S_OK == hr) {
vendorID = adapterIdentifier.VendorId;
deviceID = adapterIdentifier.DeviceId;
temp = adapterIdentifier.Description;
}
//direct3D9->Release();
}
UINT icnt = direct3D9->GetAdapterCount();
if (icnt > 1) { // SLI or CFX
if (vendorID == 0x10DE)
temp += " SLI";
else
temp += " CFX";
}
direct3D9->Release();
return temp;
}
Corsair Carbide 300R with window & Corsair TX850V2 70A@12V
Asus M5A99FX PRO R2.0 CFX/SLI & AMD Phenom II 965 C3 Black Edition @ 4.0 GHz & G.SKILL RipjawsX DDR3-2133 8 GB
GTX 260 SLI 216 core (GT200 Tesla) & Asus PA238QR IPS LED HDMI DP 1080p
ST2000DM001 & Windows 7 x64 Enterprise
Microsoft Wireless Desktop 2000 & Wacom Bamboo CHT470M
Place your rig specifics into your signature like I have, makes it 100x easier to understand!
Hardcore Games, Legendary is the Only Way to Play
Continue reading...