New bee
-
Hi guys, I am nee bee in MFC. I have to get the System details where I am running my program, I use GetSystemInfo() call for that but I couldn't get the details of the OS. Is there any call to get that? Please help. thanks. bye Prav:)
GetVersionEx()
Jason Henderson
quasi-homepage
articles
"Like it or not, I'm right!" -
Hi guys, I am nee bee in MFC. I have to get the System details where I am running my program, I use GetSystemInfo() call for that but I couldn't get the details of the OS. Is there any call to get that? Please help. thanks. bye Prav:)
I need to assume that this person doesn't know how to use GetVersionEx. The following example retrieves the current version of Windows.
OSVERSIONINFO vi;
WORD wWinVer;
vi.dwOSVersionInfoSize=sizeof(vi);
GetVersionEx(&vi);
wWinVer=MAKEWORD(vi.dwMinorVersion,
vi.dwMajorVersion);Besides the major and minor version numbers, the version information returned by GetVersionEx includes the build number of the OS, identifies the running platform, and contains additional information about the Windows version installed. Peter O.