views:

21

answers:

1

Hello,

I want to know the types and details in a plain Win32DLL just like we can get in case of COM.In COM every thing embed inside idl and results in TLB, here we get every thing , MSFT exposes APIS by which we can extract types.

In case of Win32 I strongly needed types defined in it and all details of that type(e.g what are members in it and their types as well). Parsing PE file and looking up export table only gives the exported functions. I want all custom types(Win32 interfaces,classes and members details with types) defined in it.

How?

Regards Usman

+1  A: 

Try first whether pinvoke.net has the definitions for Win32 API in question. If so, copy & paste to your source code. If not available, you can use the existing defitions and MSDN documentation and SDK header files to hand-craft the correct method signatures and data structures.

Another option is to introduce C++ CLI that can create a mixed native-CLR asembly. The CLI project can use the Win32 API just like a native C++ project and reveal a higher level .Net interface for your other assemblies.

Taneli Waltari