Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

Export managed function to unmanaged

$
0
0

Hi,

I have a question about managed dll and i want to known if it is a good idea to modify the IL code in order to exports managed methods from dll.

I have read the chapter 18 of the book "expert .net 2.0 IL Assembler" and made an example on how to exports managed methods as unmanaged.

the example is to that :

change the flags to .corflags 0x00000002

and thid ect ....vtfixup [1] int32 fromunmanaged at VT_01

and inside the method:

.method public static void Yabba()
{
.vtentry 1:1
.export [1]


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>