API to get the graphics or video memory

后端 未结 3 872
眼角桃花
眼角桃花 2021-01-19 02:51

I want to get the adpater RAM or graphics RAM which you can see in Display settings or Device manager using API. I am in C++ application.

I have tried seraching on n

3条回答
  •  借酒劲吻你
    2021-01-19 02:59

    Win32_videocontroller is your best course to get the amount of gfx memory. That's how its done in Doom3 source.

    You say "..availability of video controller is offline. I have checked it on vista." Under what circumstances would the video controller be offline?

    Incidentally, you can find the Doom3 source here. The function you're looking for is called Sys_GetVideoRam and it's in a file called win_shared.cpp, although if you do a solution wide search it'll turn it up for you.

提交回复
热议问题