<PackageReference Include="System.Drawing.Common" Version="10.0.0-preview.1.25080.3" />

GlobalInterfaceTable

static class GlobalInterfaceTable
Wrapper for the COM global interface table.

Creates a new instance of an IIUnknownStrategy for StrategyBasedComWrappers that uses the Global Interface Table.

public static ComScope<TInterface> GetInterface<TInterface>(uint cookie, out HRESULT result) where TInterface : ValueType modreq(System.Runtime.InteropServices.UnmanagedType), IComIID

Gets an agile interface for the cookie that was given back by RegisterInterface<T>

public static uint RegisterInterface<TInterface>(TInterface* interface) where TInterface : ValueType modreq(System.Runtime.InteropServices.UnmanagedType), IComIID

Registers the given interface in the global interface table. This decrements the ref count so that the entry in the table will "own" the interface (as it increments the ref count).

public static HRESULT RevokeInterface(uint cookie)

Revokes the interface registered with RegisterInterface<T>. This will decrement the ref count for the interface.