Kernel32IsProcessCritical(SafeProcessHandle, Boolean) Method

Determines whether the specified process is considered critical.

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", SetLastError = true)]
public static bool IsProcessCritical(
	SafeProcessHandle hProcess,
	ref bool refIsCritical
)

Parameters

hProcess  SafeProcessHandle
An IntPtr to the process to query.

The process must have been opened with PROCESS_QUERY_LIMITED_INFORMATION access.

refIsCritical  Boolean
A variable passed by-reference to store a value indicating whether the process is critical.

Return Value

Boolean
If the function succeeds, the return value is , otherwise, .

Call GetLastWin32Error to get specific error reason on failure.

Remarks

See Also