IDebugControl4::GetSystemVersionValues method (dbgeng.h)
The GetSystemVersionValues method returns version number information for the current target.
Syntax
HRESULT GetSystemVersionValues(
[out] PULONG PlatformId,
[out] PULONG Win32Major,
[out] PULONG Win32Minor,
[out, optional] PULONG KdMajor,
[out, optional] PULONG KdMinor
);
Parameters
[out] PlatformId
Receives the platform ID. PlatformId is always VER_PLATFORM_WIN32_NT for NT-based Windows.
[out] Win32Major
Receives the major version number of the target's operating system. For Windows 2000, Windows XP, and Windows Server 2003, this number is 5. For Windows Vista, Windows 7, and Windows 8, this number is 6.
[out] Win32Minor
Receives the minor version number for the target's operating system. For Windows 2000 this is 0; for Windows XP, 1; for Windows Server 2003, 2. For Windows Vista, this is 0; for Windows 7, 1; for Windows 8, 2.
[out, optional] KdMajor
Receives 0xF if the target's operating system is a free build, and 0xC if it is a checked build.
[out, optional] KdMinor
Receives the build number for the target's operating system.
Return value
This method may also return error values. See Return Values for more details.
Return code | Description |
---|---|
|
The method was successful. |
Remarks
For more information, see Target Information.
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | dbgeng.h (include Dbgeng.h) |