I was inspired by this article https://www.codeproject.com/Articles/13601/COM-in-plain-C They generate Vtables and use them in C. Your library allos generation of VTABLES from managed code..