Share via


CeRemoteHeapCreate (Windows Embedded CE 6.0)

1/6/2010

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
Windows Embedded CE Windows Embedded CE 6.0 and later

See Also

Reference

Memory Management Functions
CeRemoteHeapTranslatePointer
HeapAlloc
HeapDestroy
HeapFree

Other Resources

New Kernel APIs