Udostępnij za pośrednictwem


EncodeRemotePointer function

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

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

Syntax

HRESULT WINAPI EncodeRemotePointer(
   _In_ HANDLE    ProcessHandle,
   _In_opt_ PVOID Ptr,
   _Out_ PVOID *  EncodedPtr
);

Parameters

  • ProcessHandle
    Handle to the remote process that owns the pointer.

  • Ptr
    The pointer to be encoded.

  • EncodedPtr
    The encoded pointer.

Return value

Returns S_OK if successful, otherwise the function failed.

Remarks

The resulting pointer can be decoded with DecodePointer or DecodeRemotePointer.

Requirements

Minimum supported client

Windows 10 [desktop apps only]

Minimum supported server

Windows Server 2016 [desktop apps only]

Header

Winbase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

EncodePointer

DecodePointer

DecodeRemotePointer