Gadget Handles

BlitzPlus Forums/BlitzPlus Programming/Gadget Handles

Registry access?

Here are some Kernel32 functions that I use for memory access:
; Memory
MoveMemory(Dest*, Source%, Length%):"RtlMoveMemory"
CopyMemory(Dest*, Src%, Length%):"RtlMoveMemory"
CopyMemory2(Dest%, Src*, Length%):"RtlMoveMemory"
ZeroMemory(Dest*, Length%):"RtlZeroMemory"
MulDiv%(a*,b%,c%):"MulDiv"


MulDiv is useful if you want to get the true memory address of the contents of a Blitz object (type object or bank). Just call:
mytypeaddr=MulDiv(mytype,1,1)
(Koriolis showed me that one.)

If you want to get the actual Blitz structure, you can use CopyMemory(destTypeObject, sourceTypeObject, length). Be warned that I have no idea what the length is. Probably sizeof(bank or type) + X.