Group: Process and Thread - Library: kernel32
Retrieves the major and minor version numbers of the system on which the specified process expects to run.
GetProcessVersion points at target OS
DWORD GetProcessVersion(
DWORD ProcessId // process identifier
);
DECLARE INTEGER GetProcessVersion IN kernel32;
INTEGER ProcessId
ProcessId [in] Process identifier that specifies the process of interest. A value of zero specifies the calling process.
If the function succeeds, the return value is the version of the system on which the process expects to run. If the function fails, the return value is zero.
The version number returned by this function is the version number stamped in the image header of the .exe file the process is running. Linker programs set this value.
See also: GetProcessIoCounters, GetProcessTimes, GetProcessMemoryInfo.