Advertisement
Ember

info

May 4th, 2014
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. // Get the adapter (video card) description
  2. result = adapter->GetDesc(&adapterDesc);
  3. if(FAILED(result)) { return false; }
  4.  
  5. // Store the dedicated video card memory in megabytes
  6. mVideoCardMemory = (UInt)(adapterDesc.DedicatedVideoMemory / 1024 / 1024);
  7.  
  8. // Convert the name of the video card to a character array and store it
  9. error = wcstombs_s(&stringLength, mVideoCardDescription, 128, adapterDesc.Description, 128);
  10. if(error != 0) { return false; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement