Jump to content
  • Advertisement
Sign in to follow this  
thedodgeruk

in directx finding the CPU name?

This topic is 2453 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts



/// video card information
IDXGIFactory* factory;
IDXGIAdapter* adapter;
IDXGIOutput* adapterOutput;
DXGI_ADAPTER_DESC adapterDesc;
unsigned int numModes, i, numerator, denominator, stringLength;
CreateDXGIFactory(__uuidof(IDXGIFactory), (void**)&factory);
factory->EnumAdapters(0, &adapter);
adapter->EnumOutputs(0, &adapterOutput);
adapterOutput->GetDisplayModeList(DXGI_FORMAT_R8G8B8A8_UNORM, DXGI_ENUM_MODES_INTERLACED, &numModes, NULL);
adapter->GetDesc(&adapterDesc);
int m_videoCardMemory = (int)(adapterDesc.DedicatedVideoMemory / 1024 / 1024);
char videoCardDescription[128];
wcstombs_s(&stringLength, videoCardDescription, 128, adapterDesc.Description, 128);
m_videoCardName = videoCardDescription;




this code will get me the GPU information , is there a simular code for finding the CPU information ?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!