Import.CoCreateInstance Method
[return: MarshalAs(UnmanagedType.Interface)]
[DllImport("ole32.dll", ExactSpelling = true, PreserveSig = false)]
public static extern object CoCreateInstance(
[In()]
ref Guid clsid,
[MarshalAs(UnmanagedType.Interface)]
object punkOuter,
int context,
[In()]
ref Guid iid
)
This language is not supported or no code example is available.
Parameters
- clsid
- Guid
- punkOuter
- object
- context
- int
- iid
- Guid
Return Value
object[return: MarshalAs(UnmanagedType.Interface)] [DllImport("ole32.dll", ExactSpelling = true, PreserveSig = false)] public static extern object CoCreateInstance([In] ref Guid clsid, [MarshalAs(UnmanagedType.Interface)] object punkOuter, int context, [In] ref Guid iid);
This language is not supported or no code example is available.