matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: [?] RtlMoveMemory: file not found
js code: var ptrA = Interop.Allocate(4);
var s = 'this is some text';
var ptrA_string = Interop.Allocate(2*s.length+2)
ptrA_string.WriteString(0, s);
ptrA.WriteDWORD(0, ptrA_string.DataPtr);
var ptrB = Interop.Allocate(4);
Interop.Call('kernel32', 'RtlMoveMemory', ptrB, ptrA, 4);
Debug.Trace(ptrB.ReadString(0));
This post was edited on 03-24-2009 at 08:07 PM by matty.
|
|