|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Registry
Is the current version of windows in the registry?
|
|
#2
|
||||
|
||||
|
Yeah!
On NT based machined (NT, 2k, XP) you con find out information from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion Look at strings "CurrentVersion" and "ProductName" Hope this helps
__________________
Online Designer Baby Clothes Store FiftyFifty Web Page, advertising space, with 50% profit share Free web development scripts! Tattoo Blog Free graphical wedding tickers |
|
#3
|
||||
|
||||
|
It's probably safer to use GetVersion() or GetVersionEx(), since this is an API call and will still work if they change the location of the information in the registry. See http://msdn.microsoft.com/library/d...etversionex.asp and http://msdn.microsoft.com/library/d...ioninfo_str.asp for more details.
|
|
#4
|
|||
|
|||
|
GetVersionInfoEx works on windows 95/98/ME and 2000/XP/NT. The information in the registry for the NT based operating systems is different than the information non-NT based operating systems.
|
|
#5
|
|||
|
|||
|
The function should be GetVersionEx, not GetVersionInfoEx.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > Registry |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|