次の方法で共有


WriteMemory (Compact 2013)

3/26/2014

This function writes memory to a process being debugged. The entire area of memory must be accessible, or the operation fails.

Syntax

ULONG WriteMemory(
  ULONG offset,
  LPCVOID lpbuffer,
  ULONG cb,
  PULONG lpcbBytesWritten
);

Parameters

  • offset
    [in] Base address of the memory to write in the process being debugged.
  • lpbuffer
    [in] Pointer to a buffer that receives the contents of memory written.
  • cb
    [in] Number of bytes to write.
  • lpcbBytesWritten
    [in] Optional. Pointer to the actual number of bytes transferred from the buffer.

Return Value

This function returns TRUE if the function call succeeds. Otherwise, the function returns FALSE.

Requirements

Header

wdbgexts_ce.h

Library

Developer Implemented

See Also

Reference

Debugger Extension Functions