Reads the memory of the target process.
[in] The base address from which to read the target process's memory.
[in] Flags controlling the behavior of ReadMemory.
[out] A buffer that receives the contents from the address space of the target process. On failure, the content of this buffer is unspecified.
[in] The number of bytes to be read from the process.
[out] Indicates the number of bytes read from the target process. If JsDebugAllowPartialRead is clear, on success this value will always be exactly equal to the input size. If JsDebugAllowPartialRead is specified, on success, this value will be greater than zero.
Returns S_OK on success, and failure codes are used for any error. Returns E_JsDEBUG_INVALID_MEMORY_ADDRESS if the address is not valid. Fore more information, see JsDebugAllowPartialRead.