Code from Mozilla (widget\os2\nswindow.cpp #405), for querying whether the shadow buffer is enabled
// Don't use DIVE if the Panorama video driver is in use
// unless its shadow buffer is turned off.
HMODULE hmod;
if (!DosQueryModuleHandle("PANOGREX", &hmod)) {
char str[8];
if (PrfQueryProfileString(HINI_USERPROFILE, "PANORAMA", "VBEShadowBuffer",
0, str, sizeof(str)) && !strcmp(str, "0")) {
sUseDive = TRUE;
printf("Video driver is Panorama - shadow-buffer is disabled\n");
}
else
printf("DIVE is disabled - Panorama's shadow-buffer is enabled\n");
return;
}
sUseDive = TRUE;