Sign in to follow this  
thedodgeruk

in directx finding the CPU name?

Recommended Posts

[code]

/// 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;


[/code]

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this