|
-
April 8th, 1999, 06:24 PM
#2
Re: Win95 or NT?! (how to find out!)
Try this:
// NT 5.0 will require a different structure OSVERSIONINFOEX
OSVERSIONINFO verInfo;
ZeroMemory(&verInfo, sizeof(verInfo));
verInfo.dwOSVersionInfoSize = sizeof(verInfo);
// find out if running on NT or WIN95
if (GetVersionEx(&verInfo) == 0)
{
WFSShowLastError("Error", "Unable to retrieve Operating System information.", "", GetLastError());
}
else
{
// WIN95 or WIN98
if (verInfo.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS)
{
// do something
}
else if (verInfo.dwPlatformId == VER_PLATFORM_WIN32_NT)
{
// something
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|