IUnknown constructor

IUnknown(
  1. Pointer<COMObject> ptr
)

Implementation

IUnknown(this.ptr) {
  if (!ptr.ref.isNull) {
    _finalizer.attach(this, ptr, detach: this);
  }
}