OSVERSIONINFOEX 中的最后内部版本号
Last Build number in OSVERSIONINFOEX
我想获取 os 产品版本 6.3.9600.17415
使用 OSVERSIONINFOEX 时,我成功获得 6.3.9600
如何获取最后一个内部版本号 17415
如果您确实需要确切的内部版本号,请在 kernel32.dll 上使用 GetFileVersionInfo。 post 解释了如何使用 GetFileVersionInfo:
这是获得真实 OS 内部版本号并且不受虚拟化影响的记录方式:
To obtain the full version number for the operating system, call the GetFileVersionInfo
function on one of the system DLLs, such as Kernel32.dll
, then call VerQueryValue
to obtain the \StringFileInfo\<lang><codepage>\ProductVersion
subblock of the file version information.
我想获取 os 产品版本 6.3.9600.17415 使用 OSVERSIONINFOEX 时,我成功获得 6.3.9600
如何获取最后一个内部版本号 17415
如果您确实需要确切的内部版本号,请在 kernel32.dll 上使用 GetFileVersionInfo。 post 解释了如何使用 GetFileVersionInfo:
这是获得真实 OS 内部版本号并且不受虚拟化影响的记录方式:
To obtain the full version number for the operating system, call the
GetFileVersionInfo
function on one of the system DLLs, such asKernel32.dll
, then callVerQueryValue
to obtain the\StringFileInfo\<lang><codepage>\ProductVersion
subblock of the file version information.