RoGetApartmentIdentifier function Null safety winrt

int RoGetApartmentIdentifier(
  1. Pointer<Uint64> apartmentIdentifier
)

Gets a unique identifier for the current apartment.

HRESULT RoGetApartmentIdentifier(
  UINT64 *apartmentIdentifier
);

Implementation

int RoGetApartmentIdentifier(Pointer<Uint64> apartmentIdentifier) {
  final _RoGetApartmentIdentifier =
      _api_ms_win_core_winrt_l1_1_0.lookupFunction<
          Int32 Function(Pointer<Uint64> apartmentIdentifier),
          int Function(
              Pointer<Uint64> apartmentIdentifier)>('RoGetApartmentIdentifier');
  return _RoGetApartmentIdentifier(apartmentIdentifier);
}