Thread: Registry

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2002
    Posts
    9
    Rep Power
    0

    Registry


    Is the current version of windows in the registry?
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2002
    Location
    London
    Posts
    349
    Rep Power
    13
    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
  4. #3
  5. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,607
    Rep Power
    4247
    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/de...tversionex.asp and http://msdn.microsoft.com/library/de...oninfo_str.asp for more details.
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2002
    Posts
    9
    Rep Power
    0
    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.
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2002
    Posts
    9
    Rep Power
    0
    The function should be GetVersionEx, not GetVersionInfoEx.

IMN logo majestic logo threadwatch logo seochat tools logo