remove_HeadsetDisconnected method

void remove_HeadsetDisconnected(
  1. int token
)

Implementation

void remove_HeadsetDisconnected(int token) {
  final hr = ptr.ref.vtable
      .elementAt(9)
      .cast<
          Pointer<NativeFunction<HRESULT Function(Pointer, IntPtr token)>>>()
      .value
      .asFunction<int Function(Pointer, int token)>()(ptr.ref.lpVtbl, token);

  if (FAILED(hr)) throw WindowsException(hr);
}