Is .NET support for Win32 Code Interop?
- by Usman
Hello,
I need to InterOp Win32 code (unmanaged Win32 DLL's and Exe) completely with .NET. I need to call Win32 unmanaged code(DLL exported functions) at runtime i.e (knowing the types of data types in Win32 signatures and need to pass data according to that type at runtime).
This is 100% possible in case of COM. You can convert COM unmanaged code to managed assemblies using tlbimp.exe and use now reflection API to work with those managed types(actual were unmanaged types now converted managed using tlbimp).
But same functionality I need to get in terms of Win32(i.e) in .NET framework.
How?? I know MS provided Export table reading API ..but I couldn't find exact API for InterOp of Win32 unmanaged code
Regards