IIDFromString function Null safety ole32

int IIDFromString(
  1. Pointer<Utf16> lpsz,
  2. Pointer<GUID> lpiid
)

Converts a string generated by the StringFromIID function back into the original interface identifier (IID).

HRESULT IIDFromString(
  LPCOLESTR lpsz,
  LPIID     lpiid
);

Implementation

int IIDFromString(Pointer<Utf16> lpsz, Pointer<GUID> lpiid) {
  final _IIDFromString = _ole32.lookupFunction<
      Int32 Function(Pointer<Utf16> lpsz, Pointer<GUID> lpiid),
      int Function(Pointer<Utf16> lpsz, Pointer<GUID> lpiid)>('IIDFromString');
  return _IIDFromString(lpsz, lpiid);
}