15. FAQ o Win API

Q> How to define type Windows on the computer? 
A> 
bool OsTypeNT (void) 
{ 
        OSVERSIONINFO vi; 

        vi.dwOSVersionInfoSize = sizeof (OSVERSIONINFO); 
        GetVersionEx (&vi); 
        if (vi.dwPlatformId == VER_PLATFORM_WIN32_NT) 
        return true; 

        return false; 
}

2000 (c) DM