-
Notifications
You must be signed in to change notification settings - Fork 0
TOOL(s): Get OS Version Data as exit code
ShadowKnightMK4 edited this page May 20, 2025
·
2 revisions
What is it:
- Return various parts of this OS version data as our exit code.
What routines does it touch:
- LoadLibraryA
- GetProcAddress
- GetVersionExA (some platforms)
- RtlGetVersion (some platforms)
Return values:
- This is dependent on exactly what you're requesting and what version is reported by the Win32 API we ask.
Consider this OSVERSIONINFOA structure.
Let's assume this data for it
- {
- dwOSVersionInfo: NA
- dwMajorVersion: 124
- dwMinorVersion: 4
- dwBuildNumber: 123467
- CHAR szCSDVersion: "something"
- }
Depending on what is requested in the command line the dwMajor, dwMinor and dwBuild could all be a return value.
CLI Syntax:
- multitool.exe -osMajor returns 124
- multitool.exe -osMinor returns 4
- multitool.exe -dwBuildNumber: 123467