Re: How to get the adress machine of any c_proc()
- Posted by petelomax Nov 14, 2013
- 1544 views
javier07b9 said...
Yes, this is a complicated way for call any c_proc(), only i try this for understanding how works Euphoria
On windows, open_dll and define_c_func are just wrappers for LoadLibrary and GetProcAddress respectively. You can (if you really really really must) do something like
kernel32 = open_dll("kernel32.dll") xLoadLibrary = define_c_func(kernel32,"LoadLibraryA",{C_PTR},C_PTR) xGetProcAddress = define_c_func(kernel32, "GetProcAddress",{C_PTR,C_PTR},C_PTR)
and invoke those via c_func to get the raw addresses and play with those directly (strictly for learning purposes only, and may require some assembly code)
Pete