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;
}