Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Problems when using with electron. #96

Open
@Runc2333

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /