Debugging Tools for Windows |
The GetSystemVersionString and GetSystemVersionStringWide methods return a string that describes the target's operating system version.
HRESULT
IDebugControl4::GetSystemVersionString(
IN ULONG Which,
OUT OPTIONAL PSTR Buffer,
IN ULONG BufferSize,
OUT OPTIONAL PULONG StringSize
);
HRESULT
IDebugControl4::GetSystemVersionStringWide(
IN ULONG Which,
OUT OPTIONAL PWSTR Buffer,
IN ULONG BufferSize,
OUT OPTIONAL PULONG StringSize
);
#ifdef UNICODE
#define GetSystemVersionStringT GetSystemVersionStringWide
#else
#define GetSystemVersionStringT GetSystemVersionString
#endif
Value | Version string |
---|---|
DEBUG_SYSVERSTR_SERVICE_PACK | Returns a description of the service pack for the target's operating system. For example, "Service Pack 1". |
DEBUG_SYSVERSTR_BUILD | Returns a description of the target's operating system build version. For example, "kernel32.dll version: 5.1.2600.1106 (xpsp1.020828-1920)". |
This method may also return error values. See Return Values for more details.
GetSystemVersionString and GetSystemVersionStringWide are available in IDebugControl4 and later versions.
For more information, see Target Information.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.