ProgIDFromCLSID function Null safety ole32

int ProgIDFromCLSID(
  1. Pointer<GUID> clsid,
  2. Pointer<Pointer<Utf16>> lplpszProgID
)

Retrieves the ProgID for a given CLSID.

HRESULT ProgIDFromCLSID(
  REFCLSID clsid,
  LPOLESTR *lplpszProgID
);

Implementation

int ProgIDFromCLSID(Pointer<GUID> clsid, Pointer<Pointer<Utf16>> lplpszProgID) {
  final _ProgIDFromCLSID = _ole32.lookupFunction<
      Int32 Function(Pointer<GUID> clsid, Pointer<Pointer<Utf16>> lplpszProgID),
      int Function(Pointer<GUID> clsid,
          Pointer<Pointer<Utf16>> lplpszProgID)>('ProgIDFromCLSID');
  return _ProgIDFromCLSID(clsid, lplpszProgID);
}