RoGetActivationFactory function Null safety winrt

int RoGetActivationFactory(
  1. int activatableClassId,
  2. Pointer<GUID> iid,
  3. Pointer<Pointer<NativeType>> factory
)

Gets the activation factory for the specified runtime class.

HRESULT RoGetActivationFactory(
  HSTRING activatableClassId,
  REFIID  iid,
  void    **factory
);

Implementation

int RoGetActivationFactory(
    int activatableClassId, Pointer<GUID> iid, Pointer<Pointer> factory) {
  final _RoGetActivationFactory = _api_ms_win_core_winrt_l1_1_0.lookupFunction<
      Int32 Function(IntPtr activatableClassId, Pointer<GUID> iid,
          Pointer<Pointer> factory),
      int Function(int activatableClassId, Pointer<GUID> iid,
          Pointer<Pointer> factory)>('RoGetActivationFactory');
  return _RoGetActivationFactory(activatableClassId, iid, factory);
}