static sInitialized = PR_FALSE; static sIsNT = PR_FALSE;
static PRBool sInitialized = PR_FALSE; static PRBool sIsNT = PR_FALSE;
static PRBool IsNT(){    static sInitialized = PR_FALSE;    static sIsNT = PR_FALSE;    if (!sInitialized) {        OSVERSIONINFO osversion;        ::ZeroMemory(&osversion, sizeof(OSVERSIONINFO));        osversion.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);        if (::GetVersionEx(&osversion) &&             osversion.dwPlatformId == VER_PLATFORM_WIN32_NT)            sIsNT = PR_TRUE;        sInitialized = PR_TRUE;    }    return sIsNT;}