#How to forward exports to a different module
1 messages · Page 1 of 1 (latest)
maybe pub usingnamespace @import(“other_module.zig”);
from what youre describing in the title
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.
yes, exactly. i was trying to reimplement a DLL hijacking/proxying proof of concept in Zig