Compartir a través de


CeRemoteHeapCreate (Compact 2013)

3/28/2014

This function creates a remote heap in a process. The heap is read-only to the client process unless the HEAP_CLIENT_READWRITE flag is specified.

Syntax

HANDLE  CeRemoteHeapCreate (
  DWORD dwProcessId,
  DWORD dwFlags
);

Parameters

  • dwProcessId
    Process in which the remote heap is to be created.
  • dwFlags
    Remote heap creation flag. The HEAP_CLIENT_READWRITE flag is the only supported flag. The client will only have r/o access to heap data if the flag is specified.

Return Value

The handle to a heap indicates success. NULL indicates failure.

Remarks

The safe remote heap functions: CeRemoteHeapCreate and CeRemoteHeapTranslatePointer, provide a safe and efficient way of dynamically allocating and freeing memory asynchronously in an arbitrary client process.

Requirements

Header

pkfuncs.h

Library

coredll.lib

See Also

Reference

Memory Management Functions
CeRemoteHeapTranslatePointer
HeapAlloc
HeapDestroy
HeapFree