NASM Forum > Using NASM
How do I define a function alias for an imported function?
ig:
The first method is up to the author of the DLL; if it's you, you can do it - just write the (jumping) code in the DLL.
The second method (the actual Windows DLL forwarding) is, IMHO, up to the linker, not the compiler/nasm.
vitsoft:
--- Quote from: ig on August 09, 2019, 08:45:01 AM ---The second method (the actual Windows DLL forwarding) is, IMHO, up to the linker, not the compiler/nasm.
--- End quote ---
Indeed. In EuroAssembler linker is DLL forwarding implemented at export with keyword FWD=. Example of linker script:
--- Code: ---proxy PROGRAM Format=DLL
EXPORT abcd1234, LIB=original.dll, FWD=abcd
ENDPROGRAM
--- End code ---
Those three lines, when euroassembled, will create proxy.dll which exports function abcd from original.dll under a new name abcd1234.
ben321:
--- Quote from: Frank Kotler on August 07, 2019, 02:51:47 AM ---Does this help you any, ben321?
https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-redirection
Best,
Frank
--- End quote ---
I'm very well aware of that. But how do I implement that in NASM?
Frank Kotler:
Hi Ben,
It is not clear to me that you do anything in Nasm. It looks to me as if you do voodoo with your OS. However, I am not "well aware" of the situation.
Best,
Frank
Navigation
[0] Message Index
[*] Previous page
Go to full version