#ifndef _NTRTL_H
#if defined(__cplusplus)
template <typename T>
FORCEINLINE
T*
RTL_PTR_SUBTRACT(T* Pointer, ULONG_PTR Value) noexcept {
return reinterpret_cast<T*>(reinterpret_cast<PBYTE>(Pointer) - Value);
}
View code on GitHub#ifndef _NTRTL_H
#if defined(__cplusplus)
// ...
#else
#ifndef RTL_PTR_SUBTRACT
#define RTL_PTR_SUBTRACT(Pointer, Value) ((PVOID)(((PUCHAR)(Pointer)) - ((ULONG_PTR)(Value))))
View code on GitHubNo description available.