Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Starfall

DDraw: Getting video card info?

This topic is 6755 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

If I were you I'd look into DirectDrawEnumerate((LPDDENUMCALLBACK)func, void *context)this will provide you with all of the compatible devices attached to the system. In order to get more detail on the device(s) you'll have to create a LPDIRECTDRAWx object for one of the devices and call the EnumDisplayModes(NULL, NULL, void *context, (LPDDENUMMODESCALLBACK)func) method for the LPDIRECTDRAWx object, then if you want video memory call the GetAvailableVidMem(&ddsdc, &DWORD, &DWORD) method for the LPDIRECTDRAWx object save what ever values you want, free the object, move on to the next one, repeat if nessisary.

Share this post


Link to post
Share on other sites
Advertisement
Can anyone tell me whether DirectDraw can give info on the video card, and how this can be done? The sort of stuff I am after is how much video ram is available, the manufacturer and model of the card if possible, etc. I thought I'd seen something on how to do this but I can't find anything in the DX docs about it (probably because I didn't look hard enough). If there's no way to do it in DDraw, is there an alternate way it can be done?

Thanks

Starfall

Share this post


Link to post
Share on other sites
Thanks Uranium. I had known about DirectDrawEnumerate, but it doesn't give much info about what the card is... only that it is the primary display card. Your suggestion for working out the video ram works, but is there any way to get the name of the video card manufacturer and the card model?

Thanks

Starfall

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!