Is .NET support for Win32 Code Interop?

Posted by Usman on Stack Overflow See other posts from Stack Overflow or by Usman
Published on 2010-05-21T14:09:17Z Indexed on 2010/05/21 14:10 UTC
Read the original article Hit count: 545

Filed under:
|
|
|
|

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

© Stack Overflow or respective owner

Related posts about c#

Related posts about win32