hi,v4vista,you can try this code:
IDXGIFactory2* pDXGIFactory;
CreateDXGIFactory1( __uuidof(IDXGIFactory2), (void**)&pDXGIFactory );
IDXGIAdapter1 * pDXGIAdapter;
HRESULT hr = pDXGIFactory->EnumAdapters1( 0, &pDXGIAdapter );
if( S_OK == hr )
{
DXGI_ADAPTER_DESC1 adaptDesc;
if ( SUCCEEDED( pDXGIAdapter->GetDesc1( &adaptDesc ) ) )
{
// now adaptDesc contains the device info
// you can do what you want
}
}
and this is just what Ogre does!