RoActivateInstance function Null safety winrt

int RoActivateInstance (
  1. int activatableClassId,
  2. Pointer<Pointer<NativeType>> instance
)

Activates the specified Windows Runtime class.

HRESULT RoActivateInstance(
  HSTRING      activatableClassId,
  IInspectable **instance
);

Implementation

int RoActivateInstance(int activatableClassId, Pointer<Pointer> instance) {
  final _RoActivateInstance = _api_ms_win_core_winrt_l1_1_0.lookupFunction<
      Int32 Function(IntPtr activatableClassId, Pointer<Pointer> instance),
      int Function(int activatableClassId,
          Pointer<Pointer> instance)>('RoActivateInstance');
  return _RoActivateInstance(activatableClassId, instance);
}