-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Description
Program working fine when in 'preview' mode (I mean yarn electron:serve), but memoryjs.openProcess(process.th32ProcessID); throws Error: unable to find process after being packed by electron-builder.
Here's my code:
const signature = '75 6E 61 6D 65 3D 27';
const rc_clients = memoryjs.getProcesses().filter(p => p.szExeFile === "rc3.exe");
let accounts = [];
for (let process of rc_clients) {
const process_object = memoryjs.openProcess(process.th32ProcessID);
let pat = memoryjs.findPattern(process_object.handle, signature, memoryjs.NORMAL, 0);
let mem = memoryjs.readBuffer(process_object.handle, pat, 256);
// ...
}
return accounts;
Target process is 32-bit, using vue-electron-builder, node version is 32-bit too, have tried npm run build32, requestedExecutionLevel: requireAdministrator, externals: ['memoryjs'], but none of these work.
Hope to get some help from here, thanks in advance.
Metadata
Metadata
Assignees
Labels
No labels