Changeset 86159 in vbox for trunk/src/VBox/Debugger
- Timestamp:
- Sep 17, 2020 5:09:30 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/DBGPlugInWinNt.cpp
r86111 r86159 140 140 uint32_t TimeZoneId; 141 141 uint32_t LargePageMinimum; 142 uint32_t Reserved2[7]; 142 uint32_t Reserved2[6]; 143 uint32_t NtBuildNumber; 143 144 uint32_t NtProductType; 144 145 uint8_t ProductTypeIsValid; … … 215 216 /** NTKUSERSHAREDDATA::NtMinorVersion */ 216 217 uint32_t NtMinorVersion; 218 /** NTKUSERSHAREDDATA::NtBuildNumber */ 219 uint32_t NtBuildNumber; 217 220 218 221 /** The address of the ntoskrnl.exe image. */ … … 510 513 */ 511 514 static DECLCALLBACK(int) dbgDiggerWinNtIWinNt_QueryVersion(struct DBGFOSIWINNT *pThis, PUVM pUVM, 512 uint32_t *puVersMajor, uint32_t *puVersMinor) 515 uint32_t *puVersMajor, uint32_t *puVersMinor, 516 uint32_t *puBuildNumber, bool *pf32Bit) 513 517 { 514 518 RT_NOREF(pUVM); 515 519 PDBGDIGGERWINNT pData = RT_FROM_MEMBER(pThis, DBGDIGGERWINNT, IWinNt); 516 520 517 *puVersMajor = pData->NtMajorVersion; 518 *puVersMinor = pData->NtMinorVersion; 521 if (puVersMajor) 522 *puVersMajor = pData->NtMajorVersion; 523 if (puVersMinor) 524 *puVersMinor = pData->NtMinorVersion; 525 if (puBuildNumber) 526 *puBuildNumber = pData->NtBuildNumber; 527 if (pf32Bit) 528 *pf32Bit = pData->f32Bit; 519 529 return VINF_SUCCESS; 520 530 } … … 749 759 default: pszNtProductType = ""; break; 750 760 } 751 RTStrPrintf(pszVersion, cchVersion, "%u.%u-%s%s ", pThis->NtMajorVersion, pThis->NtMinorVersion,752 pThis->f32Bit ? "x86" : "AMD64", pszNtProductType );761 RTStrPrintf(pszVersion, cchVersion, "%u.%u-%s%s (BuildNumber %u)", pThis->NtMajorVersion, pThis->NtMinorVersion, 762 pThis->f32Bit ? "x86" : "AMD64", pszNtProductType, pThis->NtBuildNumber); 753 763 return VINF_SUCCESS; 754 764 } … … 846 856 pThis->NtMajorVersion = u.UserSharedData.NtMajorVersion; 847 857 pThis->NtMinorVersion = u.UserSharedData.NtMinorVersion; 858 pThis->NtBuildNumber = u.UserSharedData.NtBuildNumber; 848 859 } 849 860 else if (pThis->fNt31) … … 852 863 pThis->NtMajorVersion = 3; 853 864 pThis->NtMinorVersion = 1; 865 pThis->NtBuildNumber = 0; 854 866 } 855 867 else
Note:
See TracChangeset
for help on using the changeset viewer.