2018. 1. 22. 16:24

How to get the edition information of Windows

  1. GetProductionInfo API
    • note: minimum support : Windows Vista / Windows Server 2008
    • link
  2. prodspec.ini
    • location: %systemroot%\system32\prodspec.ini
    • example
      • [Product Specification]
      • Product=Windows XP Professional
    • note: This file is only existed in Windows XP.
    • link
  3. EditionID (REG_SZ)
    • location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
    • note: This registry value is not exist in Windows XP.