hi,
how to convert kernell32.dll to .net framework. I heared this this process called com interop. It is posible to view all function inside this dll?
thanks,
Popskie
Printable View
hi,
how to convert kernell32.dll to .net framework. I heared this this process called com interop. It is posible to view all function inside this dll?
thanks,
Popskie
Since Kernel32 is not a COM library, you cannot use COM interop to call its functions. However, you can use Platform Invoke.
For example, to reference the MoveFile function from Kernel32:
HTH.Code:public class wrapper
{
[DllImport("Kernel32.dll")]
public static extern int MoveFile(string moveFrom, string moveTo);
};
// and then...
wrapper.MoveFile(@"C:\test.txt", @"C:\test_moved.txt");
thanks sunburnt but how to get all function inside the dll. e.g. the movefile function. Is there any third party software?
thanks,
Popskie
already got it thanks,