-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
31 lines (22 loc) · 1.01 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
This is a tool that can modify name decoration inside an import library.
Sometimes you will find it hard to generate an import library like those in
Windows SDK.
Take Sleep in kernel32.dll for example.
You may feel like to generate kernel32.lib from this .def file:
LIBRARY kernel32.dll
EXPORTS
Sleep
Then you will find the linker is looking for _Sleep@4, not Sleep.
If .def file is changed to:
LIBRARY kernel32.dll
EXPORTS
Sleep@4
Then the program won't run because it tries to import Sleep@4 from kernel32
This tool can help you change the import name Sleep@4 to Sleep,
while the linking name keeps Sleep@4. Just open the import library and
change the import type to undecorate, save it.
NOTICE: IT CAN ONLY MODIFY THE .LIB GENERATED BY LIB.EXE OR LINK.EXE /LIB.
If you need targeted .net FW 2.0 but doesn't have the toolset.
you may use ildasm to convert the CoreInterfaces.dll into .il,
then convert it back into .dll by using the ilasm of .net fw 2.0 which could
be found in "C:\Windows\Microsoft.NET\Framework\v2.0.50727".