السلام عليكم
اعتقد انة يمكن عمل interface من خلال C++/CLI
مثل هذا الكود في #C
كود
namespace ShellExtensions.Interop
{
using System;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.ComTypes;
[ComImport, InterfaceType(ComInterfaceType.InterfaceIsIUnknown), Guid("000214E8-0000-0000-C000-000000000046")]
internal interface IShellExtInit
{
void Initialize(
[In] IntPtr pidlFolder,
[In, MarshalAs(UnmanagedType.Interface)] IDataObject pdtobj,
[In] int hkeyProgID
);
}
}
ويمكن استخدام الاداه TlbExp.exe لااستخراج او تحويلها الي lib.*
وهناك اداة TlbImp.exe تقوم بتحويل lib.* الي dll ليتم التعامل معها
وهذة الادوات تجدها في مجلد bin ضمن الـ dot net SDK v2.0
اعتذر عن هذا الخطأ كنت اعتقد انك كنت تقصد عمل مكتبات tlb