CoCreateInstanceEx (ole32)
Last changed: -84.160.203.25

.
Summary

C# Signature:

[DllImport("ole32.dll", CharSet=CharSet.Unicode, ExactSpelling=true, PreserveSig=false)]
static extern void CoCreateInstanceEx(
   [In, MarshalAs(UnmanagedType.LPStruct)] Guid rclsid,
   [MarshalAs(UnmanagedType.IUnknown)] object pUnkOuter,
   CLSCTX dwClsCtx,
   IntPtr pServerInfo,
   uint cmq,
   [In, Out] MULTI_QI[] pResults);

User-Defined Types:

CLSCTX, MULTI_QI

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

If you just want to create an instance on a specific server, try Microsoft.VisualBasic.Interaction.CreateObject.

Documentation