inline void chWindows9xNotAllowed () {OSVERSIONINFO vi = {sizeof (vi)}; GetVersionEx (& vi); if (vi.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS) {chMB ( "This application requires features not present in Windows 9x."); ExitProcess (0 }}
inline void chWindows2000Required () {OSVERSIONINFO vi = {sizeof (vi)}; GetVersionEx (& vi); if (! (vi.dwPlatformId = VER_PLATFORM_WIN32_NT) && (vi.dwMajorVersion <5)) {chMB ( "This application requires features present in Windows 2000. "); EXITPROCESS (0);}}