#w32 ModuleBaseAddress pointer to int

12 messages · Page 1 of 1 (latest)

upbeat quiver
#

you cannot dereference it if it's null

merry anchor
#

that's the address

#

check for nil, and if not nil deref

#

for what reason do you want the address as a u32?

#

That doesn't work on 64 bit architectures

#

It's likely you want to use unsafe to cast

#

uint32(*(*uint64)(unsafe.Pointer(modules[0].ModuleBaseAddress)))

#

might just do the trick

upbeat quiver
#

yeah you don't wanna dereference that pointer

#

also uh, The modBaseAddr and hModule members are valid only in the context of the process specified by th32ProcessID. so if youre trying to use it from a different process it's not gonna b great

rugged pewter
#

w32 ModuleBaseAddress pointer to int