   problem with directdraw GetCaps function
  When i use the GetCaps function of directdraw to get the capabilities of my hardware, the strucutre DDCAPS is not filled with any values, it is returned as it is. Any idea why this could be happening???   
  Code? Debug output? Return codes?   ;  I want to remind about setting the dwSize member of DDCAPS to the size of the structure before calling GetCaps, in other words dwSize = sizeof(DDCAPS), have you done that?Also, if GetCaps isn't returning DD_OK, check for DDERR_INVALIDOBJECT return value to make sure you'ven't created your DirectDraw object incorrectly.Apart from that, as far as I know, there's not many ways the method can fail.   