Closed Patrick-van-Halm closed 1 year ago
Hi, please refer to the read me.
memoryjs.openProcess
returns a process object:
{ dwSize: 304,
th32ProcessID: 10316,
cntThreads: 47,
th32ParentProcessID: 7804,
pcPriClassBase: 8,
szExeFile: "csgo.exe",
modBaseAddr: 1673789440,
handle: 808 }
You need to use the handle
property from openProcess
and pass it to the readMemory
function:
const processObject = memoryjs.openProcess(processName);
this.#handle = processObject.handle;
Hi, please refer to the read me.
memoryjs.openProcess
returns a process object:{ dwSize: 304, th32ProcessID: 10316, cntThreads: 47, th32ParentProcessID: 7804, pcPriClassBase: 8, szExeFile: "csgo.exe", modBaseAddr: 1673789440, handle: 808 }
You need to use the
handle
property fromopenProcess
and pass it to thereadMemory
function:const processObject = memoryjs.openProcess(processName); this.#handle = processObject.handle;
Ahhh okay then I completely missed that my bad
process.js
index.js
Error
Node version: v14.15.0
I did rebuild the binaries.
I also tried to run the library with node 16.18.0 (LTS), this results in a different error