ComObject.createInstance

  1. HRESULT createInstance(I target, CLSCTX context, IUnknown outer)
  2. HRESULT createInstance(inout(T)[] progID, I target, ComClassContext context, IUnknown outer)
    class ComObject
    extern (D) @nogc static
    HRESULT
    createInstance
    (
    T
    I = IUnknown
    )
    (
    inout(T)[] progID
    ,
    ref I target
    ,,
    IUnknown outer = null
    )
    if (
    is(I == interface) &&
    is(I : IUnknown)
    )

Parameters

progID inout(T)[]

ProgID of the class to instantiate in any encoding. The encoding is automatically converted to the correct format.

target I

The target instance to create

context ComClassContext

The class context

outer IUnknown

The outer class

Meta