StringFromGUID2 function Null safety ole32

int StringFromGUID2 (
  1. Pointer<GUID> rguid,
  2. Pointer<Utf16> lpsz,
  3. int cchMax
)

Converts a globally unique identifier (GUID) into a string of printable characters.

int StringFromGUID2(
  REFGUID  rguid,
  LPOLESTR lpsz,
int      cchMax
);

Implementation

int StringFromGUID2(Pointer<GUID> rguid, Pointer<Utf16> lpsz, int cchMax) {
  final _StringFromGUID2 = _ole32.lookupFunction<
      Int32 Function(Pointer<GUID> rguid, Pointer<Utf16> lpsz, Int32 cchMax),
      int Function(Pointer<GUID> rguid, Pointer<Utf16> lpsz,
          int cchMax)>('StringFromGUID2');
  return _StringFromGUID2(rguid, lpsz, cchMax);
}