IsProcessCritical function (processthreadsapi.h)
Determines whether the specified process is considered critical.
Syntax
BOOL IsProcessCritical(
[in] HANDLE hProcess,
[out] PBOOL Critical
);
Parameters
[in] hProcess
A handle to the process to query. The process must have been opened with PROCESS_QUERY_LIMITED_INFORMATION access.
[out] Critical
A pointer to the BOOL value this function will use to indicate whether the process is considered critical.
Return value
This routine returns FALSE on failure. Any other value indicates success. Call GetLastError to query for the specific error reason on failure.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8.1 [desktop apps only] |
Minimum supported server | Windows Server 2012 R2 [desktop apps only] |
Target Platform | Windows |
Header | processthreadsapi.h |
Library | Kernel32.lib |
DLL | kernel32.dll |