Dibya Posted August 23, 2018 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
roytam1 Posted August 23, 2018 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
Dibya Posted August 25, 2018 Author 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.
hotnuma Posted August 25, 2018 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 :
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now