Share via


DecodeSystemPointer function

Decodes a pointer that was previously encoded with EncodeSystemPointer.

Syntax

PVOID DecodeSystemPointer(
   PVOID Ptr
);

Parameters

  • Ptr
    The pointer to be decoded.

Return value

The function returns the decoded pointer.

Remarks

Using EncodeSystemPointer/DecodeSystemPointer is faster than using EncodePointer/DecodePointer, but the encoded system pointers are more vulnerable to attack because the value can be predicted on a per-machine basis.

Requirements

Minimum supported client

Windows Vista, Windows XP with SP2 [desktop apps only]

Minimum supported server

Windows Server 2008, Windows Server 2003 with SP1 [desktop apps only]

Header

Winbase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

DecodePointer

EncodeSystemPointer