Originally Posted by
Torpedoes
Yes, I do agree that it's a bit tough right now to start out and even debug code. But once you get into it, you'll find that it's actually quite nice. I suggest checking out
node-inspector for debugging code, though not usually fast, it'll help you figure out what's going on. Furthermore, nothing beats console.log ha ha. For me I'm just treating node as though I'm writing a GPU shader :-P
Where did you find your sources for memory reading / writing from node.js, because I can't find anything relating to it on the net, and your Memory.js doesn't explain much, like for starters what DLL (or whatever node calls it) is it using for memory reading.
I did notice you have a C++ app that seems to do the reading from the memory, however can't find any obvious link in the *.js code to the c++ code.
In c# its clear that we using Kernel32.dll
PHP Code:
[DllImport("kernel32.dll")]
public static extern IntPtr OpenProcess(int dwDesiredAccess, bool bInheritHandle, int dwProcessId);
[DllImport("kernel32.dll")]
public static extern bool ReadProcessMemory(int hProcess, long lpBaseAddress, byte[] lpBuffer, int dwSize, ref int lpNumberOfBytesRead);
[DllImport("kernel32.dll", SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool WriteProcessMemory(int hProcess, long lpBaseAddress, byte[] lpBuffer, int nSize, out int lpNumberOfBytesWritten);