APIRET rc; COUNTRYCODE ctrycodeInfo = {0}; CHAR        achDBCSInfo[12] = {0}; ctrycodeInfo.country  = 0; ctrycodeInfo.codepage = 0;  rc = DosQueryDBCSEnv(sizeof(achDBCSInfo), &ctrycodeInfo, achDBCSInfo); if (rc == NO_ERROR) {   if (achDBCSInfo[0] != 0 || achDBCSInfo[1] != 0 || achDBCSInfo[2] != 0 || achDBCSInfo[3] != 0) { bIsDBCS = TRUE; } else { bIsDBCS = FALSE; } } else { bIsDBCS = FALSE; }
nsGfxFactoryOS2::nsGfxFactoryOS2(const nsCID &aClass){  static int init = 0;  if (!init) {    init = 1;  /* OS2TODO    OSVERSIONINFO os;    os.dwOSVersionInfoSize = sizeof(os);    ::GetVersionEx(&os);    if ((os.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS) &&        (os.dwMajorVersion == 4) &&        (os.dwMinorVersion == 0) &&    // Windows 95 (not 98)        (::GetACP() == 932)) {         // Shift-JIS (Japanese)      gUseAFunctions = 1;    }  */  }  NS_INIT_REFCNT();  mClassID = aClass;}