IsSystemProcess()

Example Code

function IsSystemProcess(const hProcess: THandle): BOOL; stdcall; // Arg1 specified target process handle to determine whether the process is owned by SYSTEM var bSystemProcess: BOOL; begin bSystemProcess := IsSystemProcess(GetCurrentProcess()); ShowMessage(Format('Are we a system process? %s', [BoolToStr(bSystemProcess, True)])); end;