onDeviceStateChanged method
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);