Dibya Posted August 23, 2018 Share Posted August 23, 2018 (edited) Anyone know any script/ batch file /program that can convert list of API into forwarded API def file for link.exe? For example if I feed kernel32.dll it will create a def file for kernel32 wrapper like this Firstfunction = Kernel32.Firstfunction#1 We can do it easily for C++ but I need for MASM Edited August 23, 2018 by Dibya Link to comment Share on other sites More sharing options...
roytam1 Posted August 23, 2018 Share Posted August 23, 2018 (edited) what about tiny_impdef.exe from TinyCC? it is standalone and not that long: https://github.com/TinyCC/tinycc/blob/f34b1feaca557cd9da198610b67d4328fb0c7a84/win32/tools/tiny_impdef.c Edited August 23, 2018 by roytam1 Link to comment Share on other sites More sharing options...
Dibya Posted August 25, 2018 Author Share Posted August 25, 2018 On 8/23/2018 at 9:03 PM, roytam1 said: what about tiny_impdef.exe from TinyCC? it is standalone and not that long: https://github.com/TinyCC/tinycc/blob/f34b1feaca557cd9da198610b67d4328fb0c7a84/win32/tools/tiny_impdef.c I can't compile it with gcc . Please can you help me. Link to comment Share on other sites More sharing options...
hotnuma Posted August 25, 2018 Share Posted August 25, 2018 You need first to add the path of MinGW's bin directory to your PATH env variable. Then it's trivial : gcc -o tiny_impdef.exe tiny_impdef.c Then to generate a def file : tiny_impdef.exe regex2.dll Then you get the generated file : Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now