#ifndef _NTPSAPI_H
// Threads
#if (PHNT_MODE != PHNT_MODE_KERNEL)
/**
* Decodes an APC routine pointer that was encoded for use in a WOW64 environment.
*
* @param ApcRoutine The encoded APC routine pointer to be decoded.
* @return PVOID The decoded APC routine pointer.
*/
#define Wow64DecodeApcRoutine(ApcRoutine) \
((PVOID)(0 - (((LONG_PTR)(ApcRoutine)) >> 2)))
View code on GitHub
This macro decodes pointers previously encoded with Wow64EncodeApcRoutine
.