EncodePointer (KernelBase) function

[This function is exported from KernelBase.dll in Windows 7 and Windows Server 2008 R2. This may change in subsequent versions. Instead of calling this function directly in KernelBase.dll, call the function through Kernel32.dll. See EncodePointer.]

Encodes the specified pointer. Encoded pointers can be used to provide another layer of protection for pointer values.

Syntax

PVOID EncodePointer(
  _In_ PVOID Ptr
);

Parameters

  • Ptr [in]
    The pointer to be encoded.

Return value

The function returns the encoded pointer.

Requirements

Minimum supported client

Windows 7 [desktop apps | UWP apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | UWP apps]

Header

Winbase.h (include Windows.h)

DLL

KernelBase.dll