Get the video adapter Ram with more than 4gb of memory (in C# if possible)

Hi @ all,

I am using C# and WMI (https://docs.microsoft.com/de-de/windows/win32/cimwin32prov/win32-videocontroller?redirectedfrom=MSDN) and I have been trying to get the whole amount of video ram from the hardware. But the limit is 4095MB. There are some C++ solutions, which don’t seem to work properly. But there must be a C#-solution out there. Or at least that’s what I’m wishing for.

According to Microsoft there are some other solutions via Direct X and C++:

https://code.msdn.microsoft.com/windowsdesktop/DirectX-Video-Memory-ee7d8319

If only a C++ solution is possible, I could use a C++ external program to get the value and pass it to the application written in C#.

There is already a topic on the issue:

https://devtalk.nvidia.com/default/topic/1046834/general-graphics-programming/how-to-query-adapter-ram-for-cards-with-more-than-4-gb-c-/

But there is no solution.

Best Regards