#ifndef _NTRTL_H
#if (PHNT_VERSION >= PHNT_WINDOWS_10_RS3)
/**
* The RtlIsCurrentProcess function determines whether the specified process handle refers to the current process.
*
* \param ProcessHandle Handle to the process to compare with the current process.
* \return TRUE if the handle refers to the current process; otherwise, FALSE.
* \remarks Internally compares the specified handle with the current process handle using NtCompareObjects.
*/
NTSYSAPI
BOOLEAN
NTAPI
RtlIsCurrentProcess( // NtCompareObjects(NtCurrentProcess(), ProcessHandle)
_In_ HANDLE ProcessHandle
);
View code on GitHub
Determines whether the specified handle is a handle to the current process.
ProcessHandle
- a process handle. The handle does not need to grant any specific access mask.This function is a wrapper over NtCompareObjects
.
This functionality is not exposed in Win32 API.