Hello..
The Win32 API function MulDiv can be used to get the address of a variable.
It can be used as an alternative for StrPtr/VarPtr/ObjPtr..
I've already managed to use it as a replacement for VarPtr but I couldn't find out how
to use it as StrPtr/ObjPtr!!
example: "Credit's to karcrack"
I need help to:
1. Use it as replacement for StrPtr/ObjPtr.
2. know how to invoke this API.
The Win32 API function MulDiv can be used to get the address of a variable.
It can be used as an alternative for StrPtr/VarPtr/ObjPtr..
I've already managed to use it as a replacement for VarPtr but I couldn't find out how
to use it as StrPtr/ObjPtr!!
example: "Credit's to karcrack"
Código [Seleccionar]
Private Declare Function var2ptr Lib "KERNEL32" Alias "MulDiv" (ByRef a As Any, Optional ByVal b As Long = 1, Optional ByVal c As Long = 1) as Long
Dim x As Long
x = 1337
MsgBox "Is it working? " & Format$(var2ptr(x) = VarPtr(x), "Yes/No")
I need help to:
1. Use it as replacement for StrPtr/ObjPtr.
2. know how to invoke this API.