CLSIDFromString function Null safety ole32

int CLSIDFromString(
  1. Pointer<Utf16> lpsz,
  2. Pointer<GUID> pclsid
)

Converts a string generated by the StringFromCLSID function back into the original CLSID.

HRESULT CLSIDFromString(
  LPCOLESTR lpsz,
  LPCLSID   pclsid
);

Implementation

int CLSIDFromString(Pointer<Utf16> lpsz, Pointer<GUID> pclsid) {
  final _CLSIDFromString = _ole32.lookupFunction<
      Int32 Function(Pointer<Utf16> lpsz, Pointer<GUID> pclsid),
      int Function(
          Pointer<Utf16> lpsz, Pointer<GUID> pclsid)>('CLSIDFromString');
  return _CLSIDFromString(lpsz, pclsid);
}