GetSystemVersionValues
The GetSystemVersionValues method returns version number information for the current target.
HRESULT
IDebugControl4::GetSystemVersionValues(
OUT PULONG PlatformId,
OUT PULONG Win32Major,
OUT PULONG Win32Minor,
OUT OPTIONAL PULONG KdMajor,
OUT OPTIONAL PULONG KdMinor
);
Parameters
- PlatformId
- Receives the platform ID. PlatformId is always VER_PLATFORM_WIN32_NT for NT-based Windows.
- 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, this number is 6.
- 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.
- KdMajor
- Receives 0xF if the target's operating system is a free build, and 0xC if it is a checked build.
- KdMinor
- Receives the build number for the target's operating system.
Return Value
- S_OK
- The method was successful.
This method may also return error values. See Return Values for more details.
Interface Version
GetSystemVersionValues is available in IDebugControl4 and later versions.
Comments
For more information, see Target Information.
Requirements
Headers: Defined in Dbgeng.h. Include Dbgeng.h.
See Also
GetSystemVersion, GetSystemVersionString
Build machine: CAPEBUILD