#How to forward exports to a different module

1 messages · Page 1 of 1 (latest)

hollow wing
#
#pragma comment(linker, "/export:exportedFunction2=legit1.exportedFunction2")
#pragma comment(linker, "/export:exportedFunction3=legit1.exportedFunction3")```

need the zig equivalent of this
fathom garnet
#

maybe pub usingnamespace @import(“other_module.zig”);

#

from what youre describing in the title

thin current
#

I don't fully understand what pub usingnamespace does, but I'm pretty sure it doesn't do what OP wants. from my understanding, this tells the linker to export functions in a certain way ("let this DLL export exportedFunction, redirect accesses to exportedFunction as exported by legit.dll").

what are you trying to do? this kinda reminds me of my experiments of DLL hijacking/proxying some time ago; I used this pragma as well.

hollow wing