StringFromIID function Null safety ole32

int StringFromIID(
  1. Pointer<GUID> rclsid,
  2. Pointer<Pointer<Utf16>> lplpsz
)

Converts an interface identifier into a string of printable characters.

HRESULT StringFromIID(
  REFIID   rclsid,
  LPOLESTR *lplpsz
);

Implementation

int StringFromIID(Pointer<GUID> rclsid, Pointer<Pointer<Utf16>> lplpsz) {
  final _StringFromIID = _ole32.lookupFunction<
      Int32 Function(Pointer<GUID> rclsid, Pointer<Pointer<Utf16>> lplpsz),
      int Function(Pointer<GUID> rclsid,
          Pointer<Pointer<Utf16>> lplpsz)>('StringFromIID');
  return _StringFromIID(rclsid, lplpsz);
}