Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Get the adapter (video card) description
- result = adapter->GetDesc(&adapterDesc);
- if(FAILED(result)) { return false; }
- // Store the dedicated video card memory in megabytes
- mVideoCardMemory = (UInt)(adapterDesc.DedicatedVideoMemory / 1024 / 1024);
- // Convert the name of the video card to a character array and store it
- error = wcstombs_s(&stringLength, mVideoCardDescription, 128, adapterDesc.Description, 128);
- if(error != 0) { return false; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement