MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / write

Method write

plugins/ProcessMemoryWindows/ProcessMemoryWindowsPlugin.cpp:74–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74bool ProcessMemoryWindowsProvider::write(uint64_t addr, const void* buf, int len)
75{
76 if (!m_handle || !m_writable || len <= 0) return false;
77
78 SIZE_T bytesWritten = 0;
79 if (WriteProcessMemory(m_handle, (LPVOID)(m_base + addr), buf, (SIZE_T)len, &bytesWritten))
80 return bytesWritten == (SIZE_T)len;
81 return false;
82}
83
84QString ProcessMemoryWindowsProvider::getSymbol(uint64_t addr) const
85{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected