Comments (9)
After this PR, everything seems to be behaving correctly on Windows x64 and memory reads are returning the correct addresses/values.
from memoryjs.
I have also added a commit to flip around the callback arguments. They seem to be (result, error)
for memory reads, but everywhere else is using (error, result)
(including the docs and examples).
from memoryjs.
And another commit, to add a pointer
type for intptr_t
address return values, which weren't working with long
(since they're long long
). Updated docs also.
Feel free to cherry-pick accordingly, if there's any problems with some of these commits.
from memoryjs.
Is the target process 32 bit or 64 bit? Use something like process hacker to find the actual base address of the application so you can see if memoryjs or robotjs are actually providing the correct base address.
from memoryjs.
Thanks for the super-quick response! The target is 64 bit. And I built the memoryjs binaries in 64 bit mode.
I'm actually migrating an old robotjs application, which does seem to be returning the correct address. I'm also noticing that most of the modules I'm getting have minus numbers for their base addresses in memoryjs, but not robotjs. So I assume robotjs is returning absolute addresses, whereas memoryjs is returning them relative to something?
e.g.
robotjs:
Module {
_valid: true,
_name: 'mswsock.dll',
_path: 'C:/WINDOWS/system32/mswsock.dll',
_base: 140719668068352,
_size: 417792,
_proc: Process {},
_segments: null },
memoryjs:
{ modBaseAddr: -640417792,
modBaseSize: 417792,
szExePath: 'C:\\WINDOWS\\system32\\mswsock.dll',
szModule: 'mswsock.dll',
th32ModuleID: 5448 },
Thanks!
from memoryjs.
Is your Node version 32 bit or 64 bit?
from memoryjs.
Sorry for the delay.
I'm using node 8, 64-bit version.
from memoryjs.
I do get the following errors when compiling the 64 bit version:
..\lib\memoryjs.cc(538): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data [node_modules\memoryjs \build\memoryjs.vcxproj]
..\lib\memoryjs.cc(604): warning C4244: 'argument': conversion from 'uintptr_t' to 'double', possible loss of data [node_modules\memoryjs \build\memoryjs.vcxproj]
..\lib\memoryjs.cc(609): warning C4244: 'argument': conversion from 'uintptr_t' to 'double', possible loss of data
from memoryjs.
Thanks for your contribution!
from memoryjs.
Related Issues (20)
- How to read shared memory channel? (Windows) HOT 5
- Reading an address that is a BigInt throwing errors? HOT 3
- The library can't read memory for me can someone help me figure it out? HOT 2
-
- Any way to get module exports? HOT 2
- Add "Windows only" to readme HOT 2
- Usage with electron HOT 2
- Just pushed a commit (3be70b051025327db5d5f54cd5a1f777dea75943) that I think should enable this now (not on NPM yet). I wasn't familiar with memory mapped files before working on this change, but from my little testing it seems like you should be able to replicate this C# logic with memoryjs now. Updated the README with an example ([documentation](https://github.com/Rob--/memoryjs#memory-mapped-files-1)). HOT 2
- Error reading BigInt pointer HOT 6
- Feature: Open process using th32ProcessID instead of process name(multiple processes same name) HOT 2
- Idea: External thread trace
- Using Cheat Engine Pointer HOT 6
- Writing to an adres using pointers HOT 2
- Little Endian Support HOT 3
- add pointer or int64 parameters on callFunction?
- publish/release newest version to npm? :) HOT 2
- Linux/Unix support HOT 2
- setProtection is not available in latest version HOT 1
- Problems when using with electron. HOT 1
- Hi Rob, HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from memoryjs.