Re: Operating System
- Posted by coconut Apr 18, 2011
- 1712 views
dcole said...
Hello again,
Another silly question.
How can I tell which operating system is running my program?
I this case either WindowsXP or Windows7.
Thanks,
Don Cole
1) by checking in the registry reg query HKLM\SoftwareMicrosoft\windows nt\currentVersion /v CurrentVersion
C:\>reg query "HKLM\Software\Microsoft\Windows nt\CurrentVersion" /v CurrentVersion HKEY_LOCAL_MACHINE\Software\Microsoft\Windows nt\CurrentVersion CurrentVersion REG_SZ 6.1
2) by using win32 API GetVersionEX()
Jacques