Encodes the specified pointer. Encoded pointers can be used to provide another layer of protection for pointer values.
PVOID EncodePointer( __in PVOID Ptr );
The pointer to be encoded.
The function returns the encoded pointer.
Encoding globally available pointers helps protect them from being exploited. The EncodePointer function obfuscates the pointer value with a secret so that it cannot be predicted by an external agent. The secret used by EncodePointer is different for each process.
A pointer must be decoded before it can be used.
Declared in Winbase.h; include Windows.h.
Use Kernel32.lib.
Requires Kernel32.dll.
DecodePointerEncodeSystemPointer
Send comments about this topic to Microsoft
Build date: 7/17/2008