CoCreateInstance exact match in .NET?
See the question and my original answer on StackOverflowYou could also do this:
[ComImport]
[Guid(YourGuidGoesHere)]
private class MyClass
{
}
and create an instance of the COM Object like this:
IYourInterface myClass = (IYourInterface)(new MyClass());
Without using p/invoke.