Sign in to follow this  
thedodgeruk

how do i find out the cpu speed and description ?

Recommended Posts

[code]

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 videoCardMemory = (int)(adapterDesc.DedicatedVideoMemory / 1024 / 1024);

[/code]

this code gives me the name and make of my GPU , is there copd that can do it for the CPU as well please

Share this post


Link to post
Share on other sites
Well, its much easier on linux :P , but just do some quick googling on it and you'll find things like this [url="http://weseetips.com/2009/06/21/how-to-get-the-cpu-name-string/"]http://weseetips.com/2009/06/21/how-to-get-the-cpu-name-string/[/url]

Share this post


Link to post
Share on other sites
Not sure what kind of info you're looking for but you could read the child keys of

[font="Arial,"][b]HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor[/b][/font]

[font="Arial,"]Or, for an API call, you could use [url="http://msdn.microsoft.com/en-us/library/windows/desktop/ms724381(v=vs.85).aspx"]GetSystemInfo()[/url][/font]

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