Amount of video memory

Is there a programmatic way to find out how much memory a video card has? And how much is currently used / available?

This has come up quite a bit, and it seems there are 2 ways to get the total video ram. One is to use the IDxDiag* interfaces, and the other is to query WMI (windows management instrumentation).

I’ve slapped together a couple of simple wrapper classes you might find useful:
http://www.spectranaut.net/sourcecode/WMI.cpp
http://www.spectranaut.net/sourcecode/DxDiag.cpp

Very basic but might be a good starting point…

There’s no way to query currently available video ram, just the total on board.

Thanks! That gets me on the right path.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.