dll tool tutorial.

dll_tool takes a .net library (.dll) and exposes the functions it contains to unmanaged programs.
It does this by using ildasm to decompile the dll to il. The il is then modified and recompiled with ilasm.

Details of the modifications can be found in Inside .Net Il Assembler by Serge Lidin, searching google
for inverse pinvoke or by reading the program source which is provided under the terms of the GNU GPL.

Select your ide.

I use sharp develop

I use visual studio