createInspectable static method

Pointer<COMObject> createInspectable(
  1. Pointer<COMObject> value
)

Implementation

static Pointer<COMObject> createInspectable(Pointer<COMObject> value) {
  final activationFactory =
      CreateActivationFactory(_className, IID_IPropertyValueStatics);

  try {
    return IPropertyValueStatics.fromRawPointer(activationFactory)
        .createInspectable(value);
  } finally {
    free(activationFactory);
  }
}