测试directDraw是否被支持, 有些机子可能也不支持directdraw哦
static BOOL IsDirectDrawSupported()
{
HDC hDC;
DWORD Planes;
DWORD Bpp;
hDC = GetDC(NULL);
Planes = GetDeviceCaps(hDC, PLANES);
Bpp = GetDeviceCaps(hDC, BITSPIXEL);
ReleaseDC(NULL, hDC);
if (Planes * Bpp < 8)
return FALSE;
return TRUE;
}