for (Foundation::UInt32 i = 0; ; i++)
{
hr = pAdapterInfo->pDXGIAdapter->EnumOutputs(i, &pDXGIOutput);
if (SUCCEEDED(hr))
{
//EnumDisplayModes(pOutputInfo)
}
SAFE_RELEASE(pDXGIOutput);
}
else
{
//None output will be found
if (i==0)
{
//error("EnumOupput error i:%u, error %s", i,str);
}
break;
}
}
return true;
}
Hi , guys!
I used the upper code to get all resolutions supported by video card which will be selected by players.
But the code works perfectly in win7 , but it couldn't find any output in win10, I read a lot of papers ,but can not
find why.
If anyone else has encountered this problem before ,please gives me some insight!
Thanks a lot!
↧