CLSIDFromProgIDEx function Null safety ole32

int CLSIDFromProgIDEx(
  1. Pointer<Utf16> lpszProgID,
  2. Pointer<GUID> lpclsid
)

Triggers automatic installation if the COMClassStore policy is enabled.

HRESULT CLSIDFromProgIDEx(
  LPCOLESTR lpszProgID,
  LPCLSID   lpclsid
);

Implementation

int CLSIDFromProgIDEx(Pointer<Utf16> lpszProgID, Pointer<GUID> lpclsid) {
  final _CLSIDFromProgIDEx = _ole32.lookupFunction<
      Int32 Function(Pointer<Utf16> lpszProgID, Pointer<GUID> lpclsid),
      int Function(Pointer<Utf16> lpszProgID,
          Pointer<GUID> lpclsid)>('CLSIDFromProgIDEx');
  return _CLSIDFromProgIDEx(lpszProgID, lpclsid);
}