   directdraw
  How do i determine the pixel format are supported by my system??   
IDirectDraw7::EnumDisplayModes. Although you really shouldn't be using DirectDraw for 2D unless you have no choice (If some flavour of D3D isn't available).   