GetActiveObject function Null safety oleaut32

int GetActiveObject(
  1. Pointer<GUID> rclsid,
  2. Pointer<NativeType> pvReserved,
  3. Pointer<Pointer<NativeType>> ppunk
)

Retrieves a pointer to a running object that has been registered with OLE.

HRESULT GetActiveObject(
  REFCLSID rclsid,
  void     *pvReserved,
  IUnknown **ppunk
);

Implementation

int GetActiveObject(
    Pointer<GUID> rclsid, Pointer pvReserved, Pointer<Pointer> ppunk) {
  final _GetActiveObject = _oleaut32.lookupFunction<
      Int32 Function(
          Pointer<GUID> rclsid, Pointer pvReserved, Pointer<Pointer> ppunk),
      int Function(Pointer<GUID> rclsid, Pointer pvReserved,
          Pointer<Pointer> ppunk)>('GetActiveObject');
  return _GetActiveObject(rclsid, pvReserved, ppunk);
}