Kernel32GetProcessVersion Method
Retrieves the major and minor version numbers of the system on which the specified process expects to run.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("Kernel32.dll", ExactSpelling := true, SetLastError := true>]
Public Shared Function GetProcessVersion (
processId As UInteger
) As UInteger
Dim processId As UInteger
Dim returnValue As UInteger
returnValue = Kernel32.GetProcessVersion(processId)
public:
[DllImportAttribute(L"Kernel32.dll", ExactSpelling = true, SetLastError = true)]
static unsigned int GetProcessVersion(
unsigned int processId
)
[<DllImportAttribute("Kernel32.dll", ExactSpelling = true, SetLastError = true)>]
static member GetProcessVersion :
processId : uint32 -> uint32
No code example is currently available or this language may not be supported.
- processId UInt32
-
The process identifier of the process of interest.
A value of zero specifies the calling process.
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.