onDeviceStateChanged method

int onDeviceStateChanged(
  1. Pointer<Utf16> pwstrDeviceId,
  2. int dwNewState
)

Implementation

int onDeviceStateChanged(Pointer<Utf16> pwstrDeviceId, int dwNewState) =>
    (ptr.ref.vtable + 3)
        .cast<
            Pointer<
                NativeFunction<
                    Int32 Function(Pointer, Pointer<Utf16> pwstrDeviceId,
                        Uint32 dwNewState)>>>()
        .value
        .asFunction<
            int Function(Pointer, Pointer<Utf16> pwstrDeviceId,
                int dwNewState)>()(ptr.ref.lpVtbl, pwstrDeviceId, dwNewState);