From aldeid
Jump to navigation Jump to search


Determines whether the specified process is considered critical.


BOOL WINAPI IsProcessCritical(
  _In_  HANDLE hProcess,
  _Out_ PBOOL  Critical


hProcess [in]
A handle to the process to query. The process must have been opened with PROCESS_QUERY_LIMITED_INFORMATION access.
Critical [out]
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.