IsProcessCritical function

Determines whether the specified process is considered critical.

Syntax

BOOL IsProcessCritical(
  HANDLE hProcess,
  PBOOL  Critical
);

Parameters

hProcess

A handle to the process to query. The process must have been opened with PROCESS_QUERY_LIMITED_INFORMATION access.

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

   
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 Ntdll.dll

See Also

HRESULT_FROM_WIN32