Wow64DecodeApcRoutine - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#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)))

#endif
#endif

View code on GitHub

This macro decodes pointers previously encoded with Wow64EncodeApcRoutine.

See also