Kernel32IsProcessCritical(IntPtr, Boolean) Method
Determines whether the specified process is considered critical.
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", SetLastError = true)]
public static bool IsProcessCritical(
IntPtr hProcess,
ref bool refIsCritical
)
<DllImportAttribute("Kernel32.dll", SetLastError := true>]
Public Shared Function IsProcessCritical (
hProcess As IntPtr,
ByRef refIsCritical As Boolean
) As Boolean
Dim hProcess As IntPtr
Dim refIsCritical As Boolean
Dim returnValue As Boolean
returnValue = Kernel32.IsProcessCritical(hProcess,
refIsCritical)
public:
[DllImportAttribute(L"Kernel32.dll", SetLastError = true)]
static bool IsProcessCritical(
IntPtr hProcess,
bool% refIsCritical
)
[<DllImportAttribute("Kernel32.dll", SetLastError = true)>]
static member IsProcessCritical :
hProcess : IntPtr *
refIsCritical : bool byref -> bool
No code example is currently available or this language may not be supported.
- hProcess IntPtr
-
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.
Boolean
If the function succeeds, the return value is
, otherwise,
.
Call
GetLastWin32Error to get specific error reason on failure.