Kernel32GetProcessVersion Method

Retrieves the major and minor version numbers of the system on which the specified process expects to run.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", ExactSpelling = true, SetLastError = true)]
public static uint GetProcessVersion(
	uint processId
)

Parameters

processId  UInt32
The process identifier of the process of interest. A value of zero specifies the calling process.

Return Value

UInt32
If the function succeeds, the return value is the version of the system on which the process expects to run. The high word of the return value contains the major version number. The low word of the return value contains the minor version number.

If the function fails, the return value is zero.

The function fails if processId is an invalid value.

Remarks

See Also