onDeviceAdded method

int onDeviceAdded(
  1. Pointer<Utf16> pwstrDeviceId
)

Implementation

int onDeviceAdded(Pointer<Utf16> pwstrDeviceId) => (ptr.ref.vtable + 4)
    .cast<
      Pointer<
        NativeFunction<Int32 Function(Pointer, Pointer<Utf16> pwstrDeviceId)>
      >
    >()
    .value
    .asFunction<int Function(Pointer, Pointer<Utf16> pwstrDeviceId)>()(
  ptr.ref.lpVtbl,
  pwstrDeviceId,
);