static didCheck = PR_FALSE; static isSupported = PR_FALSE;
static PRBool didCheck = PR_FALSE; static PRBool isSupported = PR_FALSE;
static PRBool IsCursorTranslucencySupported() {  static didCheck = PR_FALSE;  static isSupported = PR_FALSE;  if (!didCheck) {    didCheck = PR_TRUE;    // Cursor translucency is supported on Windows XP and newer    OSVERSIONINFO osversion;    memset(&osversion, 0, sizeof(OSVERSIONINFO));    osversion.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);    if (GetVersionEx(&osversion))      isSupported = osversion.dwMajorVersion > 5 || // Newer Windows versions                    osversion.dwMajorVersion == 5 &&                       osversion.dwMinorVersion >= 1; // WinXP, Server 2003  }  return isSupported;}