>But I wish to make it in my code (System.Runtime.InteropServices
>namespace or other).
There's no class in the BCL that will do this for you. You'll have to
write the code yourself by studying the PE file format and looking at
the Import Address Table (IAT) in the executable. This article is a
good read
http://msdn.microsoft.com/msdnmag/issues/02/03/PE2/
Mattias

Signature
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jason Newell - 04 May 2006 22:31 GMT
Very nice read. I looked and looked for an article like that and
couldn't find one. Thanks Mattias.
Jason
>>But I wish to make it in my code (System.Runtime.InteropServices
>>namespace or other).
[quoted text clipped - 7 lines]
>
> Mattias