getType method

int getType(
  1. Pointer<GUID> pSensorType
)

Implementation

int getType(Pointer<GUID> pSensorType) => (ptr.ref.vtable + 5)
    .cast<
      Pointer<
        NativeFunction<Int32 Function(Pointer, Pointer<GUID> pSensorType)>
      >
    >()
    .value
    .asFunction<int Function(Pointer, Pointer<GUID> pSensorType)>()(
  ptr.ref.lpVtbl,
  pSensorType,
);