RoGetMetaDataFile function Null safety winrt

int RoGetMetaDataFile(
  1. int name,
  2. Pointer<IntPtr> metaDataDispenser,
  3. Pointer<IntPtr> metaDataFilePath,
  4. Pointer<Pointer<NativeType>> metaDataImport,
  5. Pointer<Uint32> typeDefToken
)

Locates and retrieves the metadata file that describes the Application Binary Interface (ABI) for the specified typename.

HRESULT RoGetMetaDataFile(
  const HSTRING        name,
  IMetaDataDispenserEx *metaDataDispenser,
  HSTRING              *metaDataFilePath,
  IMetaDataImport2     **metaDataImport,
  mdTypeDef            *typeDefToken
);

Implementation

int RoGetMetaDataFile(
    int name,
    Pointer<IntPtr> metaDataDispenser,
    Pointer<IntPtr> metaDataFilePath,
    Pointer<Pointer> metaDataImport,
    Pointer<Uint32> typeDefToken) {
  final _RoGetMetaDataFile =
      _api_ms_win_ro_typeresolution_l1_1_0.lookupFunction<
          Int32 Function(
              IntPtr name,
              Pointer<IntPtr> metaDataDispenser,
              Pointer<IntPtr> metaDataFilePath,
              Pointer<Pointer> metaDataImport,
              Pointer<Uint32> typeDefToken),
          int Function(
              int name,
              Pointer<IntPtr> metaDataDispenser,
              Pointer<IntPtr> metaDataFilePath,
              Pointer<Pointer> metaDataImport,
              Pointer<Uint32> typeDefToken)>('RoGetMetaDataFile');
  return _RoGetMetaDataFile(
      name, metaDataDispenser, metaDataFilePath, metaDataImport, typeDefToken);
}