+ hpsScreen = WinGetScreenPS(HWND_DESKTOP);
+ hdcScreen = GpiQueryDevice(hpsScreen);
+ DevQueryCaps(hdcScreen, CAPS_COLOR_PLANES, 1L, &lPlanes);
+ DevQueryCaps(hdcScreen, CAPS_COLOR_BITCOUNT, 1L, &lBitsPerPixel);
+ b = (int)lBitsPerPixel;
+ WinReleasePS(hpsScreen);
+#else