Just a quick question. Does anyone know how to determine how much video ram a video card has. e.g. 64meg, 128 meg etc ?

I need to do this in code.

I searched via google but couldn't work it out.