getSensorByID method

int getSensorByID(
  1. Pointer<GUID> sensorID,
  2. Pointer<Pointer<COMObject>> ppSensor
)

Implementation

int getSensorByID(
        Pointer<GUID> sensorID, Pointer<Pointer<COMObject>> ppSensor) =>
    (ptr.ref.vtable + 5)
            .cast<
                Pointer<
                    NativeFunction<
                        Int32 Function(Pointer, Pointer<GUID> sensorID,
                            Pointer<Pointer<COMObject>> ppSensor)>>>()
            .value
            .asFunction<
                int Function(Pointer, Pointer<GUID> sensorID,
                    Pointer<Pointer<COMObject>> ppSensor)>()(
        ptr.ref.lpVtbl, sensorID, ppSensor);