diff --git a/packages/windows_ai/lib/src/machinelearning/iimagefeaturedescriptor.dart b/packages/windows_ai/lib/src/machinelearning/iimagefeaturedescriptor.dart index 39309319..b444bb3f 100644 --- a/packages/windows_ai/lib/src/machinelearning/iimagefeaturedescriptor.dart +++ b/packages/windows_ai/lib/src/machinelearning/iimagefeaturedescriptor.dart @@ -31,17 +31,17 @@ class IImageFeatureDescriptor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -55,17 +55,17 @@ class IImageFeatureDescriptor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -79,7 +79,7 @@ class IImageFeatureDescriptor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -89,7 +89,7 @@ class IImageFeatureDescriptor extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -103,7 +103,7 @@ class IImageFeatureDescriptor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -113,7 +113,7 @@ class IImageFeatureDescriptor extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_ai/lib/src/machinelearning/iimagefeaturedescriptor2.dart b/packages/windows_ai/lib/src/machinelearning/iimagefeaturedescriptor2.dart index 9c160016..7e1be06b 100644 --- a/packages/windows_ai/lib/src/machinelearning/iimagefeaturedescriptor2.dart +++ b/packages/windows_ai/lib/src/machinelearning/iimagefeaturedescriptor2.dart @@ -32,17 +32,17 @@ class IImageFeatureDescriptor2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_ai/lib/src/machinelearning/iimagefeaturevalue.dart b/packages/windows_ai/lib/src/machinelearning/iimagefeaturevalue.dart index a1bff217..0bdb4da3 100644 --- a/packages/windows_ai/lib/src/machinelearning/iimagefeaturevalue.dart +++ b/packages/windows_ai/lib/src/machinelearning/iimagefeaturevalue.dart @@ -30,7 +30,7 @@ class IImageFeatureValue extends IInspectable { VideoFrame? get videoFrame { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IImageFeatureValue extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_ai/lib/src/machinelearning/iimagefeaturevaluestatics.dart b/packages/windows_ai/lib/src/machinelearning/iimagefeaturevaluestatics.dart index 544e8b85..054a13c5 100644 --- a/packages/windows_ai/lib/src/machinelearning/iimagefeaturevaluestatics.dart +++ b/packages/windows_ai/lib/src/machinelearning/iimagefeaturevaluestatics.dart @@ -32,7 +32,7 @@ class IImageFeatureValueStatics extends IInspectable { ImageFeatureValue? createFromVideoFrame(VideoFrame? image) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,11 +41,8 @@ class IImageFeatureValueStatics extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer image, - Pointer - result)>()(ptr.ref.lpVtbl, image.lpVtbl, result); + int Function(VTablePointer lpVtbl, VTablePointer image, + Pointer result)>()(lpVtbl, image.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/ilearningmodel.dart b/packages/windows_ai/lib/src/machinelearning/ilearningmodel.dart index 72e1aceb..c7fde3f8 100644 --- a/packages/windows_ai/lib/src/machinelearning/ilearningmodel.dart +++ b/packages/windows_ai/lib/src/machinelearning/ilearningmodel.dart @@ -32,7 +32,7 @@ class ILearningModel extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class ILearningModel extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class ILearningModel extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class ILearningModel extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -80,7 +80,7 @@ class ILearningModel extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -90,7 +90,7 @@ class ILearningModel extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -104,7 +104,7 @@ class ILearningModel extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -114,7 +114,7 @@ class ILearningModel extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -128,17 +128,17 @@ class ILearningModel extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -151,7 +151,7 @@ class ILearningModel extends IInspectable { Map? get metadata { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -161,7 +161,7 @@ class ILearningModel extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -181,7 +181,7 @@ class ILearningModel extends IInspectable { List? get inputFeatures { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -191,7 +191,7 @@ class ILearningModel extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -212,7 +212,7 @@ class ILearningModel extends IInspectable { List? get outputFeatures { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -222,7 +222,7 @@ class ILearningModel extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_ai/lib/src/machinelearning/ilearningmodelbinding.dart b/packages/windows_ai/lib/src/machinelearning/ilearningmodelbinding.dart index d23f1dca..321ba714 100644 --- a/packages/windows_ai/lib/src/machinelearning/ilearningmodelbinding.dart +++ b/packages/windows_ai/lib/src/machinelearning/ilearningmodelbinding.dart @@ -27,7 +27,7 @@ class ILearningModelBinding extends IInspectable { interface.cast(ILearningModelBinding.fromPtr, IID_ILearningModelBinding); void bind(String name, Object? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -38,13 +38,13 @@ class ILearningModelBinding extends IInspectable { .asFunction< int Function( VTablePointer lpVtbl, int name, VTablePointer value)>()( - ptr.ref.lpVtbl, name.toHString(), value?.boxValue().lpVtbl ?? nullptr); + lpVtbl, name.toHString(), value?.boxValue().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } void bindWithProperties(String name, Object? value, IPropertySet? props) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -54,18 +54,18 @@ class ILearningModelBinding extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int name, - VTablePointer value, VTablePointer props)>()(ptr.ref.lpVtbl, + VTablePointer value, VTablePointer props)>()(lpVtbl, name.toHString(), value?.boxValue().lpVtbl ?? nullptr, props.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } void clear() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ai/lib/src/machinelearning/ilearningmodelbindingfactory.dart b/packages/windows_ai/lib/src/machinelearning/ilearningmodelbindingfactory.dart index 0250d8c2..4fc7293d 100644 --- a/packages/windows_ai/lib/src/machinelearning/ilearningmodelbindingfactory.dart +++ b/packages/windows_ai/lib/src/machinelearning/ilearningmodelbindingfactory.dart @@ -34,21 +34,17 @@ class ILearningModelBindingFactory extends IInspectable { LearningModelBinding createFromSession(LearningModelSession? session) { final value = calloc(); - final hr = - ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - VTablePointer session, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer session, - Pointer value)>()( - ptr.ref.lpVtbl, session.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer session, Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer session, + Pointer value)>()(lpVtbl, session.lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_ai/lib/src/machinelearning/ilearningmodeldevice.dart b/packages/windows_ai/lib/src/machinelearning/ilearningmodeldevice.dart index fdfce529..2d58034b 100644 --- a/packages/windows_ai/lib/src/machinelearning/ilearningmodeldevice.dart +++ b/packages/windows_ai/lib/src/machinelearning/ilearningmodeldevice.dart @@ -31,18 +31,17 @@ class ILearningModelDevice extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +54,7 @@ class ILearningModelDevice extends IInspectable { IDirect3DDevice? get direct3D11Device { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -65,7 +64,7 @@ class ILearningModelDevice extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_ai/lib/src/machinelearning/ilearningmodeldevicefactory.dart b/packages/windows_ai/lib/src/machinelearning/ilearningmodeldevicefactory.dart index a3703b81..47190bae 100644 --- a/packages/windows_ai/lib/src/machinelearning/ilearningmodeldevicefactory.dart +++ b/packages/windows_ai/lib/src/machinelearning/ilearningmodeldevicefactory.dart @@ -34,18 +34,17 @@ class ILearningModelDeviceFactory extends IInspectable { LearningModelDevice create(LearningModelDeviceKind deviceKind) { final value = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 deviceKind, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int deviceKind, - Pointer value)>()( - ptr.ref.lpVtbl, deviceKind.value, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 deviceKind, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int deviceKind, + Pointer value)>()(lpVtbl, deviceKind.value, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_ai/lib/src/machinelearning/ilearningmodeldevicestatics.dart b/packages/windows_ai/lib/src/machinelearning/ilearningmodeldevicestatics.dart index 9e74e42c..c0a76c7e 100644 --- a/packages/windows_ai/lib/src/machinelearning/ilearningmodeldevicestatics.dart +++ b/packages/windows_ai/lib/src/machinelearning/ilearningmodeldevicestatics.dart @@ -34,21 +34,17 @@ class ILearningModelDeviceStatics extends IInspectable { LearningModelDevice? createFromDirect3D11Device(IDirect3DDevice? device) { final result = calloc(); - final hr = - ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - VTablePointer device, - Pointer result)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer device, - Pointer result)>()( - ptr.ref.lpVtbl, device.lpVtbl, result); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, VTablePointer device, + Pointer result)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer device, + Pointer result)>()(lpVtbl, device.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/ilearningmodelevaluationresult.dart b/packages/windows_ai/lib/src/machinelearning/ilearningmodelevaluationresult.dart index c996b0e3..70e248e9 100644 --- a/packages/windows_ai/lib/src/machinelearning/ilearningmodelevaluationresult.dart +++ b/packages/windows_ai/lib/src/machinelearning/ilearningmodelevaluationresult.dart @@ -32,7 +32,7 @@ class ILearningModelEvaluationResult extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class ILearningModelEvaluationResult extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,17 +56,17 @@ class ILearningModelEvaluationResult extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -80,17 +80,17 @@ class ILearningModelEvaluationResult extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -103,7 +103,7 @@ class ILearningModelEvaluationResult extends IInspectable { Map? get outputs { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -113,7 +113,7 @@ class ILearningModelEvaluationResult extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_ai/lib/src/machinelearning/ilearningmodelfeaturedescriptor.dart b/packages/windows_ai/lib/src/machinelearning/ilearningmodelfeaturedescriptor.dart index 757ab4e4..b6e21b11 100644 --- a/packages/windows_ai/lib/src/machinelearning/ilearningmodelfeaturedescriptor.dart +++ b/packages/windows_ai/lib/src/machinelearning/ilearningmodelfeaturedescriptor.dart @@ -34,7 +34,7 @@ class ILearningModelFeatureDescriptor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class ILearningModelFeatureDescriptor extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -58,7 +58,7 @@ class ILearningModelFeatureDescriptor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,7 +68,7 @@ class ILearningModelFeatureDescriptor extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -82,17 +82,17 @@ class ILearningModelFeatureDescriptor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -106,17 +106,17 @@ class ILearningModelFeatureDescriptor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_ai/lib/src/machinelearning/ilearningmodelfeaturevalue.dart b/packages/windows_ai/lib/src/machinelearning/ilearningmodelfeaturevalue.dart index 0eec88fc..6b7277b1 100644 --- a/packages/windows_ai/lib/src/machinelearning/ilearningmodelfeaturevalue.dart +++ b/packages/windows_ai/lib/src/machinelearning/ilearningmodelfeaturevalue.dart @@ -32,17 +32,17 @@ class ILearningModelFeatureValue extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_ai/lib/src/machinelearning/ilearningmodelsession.dart b/packages/windows_ai/lib/src/machinelearning/ilearningmodelsession.dart index 7c2fc58b..2e320b58 100644 --- a/packages/windows_ai/lib/src/machinelearning/ilearningmodelsession.dart +++ b/packages/windows_ai/lib/src/machinelearning/ilearningmodelsession.dart @@ -34,7 +34,7 @@ class ILearningModelSession extends IInspectable { LearningModel? get model { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class ILearningModelSession extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -62,7 +62,7 @@ class ILearningModelSession extends IInspectable { LearningModelDevice? get device { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -72,7 +72,7 @@ class ILearningModelSession extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -90,7 +90,7 @@ class ILearningModelSession extends IInspectable { IPropertySet? get evaluationProperties { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -100,7 +100,7 @@ class ILearningModelSession extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -119,7 +119,7 @@ class ILearningModelSession extends IInspectable { LearningModelBinding? bindings, String correlationId) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -133,7 +133,7 @@ class ILearningModelSession extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer bindings, int correlationId, Pointer operation)>()( - ptr.ref.lpVtbl, bindings.lpVtbl, correlationId.toHString(), operation); + lpVtbl, bindings.lpVtbl, correlationId.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -150,7 +150,7 @@ class ILearningModelSession extends IInspectable { IMap? features, String correlationId) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -164,7 +164,7 @@ class ILearningModelSession extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer features, int correlationId, Pointer operation)>()( - ptr.ref.lpVtbl, features.lpVtbl, correlationId.toHString(), operation); + lpVtbl, features.lpVtbl, correlationId.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -181,7 +181,7 @@ class ILearningModelSession extends IInspectable { LearningModelBinding? bindings, String correlationId) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -195,7 +195,7 @@ class ILearningModelSession extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer bindings, int correlationId, Pointer result)>()( - ptr.ref.lpVtbl, bindings.lpVtbl, correlationId.toHString(), result); + lpVtbl, bindings.lpVtbl, correlationId.toHString(), result); if (FAILED(hr)) { free(result); @@ -214,7 +214,7 @@ class ILearningModelSession extends IInspectable { IMap? features, String correlationId) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -228,7 +228,7 @@ class ILearningModelSession extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer features, int correlationId, Pointer result)>()( - ptr.ref.lpVtbl, features.lpVtbl, correlationId.toHString(), result); + lpVtbl, features.lpVtbl, correlationId.toHString(), result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/ilearningmodelsessionfactory.dart b/packages/windows_ai/lib/src/machinelearning/ilearningmodelsessionfactory.dart index c26545af..0eba3936 100644 --- a/packages/windows_ai/lib/src/machinelearning/ilearningmodelsessionfactory.dart +++ b/packages/windows_ai/lib/src/machinelearning/ilearningmodelsessionfactory.dart @@ -35,7 +35,7 @@ class ILearningModelSessionFactory extends IInspectable { LearningModelSession createFromModel(LearningModel? model) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,11 +44,8 @@ class ILearningModelSessionFactory extends IInspectable { Pointer value)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer model, - Pointer - value)>()(ptr.ref.lpVtbl, model.lpVtbl, value); + int Function(VTablePointer lpVtbl, VTablePointer model, + Pointer value)>()(lpVtbl, model.lpVtbl, value); if (FAILED(hr)) { free(value); @@ -62,7 +59,7 @@ class ILearningModelSessionFactory extends IInspectable { LearningModel? model, LearningModelDevice? deviceToRunOn) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -76,7 +73,7 @@ class ILearningModelSessionFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer model, VTablePointer deviceToRunOn, Pointer value)>()( - ptr.ref.lpVtbl, model.lpVtbl, deviceToRunOn.lpVtbl, value); + lpVtbl, model.lpVtbl, deviceToRunOn.lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_ai/lib/src/machinelearning/ilearningmodelsessionfactory2.dart b/packages/windows_ai/lib/src/machinelearning/ilearningmodelsessionfactory2.dart index 64e3b199..9ac03173 100644 --- a/packages/windows_ai/lib/src/machinelearning/ilearningmodelsessionfactory2.dart +++ b/packages/windows_ai/lib/src/machinelearning/ilearningmodelsessionfactory2.dart @@ -39,7 +39,7 @@ class ILearningModelSessionFactory2 extends IInspectable { LearningModelSessionOptions? learningModelSessionOptions) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -57,7 +57,7 @@ class ILearningModelSessionFactory2 extends IInspectable { VTablePointer model, VTablePointer deviceToRunOn, VTablePointer learningModelSessionOptions, - Pointer value)>()(ptr.ref.lpVtbl, model.lpVtbl, + Pointer value)>()(lpVtbl, model.lpVtbl, deviceToRunOn.lpVtbl, learningModelSessionOptions.lpVtbl, value); if (FAILED(hr)) { diff --git a/packages/windows_ai/lib/src/machinelearning/ilearningmodelsessionoptions.dart b/packages/windows_ai/lib/src/machinelearning/ilearningmodelsessionoptions.dart index 57dee0be..a9de1cf7 100644 --- a/packages/windows_ai/lib/src/machinelearning/ilearningmodelsessionoptions.dart +++ b/packages/windows_ai/lib/src/machinelearning/ilearningmodelsessionoptions.dart @@ -32,7 +32,7 @@ class ILearningModelSessionOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class ILearningModelSessionOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class ILearningModelSessionOptions extends IInspectable { set batchSizeOverride(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -63,7 +63,7 @@ class ILearningModelSessionOptions extends IInspectable { VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ai/lib/src/machinelearning/ilearningmodelsessionoptions2.dart b/packages/windows_ai/lib/src/machinelearning/ilearningmodelsessionoptions2.dart index a107f3a9..de1c2bbb 100644 --- a/packages/windows_ai/lib/src/machinelearning/ilearningmodelsessionoptions2.dart +++ b/packages/windows_ai/lib/src/machinelearning/ilearningmodelsessionoptions2.dart @@ -32,17 +32,17 @@ class ILearningModelSessionOptions2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -53,7 +53,7 @@ class ILearningModelSessionOptions2 extends IInspectable { } set closeModelOnSessionCreation(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -61,7 +61,7 @@ class ILearningModelSessionOptions2 extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ai/lib/src/machinelearning/ilearningmodelsessionoptions3.dart b/packages/windows_ai/lib/src/machinelearning/ilearningmodelsessionoptions3.dart index dbfbf6eb..74f91edd 100644 --- a/packages/windows_ai/lib/src/machinelearning/ilearningmodelsessionoptions3.dart +++ b/packages/windows_ai/lib/src/machinelearning/ilearningmodelsessionoptions3.dart @@ -29,7 +29,7 @@ class ILearningModelSessionOptions3 extends IInspectable { IID_ILearningModelSessionOptions3); void overrideNamedDimension(String name, int dimension) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class ILearningModelSessionOptions3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int name, int dimension)>()( - ptr.ref.lpVtbl, name.toHString(), dimension); + lpVtbl, name.toHString(), dimension); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ai/lib/src/machinelearning/ilearningmodelstatics.dart b/packages/windows_ai/lib/src/machinelearning/ilearningmodelstatics.dart index b8315441..9e91b32e 100644 --- a/packages/windows_ai/lib/src/machinelearning/ilearningmodelstatics.dart +++ b/packages/windows_ai/lib/src/machinelearning/ilearningmodelstatics.dart @@ -33,7 +33,7 @@ class ILearningModelStatics extends IInspectable { Future loadFromStorageFileAsync(IStorageFile? modelFile) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -46,7 +46,7 @@ class ILearningModelStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer modelFile, Pointer operation)>()( - ptr.ref.lpVtbl, modelFile.lpVtbl, operation); + lpVtbl, modelFile.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -62,7 +62,7 @@ class ILearningModelStatics extends IInspectable { IRandomAccessStreamReference? modelStream) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -75,7 +75,7 @@ class ILearningModelStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer modelStream, Pointer operation)>()( - ptr.ref.lpVtbl, modelStream.lpVtbl, operation); + lpVtbl, modelStream.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -90,7 +90,7 @@ class ILearningModelStatics extends IInspectable { LearningModel? loadFromFilePath(String filePath) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -101,7 +101,7 @@ class ILearningModelStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int filePath, Pointer result)>()( - ptr.ref.lpVtbl, filePath.toHString(), result); + lpVtbl, filePath.toHString(), result); if (FAILED(hr)) { free(result); @@ -119,7 +119,7 @@ class ILearningModelStatics extends IInspectable { LearningModel? loadFromStream(IRandomAccessStreamReference? modelStream) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -132,7 +132,7 @@ class ILearningModelStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer modelStream, Pointer result)>()( - ptr.ref.lpVtbl, modelStream.lpVtbl, result); + lpVtbl, modelStream.lpVtbl, result); if (FAILED(hr)) { free(result); @@ -152,7 +152,7 @@ class ILearningModelStatics extends IInspectable { ILearningModelOperatorProvider? operatorProvider) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -169,7 +169,7 @@ class ILearningModelStatics extends IInspectable { VTablePointer modelFile, VTablePointer operatorProvider, Pointer operation)>()( - ptr.ref.lpVtbl, modelFile.lpVtbl, operatorProvider.lpVtbl, operation); + lpVtbl, modelFile.lpVtbl, operatorProvider.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -186,7 +186,7 @@ class ILearningModelStatics extends IInspectable { ILearningModelOperatorProvider? operatorProvider) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -203,7 +203,7 @@ class ILearningModelStatics extends IInspectable { VTablePointer modelStream, VTablePointer operatorProvider, Pointer operation)>()( - ptr.ref.lpVtbl, modelStream.lpVtbl, operatorProvider.lpVtbl, operation); + lpVtbl, modelStream.lpVtbl, operatorProvider.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -219,7 +219,7 @@ class ILearningModelStatics extends IInspectable { String filePath, ILearningModelOperatorProvider? operatorProvider) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -236,7 +236,7 @@ class ILearningModelStatics extends IInspectable { int filePath, VTablePointer operatorProvider, Pointer result)>()( - ptr.ref.lpVtbl, filePath.toHString(), operatorProvider.lpVtbl, result); + lpVtbl, filePath.toHString(), operatorProvider.lpVtbl, result); if (FAILED(hr)) { free(result); @@ -256,7 +256,7 @@ class ILearningModelStatics extends IInspectable { ILearningModelOperatorProvider? operatorProvider) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -273,7 +273,7 @@ class ILearningModelStatics extends IInspectable { VTablePointer modelStream, VTablePointer operatorProvider, Pointer result)>()( - ptr.ref.lpVtbl, modelStream.lpVtbl, operatorProvider.lpVtbl, result); + lpVtbl, modelStream.lpVtbl, operatorProvider.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/imapfeaturedescriptor.dart b/packages/windows_ai/lib/src/machinelearning/imapfeaturedescriptor.dart index b9e93982..63601acb 100644 --- a/packages/windows_ai/lib/src/machinelearning/imapfeaturedescriptor.dart +++ b/packages/windows_ai/lib/src/machinelearning/imapfeaturedescriptor.dart @@ -33,17 +33,17 @@ class IMapFeatureDescriptor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class IMapFeatureDescriptor extends IInspectable { ILearningModelFeatureDescriptor? get valueDescriptor { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class IMapFeatureDescriptor extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_ai/lib/src/machinelearning/isequencefeaturedescriptor.dart b/packages/windows_ai/lib/src/machinelearning/isequencefeaturedescriptor.dart index 8f9aa2ce..e55b347b 100644 --- a/packages/windows_ai/lib/src/machinelearning/isequencefeaturedescriptor.dart +++ b/packages/windows_ai/lib/src/machinelearning/isequencefeaturedescriptor.dart @@ -31,7 +31,7 @@ class ISequenceFeatureDescriptor extends IInspectable { ILearningModelFeatureDescriptor? get elementDescriptor { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class ISequenceFeatureDescriptor extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_ai/lib/src/machinelearning/itensor.dart b/packages/windows_ai/lib/src/machinelearning/itensor.dart index 93782f0c..c4e36b76 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensor.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensor.dart @@ -34,17 +34,17 @@ class ITensor extends IInspectable implements ILearningModelFeatureValue { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -57,7 +57,7 @@ class ITensor extends IInspectable implements ILearningModelFeatureValue { List? get shape { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -67,7 +67,7 @@ class ITensor extends IInspectable implements ILearningModelFeatureValue { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_ai/lib/src/machinelearning/itensorboolean.dart b/packages/windows_ai/lib/src/machinelearning/itensorboolean.dart index f0333983..3f0df66f 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensorboolean.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensorboolean.dart @@ -29,7 +29,7 @@ class ITensorBoolean extends IInspectable { List getAsVectorView() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class ITensorBoolean extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/itensorbooleanstatics.dart b/packages/windows_ai/lib/src/machinelearning/itensorbooleanstatics.dart index e01bcc95..d174302f 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensorbooleanstatics.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensorbooleanstatics.dart @@ -31,7 +31,7 @@ class ITensorBooleanStatics extends IInspectable { TensorBoolean? create() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class ITensorBooleanStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -59,7 +59,7 @@ class ITensorBooleanStatics extends IInspectable { TensorBoolean? create2(IIterable? shape) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,11 +68,8 @@ class ITensorBooleanStatics extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer shape, - Pointer - result)>()(ptr.ref.lpVtbl, shape.lpVtbl, result); + int Function(VTablePointer lpVtbl, VTablePointer shape, + Pointer result)>()(lpVtbl, shape.lpVtbl, result); if (FAILED(hr)) { free(result); @@ -91,7 +88,7 @@ class ITensorBooleanStatics extends IInspectable { final result = calloc(); final dataArray = data.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -110,7 +107,7 @@ class ITensorBooleanStatics extends IInspectable { int dataSize, Pointer data, Pointer result)>()( - ptr.ref.lpVtbl, shape.lpVtbl, data.length, dataArray, result); + lpVtbl, shape.lpVtbl, data.length, dataArray, result); free(dataArray); @@ -132,7 +129,7 @@ class ITensorBooleanStatics extends IInspectable { final result = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -146,7 +143,7 @@ class ITensorBooleanStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer shape, VTablePointer data, Pointer result)>()( - ptr.ref.lpVtbl, shape.lpVtbl, data.lpVtbl, result); + lpVtbl, shape.lpVtbl, data.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/itensorbooleanstatics2.dart b/packages/windows_ai/lib/src/machinelearning/itensorbooleanstatics2.dart index 9303b703..86592526 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensorbooleanstatics2.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensorbooleanstatics2.dart @@ -35,7 +35,7 @@ class ITensorBooleanStatics2 extends IInspectable { final shapeArray = shape.toArray(); final dataArray = data.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -55,8 +55,8 @@ class ITensorBooleanStatics2 extends IInspectable { Pointer shape, int dataSize, Pointer data, - Pointer result)>()(ptr.ref.lpVtbl, shape.length, - shapeArray, data.length, dataArray, result); + Pointer result)>()( + lpVtbl, shape.length, shapeArray, data.length, dataArray, result); free(shapeArray); free(dataArray); @@ -78,7 +78,7 @@ class ITensorBooleanStatics2 extends IInspectable { final result = calloc(); final shapeArray = shape.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -97,7 +97,7 @@ class ITensorBooleanStatics2 extends IInspectable { Pointer shape, VTablePointer buffer, Pointer result)>()( - ptr.ref.lpVtbl, shape.length, shapeArray, buffer.lpVtbl, result); + lpVtbl, shape.length, shapeArray, buffer.lpVtbl, result); free(shapeArray); diff --git a/packages/windows_ai/lib/src/machinelearning/itensordouble.dart b/packages/windows_ai/lib/src/machinelearning/itensordouble.dart index 3023cc19..6b4358b9 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensordouble.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensordouble.dart @@ -29,7 +29,7 @@ class ITensorDouble extends IInspectable { List getAsVectorView() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class ITensorDouble extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/itensordoublestatics.dart b/packages/windows_ai/lib/src/machinelearning/itensordoublestatics.dart index f370c299..d533dd75 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensordoublestatics.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensordoublestatics.dart @@ -31,7 +31,7 @@ class ITensorDoubleStatics extends IInspectable { TensorDouble? create() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class ITensorDoubleStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -59,7 +59,7 @@ class ITensorDoubleStatics extends IInspectable { TensorDouble? create2(IIterable? shape) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,11 +68,8 @@ class ITensorDoubleStatics extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer shape, - Pointer - result)>()(ptr.ref.lpVtbl, shape.lpVtbl, result); + int Function(VTablePointer lpVtbl, VTablePointer shape, + Pointer result)>()(lpVtbl, shape.lpVtbl, result); if (FAILED(hr)) { free(result); @@ -91,7 +88,7 @@ class ITensorDoubleStatics extends IInspectable { final result = calloc(); final dataArray = data.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -110,7 +107,7 @@ class ITensorDoubleStatics extends IInspectable { int dataSize, Pointer data, Pointer result)>()( - ptr.ref.lpVtbl, shape.lpVtbl, data.length, dataArray, result); + lpVtbl, shape.lpVtbl, data.length, dataArray, result); free(dataArray); @@ -132,7 +129,7 @@ class ITensorDoubleStatics extends IInspectable { final result = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -146,7 +143,7 @@ class ITensorDoubleStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer shape, VTablePointer data, Pointer result)>()( - ptr.ref.lpVtbl, shape.lpVtbl, data.lpVtbl, result); + lpVtbl, shape.lpVtbl, data.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/itensordoublestatics2.dart b/packages/windows_ai/lib/src/machinelearning/itensordoublestatics2.dart index ca9dd277..237f1e6f 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensordoublestatics2.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensordoublestatics2.dart @@ -35,7 +35,7 @@ class ITensorDoubleStatics2 extends IInspectable { final shapeArray = shape.toArray(); final dataArray = data.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -55,8 +55,8 @@ class ITensorDoubleStatics2 extends IInspectable { Pointer shape, int dataSize, Pointer data, - Pointer result)>()(ptr.ref.lpVtbl, shape.length, - shapeArray, data.length, dataArray, result); + Pointer result)>()( + lpVtbl, shape.length, shapeArray, data.length, dataArray, result); free(shapeArray); free(dataArray); @@ -78,7 +78,7 @@ class ITensorDoubleStatics2 extends IInspectable { final result = calloc(); final shapeArray = shape.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -97,7 +97,7 @@ class ITensorDoubleStatics2 extends IInspectable { Pointer shape, VTablePointer buffer, Pointer result)>()( - ptr.ref.lpVtbl, shape.length, shapeArray, buffer.lpVtbl, result); + lpVtbl, shape.length, shapeArray, buffer.lpVtbl, result); free(shapeArray); diff --git a/packages/windows_ai/lib/src/machinelearning/itensorfeaturedescriptor.dart b/packages/windows_ai/lib/src/machinelearning/itensorfeaturedescriptor.dart index e980db3c..c92c6d17 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensorfeaturedescriptor.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensorfeaturedescriptor.dart @@ -32,17 +32,17 @@ class ITensorFeatureDescriptor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +55,7 @@ class ITensorFeatureDescriptor extends IInspectable { List? get shape { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -65,7 +65,7 @@ class ITensorFeatureDescriptor extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_ai/lib/src/machinelearning/itensorfloat.dart b/packages/windows_ai/lib/src/machinelearning/itensorfloat.dart index 525abd99..8962bed2 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensorfloat.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensorfloat.dart @@ -29,7 +29,7 @@ class ITensorFloat extends IInspectable { List getAsVectorView() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class ITensorFloat extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/itensorfloat16bit.dart b/packages/windows_ai/lib/src/machinelearning/itensorfloat16bit.dart index ed946b98..94fe5181 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensorfloat16bit.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensorfloat16bit.dart @@ -29,7 +29,7 @@ class ITensorFloat16Bit extends IInspectable { List getAsVectorView() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class ITensorFloat16Bit extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/itensorfloat16bitstatics.dart b/packages/windows_ai/lib/src/machinelearning/itensorfloat16bitstatics.dart index 830da98d..5779b681 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensorfloat16bitstatics.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensorfloat16bitstatics.dart @@ -31,7 +31,7 @@ class ITensorFloat16BitStatics extends IInspectable { TensorFloat16Bit? create() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class ITensorFloat16BitStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -59,7 +59,7 @@ class ITensorFloat16BitStatics extends IInspectable { TensorFloat16Bit? create2(IIterable? shape) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,11 +68,8 @@ class ITensorFloat16BitStatics extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer shape, - Pointer - result)>()(ptr.ref.lpVtbl, shape.lpVtbl, result); + int Function(VTablePointer lpVtbl, VTablePointer shape, + Pointer result)>()(lpVtbl, shape.lpVtbl, result); if (FAILED(hr)) { free(result); @@ -91,7 +88,7 @@ class ITensorFloat16BitStatics extends IInspectable { final result = calloc(); final dataArray = data.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -110,7 +107,7 @@ class ITensorFloat16BitStatics extends IInspectable { int dataSize, Pointer data, Pointer result)>()( - ptr.ref.lpVtbl, shape.lpVtbl, data.length, dataArray, result); + lpVtbl, shape.lpVtbl, data.length, dataArray, result); free(dataArray); @@ -132,7 +129,7 @@ class ITensorFloat16BitStatics extends IInspectable { final result = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -146,7 +143,7 @@ class ITensorFloat16BitStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer shape, VTablePointer data, Pointer result)>()( - ptr.ref.lpVtbl, shape.lpVtbl, data.lpVtbl, result); + lpVtbl, shape.lpVtbl, data.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/itensorfloat16bitstatics2.dart b/packages/windows_ai/lib/src/machinelearning/itensorfloat16bitstatics2.dart index d2a0bf15..ac93befd 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensorfloat16bitstatics2.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensorfloat16bitstatics2.dart @@ -35,7 +35,7 @@ class ITensorFloat16BitStatics2 extends IInspectable { final shapeArray = shape.toArray(); final dataArray = data.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -55,8 +55,8 @@ class ITensorFloat16BitStatics2 extends IInspectable { Pointer shape, int dataSize, Pointer data, - Pointer result)>()(ptr.ref.lpVtbl, shape.length, - shapeArray, data.length, dataArray, result); + Pointer result)>()( + lpVtbl, shape.length, shapeArray, data.length, dataArray, result); free(shapeArray); free(dataArray); @@ -78,7 +78,7 @@ class ITensorFloat16BitStatics2 extends IInspectable { final result = calloc(); final shapeArray = shape.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -97,7 +97,7 @@ class ITensorFloat16BitStatics2 extends IInspectable { Pointer shape, VTablePointer buffer, Pointer result)>()( - ptr.ref.lpVtbl, shape.length, shapeArray, buffer.lpVtbl, result); + lpVtbl, shape.length, shapeArray, buffer.lpVtbl, result); free(shapeArray); diff --git a/packages/windows_ai/lib/src/machinelearning/itensorfloatstatics.dart b/packages/windows_ai/lib/src/machinelearning/itensorfloatstatics.dart index 52e3b876..c693ebd5 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensorfloatstatics.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensorfloatstatics.dart @@ -31,7 +31,7 @@ class ITensorFloatStatics extends IInspectable { TensorFloat? create() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class ITensorFloatStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -59,7 +59,7 @@ class ITensorFloatStatics extends IInspectable { TensorFloat? create2(IIterable? shape) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,11 +68,8 @@ class ITensorFloatStatics extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer shape, - Pointer - result)>()(ptr.ref.lpVtbl, shape.lpVtbl, result); + int Function(VTablePointer lpVtbl, VTablePointer shape, + Pointer result)>()(lpVtbl, shape.lpVtbl, result); if (FAILED(hr)) { free(result); @@ -91,7 +88,7 @@ class ITensorFloatStatics extends IInspectable { final result = calloc(); final dataArray = data.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -110,7 +107,7 @@ class ITensorFloatStatics extends IInspectable { int dataSize, Pointer data, Pointer result)>()( - ptr.ref.lpVtbl, shape.lpVtbl, data.length, dataArray, result); + lpVtbl, shape.lpVtbl, data.length, dataArray, result); free(dataArray); @@ -132,7 +129,7 @@ class ITensorFloatStatics extends IInspectable { final result = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -146,7 +143,7 @@ class ITensorFloatStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer shape, VTablePointer data, Pointer result)>()( - ptr.ref.lpVtbl, shape.lpVtbl, data.lpVtbl, result); + lpVtbl, shape.lpVtbl, data.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/itensorfloatstatics2.dart b/packages/windows_ai/lib/src/machinelearning/itensorfloatstatics2.dart index 7c7fd474..99180769 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensorfloatstatics2.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensorfloatstatics2.dart @@ -35,7 +35,7 @@ class ITensorFloatStatics2 extends IInspectable { final shapeArray = shape.toArray(); final dataArray = data.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -55,8 +55,8 @@ class ITensorFloatStatics2 extends IInspectable { Pointer shape, int dataSize, Pointer data, - Pointer result)>()(ptr.ref.lpVtbl, shape.length, - shapeArray, data.length, dataArray, result); + Pointer result)>()( + lpVtbl, shape.length, shapeArray, data.length, dataArray, result); free(shapeArray); free(dataArray); @@ -78,7 +78,7 @@ class ITensorFloatStatics2 extends IInspectable { final result = calloc(); final shapeArray = shape.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -97,7 +97,7 @@ class ITensorFloatStatics2 extends IInspectable { Pointer shape, VTablePointer buffer, Pointer result)>()( - ptr.ref.lpVtbl, shape.length, shapeArray, buffer.lpVtbl, result); + lpVtbl, shape.length, shapeArray, buffer.lpVtbl, result); free(shapeArray); diff --git a/packages/windows_ai/lib/src/machinelearning/itensorint16bit.dart b/packages/windows_ai/lib/src/machinelearning/itensorint16bit.dart index e6a13f09..ad9993b7 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensorint16bit.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensorint16bit.dart @@ -29,7 +29,7 @@ class ITensorInt16Bit extends IInspectable { List getAsVectorView() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class ITensorInt16Bit extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/itensorint16bitstatics.dart b/packages/windows_ai/lib/src/machinelearning/itensorint16bitstatics.dart index 3d59ba01..22d9c2fb 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensorint16bitstatics.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensorint16bitstatics.dart @@ -31,7 +31,7 @@ class ITensorInt16BitStatics extends IInspectable { TensorInt16Bit? create() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class ITensorInt16BitStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -59,7 +59,7 @@ class ITensorInt16BitStatics extends IInspectable { TensorInt16Bit? create2(IIterable? shape) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,11 +68,8 @@ class ITensorInt16BitStatics extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer shape, - Pointer - result)>()(ptr.ref.lpVtbl, shape.lpVtbl, result); + int Function(VTablePointer lpVtbl, VTablePointer shape, + Pointer result)>()(lpVtbl, shape.lpVtbl, result); if (FAILED(hr)) { free(result); @@ -91,7 +88,7 @@ class ITensorInt16BitStatics extends IInspectable { final result = calloc(); final dataArray = data.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -110,7 +107,7 @@ class ITensorInt16BitStatics extends IInspectable { int dataSize, Pointer data, Pointer result)>()( - ptr.ref.lpVtbl, shape.lpVtbl, data.length, dataArray, result); + lpVtbl, shape.lpVtbl, data.length, dataArray, result); free(dataArray); @@ -132,7 +129,7 @@ class ITensorInt16BitStatics extends IInspectable { final result = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -146,7 +143,7 @@ class ITensorInt16BitStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer shape, VTablePointer data, Pointer result)>()( - ptr.ref.lpVtbl, shape.lpVtbl, data.lpVtbl, result); + lpVtbl, shape.lpVtbl, data.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/itensorint16bitstatics2.dart b/packages/windows_ai/lib/src/machinelearning/itensorint16bitstatics2.dart index a75eeeac..321467c7 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensorint16bitstatics2.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensorint16bitstatics2.dart @@ -35,7 +35,7 @@ class ITensorInt16BitStatics2 extends IInspectable { final shapeArray = shape.toArray(); final dataArray = data.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -55,8 +55,8 @@ class ITensorInt16BitStatics2 extends IInspectable { Pointer shape, int dataSize, Pointer data, - Pointer result)>()(ptr.ref.lpVtbl, shape.length, - shapeArray, data.length, dataArray, result); + Pointer result)>()( + lpVtbl, shape.length, shapeArray, data.length, dataArray, result); free(shapeArray); free(dataArray); @@ -78,7 +78,7 @@ class ITensorInt16BitStatics2 extends IInspectable { final result = calloc(); final shapeArray = shape.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -97,7 +97,7 @@ class ITensorInt16BitStatics2 extends IInspectable { Pointer shape, VTablePointer buffer, Pointer result)>()( - ptr.ref.lpVtbl, shape.length, shapeArray, buffer.lpVtbl, result); + lpVtbl, shape.length, shapeArray, buffer.lpVtbl, result); free(shapeArray); diff --git a/packages/windows_ai/lib/src/machinelearning/itensorint32bit.dart b/packages/windows_ai/lib/src/machinelearning/itensorint32bit.dart index 5d9c62d7..8c49d2f3 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensorint32bit.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensorint32bit.dart @@ -29,7 +29,7 @@ class ITensorInt32Bit extends IInspectable { List getAsVectorView() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class ITensorInt32Bit extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/itensorint32bitstatics.dart b/packages/windows_ai/lib/src/machinelearning/itensorint32bitstatics.dart index 6e0a5234..6a56a2ae 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensorint32bitstatics.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensorint32bitstatics.dart @@ -31,7 +31,7 @@ class ITensorInt32BitStatics extends IInspectable { TensorInt32Bit? create() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class ITensorInt32BitStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -59,7 +59,7 @@ class ITensorInt32BitStatics extends IInspectable { TensorInt32Bit? create2(IIterable? shape) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,11 +68,8 @@ class ITensorInt32BitStatics extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer shape, - Pointer - result)>()(ptr.ref.lpVtbl, shape.lpVtbl, result); + int Function(VTablePointer lpVtbl, VTablePointer shape, + Pointer result)>()(lpVtbl, shape.lpVtbl, result); if (FAILED(hr)) { free(result); @@ -91,7 +88,7 @@ class ITensorInt32BitStatics extends IInspectable { final result = calloc(); final dataArray = data.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -110,7 +107,7 @@ class ITensorInt32BitStatics extends IInspectable { int dataSize, Pointer data, Pointer result)>()( - ptr.ref.lpVtbl, shape.lpVtbl, data.length, dataArray, result); + lpVtbl, shape.lpVtbl, data.length, dataArray, result); free(dataArray); @@ -132,7 +129,7 @@ class ITensorInt32BitStatics extends IInspectable { final result = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -146,7 +143,7 @@ class ITensorInt32BitStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer shape, VTablePointer data, Pointer result)>()( - ptr.ref.lpVtbl, shape.lpVtbl, data.lpVtbl, result); + lpVtbl, shape.lpVtbl, data.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/itensorint32bitstatics2.dart b/packages/windows_ai/lib/src/machinelearning/itensorint32bitstatics2.dart index 677b922a..7762ca3d 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensorint32bitstatics2.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensorint32bitstatics2.dart @@ -35,7 +35,7 @@ class ITensorInt32BitStatics2 extends IInspectable { final shapeArray = shape.toArray(); final dataArray = data.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -55,8 +55,8 @@ class ITensorInt32BitStatics2 extends IInspectable { Pointer shape, int dataSize, Pointer data, - Pointer result)>()(ptr.ref.lpVtbl, shape.length, - shapeArray, data.length, dataArray, result); + Pointer result)>()( + lpVtbl, shape.length, shapeArray, data.length, dataArray, result); free(shapeArray); free(dataArray); @@ -78,7 +78,7 @@ class ITensorInt32BitStatics2 extends IInspectable { final result = calloc(); final shapeArray = shape.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -97,7 +97,7 @@ class ITensorInt32BitStatics2 extends IInspectable { Pointer shape, VTablePointer buffer, Pointer result)>()( - ptr.ref.lpVtbl, shape.length, shapeArray, buffer.lpVtbl, result); + lpVtbl, shape.length, shapeArray, buffer.lpVtbl, result); free(shapeArray); diff --git a/packages/windows_ai/lib/src/machinelearning/itensorint64bit.dart b/packages/windows_ai/lib/src/machinelearning/itensorint64bit.dart index 4e2e729a..cb3fdc7b 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensorint64bit.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensorint64bit.dart @@ -29,7 +29,7 @@ class ITensorInt64Bit extends IInspectable { List getAsVectorView() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class ITensorInt64Bit extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/itensorint64bitstatics.dart b/packages/windows_ai/lib/src/machinelearning/itensorint64bitstatics.dart index 6c35234f..99108836 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensorint64bitstatics.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensorint64bitstatics.dart @@ -31,7 +31,7 @@ class ITensorInt64BitStatics extends IInspectable { TensorInt64Bit? create() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class ITensorInt64BitStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -59,7 +59,7 @@ class ITensorInt64BitStatics extends IInspectable { TensorInt64Bit? create2(IIterable? shape) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,11 +68,8 @@ class ITensorInt64BitStatics extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer shape, - Pointer - result)>()(ptr.ref.lpVtbl, shape.lpVtbl, result); + int Function(VTablePointer lpVtbl, VTablePointer shape, + Pointer result)>()(lpVtbl, shape.lpVtbl, result); if (FAILED(hr)) { free(result); @@ -91,7 +88,7 @@ class ITensorInt64BitStatics extends IInspectable { final result = calloc(); final dataArray = data.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -110,7 +107,7 @@ class ITensorInt64BitStatics extends IInspectable { int dataSize, Pointer data, Pointer result)>()( - ptr.ref.lpVtbl, shape.lpVtbl, data.length, dataArray, result); + lpVtbl, shape.lpVtbl, data.length, dataArray, result); free(dataArray); @@ -132,7 +129,7 @@ class ITensorInt64BitStatics extends IInspectable { final result = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -146,7 +143,7 @@ class ITensorInt64BitStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer shape, VTablePointer data, Pointer result)>()( - ptr.ref.lpVtbl, shape.lpVtbl, data.lpVtbl, result); + lpVtbl, shape.lpVtbl, data.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/itensorint64bitstatics2.dart b/packages/windows_ai/lib/src/machinelearning/itensorint64bitstatics2.dart index 5f80f20e..56102a70 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensorint64bitstatics2.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensorint64bitstatics2.dart @@ -35,7 +35,7 @@ class ITensorInt64BitStatics2 extends IInspectable { final shapeArray = shape.toArray(); final dataArray = data.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -55,8 +55,8 @@ class ITensorInt64BitStatics2 extends IInspectable { Pointer shape, int dataSize, Pointer data, - Pointer result)>()(ptr.ref.lpVtbl, shape.length, - shapeArray, data.length, dataArray, result); + Pointer result)>()( + lpVtbl, shape.length, shapeArray, data.length, dataArray, result); free(shapeArray); free(dataArray); @@ -78,7 +78,7 @@ class ITensorInt64BitStatics2 extends IInspectable { final result = calloc(); final shapeArray = shape.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -97,7 +97,7 @@ class ITensorInt64BitStatics2 extends IInspectable { Pointer shape, VTablePointer buffer, Pointer result)>()( - ptr.ref.lpVtbl, shape.length, shapeArray, buffer.lpVtbl, result); + lpVtbl, shape.length, shapeArray, buffer.lpVtbl, result); free(shapeArray); diff --git a/packages/windows_ai/lib/src/machinelearning/itensorint8bit.dart b/packages/windows_ai/lib/src/machinelearning/itensorint8bit.dart index c610c171..b4d330c7 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensorint8bit.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensorint8bit.dart @@ -29,7 +29,7 @@ class ITensorInt8Bit extends IInspectable { List getAsVectorView() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class ITensorInt8Bit extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/itensorint8bitstatics.dart b/packages/windows_ai/lib/src/machinelearning/itensorint8bitstatics.dart index 628d4d2b..56d9b8dd 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensorint8bitstatics.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensorint8bitstatics.dart @@ -31,7 +31,7 @@ class ITensorInt8BitStatics extends IInspectable { TensorInt8Bit? create() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class ITensorInt8BitStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -59,7 +59,7 @@ class ITensorInt8BitStatics extends IInspectable { TensorInt8Bit? create2(IIterable? shape) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,11 +68,8 @@ class ITensorInt8BitStatics extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer shape, - Pointer - result)>()(ptr.ref.lpVtbl, shape.lpVtbl, result); + int Function(VTablePointer lpVtbl, VTablePointer shape, + Pointer result)>()(lpVtbl, shape.lpVtbl, result); if (FAILED(hr)) { free(result); @@ -91,7 +88,7 @@ class ITensorInt8BitStatics extends IInspectable { final result = calloc(); final dataArray = data.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -110,7 +107,7 @@ class ITensorInt8BitStatics extends IInspectable { int dataSize, Pointer data, Pointer result)>()( - ptr.ref.lpVtbl, shape.lpVtbl, data.length, dataArray, result); + lpVtbl, shape.lpVtbl, data.length, dataArray, result); free(dataArray); @@ -132,7 +129,7 @@ class ITensorInt8BitStatics extends IInspectable { final result = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -146,7 +143,7 @@ class ITensorInt8BitStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer shape, VTablePointer data, Pointer result)>()( - ptr.ref.lpVtbl, shape.lpVtbl, data.lpVtbl, result); + lpVtbl, shape.lpVtbl, data.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/itensorint8bitstatics2.dart b/packages/windows_ai/lib/src/machinelearning/itensorint8bitstatics2.dart index 9ccffbbf..ac610a0a 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensorint8bitstatics2.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensorint8bitstatics2.dart @@ -35,7 +35,7 @@ class ITensorInt8BitStatics2 extends IInspectable { final shapeArray = shape.toArray(); final dataArray = data.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -55,8 +55,8 @@ class ITensorInt8BitStatics2 extends IInspectable { Pointer shape, int dataSize, Pointer data, - Pointer result)>()(ptr.ref.lpVtbl, shape.length, - shapeArray, data.length, dataArray, result); + Pointer result)>()( + lpVtbl, shape.length, shapeArray, data.length, dataArray, result); free(shapeArray); free(dataArray); @@ -78,7 +78,7 @@ class ITensorInt8BitStatics2 extends IInspectable { final result = calloc(); final shapeArray = shape.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -97,7 +97,7 @@ class ITensorInt8BitStatics2 extends IInspectable { Pointer shape, VTablePointer buffer, Pointer result)>()( - ptr.ref.lpVtbl, shape.length, shapeArray, buffer.lpVtbl, result); + lpVtbl, shape.length, shapeArray, buffer.lpVtbl, result); free(shapeArray); diff --git a/packages/windows_ai/lib/src/machinelearning/itensorstring.dart b/packages/windows_ai/lib/src/machinelearning/itensorstring.dart index ceaede61..cbd7e02d 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensorstring.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensorstring.dart @@ -29,7 +29,7 @@ class ITensorString extends IInspectable { List getAsVectorView() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class ITensorString extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/itensorstringstatics.dart b/packages/windows_ai/lib/src/machinelearning/itensorstringstatics.dart index d12c3141..910831fb 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensorstringstatics.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensorstringstatics.dart @@ -31,7 +31,7 @@ class ITensorStringStatics extends IInspectable { TensorString? create() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class ITensorStringStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -59,7 +59,7 @@ class ITensorStringStatics extends IInspectable { TensorString? create2(IIterable? shape) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,11 +68,8 @@ class ITensorStringStatics extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer shape, - Pointer - result)>()(ptr.ref.lpVtbl, shape.lpVtbl, result); + int Function(VTablePointer lpVtbl, VTablePointer shape, + Pointer result)>()(lpVtbl, shape.lpVtbl, result); if (FAILED(hr)) { free(result); @@ -91,7 +88,7 @@ class ITensorStringStatics extends IInspectable { final result = calloc(); final dataArray = data.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -110,7 +107,7 @@ class ITensorStringStatics extends IInspectable { int dataSize, Pointer data, Pointer result)>()( - ptr.ref.lpVtbl, shape.lpVtbl, data.length, dataArray, result); + lpVtbl, shape.lpVtbl, data.length, dataArray, result); free(dataArray); @@ -132,7 +129,7 @@ class ITensorStringStatics extends IInspectable { final result = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -146,7 +143,7 @@ class ITensorStringStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer shape, VTablePointer data, Pointer result)>()( - ptr.ref.lpVtbl, shape.lpVtbl, data.lpVtbl, result); + lpVtbl, shape.lpVtbl, data.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/itensorstringstatics2.dart b/packages/windows_ai/lib/src/machinelearning/itensorstringstatics2.dart index 8facc3f8..cb049e4a 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensorstringstatics2.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensorstringstatics2.dart @@ -34,7 +34,7 @@ class ITensorStringStatics2 extends IInspectable { final shapeArray = shape.toArray(); final dataArray = data.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -54,8 +54,8 @@ class ITensorStringStatics2 extends IInspectable { Pointer shape, int dataSize, Pointer data, - Pointer result)>()(ptr.ref.lpVtbl, shape.length, - shapeArray, data.length, dataArray, result); + Pointer result)>()( + lpVtbl, shape.length, shapeArray, data.length, dataArray, result); free(shapeArray); free(dataArray); diff --git a/packages/windows_ai/lib/src/machinelearning/itensoruint16bit.dart b/packages/windows_ai/lib/src/machinelearning/itensoruint16bit.dart index 5c743172..bd402420 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensoruint16bit.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensoruint16bit.dart @@ -29,7 +29,7 @@ class ITensorUInt16Bit extends IInspectable { List getAsVectorView() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class ITensorUInt16Bit extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/itensoruint16bitstatics.dart b/packages/windows_ai/lib/src/machinelearning/itensoruint16bitstatics.dart index cbd70558..bf8340e4 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensoruint16bitstatics.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensoruint16bitstatics.dart @@ -31,7 +31,7 @@ class ITensorUInt16BitStatics extends IInspectable { TensorUInt16Bit? create() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class ITensorUInt16BitStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -59,7 +59,7 @@ class ITensorUInt16BitStatics extends IInspectable { TensorUInt16Bit? create2(IIterable? shape) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,11 +68,8 @@ class ITensorUInt16BitStatics extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer shape, - Pointer - result)>()(ptr.ref.lpVtbl, shape.lpVtbl, result); + int Function(VTablePointer lpVtbl, VTablePointer shape, + Pointer result)>()(lpVtbl, shape.lpVtbl, result); if (FAILED(hr)) { free(result); @@ -91,7 +88,7 @@ class ITensorUInt16BitStatics extends IInspectable { final result = calloc(); final dataArray = data.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -110,7 +107,7 @@ class ITensorUInt16BitStatics extends IInspectable { int dataSize, Pointer data, Pointer result)>()( - ptr.ref.lpVtbl, shape.lpVtbl, data.length, dataArray, result); + lpVtbl, shape.lpVtbl, data.length, dataArray, result); free(dataArray); @@ -132,7 +129,7 @@ class ITensorUInt16BitStatics extends IInspectable { final result = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -146,7 +143,7 @@ class ITensorUInt16BitStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer shape, VTablePointer data, Pointer result)>()( - ptr.ref.lpVtbl, shape.lpVtbl, data.lpVtbl, result); + lpVtbl, shape.lpVtbl, data.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/itensoruint16bitstatics2.dart b/packages/windows_ai/lib/src/machinelearning/itensoruint16bitstatics2.dart index 3f33d3cf..b3263f67 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensoruint16bitstatics2.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensoruint16bitstatics2.dart @@ -35,7 +35,7 @@ class ITensorUInt16BitStatics2 extends IInspectable { final shapeArray = shape.toArray(); final dataArray = data.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -55,8 +55,8 @@ class ITensorUInt16BitStatics2 extends IInspectable { Pointer shape, int dataSize, Pointer data, - Pointer result)>()(ptr.ref.lpVtbl, shape.length, - shapeArray, data.length, dataArray, result); + Pointer result)>()( + lpVtbl, shape.length, shapeArray, data.length, dataArray, result); free(shapeArray); free(dataArray); @@ -78,7 +78,7 @@ class ITensorUInt16BitStatics2 extends IInspectable { final result = calloc(); final shapeArray = shape.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -97,7 +97,7 @@ class ITensorUInt16BitStatics2 extends IInspectable { Pointer shape, VTablePointer buffer, Pointer result)>()( - ptr.ref.lpVtbl, shape.length, shapeArray, buffer.lpVtbl, result); + lpVtbl, shape.length, shapeArray, buffer.lpVtbl, result); free(shapeArray); diff --git a/packages/windows_ai/lib/src/machinelearning/itensoruint32bit.dart b/packages/windows_ai/lib/src/machinelearning/itensoruint32bit.dart index 574296f3..84c75293 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensoruint32bit.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensoruint32bit.dart @@ -29,7 +29,7 @@ class ITensorUInt32Bit extends IInspectable { List getAsVectorView() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class ITensorUInt32Bit extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/itensoruint32bitstatics.dart b/packages/windows_ai/lib/src/machinelearning/itensoruint32bitstatics.dart index 6defcbab..a2f404e5 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensoruint32bitstatics.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensoruint32bitstatics.dart @@ -31,7 +31,7 @@ class ITensorUInt32BitStatics extends IInspectable { TensorUInt32Bit? create() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class ITensorUInt32BitStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -59,7 +59,7 @@ class ITensorUInt32BitStatics extends IInspectable { TensorUInt32Bit? create2(IIterable? shape) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,11 +68,8 @@ class ITensorUInt32BitStatics extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer shape, - Pointer - result)>()(ptr.ref.lpVtbl, shape.lpVtbl, result); + int Function(VTablePointer lpVtbl, VTablePointer shape, + Pointer result)>()(lpVtbl, shape.lpVtbl, result); if (FAILED(hr)) { free(result); @@ -91,7 +88,7 @@ class ITensorUInt32BitStatics extends IInspectable { final result = calloc(); final dataArray = data.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -110,7 +107,7 @@ class ITensorUInt32BitStatics extends IInspectable { int dataSize, Pointer data, Pointer result)>()( - ptr.ref.lpVtbl, shape.lpVtbl, data.length, dataArray, result); + lpVtbl, shape.lpVtbl, data.length, dataArray, result); free(dataArray); @@ -132,7 +129,7 @@ class ITensorUInt32BitStatics extends IInspectable { final result = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -146,7 +143,7 @@ class ITensorUInt32BitStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer shape, VTablePointer data, Pointer result)>()( - ptr.ref.lpVtbl, shape.lpVtbl, data.lpVtbl, result); + lpVtbl, shape.lpVtbl, data.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/itensoruint32bitstatics2.dart b/packages/windows_ai/lib/src/machinelearning/itensoruint32bitstatics2.dart index 3cae9e9a..8892be86 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensoruint32bitstatics2.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensoruint32bitstatics2.dart @@ -35,7 +35,7 @@ class ITensorUInt32BitStatics2 extends IInspectable { final shapeArray = shape.toArray(); final dataArray = data.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -55,8 +55,8 @@ class ITensorUInt32BitStatics2 extends IInspectable { Pointer shape, int dataSize, Pointer data, - Pointer result)>()(ptr.ref.lpVtbl, shape.length, - shapeArray, data.length, dataArray, result); + Pointer result)>()( + lpVtbl, shape.length, shapeArray, data.length, dataArray, result); free(shapeArray); free(dataArray); @@ -78,7 +78,7 @@ class ITensorUInt32BitStatics2 extends IInspectable { final result = calloc(); final shapeArray = shape.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -97,7 +97,7 @@ class ITensorUInt32BitStatics2 extends IInspectable { Pointer shape, VTablePointer buffer, Pointer result)>()( - ptr.ref.lpVtbl, shape.length, shapeArray, buffer.lpVtbl, result); + lpVtbl, shape.length, shapeArray, buffer.lpVtbl, result); free(shapeArray); diff --git a/packages/windows_ai/lib/src/machinelearning/itensoruint64bit.dart b/packages/windows_ai/lib/src/machinelearning/itensoruint64bit.dart index 9c1e2ec1..22ed768b 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensoruint64bit.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensoruint64bit.dart @@ -29,7 +29,7 @@ class ITensorUInt64Bit extends IInspectable { List getAsVectorView() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class ITensorUInt64Bit extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/itensoruint64bitstatics.dart b/packages/windows_ai/lib/src/machinelearning/itensoruint64bitstatics.dart index a0d5e7a2..cc05266c 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensoruint64bitstatics.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensoruint64bitstatics.dart @@ -31,7 +31,7 @@ class ITensorUInt64BitStatics extends IInspectable { TensorUInt64Bit? create() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class ITensorUInt64BitStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -59,7 +59,7 @@ class ITensorUInt64BitStatics extends IInspectable { TensorUInt64Bit? create2(IIterable? shape) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,11 +68,8 @@ class ITensorUInt64BitStatics extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer shape, - Pointer - result)>()(ptr.ref.lpVtbl, shape.lpVtbl, result); + int Function(VTablePointer lpVtbl, VTablePointer shape, + Pointer result)>()(lpVtbl, shape.lpVtbl, result); if (FAILED(hr)) { free(result); @@ -91,7 +88,7 @@ class ITensorUInt64BitStatics extends IInspectable { final result = calloc(); final dataArray = data.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -110,7 +107,7 @@ class ITensorUInt64BitStatics extends IInspectable { int dataSize, Pointer data, Pointer result)>()( - ptr.ref.lpVtbl, shape.lpVtbl, data.length, dataArray, result); + lpVtbl, shape.lpVtbl, data.length, dataArray, result); free(dataArray); @@ -132,7 +129,7 @@ class ITensorUInt64BitStatics extends IInspectable { final result = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -146,7 +143,7 @@ class ITensorUInt64BitStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer shape, VTablePointer data, Pointer result)>()( - ptr.ref.lpVtbl, shape.lpVtbl, data.lpVtbl, result); + lpVtbl, shape.lpVtbl, data.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/itensoruint64bitstatics2.dart b/packages/windows_ai/lib/src/machinelearning/itensoruint64bitstatics2.dart index 6b148b79..4c268d01 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensoruint64bitstatics2.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensoruint64bitstatics2.dart @@ -35,7 +35,7 @@ class ITensorUInt64BitStatics2 extends IInspectable { final shapeArray = shape.toArray(); final dataArray = data.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -55,8 +55,8 @@ class ITensorUInt64BitStatics2 extends IInspectable { Pointer shape, int dataSize, Pointer data, - Pointer result)>()(ptr.ref.lpVtbl, shape.length, - shapeArray, data.length, dataArray, result); + Pointer result)>()( + lpVtbl, shape.length, shapeArray, data.length, dataArray, result); free(shapeArray); free(dataArray); @@ -78,7 +78,7 @@ class ITensorUInt64BitStatics2 extends IInspectable { final result = calloc(); final shapeArray = shape.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -97,7 +97,7 @@ class ITensorUInt64BitStatics2 extends IInspectable { Pointer shape, VTablePointer buffer, Pointer result)>()( - ptr.ref.lpVtbl, shape.length, shapeArray, buffer.lpVtbl, result); + lpVtbl, shape.length, shapeArray, buffer.lpVtbl, result); free(shapeArray); diff --git a/packages/windows_ai/lib/src/machinelearning/itensoruint8bit.dart b/packages/windows_ai/lib/src/machinelearning/itensoruint8bit.dart index 38126b3c..ce29c556 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensoruint8bit.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensoruint8bit.dart @@ -29,7 +29,7 @@ class ITensorUInt8Bit extends IInspectable { List getAsVectorView() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class ITensorUInt8Bit extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/itensoruint8bitstatics.dart b/packages/windows_ai/lib/src/machinelearning/itensoruint8bitstatics.dart index 1821816c..7033c27e 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensoruint8bitstatics.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensoruint8bitstatics.dart @@ -31,7 +31,7 @@ class ITensorUInt8BitStatics extends IInspectable { TensorUInt8Bit? create() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class ITensorUInt8BitStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -59,7 +59,7 @@ class ITensorUInt8BitStatics extends IInspectable { TensorUInt8Bit? create2(IIterable? shape) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,11 +68,8 @@ class ITensorUInt8BitStatics extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer shape, - Pointer - result)>()(ptr.ref.lpVtbl, shape.lpVtbl, result); + int Function(VTablePointer lpVtbl, VTablePointer shape, + Pointer result)>()(lpVtbl, shape.lpVtbl, result); if (FAILED(hr)) { free(result); @@ -91,7 +88,7 @@ class ITensorUInt8BitStatics extends IInspectable { final result = calloc(); final dataArray = data.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -110,7 +107,7 @@ class ITensorUInt8BitStatics extends IInspectable { int dataSize, Pointer data, Pointer result)>()( - ptr.ref.lpVtbl, shape.lpVtbl, data.length, dataArray, result); + lpVtbl, shape.lpVtbl, data.length, dataArray, result); free(dataArray); @@ -132,7 +129,7 @@ class ITensorUInt8BitStatics extends IInspectable { final result = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -146,7 +143,7 @@ class ITensorUInt8BitStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer shape, VTablePointer data, Pointer result)>()( - ptr.ref.lpVtbl, shape.lpVtbl, data.lpVtbl, result); + lpVtbl, shape.lpVtbl, data.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ai/lib/src/machinelearning/itensoruint8bitstatics2.dart b/packages/windows_ai/lib/src/machinelearning/itensoruint8bitstatics2.dart index d9e2dff8..ac8fbceb 100644 --- a/packages/windows_ai/lib/src/machinelearning/itensoruint8bitstatics2.dart +++ b/packages/windows_ai/lib/src/machinelearning/itensoruint8bitstatics2.dart @@ -35,7 +35,7 @@ class ITensorUInt8BitStatics2 extends IInspectable { final shapeArray = shape.toArray(); final dataArray = data.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -55,8 +55,8 @@ class ITensorUInt8BitStatics2 extends IInspectable { Pointer shape, int dataSize, Pointer data, - Pointer result)>()(ptr.ref.lpVtbl, shape.length, - shapeArray, data.length, dataArray, result); + Pointer result)>()( + lpVtbl, shape.length, shapeArray, data.length, dataArray, result); free(shapeArray); free(dataArray); @@ -78,7 +78,7 @@ class ITensorUInt8BitStatics2 extends IInspectable { final result = calloc(); final shapeArray = shape.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -97,7 +97,7 @@ class ITensorUInt8BitStatics2 extends IInspectable { Pointer shape, VTablePointer buffer, Pointer result)>()( - ptr.ref.lpVtbl, shape.length, shapeArray, buffer.lpVtbl, result); + lpVtbl, shape.length, shapeArray, buffer.lpVtbl, result); free(shapeArray); diff --git a/packages/windows_applicationmodel/lib/src/core/iapplistentry.dart b/packages/windows_applicationmodel/lib/src/core/iapplistentry.dart index 14c87f46..34229250 100644 --- a/packages/windows_applicationmodel/lib/src/core/iapplistentry.dart +++ b/packages/windows_applicationmodel/lib/src/core/iapplistentry.dart @@ -31,7 +31,7 @@ class IAppListEntry extends IInspectable { AppDisplayInfo? get displayInfo { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IAppListEntry extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -59,7 +59,7 @@ class IAppListEntry extends IInspectable { Future launchAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -69,7 +69,7 @@ class IAppListEntry extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_applicationmodel/lib/src/core/iapplistentry2.dart b/packages/windows_applicationmodel/lib/src/core/iapplistentry2.dart index b7f4be89..fec46632 100644 --- a/packages/windows_applicationmodel/lib/src/core/iapplistentry2.dart +++ b/packages/windows_applicationmodel/lib/src/core/iapplistentry2.dart @@ -30,7 +30,7 @@ class IAppListEntry2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IAppListEntry2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_applicationmodel/lib/src/core/iapplistentry3.dart b/packages/windows_applicationmodel/lib/src/core/iapplistentry3.dart index 39a56e50..3331e0a0 100644 --- a/packages/windows_applicationmodel/lib/src/core/iapplistentry3.dart +++ b/packages/windows_applicationmodel/lib/src/core/iapplistentry3.dart @@ -31,7 +31,7 @@ class IAppListEntry3 extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class IAppListEntry3 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer user, Pointer operation)>()( - ptr.ref.lpVtbl, user.lpVtbl, operation); + lpVtbl, user.lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_applicationmodel/lib/src/core/iapplistentry4.dart b/packages/windows_applicationmodel/lib/src/core/iapplistentry4.dart index a8826522..fb91efd0 100644 --- a/packages/windows_applicationmodel/lib/src/core/iapplistentry4.dart +++ b/packages/windows_applicationmodel/lib/src/core/iapplistentry4.dart @@ -31,7 +31,7 @@ class IAppListEntry4 extends IInspectable { AppInfo? get appInfo { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IAppListEntry4 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_applicationmodel/lib/src/datatransfer/istandarddataformatsstatics.dart b/packages/windows_applicationmodel/lib/src/datatransfer/istandarddataformatsstatics.dart index b74e0a1e..217557c8 100644 --- a/packages/windows_applicationmodel/lib/src/datatransfer/istandarddataformatsstatics.dart +++ b/packages/windows_applicationmodel/lib/src/datatransfer/istandarddataformatsstatics.dart @@ -32,7 +32,7 @@ class IStandardDataFormatsStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IStandardDataFormatsStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -58,7 +58,7 @@ class IStandardDataFormatsStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,7 +68,7 @@ class IStandardDataFormatsStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -82,7 +82,7 @@ class IStandardDataFormatsStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -92,7 +92,7 @@ class IStandardDataFormatsStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -106,7 +106,7 @@ class IStandardDataFormatsStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -116,7 +116,7 @@ class IStandardDataFormatsStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -130,7 +130,7 @@ class IStandardDataFormatsStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -140,7 +140,7 @@ class IStandardDataFormatsStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -154,7 +154,7 @@ class IStandardDataFormatsStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -164,7 +164,7 @@ class IStandardDataFormatsStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_applicationmodel/lib/src/datatransfer/istandarddataformatsstatics2.dart b/packages/windows_applicationmodel/lib/src/datatransfer/istandarddataformatsstatics2.dart index 8b519ebd..3dbec19e 100644 --- a/packages/windows_applicationmodel/lib/src/datatransfer/istandarddataformatsstatics2.dart +++ b/packages/windows_applicationmodel/lib/src/datatransfer/istandarddataformatsstatics2.dart @@ -32,7 +32,7 @@ class IStandardDataFormatsStatics2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IStandardDataFormatsStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class IStandardDataFormatsStatics2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class IStandardDataFormatsStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_applicationmodel/lib/src/datatransfer/istandarddataformatsstatics3.dart b/packages/windows_applicationmodel/lib/src/datatransfer/istandarddataformatsstatics3.dart index afeb7795..a9f97808 100644 --- a/packages/windows_applicationmodel/lib/src/datatransfer/istandarddataformatsstatics3.dart +++ b/packages/windows_applicationmodel/lib/src/datatransfer/istandarddataformatsstatics3.dart @@ -32,7 +32,7 @@ class IStandardDataFormatsStatics3 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IStandardDataFormatsStatics3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_applicationmodel/lib/src/iappdisplayinfo.dart b/packages/windows_applicationmodel/lib/src/iappdisplayinfo.dart index f20fede4..b2a87b6a 100644 --- a/packages/windows_applicationmodel/lib/src/iappdisplayinfo.dart +++ b/packages/windows_applicationmodel/lib/src/iappdisplayinfo.dart @@ -31,7 +31,7 @@ class IAppDisplayInfo extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IAppDisplayInfo extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +55,7 @@ class IAppDisplayInfo extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -65,7 +65,7 @@ class IAppDisplayInfo extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -79,7 +79,7 @@ class IAppDisplayInfo extends IInspectable { final value = calloc(); final sizeNativeStructPtr = size.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -90,7 +90,7 @@ class IAppDisplayInfo extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, NativeSize size, Pointer value)>()( - ptr.ref.lpVtbl, sizeNativeStructPtr.ref, value); + lpVtbl, sizeNativeStructPtr.ref, value); free(sizeNativeStructPtr); diff --git a/packages/windows_applicationmodel/lib/src/iappinfo.dart b/packages/windows_applicationmodel/lib/src/iappinfo.dart index 6ade7ea3..11baf938 100644 --- a/packages/windows_applicationmodel/lib/src/iappinfo.dart +++ b/packages/windows_applicationmodel/lib/src/iappinfo.dart @@ -32,7 +32,7 @@ class IAppInfo extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IAppInfo extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class IAppInfo extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class IAppInfo extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -79,7 +79,7 @@ class IAppInfo extends IInspectable { AppDisplayInfo? get displayInfo { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -89,7 +89,7 @@ class IAppInfo extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -108,7 +108,7 @@ class IAppInfo extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -118,7 +118,7 @@ class IAppInfo extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_applicationmodel/lib/src/iappinfo2.dart b/packages/windows_applicationmodel/lib/src/iappinfo2.dart index da9afc6b..0c563147 100644 --- a/packages/windows_applicationmodel/lib/src/iappinfo2.dart +++ b/packages/windows_applicationmodel/lib/src/iappinfo2.dart @@ -31,7 +31,7 @@ class IAppInfo2 extends IInspectable { Package? get package { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IAppInfo2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_applicationmodel/lib/src/iappinfo3.dart b/packages/windows_applicationmodel/lib/src/iappinfo3.dart index 3cc88aa1..612abb5c 100644 --- a/packages/windows_applicationmodel/lib/src/iappinfo3.dart +++ b/packages/windows_applicationmodel/lib/src/iappinfo3.dart @@ -32,17 +32,17 @@ class IAppInfo3 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_applicationmodel/lib/src/iappinfo4.dart b/packages/windows_applicationmodel/lib/src/iappinfo4.dart index 508298c4..b3b04061 100644 --- a/packages/windows_applicationmodel/lib/src/iappinfo4.dart +++ b/packages/windows_applicationmodel/lib/src/iappinfo4.dart @@ -31,20 +31,19 @@ class IAppInfo4 extends IInspectable { final value = calloc>(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - Pointer valueSize, - Pointer> value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer valueSize, - Pointer> value)>()( - ptr.ref.lpVtbl, valueSize, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, + Pointer valueSize, + Pointer> value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, Pointer valueSize, + Pointer> value)>()(lpVtbl, valueSize, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_applicationmodel/lib/src/iappinfostatics.dart b/packages/windows_applicationmodel/lib/src/iappinfostatics.dart index a8c036c2..8615aa6a 100644 --- a/packages/windows_applicationmodel/lib/src/iappinfostatics.dart +++ b/packages/windows_applicationmodel/lib/src/iappinfostatics.dart @@ -32,7 +32,7 @@ class IAppInfoStatics extends IInspectable { AppInfo? get current { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IAppInfoStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -61,7 +61,7 @@ class IAppInfoStatics extends IInspectable { final result = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -74,7 +74,7 @@ class IAppInfoStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int appUserModelId, Pointer result)>()( - ptr.ref.lpVtbl, appUserModelId.toHString(), result); + lpVtbl, appUserModelId.toHString(), result); if (FAILED(hr)) { free(result); @@ -93,7 +93,7 @@ class IAppInfoStatics extends IInspectable { final result = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -107,7 +107,7 @@ class IAppInfoStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer user, int appUserModelId, Pointer result)>()( - ptr.ref.lpVtbl, user.lpVtbl, appUserModelId.toHString(), result); + lpVtbl, user.lpVtbl, appUserModelId.toHString(), result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_applicationmodel/lib/src/iappinstallerinfo.dart b/packages/windows_applicationmodel/lib/src/iappinstallerinfo.dart index 1d47d111..c7f5631b 100644 --- a/packages/windows_applicationmodel/lib/src/iappinstallerinfo.dart +++ b/packages/windows_applicationmodel/lib/src/iappinstallerinfo.dart @@ -29,7 +29,7 @@ class IAppInstallerInfo extends IInspectable { Uri? get uri { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class IAppInstallerInfo extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_applicationmodel/lib/src/iappinstallerinfo2.dart b/packages/windows_applicationmodel/lib/src/iappinstallerinfo2.dart index c3ca852e..f6e6ac23 100644 --- a/packages/windows_applicationmodel/lib/src/iappinstallerinfo2.dart +++ b/packages/windows_applicationmodel/lib/src/iappinstallerinfo2.dart @@ -33,17 +33,17 @@ class IAppInstallerInfo2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -57,7 +57,7 @@ class IAppInstallerInfo2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -67,7 +67,7 @@ class IAppInstallerInfo2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -81,17 +81,17 @@ class IAppInstallerInfo2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -105,17 +105,17 @@ class IAppInstallerInfo2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -129,17 +129,17 @@ class IAppInstallerInfo2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -153,17 +153,17 @@ class IAppInstallerInfo2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -177,17 +177,17 @@ class IAppInstallerInfo2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(12) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(12) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -201,18 +201,17 @@ class IAppInstallerInfo2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(13) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(13) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -226,17 +225,17 @@ class IAppInstallerInfo2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(14) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(14) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -249,7 +248,7 @@ class IAppInstallerInfo2 extends IInspectable { DateTime? get pausedUntil { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -259,7 +258,7 @@ class IAppInstallerInfo2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -279,7 +278,7 @@ class IAppInstallerInfo2 extends IInspectable { List? get updateUris { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -289,7 +288,7 @@ class IAppInstallerInfo2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -309,7 +308,7 @@ class IAppInstallerInfo2 extends IInspectable { List? get repairUris { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -319,7 +318,7 @@ class IAppInstallerInfo2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -339,7 +338,7 @@ class IAppInstallerInfo2 extends IInspectable { List? get dependencyPackageUris { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast< Pointer< @@ -349,7 +348,7 @@ class IAppInstallerInfo2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -369,7 +368,7 @@ class IAppInstallerInfo2 extends IInspectable { List? get optionalPackageUris { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(19) .cast< Pointer< @@ -379,7 +378,7 @@ class IAppInstallerInfo2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -400,17 +399,17 @@ class IAppInstallerInfo2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(20) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(20) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_applicationmodel/lib/src/ifindrelatedpackagesoptions.dart b/packages/windows_applicationmodel/lib/src/ifindrelatedpackagesoptions.dart index efa84f8b..140a8286 100644 --- a/packages/windows_applicationmodel/lib/src/ifindrelatedpackagesoptions.dart +++ b/packages/windows_applicationmodel/lib/src/ifindrelatedpackagesoptions.dart @@ -34,17 +34,17 @@ class IFindRelatedPackagesOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +55,7 @@ class IFindRelatedPackagesOptions extends IInspectable { } set relationship(PackageRelationship value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -63,7 +63,7 @@ class IFindRelatedPackagesOptions extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -72,17 +72,17 @@ class IFindRelatedPackagesOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -93,7 +93,7 @@ class IFindRelatedPackagesOptions extends IInspectable { } set includeFrameworks(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -101,7 +101,7 @@ class IFindRelatedPackagesOptions extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -110,17 +110,17 @@ class IFindRelatedPackagesOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -131,7 +131,7 @@ class IFindRelatedPackagesOptions extends IInspectable { } set includeHostRuntimes(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -139,7 +139,7 @@ class IFindRelatedPackagesOptions extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -148,17 +148,17 @@ class IFindRelatedPackagesOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(12) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(12) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -169,7 +169,7 @@ class IFindRelatedPackagesOptions extends IInspectable { } set includeOptionals(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -177,7 +177,7 @@ class IFindRelatedPackagesOptions extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -186,17 +186,17 @@ class IFindRelatedPackagesOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(14) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(14) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -207,7 +207,7 @@ class IFindRelatedPackagesOptions extends IInspectable { } set includeResources(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -215,7 +215,7 @@ class IFindRelatedPackagesOptions extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_applicationmodel/lib/src/ifindrelatedpackagesoptionsfactory.dart b/packages/windows_applicationmodel/lib/src/ifindrelatedpackagesoptionsfactory.dart index bdc9bd95..5e17efed 100644 --- a/packages/windows_applicationmodel/lib/src/ifindrelatedpackagesoptionsfactory.dart +++ b/packages/windows_applicationmodel/lib/src/ifindrelatedpackagesoptionsfactory.dart @@ -34,7 +34,7 @@ class IFindRelatedPackagesOptionsFactory extends IInspectable { FindRelatedPackagesOptions createInstance(PackageRelationship relationship) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,11 +43,8 @@ class IFindRelatedPackagesOptionsFactory extends IInspectable { Pointer value)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - int relationship, - Pointer - value)>()(ptr.ref.lpVtbl, relationship.value, value); + int Function(VTablePointer lpVtbl, int relationship, + Pointer value)>()(lpVtbl, relationship.value, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_applicationmodel/lib/src/ipackage.dart b/packages/windows_applicationmodel/lib/src/ipackage.dart index 69a18938..8c283f9d 100644 --- a/packages/windows_applicationmodel/lib/src/ipackage.dart +++ b/packages/windows_applicationmodel/lib/src/ipackage.dart @@ -33,7 +33,7 @@ class IPackage extends IInspectable { PackageId? get id { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IPackage extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -61,7 +61,7 @@ class IPackage extends IInspectable { StorageFolder? get installedLocation { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -71,7 +71,7 @@ class IPackage extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -90,17 +90,17 @@ class IPackage extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -113,7 +113,7 @@ class IPackage extends IInspectable { List? get dependencies { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -123,7 +123,7 @@ class IPackage extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_applicationmodel/lib/src/ipackage2.dart b/packages/windows_applicationmodel/lib/src/ipackage2.dart index 6519c61a..d3926e49 100644 --- a/packages/windows_applicationmodel/lib/src/ipackage2.dart +++ b/packages/windows_applicationmodel/lib/src/ipackage2.dart @@ -30,7 +30,7 @@ class IPackage2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IPackage2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IPackage2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IPackage2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -78,7 +78,7 @@ class IPackage2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -88,7 +88,7 @@ class IPackage2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -101,7 +101,7 @@ class IPackage2 extends IInspectable { Uri? get logo { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -111,7 +111,7 @@ class IPackage2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -130,17 +130,17 @@ class IPackage2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -154,17 +154,17 @@ class IPackage2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -178,17 +178,17 @@ class IPackage2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(12) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(12) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_applicationmodel/lib/src/ipackage3.dart b/packages/windows_applicationmodel/lib/src/ipackage3.dart index 8188a9c4..17a3524f 100644 --- a/packages/windows_applicationmodel/lib/src/ipackage3.dart +++ b/packages/windows_applicationmodel/lib/src/ipackage3.dart @@ -32,7 +32,7 @@ class IPackage3 extends IInspectable { PackageStatus? get status { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IPackage3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -61,17 +61,17 @@ class IPackage3 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -84,7 +84,7 @@ class IPackage3 extends IInspectable { Future> getAppListEntriesAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -94,7 +94,7 @@ class IPackage3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_applicationmodel/lib/src/ipackage4.dart b/packages/windows_applicationmodel/lib/src/ipackage4.dart index 7dfd54a8..c4b8a3ef 100644 --- a/packages/windows_applicationmodel/lib/src/ipackage4.dart +++ b/packages/windows_applicationmodel/lib/src/ipackage4.dart @@ -32,17 +32,17 @@ class IPackage4 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,17 +56,17 @@ class IPackage4 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -79,7 +79,7 @@ class IPackage4 extends IInspectable { Future verifyContentIntegrityAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -89,7 +89,7 @@ class IPackage4 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_applicationmodel/lib/src/ipackage5.dart b/packages/windows_applicationmodel/lib/src/ipackage5.dart index 640b0d6f..1fd05030 100644 --- a/packages/windows_applicationmodel/lib/src/ipackage5.dart +++ b/packages/windows_applicationmodel/lib/src/ipackage5.dart @@ -31,7 +31,7 @@ class IPackage5 extends IInspectable { Future> getContentGroupsAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IPackage5 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -59,7 +59,7 @@ class IPackage5 extends IInspectable { Future getContentGroupAsync(String name) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -70,7 +70,7 @@ class IPackage5 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int name, Pointer operation)>()( - ptr.ref.lpVtbl, name.toHString(), operation); + lpVtbl, name.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -88,7 +88,7 @@ class IPackage5 extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -101,7 +101,7 @@ class IPackage5 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer names, Pointer operation)>()( - ptr.ref.lpVtbl, names.lpVtbl, operation); + lpVtbl, names.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -120,7 +120,7 @@ class IPackage5 extends IInspectable { IIterable? names, bool moveToHeadOfQueue) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -134,7 +134,7 @@ class IPackage5 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer names, bool moveToHeadOfQueue, Pointer operation)>()( - ptr.ref.lpVtbl, names.lpVtbl, moveToHeadOfQueue, operation); + lpVtbl, names.lpVtbl, moveToHeadOfQueue, operation); if (FAILED(hr)) { free(operation); @@ -152,18 +152,17 @@ class IPackage5 extends IInspectable { Future setInUseAsync(bool inUse) { final operation = calloc(); - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Bool inUse, - Pointer operation)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, bool inUse, - Pointer operation)>()( - ptr.ref.lpVtbl, inUse, operation); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Bool inUse, + Pointer operation)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, bool inUse, + Pointer operation)>()(lpVtbl, inUse, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_applicationmodel/lib/src/ipackage6.dart b/packages/windows_applicationmodel/lib/src/ipackage6.dart index 03bcb3cb..fe815e16 100644 --- a/packages/windows_applicationmodel/lib/src/ipackage6.dart +++ b/packages/windows_applicationmodel/lib/src/ipackage6.dart @@ -32,7 +32,7 @@ class IPackage6 extends IInspectable { AppInstallerInfo? getAppInstallerInfo() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IPackage6 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -60,7 +60,7 @@ class IPackage6 extends IInspectable { Future checkUpdateAvailabilityAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -70,7 +70,7 @@ class IPackage6 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_applicationmodel/lib/src/ipackage7.dart b/packages/windows_applicationmodel/lib/src/ipackage7.dart index 16770190..2779850f 100644 --- a/packages/windows_applicationmodel/lib/src/ipackage7.dart +++ b/packages/windows_applicationmodel/lib/src/ipackage7.dart @@ -30,7 +30,7 @@ class IPackage7 extends IInspectable { StorageFolder? get mutableLocation { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IPackage7 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -58,7 +58,7 @@ class IPackage7 extends IInspectable { StorageFolder? get effectiveLocation { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,7 +68,7 @@ class IPackage7 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_applicationmodel/lib/src/ipackage8.dart b/packages/windows_applicationmodel/lib/src/ipackage8.dart index b640c669..087a210f 100644 --- a/packages/windows_applicationmodel/lib/src/ipackage8.dart +++ b/packages/windows_applicationmodel/lib/src/ipackage8.dart @@ -32,7 +32,7 @@ class IPackage8 extends IInspectable { StorageFolder? get effectiveExternalLocation { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IPackage8 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -60,7 +60,7 @@ class IPackage8 extends IInspectable { StorageFolder? get machineExternalLocation { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -70,7 +70,7 @@ class IPackage8 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -88,7 +88,7 @@ class IPackage8 extends IInspectable { StorageFolder? get userExternalLocation { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -98,7 +98,7 @@ class IPackage8 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -117,7 +117,7 @@ class IPackage8 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -127,7 +127,7 @@ class IPackage8 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -141,7 +141,7 @@ class IPackage8 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -151,7 +151,7 @@ class IPackage8 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -165,7 +165,7 @@ class IPackage8 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -175,7 +175,7 @@ class IPackage8 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -189,7 +189,7 @@ class IPackage8 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -199,7 +199,7 @@ class IPackage8 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -213,7 +213,7 @@ class IPackage8 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -223,7 +223,7 @@ class IPackage8 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -237,7 +237,7 @@ class IPackage8 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -247,7 +247,7 @@ class IPackage8 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -261,7 +261,7 @@ class IPackage8 extends IInspectable { final result = calloc(); final sizeNativeStructPtr = size.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -272,7 +272,7 @@ class IPackage8 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, NativeSize size, Pointer result)>()( - ptr.ref.lpVtbl, sizeNativeStructPtr.ref, result); + lpVtbl, sizeNativeStructPtr.ref, result); free(sizeNativeStructPtr); @@ -292,7 +292,7 @@ class IPackage8 extends IInspectable { List getAppListEntries() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -302,7 +302,7 @@ class IPackage8 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -319,17 +319,17 @@ class IPackage8 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_applicationmodel/lib/src/ipackage9.dart b/packages/windows_applicationmodel/lib/src/ipackage9.dart index e847e6c3..619d9622 100644 --- a/packages/windows_applicationmodel/lib/src/ipackage9.dart +++ b/packages/windows_applicationmodel/lib/src/ipackage9.dart @@ -32,21 +32,17 @@ class IPackage9 extends IInspectable { IVector findRelatedPackages(FindRelatedPackagesOptions? options) { final result = calloc(); - final hr = - ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - VTablePointer options, - Pointer result)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer options, - Pointer result)>()( - ptr.ref.lpVtbl, options.lpVtbl, result); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer options, Pointer result)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer options, + Pointer result)>()(lpVtbl, options.lpVtbl, result); if (FAILED(hr)) { free(result); @@ -62,7 +58,7 @@ class IPackage9 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -72,7 +68,7 @@ class IPackage9 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_applicationmodel/lib/src/ipackagecontentgroup.dart b/packages/windows_applicationmodel/lib/src/ipackagecontentgroup.dart index f54038a2..ea1863e5 100644 --- a/packages/windows_applicationmodel/lib/src/ipackagecontentgroup.dart +++ b/packages/windows_applicationmodel/lib/src/ipackagecontentgroup.dart @@ -32,7 +32,7 @@ class IPackageContentGroup extends IInspectable { Package? get package { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IPackageContentGroup extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -61,7 +61,7 @@ class IPackageContentGroup extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -71,7 +71,7 @@ class IPackageContentGroup extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -85,17 +85,17 @@ class IPackageContentGroup extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -109,17 +109,17 @@ class IPackageContentGroup extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_applicationmodel/lib/src/ipackagecontentgroupstatics.dart b/packages/windows_applicationmodel/lib/src/ipackagecontentgroupstatics.dart index 274a72dc..d9a04a8c 100644 --- a/packages/windows_applicationmodel/lib/src/ipackagecontentgroupstatics.dart +++ b/packages/windows_applicationmodel/lib/src/ipackagecontentgroupstatics.dart @@ -32,7 +32,7 @@ class IPackageContentGroupStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IPackageContentGroupStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_applicationmodel/lib/src/ipackageid.dart b/packages/windows_applicationmodel/lib/src/ipackageid.dart index 734483ac..a84e425a 100644 --- a/packages/windows_applicationmodel/lib/src/ipackageid.dart +++ b/packages/windows_applicationmodel/lib/src/ipackageid.dart @@ -33,7 +33,7 @@ class IPackageId extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IPackageId extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -57,18 +57,17 @@ class IPackageId extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -82,17 +81,17 @@ class IPackageId extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -106,7 +105,7 @@ class IPackageId extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -116,7 +115,7 @@ class IPackageId extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -130,7 +129,7 @@ class IPackageId extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -140,7 +139,7 @@ class IPackageId extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -154,7 +153,7 @@ class IPackageId extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -164,7 +163,7 @@ class IPackageId extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -178,7 +177,7 @@ class IPackageId extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -188,7 +187,7 @@ class IPackageId extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -202,7 +201,7 @@ class IPackageId extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -212,7 +211,7 @@ class IPackageId extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_applicationmodel/lib/src/ipackageidwithmetadata.dart b/packages/windows_applicationmodel/lib/src/ipackageidwithmetadata.dart index 8d99a88b..227fba90 100644 --- a/packages/windows_applicationmodel/lib/src/ipackageidwithmetadata.dart +++ b/packages/windows_applicationmodel/lib/src/ipackageidwithmetadata.dart @@ -30,7 +30,7 @@ class IPackageIdWithMetadata extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IPackageIdWithMetadata extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IPackageIdWithMetadata extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IPackageIdWithMetadata extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_applicationmodel/lib/src/ipackagestatics.dart b/packages/windows_applicationmodel/lib/src/ipackagestatics.dart index 8e48cbd5..6f5958ae 100644 --- a/packages/windows_applicationmodel/lib/src/ipackagestatics.dart +++ b/packages/windows_applicationmodel/lib/src/ipackagestatics.dart @@ -31,7 +31,7 @@ class IPackageStatics extends IInspectable { Package? get current { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IPackageStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_applicationmodel/lib/src/ipackagestatus.dart b/packages/windows_applicationmodel/lib/src/ipackagestatus.dart index 2b2624db..f7fb9c67 100644 --- a/packages/windows_applicationmodel/lib/src/ipackagestatus.dart +++ b/packages/windows_applicationmodel/lib/src/ipackagestatus.dart @@ -30,17 +30,17 @@ class IPackageStatus extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,17 +54,17 @@ class IPackageStatus extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -78,17 +78,17 @@ class IPackageStatus extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -102,17 +102,17 @@ class IPackageStatus extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -126,17 +126,17 @@ class IPackageStatus extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -150,17 +150,17 @@ class IPackageStatus extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -174,17 +174,17 @@ class IPackageStatus extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(12) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(12) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -198,17 +198,17 @@ class IPackageStatus extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(13) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(13) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -222,17 +222,17 @@ class IPackageStatus extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(14) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(14) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -246,17 +246,17 @@ class IPackageStatus extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(15) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(15) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -270,17 +270,17 @@ class IPackageStatus extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(16) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(16) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -294,17 +294,17 @@ class IPackageStatus extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_applicationmodel/lib/src/ipackagestatus2.dart b/packages/windows_applicationmodel/lib/src/ipackagestatus2.dart index 59a358a4..08b5938a 100644 --- a/packages/windows_applicationmodel/lib/src/ipackagestatus2.dart +++ b/packages/windows_applicationmodel/lib/src/ipackagestatus2.dart @@ -30,17 +30,17 @@ class IPackageStatus2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_applicationmodel/lib/src/ipackageupdateavailabilityresult.dart b/packages/windows_applicationmodel/lib/src/ipackageupdateavailabilityresult.dart index fead6dd0..c4c74b13 100644 --- a/packages/windows_applicationmodel/lib/src/ipackageupdateavailabilityresult.dart +++ b/packages/windows_applicationmodel/lib/src/ipackageupdateavailabilityresult.dart @@ -34,17 +34,17 @@ class IPackageUpdateAvailabilityResult extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -58,17 +58,17 @@ class IPackageUpdateAvailabilityResult extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_applicationmodel/lib/src/ipackagewithmetadata.dart b/packages/windows_applicationmodel/lib/src/ipackagewithmetadata.dart index e57450ca..f8496573 100644 --- a/packages/windows_applicationmodel/lib/src/ipackagewithmetadata.dart +++ b/packages/windows_applicationmodel/lib/src/ipackagewithmetadata.dart @@ -30,17 +30,17 @@ class IPackageWithMetadata extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IPackageWithMetadata extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IPackageWithMetadata extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -77,7 +77,7 @@ class IPackageWithMetadata extends IInspectable { @Deprecated( "Launch may be altered or unavailable for releases after Windows 8.1. Instead, for SmartCardTrigger scenarios use SmartCardTriggerDetails.TryLaunchSelfAsync") void launch(String parameters) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -86,7 +86,7 @@ class IPackageWithMetadata extends IInspectable { VTablePointer lpVtbl, IntPtr parameters)>>>() .value .asFunction()( - ptr.ref.lpVtbl, parameters.toHString()); + lpVtbl, parameters.toHString()); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_data/lib/src/json/ijsonarray.dart b/packages/windows_data/lib/src/json/ijsonarray.dart index d8d698d5..71f9b880 100644 --- a/packages/windows_data/lib/src/json/ijsonarray.dart +++ b/packages/windows_data/lib/src/json/ijsonarray.dart @@ -34,18 +34,17 @@ class IJsonArray extends IInspectable implements IJsonValue { JsonObject getObjectAt(int index) { final returnValue = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer returnValue)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer returnValue)>()( - ptr.ref.lpVtbl, index, returnValue); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer returnValue)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer returnValue)>()(lpVtbl, index, returnValue); if (FAILED(hr)) { free(returnValue); @@ -58,18 +57,17 @@ class IJsonArray extends IInspectable implements IJsonValue { JsonArray getArrayAt(int index) { final returnValue = calloc(); - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer returnValue)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer returnValue)>()( - ptr.ref.lpVtbl, index, returnValue); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer returnValue)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer returnValue)>()(lpVtbl, index, returnValue); if (FAILED(hr)) { free(returnValue); @@ -83,18 +81,17 @@ class IJsonArray extends IInspectable implements IJsonValue { final returnValue = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer returnValue)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer returnValue)>()( - ptr.ref.lpVtbl, index, returnValue); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer returnValue)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer returnValue)>()(lpVtbl, index, returnValue); if (FAILED(hr)) throwWindowsException(hr); @@ -108,18 +105,17 @@ class IJsonArray extends IInspectable implements IJsonValue { final returnValue = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer returnValue)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer returnValue)>()( - ptr.ref.lpVtbl, index, returnValue); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer returnValue)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer returnValue)>()(lpVtbl, index, returnValue); if (FAILED(hr)) throwWindowsException(hr); @@ -133,18 +129,17 @@ class IJsonArray extends IInspectable implements IJsonValue { final returnValue = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer returnValue)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer returnValue)>()( - ptr.ref.lpVtbl, index, returnValue); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer returnValue)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer returnValue)>()(lpVtbl, index, returnValue); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_data/lib/src/json/ijsonarraystatics.dart b/packages/windows_data/lib/src/json/ijsonarraystatics.dart index 459d789d..338918d7 100644 --- a/packages/windows_data/lib/src/json/ijsonarraystatics.dart +++ b/packages/windows_data/lib/src/json/ijsonarraystatics.dart @@ -31,7 +31,7 @@ class IJsonArrayStatics extends IInspectable { JsonArray parse(String input) { final jsonArray = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IJsonArrayStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int input, Pointer jsonArray)>()( - ptr.ref.lpVtbl, input.toHString(), jsonArray); + lpVtbl, input.toHString(), jsonArray); if (FAILED(hr)) { free(jsonArray); @@ -57,7 +57,7 @@ class IJsonArrayStatics extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -71,7 +71,7 @@ class IJsonArrayStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int input, Pointer result, Pointer succeeded)>()( - ptr.ref.lpVtbl, input.toHString(), result, succeeded); + lpVtbl, input.toHString(), result, succeeded); if (FAILED(hr)) { free(result); diff --git a/packages/windows_data/lib/src/json/ijsonobject.dart b/packages/windows_data/lib/src/json/ijsonobject.dart index 47d95d09..8234f34e 100644 --- a/packages/windows_data/lib/src/json/ijsonobject.dart +++ b/packages/windows_data/lib/src/json/ijsonobject.dart @@ -35,7 +35,7 @@ class IJsonObject extends IInspectable implements IJsonValue { JsonValue? getNamedValue(String name) { final returnValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -46,7 +46,7 @@ class IJsonObject extends IInspectable implements IJsonValue { .asFunction< int Function(VTablePointer lpVtbl, int name, Pointer returnValue)>()( - ptr.ref.lpVtbl, name.toHString(), returnValue); + lpVtbl, name.toHString(), returnValue); if (FAILED(hr)) { free(returnValue); @@ -62,18 +62,17 @@ class IJsonObject extends IInspectable implements IJsonValue { } void setNamedValue(String name, IJsonValue? value) { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, IntPtr name, - VTablePointer value)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, int name, VTablePointer value)>()( - ptr.ref.lpVtbl, name.toHString(), value.lpVtbl); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, IntPtr name, + VTablePointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int name, + VTablePointer value)>()(lpVtbl, name.toHString(), value.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -81,7 +80,7 @@ class IJsonObject extends IInspectable implements IJsonValue { JsonObject getNamedObject(String name) { final returnValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -92,7 +91,7 @@ class IJsonObject extends IInspectable implements IJsonValue { .asFunction< int Function(VTablePointer lpVtbl, int name, Pointer returnValue)>()( - ptr.ref.lpVtbl, name.toHString(), returnValue); + lpVtbl, name.toHString(), returnValue); if (FAILED(hr)) { free(returnValue); @@ -105,7 +104,7 @@ class IJsonObject extends IInspectable implements IJsonValue { JsonArray getNamedArray(String name) { final returnValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -116,7 +115,7 @@ class IJsonObject extends IInspectable implements IJsonValue { .asFunction< int Function(VTablePointer lpVtbl, int name, Pointer returnValue)>()( - ptr.ref.lpVtbl, name.toHString(), returnValue); + lpVtbl, name.toHString(), returnValue); if (FAILED(hr)) { free(returnValue); @@ -130,7 +129,7 @@ class IJsonObject extends IInspectable implements IJsonValue { final returnValue = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -141,7 +140,7 @@ class IJsonObject extends IInspectable implements IJsonValue { .asFunction< int Function(VTablePointer lpVtbl, int name, Pointer returnValue)>()( - ptr.ref.lpVtbl, name.toHString(), returnValue); + lpVtbl, name.toHString(), returnValue); if (FAILED(hr)) throwWindowsException(hr); @@ -155,7 +154,7 @@ class IJsonObject extends IInspectable implements IJsonValue { final returnValue = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -166,7 +165,7 @@ class IJsonObject extends IInspectable implements IJsonValue { .asFunction< int Function(VTablePointer lpVtbl, int name, Pointer returnValue)>()( - ptr.ref.lpVtbl, name.toHString(), returnValue); + lpVtbl, name.toHString(), returnValue); if (FAILED(hr)) throwWindowsException(hr); @@ -180,7 +179,7 @@ class IJsonObject extends IInspectable implements IJsonValue { final returnValue = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -191,7 +190,7 @@ class IJsonObject extends IInspectable implements IJsonValue { .asFunction< int Function(VTablePointer lpVtbl, int name, Pointer returnValue)>()( - ptr.ref.lpVtbl, name.toHString(), returnValue); + lpVtbl, name.toHString(), returnValue); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_data/lib/src/json/ijsonobjectstatics.dart b/packages/windows_data/lib/src/json/ijsonobjectstatics.dart index 27f004a2..7bd4a68c 100644 --- a/packages/windows_data/lib/src/json/ijsonobjectstatics.dart +++ b/packages/windows_data/lib/src/json/ijsonobjectstatics.dart @@ -31,7 +31,7 @@ class IJsonObjectStatics extends IInspectable { JsonObject parse(String input) { final jsonObject = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IJsonObjectStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int input, Pointer jsonObject)>()( - ptr.ref.lpVtbl, input.toHString(), jsonObject); + lpVtbl, input.toHString(), jsonObject); if (FAILED(hr)) { free(jsonObject); @@ -57,7 +57,7 @@ class IJsonObjectStatics extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -71,7 +71,7 @@ class IJsonObjectStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int input, Pointer result, Pointer succeeded)>()( - ptr.ref.lpVtbl, input.toHString(), result, succeeded); + lpVtbl, input.toHString(), result, succeeded); if (FAILED(hr)) { free(result); diff --git a/packages/windows_data/lib/src/json/ijsonobjectwithdefaultvalues.dart b/packages/windows_data/lib/src/json/ijsonobjectwithdefaultvalues.dart index 280a958b..fe0a4baa 100644 --- a/packages/windows_data/lib/src/json/ijsonobjectwithdefaultvalues.dart +++ b/packages/windows_data/lib/src/json/ijsonobjectwithdefaultvalues.dart @@ -39,7 +39,7 @@ class IJsonObjectWithDefaultValues extends IInspectable JsonValue? getNamedValueOrDefault(String name, JsonValue? defaultValue) { final returnValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -56,7 +56,7 @@ class IJsonObjectWithDefaultValues extends IInspectable int name, VTablePointer defaultValue, Pointer returnValue)>()( - ptr.ref.lpVtbl, name.toHString(), defaultValue.lpVtbl, returnValue); + lpVtbl, name.toHString(), defaultValue.lpVtbl, returnValue); if (FAILED(hr)) { free(returnValue); @@ -74,7 +74,7 @@ class IJsonObjectWithDefaultValues extends IInspectable JsonObject getNamedObjectOrDefault(String name, JsonObject? defaultValue) { final returnValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -91,7 +91,7 @@ class IJsonObjectWithDefaultValues extends IInspectable int name, VTablePointer defaultValue, Pointer returnValue)>()( - ptr.ref.lpVtbl, name.toHString(), defaultValue.lpVtbl, returnValue); + lpVtbl, name.toHString(), defaultValue.lpVtbl, returnValue); if (FAILED(hr)) { free(returnValue); @@ -106,7 +106,7 @@ class IJsonObjectWithDefaultValues extends IInspectable try { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -120,10 +120,7 @@ class IJsonObjectWithDefaultValues extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, int name, int defaultValue, Pointer returnValue)>()( - ptr.ref.lpVtbl, - name.toHString(), - defaultValue.toHString(), - returnValue); + lpVtbl, name.toHString(), defaultValue.toHString(), returnValue); if (FAILED(hr)) throwWindowsException(hr); @@ -136,7 +133,7 @@ class IJsonObjectWithDefaultValues extends IInspectable JsonArray getNamedArrayOrDefault(String name, JsonArray? defaultValue) { final returnValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -153,7 +150,7 @@ class IJsonObjectWithDefaultValues extends IInspectable int name, VTablePointer defaultValue, Pointer returnValue)>()( - ptr.ref.lpVtbl, name.toHString(), defaultValue.lpVtbl, returnValue); + lpVtbl, name.toHString(), defaultValue.lpVtbl, returnValue); if (FAILED(hr)) { free(returnValue); @@ -168,7 +165,7 @@ class IJsonObjectWithDefaultValues extends IInspectable try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -182,7 +179,7 @@ class IJsonObjectWithDefaultValues extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, int name, double defaultValue, Pointer returnValue)>()( - ptr.ref.lpVtbl, name.toHString(), defaultValue, returnValue); + lpVtbl, name.toHString(), defaultValue, returnValue); if (FAILED(hr)) throwWindowsException(hr); @@ -196,7 +193,7 @@ class IJsonObjectWithDefaultValues extends IInspectable final returnValue = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -207,7 +204,7 @@ class IJsonObjectWithDefaultValues extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, int name, bool defaultValue, Pointer returnValue)>()( - ptr.ref.lpVtbl, name.toHString(), defaultValue, returnValue); + lpVtbl, name.toHString(), defaultValue, returnValue); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_data/lib/src/json/ijsonvalue.dart b/packages/windows_data/lib/src/json/ijsonvalue.dart index d48ebd1b..98a3bab6 100644 --- a/packages/windows_data/lib/src/json/ijsonvalue.dart +++ b/packages/windows_data/lib/src/json/ijsonvalue.dart @@ -34,17 +34,17 @@ class IJsonValue extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -58,7 +58,7 @@ class IJsonValue extends IInspectable { final returnValue = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,7 +68,7 @@ class IJsonValue extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer returnValue)>()(ptr.ref.lpVtbl, returnValue); + Pointer returnValue)>()(lpVtbl, returnValue); if (FAILED(hr)) throwWindowsException(hr); @@ -82,7 +82,7 @@ class IJsonValue extends IInspectable { final returnValue = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -92,7 +92,7 @@ class IJsonValue extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer returnValue)>()(ptr.ref.lpVtbl, returnValue); + Pointer returnValue)>()(lpVtbl, returnValue); if (FAILED(hr)) throwWindowsException(hr); @@ -106,7 +106,7 @@ class IJsonValue extends IInspectable { final returnValue = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -116,7 +116,7 @@ class IJsonValue extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer returnValue)>()(ptr.ref.lpVtbl, returnValue); + Pointer returnValue)>()(lpVtbl, returnValue); if (FAILED(hr)) throwWindowsException(hr); @@ -130,7 +130,7 @@ class IJsonValue extends IInspectable { final returnValue = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -140,7 +140,7 @@ class IJsonValue extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer returnValue)>()(ptr.ref.lpVtbl, returnValue); + Pointer returnValue)>()(lpVtbl, returnValue); if (FAILED(hr)) throwWindowsException(hr); @@ -153,7 +153,7 @@ class IJsonValue extends IInspectable { JsonArray getArray() { final returnValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -163,7 +163,7 @@ class IJsonValue extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer returnValue)>()(ptr.ref.lpVtbl, returnValue); + Pointer returnValue)>()(lpVtbl, returnValue); if (FAILED(hr)) { free(returnValue); @@ -176,7 +176,7 @@ class IJsonValue extends IInspectable { JsonObject getObject() { final returnValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -186,7 +186,7 @@ class IJsonValue extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer returnValue)>()(ptr.ref.lpVtbl, returnValue); + Pointer returnValue)>()(lpVtbl, returnValue); if (FAILED(hr)) { free(returnValue); diff --git a/packages/windows_data/lib/src/json/ijsonvaluestatics.dart b/packages/windows_data/lib/src/json/ijsonvaluestatics.dart index b4ef7846..6dceb090 100644 --- a/packages/windows_data/lib/src/json/ijsonvaluestatics.dart +++ b/packages/windows_data/lib/src/json/ijsonvaluestatics.dart @@ -31,7 +31,7 @@ class IJsonValueStatics extends IInspectable { JsonValue? parse(String input) { final jsonValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IJsonValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int input, Pointer jsonValue)>()( - ptr.ref.lpVtbl, input.toHString(), jsonValue); + lpVtbl, input.toHString(), jsonValue); if (FAILED(hr)) { free(jsonValue); @@ -62,7 +62,7 @@ class IJsonValueStatics extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -76,7 +76,7 @@ class IJsonValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int input, Pointer result, Pointer succeeded)>()( - ptr.ref.lpVtbl, input.toHString(), result, succeeded); + lpVtbl, input.toHString(), result, succeeded); if (FAILED(hr)) { free(result); @@ -101,18 +101,17 @@ class IJsonValueStatics extends IInspectable { JsonValue? createBooleanValue(bool input) { final jsonValue = calloc(); - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Bool input, - Pointer jsonValue)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, bool input, - Pointer jsonValue)>()( - ptr.ref.lpVtbl, input, jsonValue); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Bool input, + Pointer jsonValue)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, bool input, + Pointer jsonValue)>()(lpVtbl, input, jsonValue); if (FAILED(hr)) { free(jsonValue); @@ -130,18 +129,17 @@ class IJsonValueStatics extends IInspectable { JsonValue? createNumberValue(double input) { final jsonValue = calloc(); - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Double input, - Pointer jsonValue)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, double input, - Pointer jsonValue)>()( - ptr.ref.lpVtbl, input, jsonValue); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Double input, + Pointer jsonValue)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, double input, + Pointer jsonValue)>()(lpVtbl, input, jsonValue); if (FAILED(hr)) { free(jsonValue); @@ -159,7 +157,7 @@ class IJsonValueStatics extends IInspectable { JsonValue? createStringValue(String input) { final jsonValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -170,7 +168,7 @@ class IJsonValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int input, Pointer jsonValue)>()( - ptr.ref.lpVtbl, input.toHString(), jsonValue); + lpVtbl, input.toHString(), jsonValue); if (FAILED(hr)) { free(jsonValue); diff --git a/packages/windows_data/lib/src/json/ijsonvaluestatics2.dart b/packages/windows_data/lib/src/json/ijsonvaluestatics2.dart index 1b6552e8..765fd0ba 100644 --- a/packages/windows_data/lib/src/json/ijsonvaluestatics2.dart +++ b/packages/windows_data/lib/src/json/ijsonvaluestatics2.dart @@ -31,7 +31,7 @@ class IJsonValueStatics2 extends IInspectable { JsonValue? createNullValue() { final jsonValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IJsonValueStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer jsonValue)>()(ptr.ref.lpVtbl, jsonValue); + Pointer jsonValue)>()(lpVtbl, jsonValue); if (FAILED(hr)) { free(jsonValue); diff --git a/packages/windows_data/lib/src/pdf/ipdfdocument.dart b/packages/windows_data/lib/src/pdf/ipdfdocument.dart index c493b644..988e6128 100644 --- a/packages/windows_data/lib/src/pdf/ipdfdocument.dart +++ b/packages/windows_data/lib/src/pdf/ipdfdocument.dart @@ -31,18 +31,17 @@ class IPdfDocument extends IInspectable { PdfPage? getPage(int pageIndex) { final pdfPage = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 pageIndex, - Pointer pdfPage)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int pageIndex, - Pointer pdfPage)>()( - ptr.ref.lpVtbl, pageIndex, pdfPage); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 pageIndex, + Pointer pdfPage)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int pageIndex, + Pointer pdfPage)>()(lpVtbl, pageIndex, pdfPage); if (FAILED(hr)) { free(pdfPage); @@ -61,7 +60,7 @@ class IPdfDocument extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -71,7 +70,7 @@ class IPdfDocument extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -85,17 +84,17 @@ class IPdfDocument extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_data/lib/src/pdf/ipdfdocumentstatics.dart b/packages/windows_data/lib/src/pdf/ipdfdocumentstatics.dart index 7b864b83..2bf97e0f 100644 --- a/packages/windows_data/lib/src/pdf/ipdfdocumentstatics.dart +++ b/packages/windows_data/lib/src/pdf/ipdfdocumentstatics.dart @@ -33,7 +33,7 @@ class IPdfDocumentStatics extends IInspectable { final asyncInfo = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -46,7 +46,7 @@ class IPdfDocumentStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer file, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, file.lpVtbl, asyncInfo); + lpVtbl, file.lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -63,7 +63,7 @@ class IPdfDocumentStatics extends IInspectable { final asyncInfo = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -77,7 +77,7 @@ class IPdfDocumentStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer file, int password, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, file.lpVtbl, password.toHString(), asyncInfo); + lpVtbl, file.lpVtbl, password.toHString(), asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -92,7 +92,7 @@ class IPdfDocumentStatics extends IInspectable { Future loadFromStreamAsync(IRandomAccessStream? inputStream) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -105,7 +105,7 @@ class IPdfDocumentStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer inputStream, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, inputStream.lpVtbl, asyncInfo); + lpVtbl, inputStream.lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -121,7 +121,7 @@ class IPdfDocumentStatics extends IInspectable { IRandomAccessStream? inputStream, String password) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -135,7 +135,7 @@ class IPdfDocumentStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer inputStream, int password, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, inputStream.lpVtbl, password.toHString(), asyncInfo); + lpVtbl, inputStream.lpVtbl, password.toHString(), asyncInfo); if (FAILED(hr)) { free(asyncInfo); diff --git a/packages/windows_data/lib/src/pdf/ipdfpage.dart b/packages/windows_data/lib/src/pdf/ipdfpage.dart index 82e67204..c4e42ae1 100644 --- a/packages/windows_data/lib/src/pdf/ipdfpage.dart +++ b/packages/windows_data/lib/src/pdf/ipdfpage.dart @@ -34,7 +34,7 @@ class IPdfPage extends IInspectable { Future renderToStreamAsync(IRandomAccessStream? outputStream) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -47,7 +47,7 @@ class IPdfPage extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer outputStream, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, outputStream.lpVtbl, asyncInfo); + lpVtbl, outputStream.lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -61,7 +61,7 @@ class IPdfPage extends IInspectable { IRandomAccessStream? outputStream, PdfPageRenderOptions? options) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -75,7 +75,7 @@ class IPdfPage extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer outputStream, VTablePointer options, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, outputStream.lpVtbl, options.lpVtbl, asyncInfo); + lpVtbl, outputStream.lpVtbl, options.lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -88,7 +88,7 @@ class IPdfPage extends IInspectable { Future preparePageAsync() { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -98,7 +98,7 @@ class IPdfPage extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer asyncInfo)>()(ptr.ref.lpVtbl, asyncInfo); + Pointer asyncInfo)>()(lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -112,7 +112,7 @@ class IPdfPage extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -122,7 +122,7 @@ class IPdfPage extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -136,7 +136,7 @@ class IPdfPage extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -146,7 +146,7 @@ class IPdfPage extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -159,7 +159,7 @@ class IPdfPage extends IInspectable { PdfPageDimensions? get dimensions { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -169,7 +169,7 @@ class IPdfPage extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -188,17 +188,17 @@ class IPdfPage extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(12) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(12) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -212,17 +212,17 @@ class IPdfPage extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(13) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(13) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_data/lib/src/pdf/ipdfpagedimensions.dart b/packages/windows_data/lib/src/pdf/ipdfpagedimensions.dart index d1a80fe6..398f85aa 100644 --- a/packages/windows_data/lib/src/pdf/ipdfpagedimensions.dart +++ b/packages/windows_data/lib/src/pdf/ipdfpagedimensions.dart @@ -30,7 +30,7 @@ class IPdfPageDimensions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IPdfPageDimensions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IPdfPageDimensions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IPdfPageDimensions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -78,7 +78,7 @@ class IPdfPageDimensions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -88,7 +88,7 @@ class IPdfPageDimensions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -102,7 +102,7 @@ class IPdfPageDimensions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -112,7 +112,7 @@ class IPdfPageDimensions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -126,7 +126,7 @@ class IPdfPageDimensions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -136,7 +136,7 @@ class IPdfPageDimensions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_data/lib/src/pdf/ipdfpagerenderoptions.dart b/packages/windows_data/lib/src/pdf/ipdfpagerenderoptions.dart index 3e79e34b..24f1e2ac 100644 --- a/packages/windows_data/lib/src/pdf/ipdfpagerenderoptions.dart +++ b/packages/windows_data/lib/src/pdf/ipdfpagerenderoptions.dart @@ -31,7 +31,7 @@ class IPdfPageRenderOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IPdfPageRenderOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IPdfPageRenderOptions extends IInspectable { set sourceRect(Rect value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -63,7 +63,7 @@ class IPdfPageRenderOptions extends IInspectable { VTablePointer lpVtbl, NativeRect value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -74,7 +74,7 @@ class IPdfPageRenderOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -84,7 +84,7 @@ class IPdfPageRenderOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -96,7 +96,7 @@ class IPdfPageRenderOptions extends IInspectable { set destinationWidth(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -105,7 +105,7 @@ class IPdfPageRenderOptions extends IInspectable { VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -114,7 +114,7 @@ class IPdfPageRenderOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -124,7 +124,7 @@ class IPdfPageRenderOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -136,7 +136,7 @@ class IPdfPageRenderOptions extends IInspectable { set destinationHeight(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(11) .cast< Pointer< @@ -145,7 +145,7 @@ class IPdfPageRenderOptions extends IInspectable { VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -154,7 +154,7 @@ class IPdfPageRenderOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -164,7 +164,7 @@ class IPdfPageRenderOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -177,7 +177,7 @@ class IPdfPageRenderOptions extends IInspectable { set backgroundColor(Color value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -187,7 +187,7 @@ class IPdfPageRenderOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, NativeColor value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -198,17 +198,17 @@ class IPdfPageRenderOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(14) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(14) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -219,7 +219,7 @@ class IPdfPageRenderOptions extends IInspectable { } set isIgnoringHighContrast(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -227,7 +227,7 @@ class IPdfPageRenderOptions extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -236,17 +236,17 @@ class IPdfPageRenderOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(16) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(16) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -259,7 +259,7 @@ class IPdfPageRenderOptions extends IInspectable { set bitmapEncoderId(Guid value) { final valueNativeStructPtr = value.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -267,7 +267,7 @@ class IPdfPageRenderOptions extends IInspectable { HRESULT Function(VTablePointer lpVtbl, GUID value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); diff --git a/packages/windows_data/lib/src/xml/dom/ixmlattribute.dart b/packages/windows_data/lib/src/xml/dom/ixmlattribute.dart index 2f967551..6bc33da4 100644 --- a/packages/windows_data/lib/src/xml/dom/ixmlattribute.dart +++ b/packages/windows_data/lib/src/xml/dom/ixmlattribute.dart @@ -39,7 +39,7 @@ class IXmlAttribute extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -49,7 +49,7 @@ class IXmlAttribute extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -63,17 +63,17 @@ class IXmlAttribute extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -87,7 +87,7 @@ class IXmlAttribute extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -97,7 +97,7 @@ class IXmlAttribute extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -109,7 +109,7 @@ class IXmlAttribute extends IInspectable set value(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -118,7 +118,7 @@ class IXmlAttribute extends IInspectable VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_data/lib/src/xml/dom/ixmlcharacterdata.dart b/packages/windows_data/lib/src/xml/dom/ixmlcharacterdata.dart index 22a8cce1..c5490c6f 100644 --- a/packages/windows_data/lib/src/xml/dom/ixmlcharacterdata.dart +++ b/packages/windows_data/lib/src/xml/dom/ixmlcharacterdata.dart @@ -39,7 +39,7 @@ class IXmlCharacterData extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -49,7 +49,7 @@ class IXmlCharacterData extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -61,7 +61,7 @@ class IXmlCharacterData extends IInspectable set data(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -70,7 +70,7 @@ class IXmlCharacterData extends IInspectable VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -79,7 +79,7 @@ class IXmlCharacterData extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -89,7 +89,7 @@ class IXmlCharacterData extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -103,7 +103,7 @@ class IXmlCharacterData extends IInspectable final data = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -113,7 +113,7 @@ class IXmlCharacterData extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, int offset, int count, - Pointer data)>()(ptr.ref.lpVtbl, offset, count, data); + Pointer data)>()(lpVtbl, offset, count, data); if (FAILED(hr)) throwWindowsException(hr); @@ -124,7 +124,7 @@ class IXmlCharacterData extends IInspectable } void appendData(String data) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -132,13 +132,13 @@ class IXmlCharacterData extends IInspectable HRESULT Function(VTablePointer lpVtbl, IntPtr data)>>>() .value .asFunction()( - ptr.ref.lpVtbl, data.toHString()); + lpVtbl, data.toHString()); if (FAILED(hr)) throwWindowsException(hr); } void insertData(int offset, String data) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -148,13 +148,13 @@ class IXmlCharacterData extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, int offset, - int data)>()(ptr.ref.lpVtbl, offset, data.toHString()); + int data)>()(lpVtbl, offset, data.toHString()); if (FAILED(hr)) throwWindowsException(hr); } void deleteData(int offset, int count) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -164,13 +164,13 @@ class IXmlCharacterData extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, int offset, - int count)>()(ptr.ref.lpVtbl, offset, count); + int count)>()(lpVtbl, offset, count); if (FAILED(hr)) throwWindowsException(hr); } void replaceData(int offset, int count, String data) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -180,7 +180,7 @@ class IXmlCharacterData extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, int offset, int count, - int data)>()(ptr.ref.lpVtbl, offset, count, data.toHString()); + int data)>()(lpVtbl, offset, count, data.toHString()); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_data/lib/src/xml/dom/ixmldocument.dart b/packages/windows_data/lib/src/xml/dom/ixmldocument.dart index 4a8ec8e9..1bfb637e 100644 --- a/packages/windows_data/lib/src/xml/dom/ixmldocument.dart +++ b/packages/windows_data/lib/src/xml/dom/ixmldocument.dart @@ -48,7 +48,7 @@ class IXmlDocument extends IInspectable XmlDocumentType? get doctype { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -58,7 +58,7 @@ class IXmlDocument extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -76,7 +76,7 @@ class IXmlDocument extends IInspectable XmlDomImplementation? get implementation { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -86,7 +86,7 @@ class IXmlDocument extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -104,7 +104,7 @@ class IXmlDocument extends IInspectable XmlElement? get documentElement { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -114,7 +114,7 @@ class IXmlDocument extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -132,7 +132,7 @@ class IXmlDocument extends IInspectable XmlElement? createElement(String tagName) { final newElement = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -143,7 +143,7 @@ class IXmlDocument extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, int tagName, Pointer newElement)>()( - ptr.ref.lpVtbl, tagName.toHString(), newElement); + lpVtbl, tagName.toHString(), newElement); if (FAILED(hr)) { free(newElement); @@ -161,7 +161,7 @@ class IXmlDocument extends IInspectable XmlDocumentFragment? createDocumentFragment() { final newDocumentFragment = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -172,7 +172,7 @@ class IXmlDocument extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, Pointer newDocumentFragment)>()( - ptr.ref.lpVtbl, newDocumentFragment); + lpVtbl, newDocumentFragment); if (FAILED(hr)) { free(newDocumentFragment); @@ -190,7 +190,7 @@ class IXmlDocument extends IInspectable XmlText? createTextNode(String data) { final newTextNode = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -201,7 +201,7 @@ class IXmlDocument extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, int data, Pointer newTextNode)>()( - ptr.ref.lpVtbl, data.toHString(), newTextNode); + lpVtbl, data.toHString(), newTextNode); if (FAILED(hr)) { free(newTextNode); @@ -219,7 +219,7 @@ class IXmlDocument extends IInspectable XmlComment? createComment(String data) { final newComment = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -230,7 +230,7 @@ class IXmlDocument extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, int data, Pointer newComment)>()( - ptr.ref.lpVtbl, data.toHString(), newComment); + lpVtbl, data.toHString(), newComment); if (FAILED(hr)) { free(newComment); @@ -249,7 +249,7 @@ class IXmlDocument extends IInspectable String target, String data) { final newProcessingInstruction = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -263,10 +263,7 @@ class IXmlDocument extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, int target, int data, Pointer newProcessingInstruction)>()( - ptr.ref.lpVtbl, - target.toHString(), - data.toHString(), - newProcessingInstruction); + lpVtbl, target.toHString(), data.toHString(), newProcessingInstruction); if (FAILED(hr)) { free(newProcessingInstruction); @@ -284,7 +281,7 @@ class IXmlDocument extends IInspectable XmlAttribute? createAttribute(String name) { final newAttribute = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -295,7 +292,7 @@ class IXmlDocument extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, int name, Pointer newAttribute)>()( - ptr.ref.lpVtbl, name.toHString(), newAttribute); + lpVtbl, name.toHString(), newAttribute); if (FAILED(hr)) { free(newAttribute); @@ -313,7 +310,7 @@ class IXmlDocument extends IInspectable XmlEntityReference? createEntityReference(String name) { final newEntityReference = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -324,7 +321,7 @@ class IXmlDocument extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, int name, Pointer newEntityReference)>()( - ptr.ref.lpVtbl, name.toHString(), newEntityReference); + lpVtbl, name.toHString(), newEntityReference); if (FAILED(hr)) { free(newEntityReference); @@ -342,7 +339,7 @@ class IXmlDocument extends IInspectable XmlNodeList getElementsByTagName(String tagName) { final elements = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -353,7 +350,7 @@ class IXmlDocument extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, int tagName, Pointer elements)>()( - ptr.ref.lpVtbl, tagName.toHString(), elements); + lpVtbl, tagName.toHString(), elements); if (FAILED(hr)) { free(elements); @@ -366,7 +363,7 @@ class IXmlDocument extends IInspectable XmlCDataSection? createCDataSection(String data) { final newCDataSection = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -377,7 +374,7 @@ class IXmlDocument extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, int data, Pointer newCDataSection)>()( - ptr.ref.lpVtbl, data.toHString(), newCDataSection); + lpVtbl, data.toHString(), newCDataSection); if (FAILED(hr)) { free(newCDataSection); @@ -396,7 +393,7 @@ class IXmlDocument extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast< Pointer< @@ -406,7 +403,7 @@ class IXmlDocument extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -419,7 +416,7 @@ class IXmlDocument extends IInspectable XmlAttribute? createAttributeNS(Object? namespaceUri, String qualifiedName) { final newAttribute = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(19) .cast< Pointer< @@ -433,7 +430,7 @@ class IXmlDocument extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, VTablePointer namespaceUri, int qualifiedName, Pointer newAttribute)>()( - ptr.ref.lpVtbl, + lpVtbl, namespaceUri?.boxValue().lpVtbl ?? nullptr, qualifiedName.toHString(), newAttribute); @@ -454,7 +451,7 @@ class IXmlDocument extends IInspectable XmlElement? createElementNS(Object? namespaceUri, String qualifiedName) { final newElement = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(20) .cast< Pointer< @@ -468,7 +465,7 @@ class IXmlDocument extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, VTablePointer namespaceUri, int qualifiedName, Pointer newElement)>()( - ptr.ref.lpVtbl, + lpVtbl, namespaceUri?.boxValue().lpVtbl ?? nullptr, qualifiedName.toHString(), newElement); @@ -489,7 +486,7 @@ class IXmlDocument extends IInspectable XmlElement? getElementById(String elementId) { final element = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(21) .cast< Pointer< @@ -500,7 +497,7 @@ class IXmlDocument extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, int elementId, Pointer element)>()( - ptr.ref.lpVtbl, elementId.toHString(), element); + lpVtbl, elementId.toHString(), element); if (FAILED(hr)) { free(element); @@ -519,7 +516,7 @@ class IXmlDocument extends IInspectable final newNode = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(22) .cast< Pointer< @@ -533,7 +530,7 @@ class IXmlDocument extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, VTablePointer node, bool deep, Pointer newNode)>()( - ptr.ref.lpVtbl, node.lpVtbl, deep, newNode); + lpVtbl, node.lpVtbl, deep, newNode); if (FAILED(hr)) { free(newNode); diff --git a/packages/windows_data/lib/src/xml/dom/ixmldocumentio.dart b/packages/windows_data/lib/src/xml/dom/ixmldocumentio.dart index 7a59a9ae..14bdb1d5 100644 --- a/packages/windows_data/lib/src/xml/dom/ixmldocumentio.dart +++ b/packages/windows_data/lib/src/xml/dom/ixmldocumentio.dart @@ -30,7 +30,7 @@ class IXmlDocumentIO extends IInspectable { interface.cast(IXmlDocumentIO.fromPtr, IID_IXmlDocumentIO); void loadXml(String xml) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -38,13 +38,13 @@ class IXmlDocumentIO extends IInspectable { HRESULT Function(VTablePointer lpVtbl, IntPtr xml)>>>() .value .asFunction()( - ptr.ref.lpVtbl, xml.toHString()); + lpVtbl, xml.toHString()); if (FAILED(hr)) throwWindowsException(hr); } void loadXmlWithSettings(String xml, XmlLoadSettings? loadSettings) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -55,7 +55,7 @@ class IXmlDocumentIO extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int xml, VTablePointer loadSettings)>()( - ptr.ref.lpVtbl, xml.toHString(), loadSettings.lpVtbl); + lpVtbl, xml.toHString(), loadSettings.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -64,7 +64,7 @@ class IXmlDocumentIO extends IInspectable { final asyncInfo = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -77,7 +77,7 @@ class IXmlDocumentIO extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer file, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, file.lpVtbl, asyncInfo); + lpVtbl, file.lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); diff --git a/packages/windows_data/lib/src/xml/dom/ixmldocumentio2.dart b/packages/windows_data/lib/src/xml/dom/ixmldocumentio2.dart index ae5f65e4..8d57458f 100644 --- a/packages/windows_data/lib/src/xml/dom/ixmldocumentio2.dart +++ b/packages/windows_data/lib/src/xml/dom/ixmldocumentio2.dart @@ -30,7 +30,7 @@ class IXmlDocumentIO2 extends IInspectable { interface.cast(IXmlDocumentIO2.fromPtr, IID_IXmlDocumentIO2); void loadXmlFromBuffer(IBuffer? buffer) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IXmlDocumentIO2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer buffer)>()( - ptr.ref.lpVtbl, buffer.lpVtbl); + lpVtbl, buffer.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -48,7 +48,7 @@ class IXmlDocumentIO2 extends IInspectable { void loadXmlFromBufferWithSettings( IBuffer? buffer, XmlLoadSettings? loadSettings) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -61,7 +61,7 @@ class IXmlDocumentIO2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer buffer, VTablePointer loadSettings)>()( - ptr.ref.lpVtbl, buffer.lpVtbl, loadSettings.lpVtbl); + lpVtbl, buffer.lpVtbl, loadSettings.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_data/lib/src/xml/dom/ixmldocumentstatics.dart b/packages/windows_data/lib/src/xml/dom/ixmldocumentstatics.dart index 1385830e..e071ebd6 100644 --- a/packages/windows_data/lib/src/xml/dom/ixmldocumentstatics.dart +++ b/packages/windows_data/lib/src/xml/dom/ixmldocumentstatics.dart @@ -34,7 +34,7 @@ class IXmlDocumentStatics extends IInspectable { final asyncInfo = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -47,7 +47,7 @@ class IXmlDocumentStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer uri, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, uri?.toWinRTUri().lpVtbl ?? nullptr, asyncInfo); + lpVtbl, uri?.toWinRTUri().lpVtbl ?? nullptr, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -63,7 +63,7 @@ class IXmlDocumentStatics extends IInspectable { Uri? uri, XmlLoadSettings? loadSettings) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -79,7 +79,7 @@ class IXmlDocumentStatics extends IInspectable { VTablePointer lpVtbl, VTablePointer uri, VTablePointer loadSettings, - Pointer asyncInfo)>()(ptr.ref.lpVtbl, + Pointer asyncInfo)>()(lpVtbl, uri?.toWinRTUri().lpVtbl ?? nullptr, loadSettings.lpVtbl, asyncInfo); if (FAILED(hr)) { @@ -96,7 +96,7 @@ class IXmlDocumentStatics extends IInspectable { final asyncInfo = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -109,7 +109,7 @@ class IXmlDocumentStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer file, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, file.lpVtbl, asyncInfo); + lpVtbl, file.lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -125,7 +125,7 @@ class IXmlDocumentStatics extends IInspectable { IStorageFile? file, XmlLoadSettings? loadSettings) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -142,7 +142,7 @@ class IXmlDocumentStatics extends IInspectable { VTablePointer file, VTablePointer loadSettings, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, file.lpVtbl, loadSettings.lpVtbl, asyncInfo); + lpVtbl, file.lpVtbl, loadSettings.lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); diff --git a/packages/windows_data/lib/src/xml/dom/ixmldocumenttype.dart b/packages/windows_data/lib/src/xml/dom/ixmldocumenttype.dart index 920e9530..ba2b51b6 100644 --- a/packages/windows_data/lib/src/xml/dom/ixmldocumenttype.dart +++ b/packages/windows_data/lib/src/xml/dom/ixmldocumenttype.dart @@ -39,7 +39,7 @@ class IXmlDocumentType extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -49,7 +49,7 @@ class IXmlDocumentType extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -62,7 +62,7 @@ class IXmlDocumentType extends IInspectable XmlNamedNodeMap? get entities { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -72,7 +72,7 @@ class IXmlDocumentType extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -90,7 +90,7 @@ class IXmlDocumentType extends IInspectable XmlNamedNodeMap? get notations { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -100,7 +100,7 @@ class IXmlDocumentType extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_data/lib/src/xml/dom/ixmldomimplementation.dart b/packages/windows_data/lib/src/xml/dom/ixmldomimplementation.dart index dd75afaa..d866b485 100644 --- a/packages/windows_data/lib/src/xml/dom/ixmldomimplementation.dart +++ b/packages/windows_data/lib/src/xml/dom/ixmldomimplementation.dart @@ -30,7 +30,7 @@ class IXmlDomImplementation extends IInspectable { final featureSupported = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class IXmlDomImplementation extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int feature, VTablePointer version, Pointer featureSupported)>()( - ptr.ref.lpVtbl, + lpVtbl, feature.toHString(), version?.boxValue().lpVtbl ?? nullptr, featureSupported); diff --git a/packages/windows_data/lib/src/xml/dom/ixmlelement.dart b/packages/windows_data/lib/src/xml/dom/ixmlelement.dart index 609518b5..a7d88563 100644 --- a/packages/windows_data/lib/src/xml/dom/ixmlelement.dart +++ b/packages/windows_data/lib/src/xml/dom/ixmlelement.dart @@ -40,7 +40,7 @@ class IXmlElement extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -50,7 +50,7 @@ class IXmlElement extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -64,7 +64,7 @@ class IXmlElement extends IInspectable final attributeValue = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -77,7 +77,7 @@ class IXmlElement extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, int attributeName, Pointer attributeValue)>()( - ptr.ref.lpVtbl, attributeName.toHString(), attributeValue); + lpVtbl, attributeName.toHString(), attributeValue); if (FAILED(hr)) throwWindowsException(hr); @@ -89,7 +89,7 @@ class IXmlElement extends IInspectable void setAttribute(String attributeName, String attributeValue) { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -99,14 +99,14 @@ class IXmlElement extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, int attributeName, - int attributeValue)>()(ptr.ref.lpVtbl, - attributeName.toHString(), attributeValue.toHString()); + int attributeValue)>()( + lpVtbl, attributeName.toHString(), attributeValue.toHString()); if (FAILED(hr)) throwWindowsException(hr); } void removeAttribute(String attributeName) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -116,7 +116,7 @@ class IXmlElement extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, int attributeName)>()( - ptr.ref.lpVtbl, attributeName.toHString()); + lpVtbl, attributeName.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -125,7 +125,7 @@ class IXmlElement extends IInspectable final attributeNode = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -138,7 +138,7 @@ class IXmlElement extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, int attributeName, Pointer attributeNode)>()( - ptr.ref.lpVtbl, attributeName.toHString(), attributeNode); + lpVtbl, attributeName.toHString(), attributeNode); if (FAILED(hr)) { free(attributeNode); @@ -156,7 +156,7 @@ class IXmlElement extends IInspectable XmlAttribute? setAttributeNode(XmlAttribute? newAttribute) { final previousAttribute = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -169,7 +169,7 @@ class IXmlElement extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, VTablePointer newAttribute, Pointer previousAttribute)>()( - ptr.ref.lpVtbl, newAttribute.lpVtbl, previousAttribute); + lpVtbl, newAttribute.lpVtbl, previousAttribute); if (FAILED(hr)) { free(previousAttribute); @@ -187,7 +187,7 @@ class IXmlElement extends IInspectable XmlAttribute? removeAttributeNode(XmlAttribute? attributeNode) { final removedAttribute = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -200,7 +200,7 @@ class IXmlElement extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, VTablePointer attributeNode, Pointer removedAttribute)>()( - ptr.ref.lpVtbl, attributeNode.lpVtbl, removedAttribute); + lpVtbl, attributeNode.lpVtbl, removedAttribute); if (FAILED(hr)) { free(removedAttribute); @@ -218,7 +218,7 @@ class IXmlElement extends IInspectable XmlNodeList getElementsByTagName(String tagName) { final elements = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -229,7 +229,7 @@ class IXmlElement extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, int tagName, Pointer elements)>()( - ptr.ref.lpVtbl, tagName.toHString(), elements); + lpVtbl, tagName.toHString(), elements); if (FAILED(hr)) { free(elements); @@ -241,7 +241,7 @@ class IXmlElement extends IInspectable void setAttributeNS( Object? namespaceUri, String qualifiedName, String value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -255,7 +255,7 @@ class IXmlElement extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, VTablePointer namespaceUri, int qualifiedName, int value)>()( - ptr.ref.lpVtbl, + lpVtbl, namespaceUri?.boxValue().lpVtbl ?? nullptr, qualifiedName.toHString(), value.toHString()); @@ -267,7 +267,7 @@ class IXmlElement extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -281,7 +281,7 @@ class IXmlElement extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, VTablePointer namespaceUri, int localName, Pointer value)>()( - ptr.ref.lpVtbl, + lpVtbl, namespaceUri?.boxValue().lpVtbl ?? nullptr, localName.toHString(), value); @@ -295,7 +295,7 @@ class IXmlElement extends IInspectable } void removeAttributeNS(Object? namespaceUri, String localName) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -305,7 +305,7 @@ class IXmlElement extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer namespaceUri, - int localName)>()(ptr.ref.lpVtbl, + int localName)>()(lpVtbl, namespaceUri?.boxValue().lpVtbl ?? nullptr, localName.toHString()); if (FAILED(hr)) throwWindowsException(hr); @@ -314,7 +314,7 @@ class IXmlElement extends IInspectable XmlAttribute? setAttributeNodeNS(XmlAttribute? newAttribute) { final previousAttribute = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -327,7 +327,7 @@ class IXmlElement extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, VTablePointer newAttribute, Pointer previousAttribute)>()( - ptr.ref.lpVtbl, newAttribute.lpVtbl, previousAttribute); + lpVtbl, newAttribute.lpVtbl, previousAttribute); if (FAILED(hr)) { free(previousAttribute); @@ -345,7 +345,7 @@ class IXmlElement extends IInspectable XmlAttribute? getAttributeNodeNS(Object? namespaceUri, String localName) { final previousAttribute = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast< Pointer< @@ -359,7 +359,7 @@ class IXmlElement extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, VTablePointer namespaceUri, int localName, Pointer previousAttribute)>()( - ptr.ref.lpVtbl, + lpVtbl, namespaceUri?.boxValue().lpVtbl ?? nullptr, localName.toHString(), previousAttribute); diff --git a/packages/windows_data/lib/src/xml/dom/ixmlloadsettings.dart b/packages/windows_data/lib/src/xml/dom/ixmlloadsettings.dart index 0b010a7d..f7740cd3 100644 --- a/packages/windows_data/lib/src/xml/dom/ixmlloadsettings.dart +++ b/packages/windows_data/lib/src/xml/dom/ixmlloadsettings.dart @@ -30,7 +30,7 @@ class IXmlLoadSettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IXmlLoadSettings extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -52,7 +52,7 @@ class IXmlLoadSettings extends IInspectable { set maxElementDepth(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -61,7 +61,7 @@ class IXmlLoadSettings extends IInspectable { VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -70,17 +70,17 @@ class IXmlLoadSettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -91,7 +91,7 @@ class IXmlLoadSettings extends IInspectable { } set prohibitDtd(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -99,7 +99,7 @@ class IXmlLoadSettings extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -108,17 +108,17 @@ class IXmlLoadSettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -129,7 +129,7 @@ class IXmlLoadSettings extends IInspectable { } set resolveExternals(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -137,7 +137,7 @@ class IXmlLoadSettings extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -146,17 +146,17 @@ class IXmlLoadSettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(12) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(12) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -167,7 +167,7 @@ class IXmlLoadSettings extends IInspectable { } set validateOnParse(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -175,7 +175,7 @@ class IXmlLoadSettings extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -184,17 +184,17 @@ class IXmlLoadSettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(14) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(14) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -205,7 +205,7 @@ class IXmlLoadSettings extends IInspectable { } set elementContentWhiteSpace(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -213,7 +213,7 @@ class IXmlLoadSettings extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_data/lib/src/xml/dom/ixmlnamednodemap.dart b/packages/windows_data/lib/src/xml/dom/ixmlnamednodemap.dart index 4258cabc..ccc46717 100644 --- a/packages/windows_data/lib/src/xml/dom/ixmlnamednodemap.dart +++ b/packages/windows_data/lib/src/xml/dom/ixmlnamednodemap.dart @@ -33,7 +33,7 @@ class IXmlNamedNodeMap extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IXmlNamedNodeMap extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class IXmlNamedNodeMap extends IInspectable IXmlNode? item(int index) { final node = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class IXmlNamedNodeMap extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, int index, - Pointer node)>()(ptr.ref.lpVtbl, index, node); + Pointer node)>()(lpVtbl, index, node); if (FAILED(hr)) { free(node); @@ -84,18 +84,17 @@ class IXmlNamedNodeMap extends IInspectable IXmlNode? getNamedItem(String name) { final node = calloc(); - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, IntPtr name, - Pointer node)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, int name, Pointer node)>()( - ptr.ref.lpVtbl, name.toHString(), node); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, IntPtr name, + Pointer node)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int name, + Pointer node)>()(lpVtbl, name.toHString(), node); if (FAILED(hr)) { free(node); @@ -114,7 +113,7 @@ class IXmlNamedNodeMap extends IInspectable final previousNode = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -127,7 +126,7 @@ class IXmlNamedNodeMap extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, VTablePointer node, Pointer previousNode)>()( - ptr.ref.lpVtbl, node.lpVtbl, previousNode); + lpVtbl, node.lpVtbl, previousNode); if (FAILED(hr)) { free(previousNode); @@ -145,7 +144,7 @@ class IXmlNamedNodeMap extends IInspectable IXmlNode? removeNamedItem(String name) { final previousNode = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -156,7 +155,7 @@ class IXmlNamedNodeMap extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, int name, Pointer previousNode)>()( - ptr.ref.lpVtbl, name.toHString(), previousNode); + lpVtbl, name.toHString(), previousNode); if (FAILED(hr)) { free(previousNode); @@ -174,7 +173,7 @@ class IXmlNamedNodeMap extends IInspectable IXmlNode? getNamedItemNS(Object? namespaceUri, String name) { final node = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -187,7 +186,7 @@ class IXmlNamedNodeMap extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer namespaceUri, - int name, Pointer node)>()(ptr.ref.lpVtbl, + int name, Pointer node)>()(lpVtbl, namespaceUri?.boxValue().lpVtbl ?? nullptr, name.toHString(), node); if (FAILED(hr)) { @@ -206,7 +205,7 @@ class IXmlNamedNodeMap extends IInspectable IXmlNode? removeNamedItemNS(Object? namespaceUri, String name) { final previousNode = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -220,7 +219,7 @@ class IXmlNamedNodeMap extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, VTablePointer namespaceUri, int name, Pointer previousNode)>()( - ptr.ref.lpVtbl, + lpVtbl, namespaceUri?.boxValue().lpVtbl ?? nullptr, name.toHString(), previousNode); @@ -242,7 +241,7 @@ class IXmlNamedNodeMap extends IInspectable final previousNode = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(13) .cast< Pointer< @@ -255,7 +254,7 @@ class IXmlNamedNodeMap extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, VTablePointer node, Pointer previousNode)>()( - ptr.ref.lpVtbl, node.lpVtbl, previousNode); + lpVtbl, node.lpVtbl, previousNode); if (FAILED(hr)) { free(previousNode); diff --git a/packages/windows_data/lib/src/xml/dom/ixmlnode.dart b/packages/windows_data/lib/src/xml/dom/ixmlnode.dart index e1513caa..9c0745d4 100644 --- a/packages/windows_data/lib/src/xml/dom/ixmlnode.dart +++ b/packages/windows_data/lib/src/xml/dom/ixmlnode.dart @@ -41,7 +41,7 @@ class IXmlNode extends IInspectable Object? get nodeValue { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -51,7 +51,7 @@ class IXmlNode extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -67,7 +67,7 @@ class IXmlNode extends IInspectable } set nodeValue(Object? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -77,7 +77,7 @@ class IXmlNode extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.boxValue().lpVtbl ?? nullptr); + lpVtbl, value?.boxValue().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @@ -86,17 +86,17 @@ class IXmlNode extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -110,7 +110,7 @@ class IXmlNode extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -120,7 +120,7 @@ class IXmlNode extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -133,7 +133,7 @@ class IXmlNode extends IInspectable IXmlNode? get parentNode { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -143,7 +143,7 @@ class IXmlNode extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -161,7 +161,7 @@ class IXmlNode extends IInspectable XmlNodeList? get childNodes { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -171,7 +171,7 @@ class IXmlNode extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -189,7 +189,7 @@ class IXmlNode extends IInspectable IXmlNode? get firstChild { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -199,7 +199,7 @@ class IXmlNode extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -217,7 +217,7 @@ class IXmlNode extends IInspectable IXmlNode? get lastChild { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -227,7 +227,7 @@ class IXmlNode extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -245,7 +245,7 @@ class IXmlNode extends IInspectable IXmlNode? get previousSibling { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -255,7 +255,7 @@ class IXmlNode extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -273,7 +273,7 @@ class IXmlNode extends IInspectable IXmlNode? get nextSibling { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -283,7 +283,7 @@ class IXmlNode extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -301,7 +301,7 @@ class IXmlNode extends IInspectable XmlNamedNodeMap? get attributes { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -311,7 +311,7 @@ class IXmlNode extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -330,17 +330,17 @@ class IXmlNode extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -353,7 +353,7 @@ class IXmlNode extends IInspectable XmlDocument? get ownerDocument { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast< Pointer< @@ -363,7 +363,7 @@ class IXmlNode extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -381,7 +381,7 @@ class IXmlNode extends IInspectable IXmlNode? insertBefore(IXmlNode? newChild, IXmlNode? referenceChild) { final insertedChild = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(19) .cast< Pointer< @@ -398,7 +398,7 @@ class IXmlNode extends IInspectable VTablePointer newChild, VTablePointer referenceChild, Pointer insertedChild)>()( - ptr.ref.lpVtbl, newChild.lpVtbl, referenceChild.lpVtbl, insertedChild); + lpVtbl, newChild.lpVtbl, referenceChild.lpVtbl, insertedChild); if (FAILED(hr)) { free(insertedChild); @@ -416,7 +416,7 @@ class IXmlNode extends IInspectable IXmlNode? replaceChild(IXmlNode? newChild, IXmlNode? referenceChild) { final previousChild = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(20) .cast< Pointer< @@ -433,7 +433,7 @@ class IXmlNode extends IInspectable VTablePointer newChild, VTablePointer referenceChild, Pointer previousChild)>()( - ptr.ref.lpVtbl, newChild.lpVtbl, referenceChild.lpVtbl, previousChild); + lpVtbl, newChild.lpVtbl, referenceChild.lpVtbl, previousChild); if (FAILED(hr)) { free(previousChild); @@ -451,7 +451,7 @@ class IXmlNode extends IInspectable IXmlNode? removeChild(IXmlNode? childNode) { final removedChild = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(21) .cast< Pointer< @@ -464,7 +464,7 @@ class IXmlNode extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, VTablePointer childNode, Pointer removedChild)>()( - ptr.ref.lpVtbl, childNode.lpVtbl, removedChild); + lpVtbl, childNode.lpVtbl, removedChild); if (FAILED(hr)) { free(removedChild); @@ -482,7 +482,7 @@ class IXmlNode extends IInspectable IXmlNode? appendChild(IXmlNode? newChild) { final appendedChild = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(22) .cast< Pointer< @@ -495,7 +495,7 @@ class IXmlNode extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, VTablePointer newChild, Pointer appendedChild)>()( - ptr.ref.lpVtbl, newChild.lpVtbl, appendedChild); + lpVtbl, newChild.lpVtbl, appendedChild); if (FAILED(hr)) { free(appendedChild); @@ -513,7 +513,7 @@ class IXmlNode extends IInspectable IXmlNode? cloneNode(bool deep) { final newNode = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(23) .cast< Pointer< @@ -523,7 +523,7 @@ class IXmlNode extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, bool deep, - Pointer newNode)>()(ptr.ref.lpVtbl, deep, newNode); + Pointer newNode)>()(lpVtbl, deep, newNode); if (FAILED(hr)) { free(newNode); @@ -541,7 +541,7 @@ class IXmlNode extends IInspectable Object? get namespaceUri { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(24) .cast< Pointer< @@ -551,7 +551,7 @@ class IXmlNode extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -569,7 +569,7 @@ class IXmlNode extends IInspectable Object? get localName { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(25) .cast< Pointer< @@ -579,7 +579,7 @@ class IXmlNode extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -597,7 +597,7 @@ class IXmlNode extends IInspectable Object? get prefix { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(26) .cast< Pointer< @@ -607,7 +607,7 @@ class IXmlNode extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -623,17 +623,17 @@ class IXmlNode extends IInspectable } void normalize() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(27) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } set prefix(Object? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(28) .cast< Pointer< @@ -643,7 +643,7 @@ class IXmlNode extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.boxValue().lpVtbl ?? nullptr); + lpVtbl, value?.boxValue().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_data/lib/src/xml/dom/ixmlnodelist.dart b/packages/windows_data/lib/src/xml/dom/ixmlnodelist.dart index 7b7b9cbe..1c6b3166 100644 --- a/packages/windows_data/lib/src/xml/dom/ixmlnodelist.dart +++ b/packages/windows_data/lib/src/xml/dom/ixmlnodelist.dart @@ -33,7 +33,7 @@ class IXmlNodeList extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IXmlNodeList extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class IXmlNodeList extends IInspectable IXmlNode? item(int index) { final node = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class IXmlNodeList extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, int index, - Pointer node)>()(ptr.ref.lpVtbl, index, node); + Pointer node)>()(lpVtbl, index, node); if (FAILED(hr)) { free(node); diff --git a/packages/windows_data/lib/src/xml/dom/ixmlnodeselector.dart b/packages/windows_data/lib/src/xml/dom/ixmlnodeselector.dart index 9bc1b26a..c3baf119 100644 --- a/packages/windows_data/lib/src/xml/dom/ixmlnodeselector.dart +++ b/packages/windows_data/lib/src/xml/dom/ixmlnodeselector.dart @@ -32,18 +32,17 @@ class IXmlNodeSelector extends IInspectable { IXmlNode? selectSingleNode(String xpath) { final node = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, IntPtr xpath, - Pointer node)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int xpath, - Pointer node)>()( - ptr.ref.lpVtbl, xpath.toHString(), node); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, IntPtr xpath, + Pointer node)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int xpath, + Pointer node)>()(lpVtbl, xpath.toHString(), node); if (FAILED(hr)) { free(node); @@ -61,7 +60,7 @@ class IXmlNodeSelector extends IInspectable { XmlNodeList selectNodes(String xpath) { final nodelist = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -72,7 +71,7 @@ class IXmlNodeSelector extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int xpath, Pointer nodelist)>()( - ptr.ref.lpVtbl, xpath.toHString(), nodelist); + lpVtbl, xpath.toHString(), nodelist); if (FAILED(hr)) { free(nodelist); @@ -86,7 +85,7 @@ class IXmlNodeSelector extends IInspectable { final node = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -100,7 +99,7 @@ class IXmlNodeSelector extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int xpath, VTablePointer namespaces, Pointer node)>()( - ptr.ref.lpVtbl, + lpVtbl, xpath.toHString(), namespaces?.boxValue().lpVtbl ?? nullptr, node); @@ -121,7 +120,7 @@ class IXmlNodeSelector extends IInspectable { XmlNodeList selectNodesNS(String xpath, Object? namespaces) { final nodelist = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -135,7 +134,7 @@ class IXmlNodeSelector extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int xpath, VTablePointer namespaces, Pointer nodelist)>()( - ptr.ref.lpVtbl, + lpVtbl, xpath.toHString(), namespaces?.boxValue().lpVtbl ?? nullptr, nodelist); diff --git a/packages/windows_data/lib/src/xml/dom/ixmlnodeserializer.dart b/packages/windows_data/lib/src/xml/dom/ixmlnodeserializer.dart index 862dc20c..e02118e6 100644 --- a/packages/windows_data/lib/src/xml/dom/ixmlnodeserializer.dart +++ b/packages/windows_data/lib/src/xml/dom/ixmlnodeserializer.dart @@ -30,7 +30,7 @@ class IXmlNodeSerializer extends IInspectable { final outerXml = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IXmlNodeSerializer extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer outerXml)>()(ptr.ref.lpVtbl, outerXml); + Pointer outerXml)>()(lpVtbl, outerXml); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IXmlNodeSerializer extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IXmlNodeSerializer extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -76,7 +76,7 @@ class IXmlNodeSerializer extends IInspectable { set innerText(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -85,7 +85,7 @@ class IXmlNodeSerializer extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_data/lib/src/xml/dom/ixmlprocessinginstruction.dart b/packages/windows_data/lib/src/xml/dom/ixmlprocessinginstruction.dart index cd82f4ef..8580c2f8 100644 --- a/packages/windows_data/lib/src/xml/dom/ixmlprocessinginstruction.dart +++ b/packages/windows_data/lib/src/xml/dom/ixmlprocessinginstruction.dart @@ -39,7 +39,7 @@ class IXmlProcessingInstruction extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -49,7 +49,7 @@ class IXmlProcessingInstruction extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -63,7 +63,7 @@ class IXmlProcessingInstruction extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -73,7 +73,7 @@ class IXmlProcessingInstruction extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -85,7 +85,7 @@ class IXmlProcessingInstruction extends IInspectable set data(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -94,7 +94,7 @@ class IXmlProcessingInstruction extends IInspectable VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_data/lib/src/xml/dom/ixmltext.dart b/packages/windows_data/lib/src/xml/dom/ixmltext.dart index 21067ac0..c39f3335 100644 --- a/packages/windows_data/lib/src/xml/dom/ixmltext.dart +++ b/packages/windows_data/lib/src/xml/dom/ixmltext.dart @@ -43,18 +43,17 @@ class IXmlText extends IInspectable IXmlText? splitText(int offset) { final secondPart = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 offset, - Pointer secondPart)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int offset, - Pointer secondPart)>()( - ptr.ref.lpVtbl, offset, secondPart); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 offset, + Pointer secondPart)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int offset, + Pointer secondPart)>()(lpVtbl, offset, secondPart); if (FAILED(hr)) { free(secondPart); diff --git a/packages/windows_devices/lib/src/display/idisplaymonitor.dart b/packages/windows_devices/lib/src/display/idisplaymonitor.dart index fd68d2aa..307581f1 100644 --- a/packages/windows_devices/lib/src/display/idisplaymonitor.dart +++ b/packages/windows_devices/lib/src/display/idisplaymonitor.dart @@ -36,7 +36,7 @@ class IDisplayMonitor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -46,7 +46,7 @@ class IDisplayMonitor extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -60,7 +60,7 @@ class IDisplayMonitor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -70,7 +70,7 @@ class IDisplayMonitor extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -84,17 +84,17 @@ class IDisplayMonitor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -108,17 +108,17 @@ class IDisplayMonitor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -132,7 +132,7 @@ class IDisplayMonitor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -142,7 +142,7 @@ class IDisplayMonitor extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -156,18 +156,17 @@ class IDisplayMonitor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -181,7 +180,7 @@ class IDisplayMonitor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -191,7 +190,7 @@ class IDisplayMonitor extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -205,17 +204,17 @@ class IDisplayMonitor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(13) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(13) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -229,7 +228,7 @@ class IDisplayMonitor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -239,7 +238,7 @@ class IDisplayMonitor extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -252,7 +251,7 @@ class IDisplayMonitor extends IInspectable { Size? get physicalSizeInInches { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -262,7 +261,7 @@ class IDisplayMonitor extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -283,17 +282,17 @@ class IDisplayMonitor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(16) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(16) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -307,17 +306,17 @@ class IDisplayMonitor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -331,7 +330,7 @@ class IDisplayMonitor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast< Pointer< @@ -341,7 +340,7 @@ class IDisplayMonitor extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -355,7 +354,7 @@ class IDisplayMonitor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(19) .cast< Pointer< @@ -365,7 +364,7 @@ class IDisplayMonitor extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -379,7 +378,7 @@ class IDisplayMonitor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(20) .cast< Pointer< @@ -389,7 +388,7 @@ class IDisplayMonitor extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -403,7 +402,7 @@ class IDisplayMonitor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(21) .cast< Pointer< @@ -413,7 +412,7 @@ class IDisplayMonitor extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -427,17 +426,17 @@ class IDisplayMonitor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(22) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(22) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -451,17 +450,17 @@ class IDisplayMonitor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(23) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(23) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -475,17 +474,17 @@ class IDisplayMonitor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(24) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(24) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -500,7 +499,7 @@ class IDisplayMonitor extends IInspectable { final result = calloc>(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(25) .cast< Pointer< @@ -517,7 +516,7 @@ class IDisplayMonitor extends IInspectable { int descriptorKind, Pointer resultSize, Pointer> result)>()( - ptr.ref.lpVtbl, descriptorKind.value, resultSize, result); + lpVtbl, descriptorKind.value, resultSize, result); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_devices/lib/src/display/idisplaymonitor2.dart b/packages/windows_devices/lib/src/display/idisplaymonitor2.dart index e54620b5..67c0d087 100644 --- a/packages/windows_devices/lib/src/display/idisplaymonitor2.dart +++ b/packages/windows_devices/lib/src/display/idisplaymonitor2.dart @@ -30,17 +30,17 @@ class IDisplayMonitor2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_devices/lib/src/display/idisplaymonitorstatics.dart b/packages/windows_devices/lib/src/display/idisplaymonitorstatics.dart index b3fb2130..a9646a42 100644 --- a/packages/windows_devices/lib/src/display/idisplaymonitorstatics.dart +++ b/packages/windows_devices/lib/src/display/idisplaymonitorstatics.dart @@ -32,7 +32,7 @@ class IDisplayMonitorStatics extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IDisplayMonitorStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +55,7 @@ class IDisplayMonitorStatics extends IInspectable { Future fromIdAsync(String deviceId) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class IDisplayMonitorStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int deviceId, Pointer operation)>()( - ptr.ref.lpVtbl, deviceId.toHString(), operation); + lpVtbl, deviceId.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -81,7 +81,7 @@ class IDisplayMonitorStatics extends IInspectable { Future fromInterfaceIdAsync(String deviceInterfaceId) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -94,7 +94,7 @@ class IDisplayMonitorStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int deviceInterfaceId, Pointer operation)>()( - ptr.ref.lpVtbl, deviceInterfaceId.toHString(), operation); + lpVtbl, deviceInterfaceId.toHString(), operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_devices/lib/src/enumeration/ideviceinformation.dart b/packages/windows_devices/lib/src/enumeration/ideviceinformation.dart index 963a6fc3..3e552ea9 100644 --- a/packages/windows_devices/lib/src/enumeration/ideviceinformation.dart +++ b/packages/windows_devices/lib/src/enumeration/ideviceinformation.dart @@ -34,7 +34,7 @@ class IDeviceInformation extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class IDeviceInformation extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -58,7 +58,7 @@ class IDeviceInformation extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,7 +68,7 @@ class IDeviceInformation extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -82,17 +82,17 @@ class IDeviceInformation extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -106,17 +106,17 @@ class IDeviceInformation extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -129,7 +129,7 @@ class IDeviceInformation extends IInspectable { EnclosureLocation? get enclosureLocation { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -139,7 +139,7 @@ class IDeviceInformation extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -157,7 +157,7 @@ class IDeviceInformation extends IInspectable { Map? get properties { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -167,7 +167,7 @@ class IDeviceInformation extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -185,7 +185,7 @@ class IDeviceInformation extends IInspectable { } void update(DeviceInformationUpdate? updateInfo) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -195,7 +195,7 @@ class IDeviceInformation extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer updateInfo)>()( - ptr.ref.lpVtbl, updateInfo.lpVtbl); + lpVtbl, updateInfo.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -203,7 +203,7 @@ class IDeviceInformation extends IInspectable { Future getThumbnailAsync() { final asyncOp = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -213,7 +213,7 @@ class IDeviceInformation extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer asyncOp)>()(ptr.ref.lpVtbl, asyncOp); + Pointer asyncOp)>()(lpVtbl, asyncOp); if (FAILED(hr)) { free(asyncOp); @@ -228,7 +228,7 @@ class IDeviceInformation extends IInspectable { Future getGlyphThumbnailAsync() { final asyncOp = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -238,7 +238,7 @@ class IDeviceInformation extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer asyncOp)>()(ptr.ref.lpVtbl, asyncOp); + Pointer asyncOp)>()(lpVtbl, asyncOp); if (FAILED(hr)) { free(asyncOp); diff --git a/packages/windows_devices/lib/src/enumeration/ideviceinformation2.dart b/packages/windows_devices/lib/src/enumeration/ideviceinformation2.dart index 9831a542..cc677363 100644 --- a/packages/windows_devices/lib/src/enumeration/ideviceinformation2.dart +++ b/packages/windows_devices/lib/src/enumeration/ideviceinformation2.dart @@ -33,17 +33,17 @@ class IDeviceInformation2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class IDeviceInformation2 extends IInspectable { DeviceInformationPairing? get pairing { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class IDeviceInformation2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_devices/lib/src/enumeration/ideviceinformationcustompairing.dart b/packages/windows_devices/lib/src/enumeration/ideviceinformationcustompairing.dart index 5f3bf2d3..d8733b07 100644 --- a/packages/windows_devices/lib/src/enumeration/ideviceinformationcustompairing.dart +++ b/packages/windows_devices/lib/src/enumeration/ideviceinformationcustompairing.dart @@ -38,7 +38,7 @@ class IDeviceInformationCustomPairing extends IInspectable { DevicePairingKinds pairingKindsSupported) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -51,7 +51,7 @@ class IDeviceInformationCustomPairing extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int pairingKindsSupported, Pointer result)>()( - ptr.ref.lpVtbl, pairingKindsSupported.value, result); + lpVtbl, pairingKindsSupported.value, result); if (FAILED(hr)) { free(result); @@ -68,7 +68,7 @@ class IDeviceInformationCustomPairing extends IInspectable { DevicePairingProtectionLevel minProtectionLevel) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -82,10 +82,7 @@ class IDeviceInformationCustomPairing extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int pairingKindsSupported, int minProtectionLevel, Pointer result)>()( - ptr.ref.lpVtbl, - pairingKindsSupported.value, - minProtectionLevel.value, - result); + lpVtbl, pairingKindsSupported.value, minProtectionLevel.value, result); if (FAILED(hr)) { free(result); @@ -103,7 +100,7 @@ class IDeviceInformationCustomPairing extends IInspectable { IDevicePairingSettings? devicePairingSettings) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -122,7 +119,7 @@ class IDeviceInformationCustomPairing extends IInspectable { int minProtectionLevel, VTablePointer devicePairingSettings, Pointer result)>()( - ptr.ref.lpVtbl, + lpVtbl, pairingKindsSupported.value, minProtectionLevel.value, devicePairingSettings.lpVtbl, @@ -142,18 +139,17 @@ class IDeviceInformationCustomPairing extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -165,7 +161,7 @@ class IDeviceInformationCustomPairing extends IInspectable { void remove_PairingRequested(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -174,7 +170,7 @@ class IDeviceInformationCustomPairing extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_devices/lib/src/enumeration/ideviceinformationpairing.dart b/packages/windows_devices/lib/src/enumeration/ideviceinformationpairing.dart index 67ea388e..fe87bffa 100644 --- a/packages/windows_devices/lib/src/enumeration/ideviceinformationpairing.dart +++ b/packages/windows_devices/lib/src/enumeration/ideviceinformationpairing.dart @@ -33,17 +33,17 @@ class IDeviceInformationPairing extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -57,17 +57,17 @@ class IDeviceInformationPairing extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -80,7 +80,7 @@ class IDeviceInformationPairing extends IInspectable { Future pairAsync() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -90,7 +90,7 @@ class IDeviceInformationPairing extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -106,7 +106,7 @@ class IDeviceInformationPairing extends IInspectable { DevicePairingProtectionLevel minProtectionLevel) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -119,7 +119,7 @@ class IDeviceInformationPairing extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int minProtectionLevel, Pointer result)>()( - ptr.ref.lpVtbl, minProtectionLevel.value, result); + lpVtbl, minProtectionLevel.value, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_devices/lib/src/enumeration/ideviceinformationpairing2.dart b/packages/windows_devices/lib/src/enumeration/ideviceinformationpairing2.dart index a6b69890..571fbc3a 100644 --- a/packages/windows_devices/lib/src/enumeration/ideviceinformationpairing2.dart +++ b/packages/windows_devices/lib/src/enumeration/ideviceinformationpairing2.dart @@ -36,17 +36,17 @@ class IDeviceInformationPairing2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -59,7 +59,7 @@ class IDeviceInformationPairing2 extends IInspectable { DeviceInformationCustomPairing? get custom { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -69,7 +69,7 @@ class IDeviceInformationPairing2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -89,7 +89,7 @@ class IDeviceInformationPairing2 extends IInspectable { IDevicePairingSettings? devicePairingSettings) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -105,8 +105,8 @@ class IDeviceInformationPairing2 extends IInspectable { VTablePointer lpVtbl, int minProtectionLevel, VTablePointer devicePairingSettings, - Pointer result)>()(ptr.ref.lpVtbl, - minProtectionLevel.value, devicePairingSettings.lpVtbl, result); + Pointer result)>()( + lpVtbl, minProtectionLevel.value, devicePairingSettings.lpVtbl, result); if (FAILED(hr)) { free(result); @@ -121,7 +121,7 @@ class IDeviceInformationPairing2 extends IInspectable { Future unpairAsync() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -131,7 +131,7 @@ class IDeviceInformationPairing2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_devices/lib/src/enumeration/ideviceinformationpairingstatics.dart b/packages/windows_devices/lib/src/enumeration/ideviceinformationpairingstatics.dart index ac6e415f..e40933a7 100644 --- a/packages/windows_devices/lib/src/enumeration/ideviceinformationpairingstatics.dart +++ b/packages/windows_devices/lib/src/enumeration/ideviceinformationpairingstatics.dart @@ -35,7 +35,7 @@ class IDeviceInformationPairingStatics extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -48,7 +48,7 @@ class IDeviceInformationPairingStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int pairingKindsSupported, Pointer result)>()( - ptr.ref.lpVtbl, pairingKindsSupported.value, result); + lpVtbl, pairingKindsSupported.value, result); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_devices/lib/src/enumeration/ideviceinformationpairingstatics2.dart b/packages/windows_devices/lib/src/enumeration/ideviceinformationpairingstatics2.dart index 63eb0b1c..0aaefa18 100644 --- a/packages/windows_devices/lib/src/enumeration/ideviceinformationpairingstatics2.dart +++ b/packages/windows_devices/lib/src/enumeration/ideviceinformationpairingstatics2.dart @@ -37,7 +37,7 @@ class IDeviceInformationPairingStatics2 extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -50,11 +50,8 @@ class IDeviceInformationPairingStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int pairingKindsSupported, - int minProtectionLevel, Pointer result)>()( - ptr.ref.lpVtbl, - pairingKindsSupported.value, - minProtectionLevel.value, - result); + int minProtectionLevel, Pointer result)>()(lpVtbl, + pairingKindsSupported.value, minProtectionLevel.value, result); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_devices/lib/src/enumeration/ideviceinformationstatics.dart b/packages/windows_devices/lib/src/enumeration/ideviceinformationstatics.dart index 8908bc82..75323783 100644 --- a/packages/windows_devices/lib/src/enumeration/ideviceinformationstatics.dart +++ b/packages/windows_devices/lib/src/enumeration/ideviceinformationstatics.dart @@ -34,7 +34,7 @@ class IDeviceInformationStatics extends IInspectable { Future createFromIdAsync(String deviceId) { final asyncOp = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IDeviceInformationStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int deviceId, Pointer asyncOp)>()( - ptr.ref.lpVtbl, deviceId.toHString(), asyncOp); + lpVtbl, deviceId.toHString(), asyncOp); if (FAILED(hr)) { free(asyncOp); @@ -61,7 +61,7 @@ class IDeviceInformationStatics extends IInspectable { String deviceId, IIterable? additionalProperties) { final asyncOp = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -77,8 +77,8 @@ class IDeviceInformationStatics extends IInspectable { VTablePointer lpVtbl, int deviceId, VTablePointer additionalProperties, - Pointer asyncOp)>()(ptr.ref.lpVtbl, - deviceId.toHString(), additionalProperties.lpVtbl, asyncOp); + Pointer asyncOp)>()( + lpVtbl, deviceId.toHString(), additionalProperties.lpVtbl, asyncOp); if (FAILED(hr)) { free(asyncOp); @@ -93,7 +93,7 @@ class IDeviceInformationStatics extends IInspectable { Future findAllAsync() { final asyncOp = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -103,7 +103,7 @@ class IDeviceInformationStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer asyncOp)>()(ptr.ref.lpVtbl, asyncOp); + Pointer asyncOp)>()(lpVtbl, asyncOp); if (FAILED(hr)) { free(asyncOp); @@ -120,7 +120,7 @@ class IDeviceInformationStatics extends IInspectable { DeviceClass deviceClass) { final asyncOp = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -133,7 +133,7 @@ class IDeviceInformationStatics extends IInspectable { VTablePointer lpVtbl, int deviceClass, Pointer - asyncOp)>()(ptr.ref.lpVtbl, deviceClass.value, asyncOp); + asyncOp)>()(lpVtbl, deviceClass.value, asyncOp); if (FAILED(hr)) { free(asyncOp); @@ -149,7 +149,7 @@ class IDeviceInformationStatics extends IInspectable { Future findAllAsyncAqsFilter(String aqsFilter) { final asyncOp = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -160,7 +160,7 @@ class IDeviceInformationStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int aqsFilter, Pointer asyncOp)>()( - ptr.ref.lpVtbl, aqsFilter.toHString(), asyncOp); + lpVtbl, aqsFilter.toHString(), asyncOp); if (FAILED(hr)) { free(asyncOp); @@ -178,7 +178,7 @@ class IDeviceInformationStatics extends IInspectable { String aqsFilter, IIterable? additionalProperties) { final asyncOp = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -194,8 +194,8 @@ class IDeviceInformationStatics extends IInspectable { VTablePointer lpVtbl, int aqsFilter, VTablePointer additionalProperties, - Pointer asyncOp)>()(ptr.ref.lpVtbl, - aqsFilter.toHString(), additionalProperties.lpVtbl, asyncOp); + Pointer asyncOp)>()( + lpVtbl, aqsFilter.toHString(), additionalProperties.lpVtbl, asyncOp); if (FAILED(hr)) { free(asyncOp); @@ -211,7 +211,7 @@ class IDeviceInformationStatics extends IInspectable { DeviceWatcher? createWatcher() { final watcher = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -221,7 +221,7 @@ class IDeviceInformationStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer watcher)>()(ptr.ref.lpVtbl, watcher); + Pointer watcher)>()(lpVtbl, watcher); if (FAILED(hr)) { free(watcher); @@ -239,7 +239,7 @@ class IDeviceInformationStatics extends IInspectable { DeviceWatcher? createWatcherDeviceClass(DeviceClass deviceClass) { final watcher = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -252,7 +252,7 @@ class IDeviceInformationStatics extends IInspectable { VTablePointer lpVtbl, int deviceClass, Pointer - watcher)>()(ptr.ref.lpVtbl, deviceClass.value, watcher); + watcher)>()(lpVtbl, deviceClass.value, watcher); if (FAILED(hr)) { free(watcher); @@ -270,7 +270,7 @@ class IDeviceInformationStatics extends IInspectable { DeviceWatcher? createWatcherAqsFilter(String aqsFilter) { final watcher = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -281,7 +281,7 @@ class IDeviceInformationStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int aqsFilter, Pointer watcher)>()( - ptr.ref.lpVtbl, aqsFilter.toHString(), watcher); + lpVtbl, aqsFilter.toHString(), watcher); if (FAILED(hr)) { free(watcher); @@ -300,7 +300,7 @@ class IDeviceInformationStatics extends IInspectable { String aqsFilter, IIterable? additionalProperties) { final watcher = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -316,8 +316,8 @@ class IDeviceInformationStatics extends IInspectable { VTablePointer lpVtbl, int aqsFilter, VTablePointer additionalProperties, - Pointer watcher)>()(ptr.ref.lpVtbl, - aqsFilter.toHString(), additionalProperties.lpVtbl, watcher); + Pointer watcher)>()( + lpVtbl, aqsFilter.toHString(), additionalProperties.lpVtbl, watcher); if (FAILED(hr)) { free(watcher); diff --git a/packages/windows_devices/lib/src/enumeration/ideviceinformationstatics2.dart b/packages/windows_devices/lib/src/enumeration/ideviceinformationstatics2.dart index 13a04087..99ecd8cd 100644 --- a/packages/windows_devices/lib/src/enumeration/ideviceinformationstatics2.dart +++ b/packages/windows_devices/lib/src/enumeration/ideviceinformationstatics2.dart @@ -36,7 +36,7 @@ class IDeviceInformationStatics2 extends IInspectable { final aqsFilter = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -49,7 +49,7 @@ class IDeviceInformationStatics2 extends IInspectable { VTablePointer lpVtbl, int deviceClass, Pointer - aqsFilter)>()(ptr.ref.lpVtbl, deviceClass.value, aqsFilter); + aqsFilter)>()(lpVtbl, deviceClass.value, aqsFilter); if (FAILED(hr)) throwWindowsException(hr); @@ -65,7 +65,7 @@ class IDeviceInformationStatics2 extends IInspectable { DeviceInformationKind kind) { final asyncOp = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -83,8 +83,8 @@ class IDeviceInformationStatics2 extends IInspectable { int deviceId, VTablePointer additionalProperties, int kind, - Pointer asyncOp)>()(ptr.ref.lpVtbl, - deviceId.toHString(), additionalProperties.lpVtbl, kind.value, asyncOp); + Pointer asyncOp)>()(lpVtbl, deviceId.toHString(), + additionalProperties.lpVtbl, kind.value, asyncOp); if (FAILED(hr)) { free(asyncOp); @@ -101,7 +101,7 @@ class IDeviceInformationStatics2 extends IInspectable { IIterable? additionalProperties, DeviceInformationKind kind) { final asyncOp = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -120,7 +120,7 @@ class IDeviceInformationStatics2 extends IInspectable { VTablePointer additionalProperties, int kind, Pointer asyncOp)>()( - ptr.ref.lpVtbl, + lpVtbl, aqsFilter.toHString(), additionalProperties.lpVtbl, kind.value, @@ -143,7 +143,7 @@ class IDeviceInformationStatics2 extends IInspectable { DeviceInformationKind kind) { final watcher = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -162,7 +162,7 @@ class IDeviceInformationStatics2 extends IInspectable { VTablePointer additionalProperties, int kind, Pointer watcher)>()( - ptr.ref.lpVtbl, + lpVtbl, aqsFilter.toHString(), additionalProperties.lpVtbl, kind.value, diff --git a/packages/windows_devices/lib/src/enumeration/ideviceinformationupdate.dart b/packages/windows_devices/lib/src/enumeration/ideviceinformationupdate.dart index e0220d63..f04a7699 100644 --- a/packages/windows_devices/lib/src/enumeration/ideviceinformationupdate.dart +++ b/packages/windows_devices/lib/src/enumeration/ideviceinformationupdate.dart @@ -30,7 +30,7 @@ class IDeviceInformationUpdate extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IDeviceInformationUpdate extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -53,7 +53,7 @@ class IDeviceInformationUpdate extends IInspectable { Map? get properties { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -63,7 +63,7 @@ class IDeviceInformationUpdate extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_devices/lib/src/enumeration/ideviceinformationupdate2.dart b/packages/windows_devices/lib/src/enumeration/ideviceinformationupdate2.dart index 3e4d2a34..ec87c8ce 100644 --- a/packages/windows_devices/lib/src/enumeration/ideviceinformationupdate2.dart +++ b/packages/windows_devices/lib/src/enumeration/ideviceinformationupdate2.dart @@ -32,17 +32,17 @@ class IDeviceInformationUpdate2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_devices/lib/src/enumeration/idevicepairingresult.dart b/packages/windows_devices/lib/src/enumeration/idevicepairingresult.dart index 44b9df97..cb83855f 100644 --- a/packages/windows_devices/lib/src/enumeration/idevicepairingresult.dart +++ b/packages/windows_devices/lib/src/enumeration/idevicepairingresult.dart @@ -33,7 +33,7 @@ class IDevicePairingResult extends IInspectable { final status = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IDevicePairingResult extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer status)>()( - ptr.ref.lpVtbl, status); + lpVtbl, status); if (FAILED(hr)) throwWindowsException(hr); @@ -57,17 +57,17 @@ class IDevicePairingResult extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_devices/lib/src/enumeration/idevicepicker.dart b/packages/windows_devices/lib/src/enumeration/idevicepicker.dart index 7ebc0e23..93c89ec1 100644 --- a/packages/windows_devices/lib/src/enumeration/idevicepicker.dart +++ b/packages/windows_devices/lib/src/enumeration/idevicepicker.dart @@ -36,7 +36,7 @@ class IDevicePicker extends IInspectable { DevicePickerFilter? get filter { final filter = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -46,7 +46,7 @@ class IDevicePicker extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer filter)>()(ptr.ref.lpVtbl, filter); + Pointer filter)>()(lpVtbl, filter); if (FAILED(hr)) { free(filter); @@ -64,7 +64,7 @@ class IDevicePicker extends IInspectable { DevicePickerAppearance? get appearance { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -74,7 +74,7 @@ class IDevicePicker extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -92,7 +92,7 @@ class IDevicePicker extends IInspectable { IVector? get requestedProperties { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -102,7 +102,7 @@ class IDevicePicker extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -122,18 +122,17 @@ class IDevicePicker extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -145,7 +144,7 @@ class IDevicePicker extends IInspectable { void remove_DeviceSelected(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -154,7 +153,7 @@ class IDevicePicker extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -163,18 +162,17 @@ class IDevicePicker extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -186,7 +184,7 @@ class IDevicePicker extends IInspectable { void remove_DisconnectButtonClicked(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(12) .cast< Pointer< @@ -195,7 +193,7 @@ class IDevicePicker extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -204,18 +202,17 @@ class IDevicePicker extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(13) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(13) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -227,7 +224,7 @@ class IDevicePicker extends IInspectable { void remove_DevicePickerDismissed(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(14) .cast< Pointer< @@ -236,7 +233,7 @@ class IDevicePicker extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -244,7 +241,7 @@ class IDevicePicker extends IInspectable { void show(Rect selection) { final selectionNativeStructPtr = selection.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -254,7 +251,7 @@ class IDevicePicker extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, NativeRect selection)>()( - ptr.ref.lpVtbl, selectionNativeStructPtr.ref); + lpVtbl, selectionNativeStructPtr.ref); free(selectionNativeStructPtr); @@ -265,7 +262,7 @@ class IDevicePicker extends IInspectable { final selectionNativeStructPtr = selection.toNative(); final hr = - ptr.ref.vtable + vtable .elementAt(16) .cast< Pointer< @@ -276,7 +273,7 @@ class IDevicePicker extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, NativeRect selection, int placement)>()( - ptr.ref.lpVtbl, selectionNativeStructPtr.ref, placement.value); + lpVtbl, selectionNativeStructPtr.ref, placement.value); free(selectionNativeStructPtr); @@ -288,7 +285,7 @@ class IDevicePicker extends IInspectable { final selectionNativeStructPtr = selection.toNative(); final hr = - ptr.ref.vtable + vtable .elementAt(17) .cast< Pointer< @@ -301,7 +298,7 @@ class IDevicePicker extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, NativeRect selection, Pointer operation)>()( - ptr.ref.lpVtbl, selectionNativeStructPtr.ref, operation); + lpVtbl, selectionNativeStructPtr.ref, operation); free(selectionNativeStructPtr); @@ -322,7 +319,7 @@ class IDevicePicker extends IInspectable { final selectionNativeStructPtr = selection.toNative(); final hr = - ptr.ref.vtable + vtable .elementAt(18) .cast< Pointer< @@ -336,10 +333,7 @@ class IDevicePicker extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, NativeRect selection, int placement, Pointer operation)>()( - ptr.ref.lpVtbl, - selectionNativeStructPtr.ref, - placement.value, - operation); + lpVtbl, selectionNativeStructPtr.ref, placement.value, operation); free(selectionNativeStructPtr); @@ -355,11 +349,11 @@ class IDevicePicker extends IInspectable { } void hide() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(19) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -367,7 +361,7 @@ class IDevicePicker extends IInspectable { void setDisplayStatus(DeviceInformation? device, String status, DevicePickerDisplayStatusOptions options) { final hr = - ptr.ref.vtable + vtable .elementAt(20) .cast< Pointer< @@ -381,7 +375,7 @@ class IDevicePicker extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer device, int status, int options)>()( - ptr.ref.lpVtbl, device.lpVtbl, status.toHString(), options.value); + lpVtbl, device.lpVtbl, status.toHString(), options.value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_devices/lib/src/enumeration/idevicepickerappearance.dart b/packages/windows_devices/lib/src/enumeration/idevicepickerappearance.dart index 70c7de5f..b1680fa8 100644 --- a/packages/windows_devices/lib/src/enumeration/idevicepickerappearance.dart +++ b/packages/windows_devices/lib/src/enumeration/idevicepickerappearance.dart @@ -31,7 +31,7 @@ class IDevicePickerAppearance extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IDevicePickerAppearance extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -53,7 +53,7 @@ class IDevicePickerAppearance extends IInspectable { set title(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -62,7 +62,7 @@ class IDevicePickerAppearance extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -71,7 +71,7 @@ class IDevicePickerAppearance extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -81,7 +81,7 @@ class IDevicePickerAppearance extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -94,7 +94,7 @@ class IDevicePickerAppearance extends IInspectable { set foregroundColor(Color value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -104,7 +104,7 @@ class IDevicePickerAppearance extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, NativeColor value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -115,7 +115,7 @@ class IDevicePickerAppearance extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -125,7 +125,7 @@ class IDevicePickerAppearance extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -138,7 +138,7 @@ class IDevicePickerAppearance extends IInspectable { set backgroundColor(Color value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -148,7 +148,7 @@ class IDevicePickerAppearance extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, NativeColor value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -159,7 +159,7 @@ class IDevicePickerAppearance extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -169,7 +169,7 @@ class IDevicePickerAppearance extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -182,7 +182,7 @@ class IDevicePickerAppearance extends IInspectable { set accentColor(Color value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -192,7 +192,7 @@ class IDevicePickerAppearance extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, NativeColor value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -203,7 +203,7 @@ class IDevicePickerAppearance extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -213,7 +213,7 @@ class IDevicePickerAppearance extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -226,7 +226,7 @@ class IDevicePickerAppearance extends IInspectable { set selectedForegroundColor(Color value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -236,7 +236,7 @@ class IDevicePickerAppearance extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, NativeColor value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -247,7 +247,7 @@ class IDevicePickerAppearance extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -257,7 +257,7 @@ class IDevicePickerAppearance extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -270,7 +270,7 @@ class IDevicePickerAppearance extends IInspectable { set selectedBackgroundColor(Color value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -280,7 +280,7 @@ class IDevicePickerAppearance extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, NativeColor value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -291,7 +291,7 @@ class IDevicePickerAppearance extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast< Pointer< @@ -301,7 +301,7 @@ class IDevicePickerAppearance extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -314,7 +314,7 @@ class IDevicePickerAppearance extends IInspectable { set selectedAccentColor(Color value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(19) .cast< Pointer< @@ -324,7 +324,7 @@ class IDevicePickerAppearance extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, NativeColor value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); diff --git a/packages/windows_devices/lib/src/enumeration/idevicepickerfilter.dart b/packages/windows_devices/lib/src/enumeration/idevicepickerfilter.dart index 441ca4dd..f47502e8 100644 --- a/packages/windows_devices/lib/src/enumeration/idevicepickerfilter.dart +++ b/packages/windows_devices/lib/src/enumeration/idevicepickerfilter.dart @@ -31,7 +31,7 @@ class IDevicePickerFilter extends IInspectable { IVector? get supportedDeviceClasses { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IDevicePickerFilter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -61,7 +61,7 @@ class IDevicePickerFilter extends IInspectable { IVector? get supportedDeviceSelectors { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -71,7 +71,7 @@ class IDevicePickerFilter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_devices/lib/src/enumeration/ideviceunpairingresult.dart b/packages/windows_devices/lib/src/enumeration/ideviceunpairingresult.dart index 64fb8df4..3905a3e3 100644 --- a/packages/windows_devices/lib/src/enumeration/ideviceunpairingresult.dart +++ b/packages/windows_devices/lib/src/enumeration/ideviceunpairingresult.dart @@ -32,7 +32,7 @@ class IDeviceUnpairingResult extends IInspectable { final status = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IDeviceUnpairingResult extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer status)>()( - ptr.ref.lpVtbl, status); + lpVtbl, status); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_devices/lib/src/enumeration/idevicewatcher.dart b/packages/windows_devices/lib/src/enumeration/idevicewatcher.dart index 51ebf8d6..d3fa3c9b 100644 --- a/packages/windows_devices/lib/src/enumeration/idevicewatcher.dart +++ b/packages/windows_devices/lib/src/enumeration/idevicewatcher.dart @@ -35,18 +35,17 @@ class IDeviceWatcher extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -58,7 +57,7 @@ class IDeviceWatcher extends IInspectable { void remove_Added(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -67,7 +66,7 @@ class IDeviceWatcher extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -76,18 +75,17 @@ class IDeviceWatcher extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -99,7 +97,7 @@ class IDeviceWatcher extends IInspectable { void remove_Updated(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -108,7 +106,7 @@ class IDeviceWatcher extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -117,18 +115,17 @@ class IDeviceWatcher extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -140,7 +137,7 @@ class IDeviceWatcher extends IInspectable { void remove_Removed(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(11) .cast< Pointer< @@ -149,7 +146,7 @@ class IDeviceWatcher extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -158,18 +155,17 @@ class IDeviceWatcher extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(12) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(12) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -181,7 +177,7 @@ class IDeviceWatcher extends IInspectable { void remove_EnumerationCompleted(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(13) .cast< Pointer< @@ -190,7 +186,7 @@ class IDeviceWatcher extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -199,18 +195,17 @@ class IDeviceWatcher extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(14) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(14) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -222,7 +217,7 @@ class IDeviceWatcher extends IInspectable { void remove_Stopped(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(15) .cast< Pointer< @@ -231,7 +226,7 @@ class IDeviceWatcher extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -240,7 +235,7 @@ class IDeviceWatcher extends IInspectable { final status = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -250,7 +245,7 @@ class IDeviceWatcher extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer status)>()( - ptr.ref.lpVtbl, status); + lpVtbl, status); if (FAILED(hr)) throwWindowsException(hr); @@ -261,21 +256,21 @@ class IDeviceWatcher extends IInspectable { } void start() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } void stop() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_devices/lib/src/enumeration/idevicewatcher2.dart b/packages/windows_devices/lib/src/enumeration/idevicewatcher2.dart index e2f294b7..4672b190 100644 --- a/packages/windows_devices/lib/src/enumeration/idevicewatcher2.dart +++ b/packages/windows_devices/lib/src/enumeration/idevicewatcher2.dart @@ -33,7 +33,7 @@ class IDeviceWatcher2 extends IInspectable { IIterable? requestedEventKinds) { final trigger = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -48,7 +48,7 @@ class IDeviceWatcher2 extends IInspectable { VTablePointer lpVtbl, VTablePointer requestedEventKinds, Pointer trigger)>()( - ptr.ref.lpVtbl, requestedEventKinds.lpVtbl, trigger); + lpVtbl, requestedEventKinds.lpVtbl, trigger); if (FAILED(hr)) { free(trigger); diff --git a/packages/windows_devices/lib/src/enumeration/ienclosurelocation.dart b/packages/windows_devices/lib/src/enumeration/ienclosurelocation.dart index 688e502e..f14b815a 100644 --- a/packages/windows_devices/lib/src/enumeration/ienclosurelocation.dart +++ b/packages/windows_devices/lib/src/enumeration/ienclosurelocation.dart @@ -32,17 +32,17 @@ class IEnclosureLocation extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,17 +56,17 @@ class IEnclosureLocation extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -80,17 +80,17 @@ class IEnclosureLocation extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_devices/lib/src/enumeration/ienclosurelocation2.dart b/packages/windows_devices/lib/src/enumeration/ienclosurelocation2.dart index 45ac0bc5..41440558 100644 --- a/packages/windows_devices/lib/src/enumeration/ienclosurelocation2.dart +++ b/packages/windows_devices/lib/src/enumeration/ienclosurelocation2.dart @@ -33,7 +33,7 @@ class IEnclosureLocation2 extends IInspectable implements IEnclosureLocation { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IEnclosureLocation2 extends IInspectable implements IEnclosureLocation { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_devices/lib/src/geolocation/icivicaddress.dart b/packages/windows_devices/lib/src/geolocation/icivicaddress.dart index f05025be..5549bcb1 100644 --- a/packages/windows_devices/lib/src/geolocation/icivicaddress.dart +++ b/packages/windows_devices/lib/src/geolocation/icivicaddress.dart @@ -30,7 +30,7 @@ class ICivicAddress extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class ICivicAddress extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class ICivicAddress extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class ICivicAddress extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -78,7 +78,7 @@ class ICivicAddress extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -88,7 +88,7 @@ class ICivicAddress extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -102,7 +102,7 @@ class ICivicAddress extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -112,7 +112,7 @@ class ICivicAddress extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -126,17 +126,17 @@ class ICivicAddress extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_devices/lib/src/geolocation/igeocoordinate.dart b/packages/windows_devices/lib/src/geolocation/igeocoordinate.dart index bb998491..b452679f 100644 --- a/packages/windows_devices/lib/src/geolocation/igeocoordinate.dart +++ b/packages/windows_devices/lib/src/geolocation/igeocoordinate.dart @@ -32,7 +32,7 @@ class IGeocoordinate extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IGeocoordinate extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -58,7 +58,7 @@ class IGeocoordinate extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,7 +68,7 @@ class IGeocoordinate extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -83,7 +83,7 @@ class IGeocoordinate extends IInspectable { double? get altitude { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -93,7 +93,7 @@ class IGeocoordinate extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -114,7 +114,7 @@ class IGeocoordinate extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -124,7 +124,7 @@ class IGeocoordinate extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -137,7 +137,7 @@ class IGeocoordinate extends IInspectable { double? get altitudeAccuracy { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -147,7 +147,7 @@ class IGeocoordinate extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -167,7 +167,7 @@ class IGeocoordinate extends IInspectable { double? get heading { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -177,7 +177,7 @@ class IGeocoordinate extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -197,7 +197,7 @@ class IGeocoordinate extends IInspectable { double? get speed { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -207,7 +207,7 @@ class IGeocoordinate extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -228,17 +228,17 @@ class IGeocoordinate extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(13) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(13) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_devices/lib/src/geolocation/igeocoordinatesatellitedata.dart b/packages/windows_devices/lib/src/geolocation/igeocoordinatesatellitedata.dart index ce815071..10182638 100644 --- a/packages/windows_devices/lib/src/geolocation/igeocoordinatesatellitedata.dart +++ b/packages/windows_devices/lib/src/geolocation/igeocoordinatesatellitedata.dart @@ -31,7 +31,7 @@ class IGeocoordinateSatelliteData extends IInspectable { double? get positionDilutionOfPrecision { final ppValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IGeocoordinateSatelliteData extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer ppValue)>()(ptr.ref.lpVtbl, ppValue); + Pointer ppValue)>()(lpVtbl, ppValue); if (FAILED(hr)) { free(ppValue); @@ -61,7 +61,7 @@ class IGeocoordinateSatelliteData extends IInspectable { double? get horizontalDilutionOfPrecision { final ppValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -71,7 +71,7 @@ class IGeocoordinateSatelliteData extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer ppValue)>()(ptr.ref.lpVtbl, ppValue); + Pointer ppValue)>()(lpVtbl, ppValue); if (FAILED(hr)) { free(ppValue); @@ -91,7 +91,7 @@ class IGeocoordinateSatelliteData extends IInspectable { double? get verticalDilutionOfPrecision { final ppValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -101,7 +101,7 @@ class IGeocoordinateSatelliteData extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer ppValue)>()(ptr.ref.lpVtbl, ppValue); + Pointer ppValue)>()(lpVtbl, ppValue); if (FAILED(hr)) { free(ppValue); diff --git a/packages/windows_devices/lib/src/geolocation/igeocoordinatesatellitedata2.dart b/packages/windows_devices/lib/src/geolocation/igeocoordinatesatellitedata2.dart index fc0f6c23..7af73276 100644 --- a/packages/windows_devices/lib/src/geolocation/igeocoordinatesatellitedata2.dart +++ b/packages/windows_devices/lib/src/geolocation/igeocoordinatesatellitedata2.dart @@ -31,7 +31,7 @@ class IGeocoordinateSatelliteData2 extends IInspectable { double? get geometricDilutionOfPrecision { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IGeocoordinateSatelliteData2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -61,7 +61,7 @@ class IGeocoordinateSatelliteData2 extends IInspectable { double? get timeDilutionOfPrecision { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -71,7 +71,7 @@ class IGeocoordinateSatelliteData2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_devices/lib/src/geolocation/igeocoordinatewithpoint.dart b/packages/windows_devices/lib/src/geolocation/igeocoordinatewithpoint.dart index ef0fd7a3..ba53b42f 100644 --- a/packages/windows_devices/lib/src/geolocation/igeocoordinatewithpoint.dart +++ b/packages/windows_devices/lib/src/geolocation/igeocoordinatewithpoint.dart @@ -31,7 +31,7 @@ class IGeocoordinateWithPoint extends IInspectable { Geopoint? get point { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IGeocoordinateWithPoint extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_devices/lib/src/geolocation/igeocoordinatewithpositiondata.dart b/packages/windows_devices/lib/src/geolocation/igeocoordinatewithpositiondata.dart index f20d1195..097d584e 100644 --- a/packages/windows_devices/lib/src/geolocation/igeocoordinatewithpositiondata.dart +++ b/packages/windows_devices/lib/src/geolocation/igeocoordinatewithpositiondata.dart @@ -37,7 +37,7 @@ class IGeocoordinateWithPositionData extends IInspectable final pValue = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -47,7 +47,7 @@ class IGeocoordinateWithPositionData extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer pValue)>()( - ptr.ref.lpVtbl, pValue); + lpVtbl, pValue); if (FAILED(hr)) throwWindowsException(hr); @@ -60,7 +60,7 @@ class IGeocoordinateWithPositionData extends IInspectable GeocoordinateSatelliteData? get satelliteData { final ppValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -70,7 +70,7 @@ class IGeocoordinateWithPositionData extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer ppValue)>()(ptr.ref.lpVtbl, ppValue); + Pointer ppValue)>()(lpVtbl, ppValue); if (FAILED(hr)) { free(ppValue); diff --git a/packages/windows_devices/lib/src/geolocation/igeocoordinatewithpositionsourcetimestamp.dart b/packages/windows_devices/lib/src/geolocation/igeocoordinatewithpositionsourcetimestamp.dart index 94c83111..9fcc700f 100644 --- a/packages/windows_devices/lib/src/geolocation/igeocoordinatewithpositionsourcetimestamp.dart +++ b/packages/windows_devices/lib/src/geolocation/igeocoordinatewithpositionsourcetimestamp.dart @@ -32,7 +32,7 @@ class IGeocoordinateWithPositionSourceTimestamp extends IInspectable { DateTime? get positionSourceTimestamp { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IGeocoordinateWithPositionSourceTimestamp extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_devices/lib/src/geolocation/igeocoordinatewithremotesource.dart b/packages/windows_devices/lib/src/geolocation/igeocoordinatewithremotesource.dart index bba1ab87..23f69a96 100644 --- a/packages/windows_devices/lib/src/geolocation/igeocoordinatewithremotesource.dart +++ b/packages/windows_devices/lib/src/geolocation/igeocoordinatewithremotesource.dart @@ -32,17 +32,17 @@ class IGeocoordinateWithRemoteSource extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_devices/lib/src/geolocation/igeolocator.dart b/packages/windows_devices/lib/src/geolocation/igeolocator.dart index 2005d97a..c9d8013f 100644 --- a/packages/windows_devices/lib/src/geolocation/igeolocator.dart +++ b/packages/windows_devices/lib/src/geolocation/igeolocator.dart @@ -35,17 +35,17 @@ class IGeolocator extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class IGeolocator extends IInspectable { } set desiredAccuracy(PositionAccuracy value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IGeolocator extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -73,7 +73,7 @@ class IGeolocator extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -83,7 +83,7 @@ class IGeolocator extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -95,7 +95,7 @@ class IGeolocator extends IInspectable { set movementThreshold(double value) { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -104,7 +104,7 @@ class IGeolocator extends IInspectable { VTablePointer lpVtbl, Double value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -113,7 +113,7 @@ class IGeolocator extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -123,7 +123,7 @@ class IGeolocator extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -135,7 +135,7 @@ class IGeolocator extends IInspectable { set reportInterval(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(11) .cast< Pointer< @@ -144,7 +144,7 @@ class IGeolocator extends IInspectable { VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -153,17 +153,17 @@ class IGeolocator extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(12) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(12) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -176,7 +176,7 @@ class IGeolocator extends IInspectable { Future getGeopositionAsync() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -186,7 +186,7 @@ class IGeolocator extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -202,7 +202,7 @@ class IGeolocator extends IInspectable { Duration maximumAge, Duration timeout) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -212,8 +212,8 @@ class IGeolocator extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int maximumAge, int timeout, - Pointer value)>()(ptr.ref.lpVtbl, - maximumAge.toWinRTDuration(), timeout.toWinRTDuration(), value); + Pointer value)>()( + lpVtbl, maximumAge.toWinRTDuration(), timeout.toWinRTDuration(), value); if (FAILED(hr)) { free(value); @@ -229,18 +229,17 @@ class IGeolocator extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(15) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(15) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -252,7 +251,7 @@ class IGeolocator extends IInspectable { void remove_PositionChanged(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(16) .cast< Pointer< @@ -261,7 +260,7 @@ class IGeolocator extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -270,18 +269,17 @@ class IGeolocator extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -293,7 +291,7 @@ class IGeolocator extends IInspectable { void remove_StatusChanged(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(18) .cast< Pointer< @@ -302,7 +300,7 @@ class IGeolocator extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_devices/lib/src/geolocation/igeolocator2.dart b/packages/windows_devices/lib/src/geolocation/igeolocator2.dart index 3d5a21a9..785d955d 100644 --- a/packages/windows_devices/lib/src/geolocation/igeolocator2.dart +++ b/packages/windows_devices/lib/src/geolocation/igeolocator2.dart @@ -27,11 +27,11 @@ class IGeolocator2 extends IInspectable { interface.cast(IGeolocator2.fromPtr, IID_IGeolocator2); void allowFallbackToConsentlessPositions() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_devices/lib/src/geolocation/igeolocatorstatics.dart b/packages/windows_devices/lib/src/geolocation/igeolocatorstatics.dart index f24526bd..d4971310 100644 --- a/packages/windows_devices/lib/src/geolocation/igeolocatorstatics.dart +++ b/packages/windows_devices/lib/src/geolocation/igeolocatorstatics.dart @@ -32,7 +32,7 @@ class IGeolocatorStatics extends IInspectable { Future requestAccessAsync() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IGeolocatorStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -58,7 +58,7 @@ class IGeolocatorStatics extends IInspectable { Future> getGeopositionHistoryAsync(DateTime startTime) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -69,7 +69,7 @@ class IGeolocatorStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int startTime, Pointer result)>()( - ptr.ref.lpVtbl, startTime.toWinRTDateTime(), result); + lpVtbl, startTime.toWinRTDateTime(), result); if (FAILED(hr)) { free(result); @@ -88,7 +88,7 @@ class IGeolocatorStatics extends IInspectable { DateTime startTime, Duration duration) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -98,7 +98,7 @@ class IGeolocatorStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int startTime, int duration, - Pointer result)>()(ptr.ref.lpVtbl, + Pointer result)>()(lpVtbl, startTime.toWinRTDateTime(), duration.toWinRTDuration(), result); if (FAILED(hr)) { diff --git a/packages/windows_devices/lib/src/geolocation/igeolocatorstatics2.dart b/packages/windows_devices/lib/src/geolocation/igeolocatorstatics2.dart index 0f7cc6bd..54b88e09 100644 --- a/packages/windows_devices/lib/src/geolocation/igeolocatorstatics2.dart +++ b/packages/windows_devices/lib/src/geolocation/igeolocatorstatics2.dart @@ -32,17 +32,17 @@ class IGeolocatorStatics2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -53,7 +53,7 @@ class IGeolocatorStatics2 extends IInspectable { } set defaultGeoposition(BasicGeoposition? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -63,7 +63,7 @@ class IGeolocatorStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toReference().lpVtbl ?? nullptr); + lpVtbl, value?.toReference().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @@ -71,7 +71,7 @@ class IGeolocatorStatics2 extends IInspectable { BasicGeoposition? get defaultGeoposition { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -81,7 +81,7 @@ class IGeolocatorStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_devices/lib/src/geolocation/igeolocatorwithscalaraccuracy.dart b/packages/windows_devices/lib/src/geolocation/igeolocatorwithscalaraccuracy.dart index a81ab6f1..119a4e40 100644 --- a/packages/windows_devices/lib/src/geolocation/igeolocatorwithscalaraccuracy.dart +++ b/packages/windows_devices/lib/src/geolocation/igeolocatorwithscalaraccuracy.dart @@ -38,7 +38,7 @@ class IGeolocatorWithScalarAccuracy extends IInspectable int? get desiredAccuracyInMeters { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -48,7 +48,7 @@ class IGeolocatorWithScalarAccuracy extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -66,7 +66,7 @@ class IGeolocatorWithScalarAccuracy extends IInspectable } set desiredAccuracyInMeters(int? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -76,7 +76,7 @@ class IGeolocatorWithScalarAccuracy extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toReference(IntType.uint32).lpVtbl ?? nullptr); + lpVtbl, value?.toReference(IntType.uint32).lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_devices/lib/src/geolocation/igeopoint.dart b/packages/windows_devices/lib/src/geolocation/igeopoint.dart index 3286936c..fc4cb9d6 100644 --- a/packages/windows_devices/lib/src/geolocation/igeopoint.dart +++ b/packages/windows_devices/lib/src/geolocation/igeopoint.dart @@ -35,18 +35,17 @@ class IGeopoint extends IInspectable implements IGeoshape { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_devices/lib/src/geolocation/igeopointfactory.dart b/packages/windows_devices/lib/src/geolocation/igeopointfactory.dart index f38e8df4..ac449154 100644 --- a/packages/windows_devices/lib/src/geolocation/igeopointfactory.dart +++ b/packages/windows_devices/lib/src/geolocation/igeopointfactory.dart @@ -34,7 +34,7 @@ class IGeopointFactory extends IInspectable { final value = calloc(); final positionNativeStructPtr = position.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -49,7 +49,7 @@ class IGeopointFactory extends IInspectable { VTablePointer lpVtbl, NativeBasicGeoposition position, Pointer value)>()( - ptr.ref.lpVtbl, positionNativeStructPtr.ref, value); + lpVtbl, positionNativeStructPtr.ref, value); free(positionNativeStructPtr); @@ -66,7 +66,7 @@ class IGeopointFactory extends IInspectable { final value = calloc(); final positionNativeStructPtr = position.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -82,7 +82,7 @@ class IGeopointFactory extends IInspectable { VTablePointer lpVtbl, NativeBasicGeoposition position, int altitudeReferenceSystem, - Pointer value)>()(ptr.ref.lpVtbl, + Pointer value)>()(lpVtbl, positionNativeStructPtr.ref, altitudeReferenceSystem.value, value); free(positionNativeStructPtr); @@ -102,7 +102,7 @@ class IGeopointFactory extends IInspectable { final value = calloc(); final positionNativeStructPtr = position.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -121,7 +121,7 @@ class IGeopointFactory extends IInspectable { int altitudeReferenceSystem, int spatialReferenceId, Pointer value)>()( - ptr.ref.lpVtbl, + lpVtbl, positionNativeStructPtr.ref, altitudeReferenceSystem.value, spatialReferenceId, diff --git a/packages/windows_devices/lib/src/geolocation/igeoposition.dart b/packages/windows_devices/lib/src/geolocation/igeoposition.dart index fd5cd7ce..0ad34b2c 100644 --- a/packages/windows_devices/lib/src/geolocation/igeoposition.dart +++ b/packages/windows_devices/lib/src/geolocation/igeoposition.dart @@ -32,7 +32,7 @@ class IGeoposition extends IInspectable { Geocoordinate? get coordinate { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IGeoposition extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -60,7 +60,7 @@ class IGeoposition extends IInspectable { CivicAddress? get civicAddress { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -70,7 +70,7 @@ class IGeoposition extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_devices/lib/src/geolocation/igeoposition2.dart b/packages/windows_devices/lib/src/geolocation/igeoposition2.dart index d1aea613..cca8e55f 100644 --- a/packages/windows_devices/lib/src/geolocation/igeoposition2.dart +++ b/packages/windows_devices/lib/src/geolocation/igeoposition2.dart @@ -34,7 +34,7 @@ class IGeoposition2 extends IInspectable implements IGeoposition { VenueData? get venueData { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class IGeoposition2 extends IInspectable implements IGeoposition { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_devices/lib/src/geolocation/igeoshape.dart b/packages/windows_devices/lib/src/geolocation/igeoshape.dart index bdfacc31..6f0390a3 100644 --- a/packages/windows_devices/lib/src/geolocation/igeoshape.dart +++ b/packages/windows_devices/lib/src/geolocation/igeoshape.dart @@ -33,17 +33,17 @@ class IGeoshape extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -57,7 +57,7 @@ class IGeoshape extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -67,7 +67,7 @@ class IGeoshape extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -81,17 +81,17 @@ class IGeoshape extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_devices/lib/src/geolocation/ivenuedata.dart b/packages/windows_devices/lib/src/geolocation/ivenuedata.dart index 5383ef73..c76d2f53 100644 --- a/packages/windows_devices/lib/src/geolocation/ivenuedata.dart +++ b/packages/windows_devices/lib/src/geolocation/ivenuedata.dart @@ -30,7 +30,7 @@ class IVenueData extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IVenueData extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IVenueData extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IVenueData extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_devices/lib/src/power/ibattery.dart b/packages/windows_devices/lib/src/power/ibattery.dart index 6229d717..c52094b7 100644 --- a/packages/windows_devices/lib/src/power/ibattery.dart +++ b/packages/windows_devices/lib/src/power/ibattery.dart @@ -33,7 +33,7 @@ class IBattery extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IBattery extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class IBattery extends IInspectable { BatteryReport? getReport() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class IBattery extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -85,18 +85,17 @@ class IBattery extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -108,7 +107,7 @@ class IBattery extends IInspectable { void remove_ReportUpdated(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -117,7 +116,7 @@ class IBattery extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_devices/lib/src/power/ibatteryreport.dart b/packages/windows_devices/lib/src/power/ibatteryreport.dart index ffe64d63..5e019630 100644 --- a/packages/windows_devices/lib/src/power/ibatteryreport.dart +++ b/packages/windows_devices/lib/src/power/ibatteryreport.dart @@ -30,7 +30,7 @@ class IBatteryReport extends IInspectable { int? get chargeRateInMilliwatts { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IBatteryReport extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -60,7 +60,7 @@ class IBatteryReport extends IInspectable { int? get designCapacityInMilliwattHours { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -70,7 +70,7 @@ class IBatteryReport extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -90,7 +90,7 @@ class IBatteryReport extends IInspectable { int? get fullChargeCapacityInMilliwattHours { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -100,7 +100,7 @@ class IBatteryReport extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -120,7 +120,7 @@ class IBatteryReport extends IInspectable { int? get remainingCapacityInMilliwattHours { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -130,7 +130,7 @@ class IBatteryReport extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -151,17 +151,17 @@ class IBatteryReport extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_devices/lib/src/power/ibatterystatics.dart b/packages/windows_devices/lib/src/power/ibatterystatics.dart index 0a91d68c..996c9cf9 100644 --- a/packages/windows_devices/lib/src/power/ibatterystatics.dart +++ b/packages/windows_devices/lib/src/power/ibatterystatics.dart @@ -31,7 +31,7 @@ class IBatteryStatics extends IInspectable { Battery? get aggregateBattery { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IBatteryStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -59,7 +59,7 @@ class IBatteryStatics extends IInspectable { Future fromIdAsync(String deviceId) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -70,7 +70,7 @@ class IBatteryStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int deviceId, Pointer result)>()( - ptr.ref.lpVtbl, deviceId.toHString(), result); + lpVtbl, deviceId.toHString(), result); if (FAILED(hr)) { free(result); @@ -86,7 +86,7 @@ class IBatteryStatics extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -96,7 +96,7 @@ class IBatteryStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_devices/lib/src/sensors/ipedometerreading.dart b/packages/windows_devices/lib/src/sensors/ipedometerreading.dart index 07c8b591..efe7722c 100644 --- a/packages/windows_devices/lib/src/sensors/ipedometerreading.dart +++ b/packages/windows_devices/lib/src/sensors/ipedometerreading.dart @@ -32,17 +32,17 @@ class IPedometerReading extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,17 +56,17 @@ class IPedometerReading extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -80,17 +80,17 @@ class IPedometerReading extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -104,17 +104,17 @@ class IPedometerReading extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_foundation/lib/src/collections/iiterable.dart b/packages/windows_foundation/lib/src/collections/iiterable.dart index 8e4357d4..7fd9b746 100644 --- a/packages/windows_foundation/lib/src/collections/iiterable.dart +++ b/packages/windows_foundation/lib/src/collections/iiterable.dart @@ -81,7 +81,7 @@ interface class IIterable extends IInspectable { IIterator first() { final retValuePtr = calloc(); - final hr = ptr.ref.lpVtbl.value + final hr = vtable .elementAt(6) .cast< Pointer< @@ -91,7 +91,7 @@ interface class IIterable extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); diff --git a/packages/windows_foundation/lib/src/collections/iiterator.dart b/packages/windows_foundation/lib/src/collections/iiterator.dart index f233c0a1..3124b3b5 100644 --- a/packages/windows_foundation/lib/src/collections/iiterator.dart +++ b/packages/windows_foundation/lib/src/collections/iiterator.dart @@ -173,7 +173,7 @@ abstract interface class IIterator extends IInspectable { final retValuePtr = calloc(); try { - final hr = ptr.ref.lpVtbl.value + final hr = vtable .elementAt(7) .cast< Pointer< @@ -183,7 +183,7 @@ abstract interface class IIterator extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -198,7 +198,7 @@ abstract interface class IIterator extends IInspectable { final retValuePtr = calloc(); try { - final hr = ptr.ref.lpVtbl.value + final hr = vtable .elementAt(8) .cast< Pointer< @@ -208,7 +208,7 @@ abstract interface class IIterator extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_foundation/lib/src/collections/iiterator_part.dart b/packages/windows_foundation/lib/src/collections/iiterator_part.dart index 74817572..d4eabdec 100644 --- a/packages/windows_foundation/lib/src/collections/iiterator_part.dart +++ b/packages/windows_foundation/lib/src/collections/iiterator_part.dart @@ -17,7 +17,7 @@ final class _IIteratorAccessListEntry extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -28,7 +28,7 @@ final class _IIteratorAccessListEntry extends IIterator { .asFunction< int Function(VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -44,7 +44,7 @@ final class _IIteratorAccessListEntry extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -61,7 +61,7 @@ final class _IIteratorAccessListEntry extends IIterator { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -85,7 +85,7 @@ final class _IIteratorBackgroundTransferFileRange final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -99,7 +99,7 @@ final class _IIteratorBackgroundTransferFileRange int Function( VTablePointer lpVtbl, Pointer - retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -115,7 +115,7 @@ final class _IIteratorBackgroundTransferFileRange final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -132,7 +132,7 @@ final class _IIteratorBackgroundTransferFileRange int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -155,7 +155,7 @@ final class _IIteratorBasicGeoposition extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -166,7 +166,7 @@ final class _IIteratorBasicGeoposition extends IIterator { .asFunction< int Function(VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -182,7 +182,7 @@ final class _IIteratorBasicGeoposition extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -199,7 +199,7 @@ final class _IIteratorBasicGeoposition extends IIterator { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -222,7 +222,7 @@ final class _IIteratorBool extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -232,7 +232,7 @@ final class _IIteratorBool extends IIterator { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -249,7 +249,7 @@ final class _IIteratorBool extends IIterator { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -263,7 +263,7 @@ final class _IIteratorBool extends IIterator { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -286,18 +286,17 @@ final class _IIteratorColor extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -313,7 +312,7 @@ final class _IIteratorColor extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -330,7 +329,7 @@ final class _IIteratorColor extends IIterator { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -353,7 +352,7 @@ final class _IIteratorDateTime extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -363,7 +362,7 @@ final class _IIteratorDateTime extends IIterator { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -379,7 +378,7 @@ final class _IIteratorDateTime extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -393,7 +392,7 @@ final class _IIteratorDateTime extends IIterator { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -416,7 +415,7 @@ final class _IIteratorDouble extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -426,7 +425,7 @@ final class _IIteratorDouble extends IIterator { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -442,7 +441,7 @@ final class _IIteratorDouble extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -456,7 +455,7 @@ final class _IIteratorDouble extends IIterator { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -479,7 +478,7 @@ final class _IIteratorDuration extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -489,7 +488,7 @@ final class _IIteratorDuration extends IIterator { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -505,7 +504,7 @@ final class _IIteratorDuration extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -519,7 +518,7 @@ final class _IIteratorDuration extends IIterator { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -542,7 +541,7 @@ final class _IIteratorFloat extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -552,7 +551,7 @@ final class _IIteratorFloat extends IIterator { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -568,7 +567,7 @@ final class _IIteratorFloat extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -582,7 +581,7 @@ final class _IIteratorFloat extends IIterator { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -605,7 +604,7 @@ final class _IIteratorGpioChangeRecord extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -616,7 +615,7 @@ final class _IIteratorGpioChangeRecord extends IIterator { .asFunction< int Function(VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -632,7 +631,7 @@ final class _IIteratorGpioChangeRecord extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -649,7 +648,7 @@ final class _IIteratorGpioChangeRecord extends IIterator { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -672,7 +671,7 @@ final class _IIteratorGuid extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -682,7 +681,7 @@ final class _IIteratorGuid extends IIterator { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -699,7 +698,7 @@ final class _IIteratorGuid extends IIterator { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -713,7 +712,7 @@ final class _IIteratorGuid extends IIterator { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -736,7 +735,7 @@ final class _IIteratorInt16 extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -746,7 +745,7 @@ final class _IIteratorInt16 extends IIterator { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -762,7 +761,7 @@ final class _IIteratorInt16 extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -776,7 +775,7 @@ final class _IIteratorInt16 extends IIterator { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -799,7 +798,7 @@ final class _IIteratorInt32 extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -809,7 +808,7 @@ final class _IIteratorInt32 extends IIterator { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -825,7 +824,7 @@ final class _IIteratorInt32 extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -839,7 +838,7 @@ final class _IIteratorInt32 extends IIterator { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -862,7 +861,7 @@ final class _IIteratorInt64 extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -872,7 +871,7 @@ final class _IIteratorInt64 extends IIterator { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -888,7 +887,7 @@ final class _IIteratorInt64 extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -902,7 +901,7 @@ final class _IIteratorInt64 extends IIterator { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -925,7 +924,7 @@ final class _IIteratorMediaTimeRange extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -936,7 +935,7 @@ final class _IIteratorMediaTimeRange extends IIterator { .asFunction< int Function(VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -952,7 +951,7 @@ final class _IIteratorMediaTimeRange extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -969,7 +968,7 @@ final class _IIteratorMediaTimeRange extends IIterator { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -992,7 +991,7 @@ final class _IIteratorMseTimeRange extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1003,7 +1002,7 @@ final class _IIteratorMseTimeRange extends IIterator { .asFunction< int Function(VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1019,7 +1018,7 @@ final class _IIteratorMseTimeRange extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1036,7 +1035,7 @@ final class _IIteratorMseTimeRange extends IIterator { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1059,18 +1058,17 @@ final class _IIteratorNitRange extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1086,7 +1084,7 @@ final class _IIteratorNitRange extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1103,7 +1101,7 @@ final class _IIteratorNitRange extends IIterator { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1127,7 +1125,7 @@ final class _IIteratorInspectable extends IIterator { T get current { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1137,7 +1135,7 @@ final class _IIteratorInspectable extends IIterator { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -1158,7 +1156,7 @@ final class _IIteratorInspectable extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1172,7 +1170,7 @@ final class _IIteratorInspectable extends IIterator { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1194,7 +1192,7 @@ final class _IIteratorObject extends IIterator { Object? get current { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1204,7 +1202,7 @@ final class _IIteratorObject extends IIterator { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -1225,7 +1223,7 @@ final class _IIteratorObject extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1239,7 +1237,7 @@ final class _IIteratorObject extends IIterator { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1261,7 +1259,7 @@ final class _IIteratorUri extends IIterator { Uri? get current { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1271,7 +1269,7 @@ final class _IIteratorUri extends IIterator { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -1292,7 +1290,7 @@ final class _IIteratorUri extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1306,7 +1304,7 @@ final class _IIteratorUri extends IIterator { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1329,18 +1327,17 @@ final class _IIteratorPoint extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1356,7 +1353,7 @@ final class _IIteratorPoint extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1373,7 +1370,7 @@ final class _IIteratorPoint extends IIterator { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1396,7 +1393,7 @@ final class _IIteratorPointerDeviceUsage extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1408,7 +1405,7 @@ final class _IIteratorPointerDeviceUsage extends IIterator { int Function( VTablePointer lpVtbl, Pointer - retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1424,7 +1421,7 @@ final class _IIteratorPointerDeviceUsage extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1441,7 +1438,7 @@ final class _IIteratorPointerDeviceUsage extends IIterator { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1464,18 +1461,17 @@ final class _IIteratorRect extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1491,7 +1487,7 @@ final class _IIteratorRect extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1508,7 +1504,7 @@ final class _IIteratorRect extends IIterator { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1531,18 +1527,17 @@ final class _IIteratorRectInt32 extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1558,7 +1553,7 @@ final class _IIteratorRectInt32 extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1575,7 +1570,7 @@ final class _IIteratorRectInt32 extends IIterator { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1598,18 +1593,17 @@ final class _IIteratorSize extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1625,7 +1619,7 @@ final class _IIteratorSize extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1642,7 +1636,7 @@ final class _IIteratorSize extends IIterator { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1665,7 +1659,7 @@ final class _IIteratorSizeUInt32 extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1676,7 +1670,7 @@ final class _IIteratorSizeUInt32 extends IIterator { .asFunction< int Function(VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1692,7 +1686,7 @@ final class _IIteratorSizeUInt32 extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1709,7 +1703,7 @@ final class _IIteratorSizeUInt32 extends IIterator { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1732,18 +1726,17 @@ final class _IIteratorSortEntry extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1759,7 +1752,7 @@ final class _IIteratorSortEntry extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1776,7 +1769,7 @@ final class _IIteratorSortEntry extends IIterator { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1800,7 +1793,7 @@ final class _IIteratorStorePackageUpdateStatus final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1813,7 +1806,7 @@ final class _IIteratorStorePackageUpdateStatus .asFunction< int Function(VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1829,7 +1822,7 @@ final class _IIteratorStorePackageUpdateStatus final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1846,7 +1839,7 @@ final class _IIteratorStorePackageUpdateStatus int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1869,7 +1862,7 @@ final class _IIteratorString extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1879,7 +1872,7 @@ final class _IIteratorString extends IIterator { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1895,7 +1888,7 @@ final class _IIteratorString extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1909,7 +1902,7 @@ final class _IIteratorString extends IIterator { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1932,18 +1925,17 @@ final class _IIteratorTextRange extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1959,7 +1951,7 @@ final class _IIteratorTextRange extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1976,7 +1968,7 @@ final class _IIteratorTextRange extends IIterator { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1999,7 +1991,7 @@ final class _IIteratorTextSegment extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -2010,7 +2002,7 @@ final class _IIteratorTextSegment extends IIterator { .asFunction< int Function(VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2026,7 +2018,7 @@ final class _IIteratorTextSegment extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -2043,7 +2035,7 @@ final class _IIteratorTextSegment extends IIterator { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2066,7 +2058,7 @@ final class _IIteratorUint8 extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -2076,7 +2068,7 @@ final class _IIteratorUint8 extends IIterator { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2092,7 +2084,7 @@ final class _IIteratorUint8 extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -2106,7 +2098,7 @@ final class _IIteratorUint8 extends IIterator { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2129,7 +2121,7 @@ final class _IIteratorUint16 extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -2139,7 +2131,7 @@ final class _IIteratorUint16 extends IIterator { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2155,7 +2147,7 @@ final class _IIteratorUint16 extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -2169,7 +2161,7 @@ final class _IIteratorUint16 extends IIterator { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2192,7 +2184,7 @@ final class _IIteratorUint32 extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -2202,7 +2194,7 @@ final class _IIteratorUint32 extends IIterator { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2218,7 +2210,7 @@ final class _IIteratorUint32 extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -2232,7 +2224,7 @@ final class _IIteratorUint32 extends IIterator { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2255,7 +2247,7 @@ final class _IIteratorUint64 extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -2265,7 +2257,7 @@ final class _IIteratorUint64 extends IIterator { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2281,7 +2273,7 @@ final class _IIteratorUint64 extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -2295,7 +2287,7 @@ final class _IIteratorUint64 extends IIterator { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2318,18 +2310,17 @@ final class _IIteratorWindowId extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2345,7 +2336,7 @@ final class _IIteratorWindowId extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -2362,7 +2353,7 @@ final class _IIteratorWindowId extends IIterator { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2387,7 +2378,7 @@ final class _IIteratorWinRTEnum extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -2397,7 +2388,7 @@ final class _IIteratorWinRTEnum extends IIterator { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2413,7 +2404,7 @@ final class _IIteratorWinRTEnum extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -2427,7 +2418,7 @@ final class _IIteratorWinRTEnum extends IIterator { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2452,7 +2443,7 @@ final class _IIteratorWinRTFlagsEnum extends IIterator { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -2462,7 +2453,7 @@ final class _IIteratorWinRTFlagsEnum extends IIterator { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2478,7 +2469,7 @@ final class _IIteratorWinRTFlagsEnum extends IIterator { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -2492,7 +2483,7 @@ final class _IIteratorWinRTFlagsEnum extends IIterator { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, itemsSize, items, retValuePtr); + lpVtbl, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_foundation/lib/src/collections/ikeyvaluepair_part.dart b/packages/windows_foundation/lib/src/collections/ikeyvaluepair_part.dart index 520a5415..5afc6f99 100644 --- a/packages/windows_foundation/lib/src/collections/ikeyvaluepair_part.dart +++ b/packages/windows_foundation/lib/src/collections/ikeyvaluepair_part.dart @@ -19,7 +19,7 @@ final class _IKeyValuePairGuidInspectable extends IKeyValuePair { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -29,7 +29,7 @@ final class _IKeyValuePairGuidInspectable extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -43,7 +43,7 @@ final class _IKeyValuePairGuidInspectable extends IKeyValuePair { V get value { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -53,7 +53,7 @@ final class _IKeyValuePairGuidInspectable extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -77,7 +77,7 @@ final class _IKeyValuePairGuidObject extends IKeyValuePair { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -87,7 +87,7 @@ final class _IKeyValuePairGuidObject extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -101,7 +101,7 @@ final class _IKeyValuePairGuidObject extends IKeyValuePair { Object? get value { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -111,7 +111,7 @@ final class _IKeyValuePairGuidObject extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -137,7 +137,7 @@ final class _IKeyValuePairInt16Inspectable extends IKeyValuePair { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -147,7 +147,7 @@ final class _IKeyValuePairInt16Inspectable extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -161,7 +161,7 @@ final class _IKeyValuePairInt16Inspectable extends IKeyValuePair { V get value { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -171,7 +171,7 @@ final class _IKeyValuePairInt16Inspectable extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -197,7 +197,7 @@ final class _IKeyValuePairInt32Inspectable extends IKeyValuePair { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -207,7 +207,7 @@ final class _IKeyValuePairInt32Inspectable extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -221,7 +221,7 @@ final class _IKeyValuePairInt32Inspectable extends IKeyValuePair { V get value { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -231,7 +231,7 @@ final class _IKeyValuePairInt32Inspectable extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -257,7 +257,7 @@ final class _IKeyValuePairInt64Inspectable extends IKeyValuePair { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -267,7 +267,7 @@ final class _IKeyValuePairInt64Inspectable extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -281,7 +281,7 @@ final class _IKeyValuePairInt64Inspectable extends IKeyValuePair { V get value { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -291,7 +291,7 @@ final class _IKeyValuePairInt64Inspectable extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -314,7 +314,7 @@ final class _IKeyValuePairObjectObject extends IKeyValuePair { Object get key { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -324,7 +324,7 @@ final class _IKeyValuePairObjectObject extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -338,7 +338,7 @@ final class _IKeyValuePairObjectObject extends IKeyValuePair { Object? get value { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -348,7 +348,7 @@ final class _IKeyValuePairObjectObject extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -375,7 +375,7 @@ final class _IKeyValuePairStringInspectable final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -385,7 +385,7 @@ final class _IKeyValuePairStringInspectable .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -399,7 +399,7 @@ final class _IKeyValuePairStringInspectable V get value { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -409,7 +409,7 @@ final class _IKeyValuePairStringInspectable .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -433,7 +433,7 @@ final class _IKeyValuePairStringObject extends IKeyValuePair { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -443,7 +443,7 @@ final class _IKeyValuePairStringObject extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -457,7 +457,7 @@ final class _IKeyValuePairStringObject extends IKeyValuePair { Object? get value { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -467,7 +467,7 @@ final class _IKeyValuePairStringObject extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -491,7 +491,7 @@ final class _IKeyValuePairStringString extends IKeyValuePair { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -501,7 +501,7 @@ final class _IKeyValuePairStringString extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -516,7 +516,7 @@ final class _IKeyValuePairStringString extends IKeyValuePair { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -526,7 +526,7 @@ final class _IKeyValuePairStringString extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -547,7 +547,7 @@ final class _IKeyValuePairStringWinRTEnum extends IKeyValuePair { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -557,7 +557,7 @@ final class _IKeyValuePairStringWinRTEnum extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -572,7 +572,7 @@ final class _IKeyValuePairStringWinRTEnum extends IKeyValuePair { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -582,7 +582,7 @@ final class _IKeyValuePairStringWinRTEnum extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -605,7 +605,7 @@ final class _IKeyValuePairStringWinRTFlagsEnum final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -615,7 +615,7 @@ final class _IKeyValuePairStringWinRTFlagsEnum .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -630,7 +630,7 @@ final class _IKeyValuePairStringWinRTFlagsEnum final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -640,7 +640,7 @@ final class _IKeyValuePairStringWinRTFlagsEnum .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -661,7 +661,7 @@ final class _IKeyValuePairUint8Inspectable extends IKeyValuePair { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -671,7 +671,7 @@ final class _IKeyValuePairUint8Inspectable extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -685,7 +685,7 @@ final class _IKeyValuePairUint8Inspectable extends IKeyValuePair { V get value { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -695,7 +695,7 @@ final class _IKeyValuePairUint8Inspectable extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -721,7 +721,7 @@ final class _IKeyValuePairUint16Inspectable extends IKeyValuePair { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -731,7 +731,7 @@ final class _IKeyValuePairUint16Inspectable extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -745,7 +745,7 @@ final class _IKeyValuePairUint16Inspectable extends IKeyValuePair { V get value { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -755,7 +755,7 @@ final class _IKeyValuePairUint16Inspectable extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -781,7 +781,7 @@ final class _IKeyValuePairUint32Inspectable extends IKeyValuePair { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -791,7 +791,7 @@ final class _IKeyValuePairUint32Inspectable extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -805,7 +805,7 @@ final class _IKeyValuePairUint32Inspectable extends IKeyValuePair { V get value { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -815,7 +815,7 @@ final class _IKeyValuePairUint32Inspectable extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -841,7 +841,7 @@ final class _IKeyValuePairUint64Inspectable extends IKeyValuePair { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -851,7 +851,7 @@ final class _IKeyValuePairUint64Inspectable extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -865,7 +865,7 @@ final class _IKeyValuePairUint64Inspectable extends IKeyValuePair { V get value { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -875,7 +875,7 @@ final class _IKeyValuePairUint64Inspectable extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -898,7 +898,7 @@ final class _IKeyValuePairUriString extends IKeyValuePair { Uri get key { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -908,7 +908,7 @@ final class _IKeyValuePairUriString extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -923,7 +923,7 @@ final class _IKeyValuePairUriString extends IKeyValuePair { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -933,7 +933,7 @@ final class _IKeyValuePairUriString extends IKeyValuePair { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -957,7 +957,7 @@ final class _IKeyValuePairWinRTEnumInspectable final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -967,7 +967,7 @@ final class _IKeyValuePairWinRTEnumInspectable .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -981,7 +981,7 @@ final class _IKeyValuePairWinRTEnumInspectable V get value { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -991,7 +991,7 @@ final class _IKeyValuePairWinRTEnumInspectable .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -1020,7 +1020,7 @@ final class _IKeyValuePairWinRTFlagsEnumInspectable final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1030,7 +1030,7 @@ final class _IKeyValuePairWinRTFlagsEnumInspectable .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1044,7 +1044,7 @@ final class _IKeyValuePairWinRTFlagsEnumInspectable V get value { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -1054,7 +1054,7 @@ final class _IKeyValuePairWinRTFlagsEnumInspectable .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); diff --git a/packages/windows_foundation/lib/src/collections/imap.dart b/packages/windows_foundation/lib/src/collections/imap.dart index 02a944ec..89263eb0 100644 --- a/packages/windows_foundation/lib/src/collections/imap.dart +++ b/packages/windows_foundation/lib/src/collections/imap.dart @@ -223,7 +223,7 @@ abstract interface class IMap extends IInspectable final retValuePtr = calloc(); try { - final hr = ptr.ref.lpVtbl.value + final hr = vtable .elementAt(7) .cast< Pointer< @@ -233,7 +233,7 @@ abstract interface class IMap extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -250,7 +250,7 @@ abstract interface class IMap extends IInspectable Map getView() { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -260,7 +260,7 @@ abstract interface class IMap extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -284,11 +284,11 @@ abstract interface class IMap extends IInspectable /// Removes all items from the map. void clear() { - final hr = ptr.ref.lpVtbl.value + final hr = vtable .elementAt(12) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_foundation/lib/src/collections/imap_part.dart b/packages/windows_foundation/lib/src/collections/imap_part.dart index f670800b..dd129ed6 100644 --- a/packages/windows_foundation/lib/src/collections/imap_part.dart +++ b/packages/windows_foundation/lib/src/collections/imap_part.dart @@ -21,7 +21,7 @@ final class _IMapGuidInspectable extends IMap { final retValuePtr = calloc(); final keyNativeStructPtr = key.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -32,7 +32,7 @@ final class _IMapGuidInspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, GUID key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, keyNativeStructPtr.ref, retValuePtr); + lpVtbl, keyNativeStructPtr.ref, retValuePtr); free(keyNativeStructPtr); @@ -56,7 +56,7 @@ final class _IMapGuidInspectable extends IMap { try { final keyNativeStructPtr = key.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -67,7 +67,7 @@ final class _IMapGuidInspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, GUID key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, keyNativeStructPtr.ref, retValuePtr); + lpVtbl, keyNativeStructPtr.ref, retValuePtr); free(keyNativeStructPtr); @@ -87,7 +87,7 @@ final class _IMapGuidInspectable extends IMap { final keyNativeStructPtr = key.toNativeGUID(); final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -101,7 +101,7 @@ final class _IMapGuidInspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, GUID key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, + lpVtbl, keyNativeStructPtr.ref, (value as IInspectable).lpVtbl, retValuePtr); @@ -120,7 +120,7 @@ final class _IMapGuidInspectable extends IMap { void remove(Guid key) { final keyNativeStructPtr = key.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -128,7 +128,7 @@ final class _IMapGuidInspectable extends IMap { HRESULT Function(VTablePointer lpVtbl, GUID key)>>>() .value .asFunction()( - ptr.ref.lpVtbl, keyNativeStructPtr.ref); + lpVtbl, keyNativeStructPtr.ref); free(keyNativeStructPtr); @@ -144,7 +144,7 @@ final class _IMapGuidObject extends IMap { final retValuePtr = calloc(); final keyNativeStructPtr = key.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -155,7 +155,7 @@ final class _IMapGuidObject extends IMap { .asFunction< int Function(VTablePointer lpVtbl, GUID key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, keyNativeStructPtr.ref, retValuePtr); + lpVtbl, keyNativeStructPtr.ref, retValuePtr); free(keyNativeStructPtr); @@ -179,7 +179,7 @@ final class _IMapGuidObject extends IMap { try { final keyNativeStructPtr = key.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -190,7 +190,7 @@ final class _IMapGuidObject extends IMap { .asFunction< int Function(VTablePointer lpVtbl, GUID key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, keyNativeStructPtr.ref, retValuePtr); + lpVtbl, keyNativeStructPtr.ref, retValuePtr); free(keyNativeStructPtr); @@ -210,7 +210,7 @@ final class _IMapGuidObject extends IMap { final keyNativeStructPtr = key.toNativeGUID(); final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -224,7 +224,7 @@ final class _IMapGuidObject extends IMap { .asFunction< int Function(VTablePointer lpVtbl, GUID key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, + lpVtbl, keyNativeStructPtr.ref, value?.boxValue().lpVtbl ?? nullptr, retValuePtr); @@ -243,7 +243,7 @@ final class _IMapGuidObject extends IMap { void remove(Guid key) { final keyNativeStructPtr = key.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -251,7 +251,7 @@ final class _IMapGuidObject extends IMap { HRESULT Function(VTablePointer lpVtbl, GUID key)>>>() .value .asFunction()( - ptr.ref.lpVtbl, keyNativeStructPtr.ref); + lpVtbl, keyNativeStructPtr.ref); free(keyNativeStructPtr); @@ -270,18 +270,17 @@ final class _IMapInt16Inspectable extends IMap { V lookup(int key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int16 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int16 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -301,18 +300,17 @@ final class _IMapInt16Inspectable extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int16 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int16 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -328,7 +326,7 @@ final class _IMapInt16Inspectable extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -342,7 +340,7 @@ final class _IMapInt16Inspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); + lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -354,15 +352,14 @@ final class _IMapInt16Inspectable extends IMap { @override void remove(int key) { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int16 key)>>>() - .value - .asFunction()( - ptr.ref.lpVtbl, key); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int16 key)>>>() + .value + .asFunction()(lpVtbl, key); if (FAILED(hr)) throwWindowsException(hr); } @@ -379,18 +376,17 @@ final class _IMapInt32Inspectable extends IMap { V lookup(int key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -410,18 +406,17 @@ final class _IMapInt32Inspectable extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -437,7 +432,7 @@ final class _IMapInt32Inspectable extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -451,7 +446,7 @@ final class _IMapInt32Inspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); + lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -463,15 +458,14 @@ final class _IMapInt32Inspectable extends IMap { @override void remove(int key) { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 key)>>>() - .value - .asFunction()( - ptr.ref.lpVtbl, key); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 key)>>>() + .value + .asFunction()(lpVtbl, key); if (FAILED(hr)) throwWindowsException(hr); } @@ -488,18 +482,17 @@ final class _IMapInt64Inspectable extends IMap { V lookup(int key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int64 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int64 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -519,18 +512,17 @@ final class _IMapInt64Inspectable extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int64 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int64 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -546,7 +538,7 @@ final class _IMapInt64Inspectable extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -560,7 +552,7 @@ final class _IMapInt64Inspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); + lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -572,15 +564,14 @@ final class _IMapInt64Inspectable extends IMap { @override void remove(int key) { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int64 key)>>>() - .value - .asFunction()( - ptr.ref.lpVtbl, key); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int64 key)>>>() + .value + .asFunction()(lpVtbl, key); if (FAILED(hr)) throwWindowsException(hr); } @@ -594,7 +585,7 @@ final class _IMapObjectObject extends IMap { final retValuePtr = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -607,7 +598,7 @@ final class _IMapObjectObject extends IMap { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.boxValue().lpVtbl, retValuePtr); + lpVtbl, key.boxValue().lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -627,18 +618,20 @@ final class _IMapObjectObject extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, VTablePointer key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.boxValue().lpVtbl, retValuePtr); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, VTablePointer key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, + VTablePointer key, + Pointer + retValuePtr)>()(lpVtbl, key.boxValue().lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -654,7 +647,7 @@ final class _IMapObjectObject extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -668,7 +661,7 @@ final class _IMapObjectObject extends IMap { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, + lpVtbl, key.boxValue().lpVtbl, value?.boxValue().lpVtbl ?? nullptr, retValuePtr); @@ -683,7 +676,7 @@ final class _IMapObjectObject extends IMap { @override void remove(Object key) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -693,7 +686,7 @@ final class _IMapObjectObject extends IMap { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer key)>()( - ptr.ref.lpVtbl, key.boxValue().lpVtbl); + lpVtbl, key.boxValue().lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -710,7 +703,7 @@ final class _IMapStringInspectable extends IMap { V lookup(String key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -721,7 +714,7 @@ final class _IMapStringInspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -741,7 +734,7 @@ final class _IMapStringInspectable extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -752,7 +745,7 @@ final class _IMapStringInspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -768,7 +761,7 @@ final class _IMapStringInspectable extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -782,7 +775,7 @@ final class _IMapStringInspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, + lpVtbl, key.toHString(), (value as IInspectable).lpVtbl, retValuePtr); @@ -797,7 +790,7 @@ final class _IMapStringInspectable extends IMap { @override void remove(String key) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -805,7 +798,7 @@ final class _IMapStringInspectable extends IMap { HRESULT Function(VTablePointer lpVtbl, IntPtr key)>>>() .value .asFunction()( - ptr.ref.lpVtbl, key.toHString()); + lpVtbl, key.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -818,7 +811,7 @@ final class _IMapStringObject extends IMap { Object? lookup(String key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -829,7 +822,7 @@ final class _IMapStringObject extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -849,7 +842,7 @@ final class _IMapStringObject extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -860,7 +853,7 @@ final class _IMapStringObject extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -876,7 +869,7 @@ final class _IMapStringObject extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -890,7 +883,7 @@ final class _IMapStringObject extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, + lpVtbl, key.toHString(), value?.boxValue().lpVtbl ?? nullptr, retValuePtr); @@ -905,7 +898,7 @@ final class _IMapStringObject extends IMap { @override void remove(String key) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -913,7 +906,7 @@ final class _IMapStringObject extends IMap { HRESULT Function(VTablePointer lpVtbl, IntPtr key)>>>() .value .asFunction()( - ptr.ref.lpVtbl, key.toHString()); + lpVtbl, key.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -927,7 +920,7 @@ final class _IMapStringString extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -938,7 +931,7 @@ final class _IMapStringString extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -953,7 +946,7 @@ final class _IMapStringString extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -964,7 +957,7 @@ final class _IMapStringString extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -979,7 +972,7 @@ final class _IMapStringString extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -990,7 +983,7 @@ final class _IMapStringString extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, int value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), value.toHString(), retValuePtr); + lpVtbl, key.toHString(), value.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1002,7 +995,7 @@ final class _IMapStringString extends IMap { @override void remove(String key) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -1010,7 +1003,7 @@ final class _IMapStringString extends IMap { HRESULT Function(VTablePointer lpVtbl, IntPtr key)>>>() .value .asFunction()( - ptr.ref.lpVtbl, key.toHString()); + lpVtbl, key.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -1028,7 +1021,7 @@ final class _IMapStringWinRTEnum extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1039,7 +1032,7 @@ final class _IMapStringWinRTEnum extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1054,7 +1047,7 @@ final class _IMapStringWinRTEnum extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -1065,7 +1058,7 @@ final class _IMapStringWinRTEnum extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1080,7 +1073,7 @@ final class _IMapStringWinRTEnum extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -1090,8 +1083,8 @@ final class _IMapStringWinRTEnum extends IMap { .value .asFunction< int Function(VTablePointer lpVtbl, int key, int value, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, - key.toHString(), (value as WinRTEnum).value, retValuePtr); + Pointer retValuePtr)>()( + lpVtbl, key.toHString(), (value as WinRTEnum).value, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1103,7 +1096,7 @@ final class _IMapStringWinRTEnum extends IMap { @override void remove(String key) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -1111,7 +1104,7 @@ final class _IMapStringWinRTEnum extends IMap { HRESULT Function(VTablePointer lpVtbl, IntPtr key)>>>() .value .asFunction()( - ptr.ref.lpVtbl, key.toHString()); + lpVtbl, key.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -1129,7 +1122,7 @@ final class _IMapStringWinRTFlagsEnum extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1140,7 +1133,7 @@ final class _IMapStringWinRTFlagsEnum extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1155,7 +1148,7 @@ final class _IMapStringWinRTFlagsEnum extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -1166,7 +1159,7 @@ final class _IMapStringWinRTFlagsEnum extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1181,7 +1174,7 @@ final class _IMapStringWinRTFlagsEnum extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -1191,8 +1184,8 @@ final class _IMapStringWinRTFlagsEnum extends IMap { .value .asFunction< int Function(VTablePointer lpVtbl, int key, int value, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, - key.toHString(), (value as WinRTEnum).value, retValuePtr); + Pointer retValuePtr)>()( + lpVtbl, key.toHString(), (value as WinRTEnum).value, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1204,7 +1197,7 @@ final class _IMapStringWinRTFlagsEnum extends IMap { @override void remove(String key) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -1212,7 +1205,7 @@ final class _IMapStringWinRTFlagsEnum extends IMap { HRESULT Function(VTablePointer lpVtbl, IntPtr key)>>>() .value .asFunction()( - ptr.ref.lpVtbl, key.toHString()); + lpVtbl, key.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -1229,18 +1222,17 @@ final class _IMapUint8Inspectable extends IMap { V lookup(int key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint8 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint8 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -1260,18 +1252,17 @@ final class _IMapUint8Inspectable extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint8 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint8 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1287,7 +1278,7 @@ final class _IMapUint8Inspectable extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -1301,7 +1292,7 @@ final class _IMapUint8Inspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); + lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1313,15 +1304,14 @@ final class _IMapUint8Inspectable extends IMap { @override void remove(int key) { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint8 key)>>>() - .value - .asFunction()( - ptr.ref.lpVtbl, key); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint8 key)>>>() + .value + .asFunction()(lpVtbl, key); if (FAILED(hr)) throwWindowsException(hr); } @@ -1338,18 +1328,17 @@ final class _IMapUint16Inspectable extends IMap { V lookup(int key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint16 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint16 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -1369,18 +1358,17 @@ final class _IMapUint16Inspectable extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint16 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint16 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1396,7 +1384,7 @@ final class _IMapUint16Inspectable extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -1410,7 +1398,7 @@ final class _IMapUint16Inspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); + lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1422,15 +1410,14 @@ final class _IMapUint16Inspectable extends IMap { @override void remove(int key) { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint16 key)>>>() - .value - .asFunction()( - ptr.ref.lpVtbl, key); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint16 key)>>>() + .value + .asFunction()(lpVtbl, key); if (FAILED(hr)) throwWindowsException(hr); } @@ -1447,18 +1434,17 @@ final class _IMapUint32Inspectable extends IMap { V lookup(int key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -1478,18 +1464,17 @@ final class _IMapUint32Inspectable extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1505,7 +1490,7 @@ final class _IMapUint32Inspectable extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -1519,7 +1504,7 @@ final class _IMapUint32Inspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); + lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1531,15 +1516,14 @@ final class _IMapUint32Inspectable extends IMap { @override void remove(int key) { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 key)>>>() - .value - .asFunction()( - ptr.ref.lpVtbl, key); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 key)>>>() + .value + .asFunction()(lpVtbl, key); if (FAILED(hr)) throwWindowsException(hr); } @@ -1556,18 +1540,17 @@ final class _IMapUint64Inspectable extends IMap { V lookup(int key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint64 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint64 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -1587,18 +1570,17 @@ final class _IMapUint64Inspectable extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint64 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint64 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1614,7 +1596,7 @@ final class _IMapUint64Inspectable extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -1628,7 +1610,7 @@ final class _IMapUint64Inspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); + lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1640,15 +1622,14 @@ final class _IMapUint64Inspectable extends IMap { @override void remove(int key) { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint64 key)>>>() - .value - .asFunction()( - ptr.ref.lpVtbl, key); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint64 key)>>>() + .value + .asFunction()(lpVtbl, key); if (FAILED(hr)) throwWindowsException(hr); } @@ -1663,7 +1644,7 @@ final class _IMapUriString extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -1676,7 +1657,7 @@ final class _IMapUriString extends IMap { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toWinRTUri().lpVtbl, retValuePtr); + lpVtbl, key.toWinRTUri().lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1691,7 +1672,7 @@ final class _IMapUriString extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -1702,7 +1683,7 @@ final class _IMapUriString extends IMap { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toWinRTUri().lpVtbl, retValuePtr); + lpVtbl, key.toWinRTUri().lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1718,7 +1699,7 @@ final class _IMapUriString extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -1732,10 +1713,7 @@ final class _IMapUriString extends IMap { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer key, int value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, - key.toWinRTUri().lpVtbl, - value.toHString(), - retValuePtr); + lpVtbl, key.toWinRTUri().lpVtbl, value.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1747,7 +1725,7 @@ final class _IMapUriString extends IMap { @override void remove(Uri key) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -1757,7 +1735,7 @@ final class _IMapUriString extends IMap { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer key)>()( - ptr.ref.lpVtbl, key.toWinRTUri().lpVtbl); + lpVtbl, key.toWinRTUri().lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -1777,7 +1755,7 @@ final class _IMapWinRTEnumInspectable extends IMap { V lookup(K key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1788,7 +1766,7 @@ final class _IMapWinRTEnumInspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, (key as WinRTEnum).value, retValuePtr); + lpVtbl, (key as WinRTEnum).value, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -1808,7 +1786,7 @@ final class _IMapWinRTEnumInspectable extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -1819,7 +1797,7 @@ final class _IMapWinRTEnumInspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, (key as WinRTEnum).value, retValuePtr); + lpVtbl, (key as WinRTEnum).value, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1835,7 +1813,7 @@ final class _IMapWinRTEnumInspectable extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -1849,7 +1827,7 @@ final class _IMapWinRTEnumInspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, + lpVtbl, (key as WinRTEnum).value, (value as IInspectable).lpVtbl, retValuePtr); @@ -1864,7 +1842,7 @@ final class _IMapWinRTEnumInspectable extends IMap { @override void remove(K key) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -1872,7 +1850,7 @@ final class _IMapWinRTEnumInspectable extends IMap { HRESULT Function(VTablePointer lpVtbl, Int32 key)>>>() .value .asFunction()( - ptr.ref.lpVtbl, (key as WinRTEnum).value); + lpVtbl, (key as WinRTEnum).value); if (FAILED(hr)) throwWindowsException(hr); } @@ -1892,7 +1870,7 @@ final class _IMapWinRTFlagsEnumInspectable extends IMap { V lookup(K key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1903,7 +1881,7 @@ final class _IMapWinRTFlagsEnumInspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, (key as WinRTEnum).value, retValuePtr); + lpVtbl, (key as WinRTEnum).value, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -1923,7 +1901,7 @@ final class _IMapWinRTFlagsEnumInspectable extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -1934,7 +1912,7 @@ final class _IMapWinRTFlagsEnumInspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, (key as WinRTEnum).value, retValuePtr); + lpVtbl, (key as WinRTEnum).value, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1950,7 +1928,7 @@ final class _IMapWinRTFlagsEnumInspectable extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -1964,7 +1942,7 @@ final class _IMapWinRTFlagsEnumInspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, + lpVtbl, (key as WinRTEnum).value, (value as IInspectable).lpVtbl, retValuePtr); @@ -1979,7 +1957,7 @@ final class _IMapWinRTFlagsEnumInspectable extends IMap { @override void remove(K key) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -1987,7 +1965,7 @@ final class _IMapWinRTFlagsEnumInspectable extends IMap { HRESULT Function(VTablePointer lpVtbl, Uint32 key)>>>() .value .asFunction()( - ptr.ref.lpVtbl, (key as WinRTEnum).value); + lpVtbl, (key as WinRTEnum).value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_foundation/lib/src/collections/imapview.dart b/packages/windows_foundation/lib/src/collections/imapview.dart index a1bb0300..90943281 100644 --- a/packages/windows_foundation/lib/src/collections/imapview.dart +++ b/packages/windows_foundation/lib/src/collections/imapview.dart @@ -183,7 +183,7 @@ abstract interface class IMapView extends IInspectable final retValuePtr = calloc(); try { - final hr = ptr.ref.lpVtbl.value + final hr = vtable .elementAt(7) .cast< Pointer< @@ -193,7 +193,7 @@ abstract interface class IMapView extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -211,7 +211,7 @@ abstract interface class IMapView extends IInspectable final first = calloc(); final second = calloc(); - final hr = ptr.ref.lpVtbl.value + final hr = vtable .elementAt(9) .cast< Pointer< @@ -223,7 +223,7 @@ abstract interface class IMapView extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer first, - Pointer second)>()(ptr.ref.lpVtbl, first, second); + Pointer second)>()(lpVtbl, first, second); if (FAILED(hr)) { free(first); diff --git a/packages/windows_foundation/lib/src/collections/imapview_part.dart b/packages/windows_foundation/lib/src/collections/imapview_part.dart index b1da9da4..d6f365c4 100644 --- a/packages/windows_foundation/lib/src/collections/imapview_part.dart +++ b/packages/windows_foundation/lib/src/collections/imapview_part.dart @@ -21,7 +21,7 @@ final class _IMapViewGuidInspectable extends IMapView { final retValuePtr = calloc(); final keyNativeStructPtr = key.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -32,7 +32,7 @@ final class _IMapViewGuidInspectable extends IMapView { .asFunction< int Function(VTablePointer lpVtbl, GUID key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, keyNativeStructPtr.ref, retValuePtr); + lpVtbl, keyNativeStructPtr.ref, retValuePtr); free(keyNativeStructPtr); @@ -56,7 +56,7 @@ final class _IMapViewGuidInspectable extends IMapView { try { final keyNativeStructPtr = key.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -67,7 +67,7 @@ final class _IMapViewGuidInspectable extends IMapView { .asFunction< int Function(VTablePointer lpVtbl, GUID key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, keyNativeStructPtr.ref, retValuePtr); + lpVtbl, keyNativeStructPtr.ref, retValuePtr); free(keyNativeStructPtr); @@ -88,7 +88,7 @@ final class _IMapViewGuidObject extends IMapView { final retValuePtr = calloc(); final keyNativeStructPtr = key.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -99,7 +99,7 @@ final class _IMapViewGuidObject extends IMapView { .asFunction< int Function(VTablePointer lpVtbl, GUID key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, keyNativeStructPtr.ref, retValuePtr); + lpVtbl, keyNativeStructPtr.ref, retValuePtr); free(keyNativeStructPtr); @@ -123,7 +123,7 @@ final class _IMapViewGuidObject extends IMapView { try { final keyNativeStructPtr = key.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -134,7 +134,7 @@ final class _IMapViewGuidObject extends IMapView { .asFunction< int Function(VTablePointer lpVtbl, GUID key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, keyNativeStructPtr.ref, retValuePtr); + lpVtbl, keyNativeStructPtr.ref, retValuePtr); free(keyNativeStructPtr); @@ -158,18 +158,17 @@ final class _IMapViewInt16Inspectable extends IMapView { V lookup(int key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int16 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int16 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -189,18 +188,17 @@ final class _IMapViewInt16Inspectable extends IMapView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int16 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int16 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -222,18 +220,17 @@ final class _IMapViewInt32Inspectable extends IMapView { V lookup(int key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -253,18 +250,17 @@ final class _IMapViewInt32Inspectable extends IMapView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -286,18 +282,17 @@ final class _IMapViewInt64Inspectable extends IMapView { V lookup(int key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int64 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int64 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -317,18 +312,17 @@ final class _IMapViewInt64Inspectable extends IMapView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int64 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int64 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -347,7 +341,7 @@ final class _IMapViewObjectObject extends IMapView { final retValuePtr = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -360,7 +354,7 @@ final class _IMapViewObjectObject extends IMapView { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.boxValue().lpVtbl, retValuePtr); + lpVtbl, key.boxValue().lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -380,18 +374,20 @@ final class _IMapViewObjectObject extends IMapView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, VTablePointer key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.boxValue().lpVtbl, retValuePtr); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, VTablePointer key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, + VTablePointer key, + Pointer + retValuePtr)>()(lpVtbl, key.boxValue().lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -413,7 +409,7 @@ final class _IMapViewStringInspectable extends IMapView { V lookup(String key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -424,7 +420,7 @@ final class _IMapViewStringInspectable extends IMapView { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -444,7 +440,7 @@ final class _IMapViewStringInspectable extends IMapView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -455,7 +451,7 @@ final class _IMapViewStringInspectable extends IMapView { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -473,7 +469,7 @@ final class _IMapViewStringObject extends IMapView { Object? lookup(String key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -484,7 +480,7 @@ final class _IMapViewStringObject extends IMapView { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -504,7 +500,7 @@ final class _IMapViewStringObject extends IMapView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -515,7 +511,7 @@ final class _IMapViewStringObject extends IMapView { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -534,7 +530,7 @@ final class _IMapViewStringString extends IMapView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -545,7 +541,7 @@ final class _IMapViewStringString extends IMapView { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -560,7 +556,7 @@ final class _IMapViewStringString extends IMapView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -571,7 +567,7 @@ final class _IMapViewStringString extends IMapView { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -594,7 +590,7 @@ final class _IMapViewStringWinRTEnum extends IMapView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -605,7 +601,7 @@ final class _IMapViewStringWinRTEnum extends IMapView { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -620,7 +616,7 @@ final class _IMapViewStringWinRTEnum extends IMapView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -631,7 +627,7 @@ final class _IMapViewStringWinRTEnum extends IMapView { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -654,7 +650,7 @@ final class _IMapViewStringWinRTFlagsEnum extends IMapView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -665,7 +661,7 @@ final class _IMapViewStringWinRTFlagsEnum extends IMapView { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -680,7 +676,7 @@ final class _IMapViewStringWinRTFlagsEnum extends IMapView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -691,7 +687,7 @@ final class _IMapViewStringWinRTFlagsEnum extends IMapView { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -713,18 +709,17 @@ final class _IMapViewUint8Inspectable extends IMapView { V lookup(int key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint8 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint8 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -744,18 +739,17 @@ final class _IMapViewUint8Inspectable extends IMapView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint8 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint8 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -777,18 +771,17 @@ final class _IMapViewUint16Inspectable extends IMapView { V lookup(int key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint16 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint16 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -808,18 +801,17 @@ final class _IMapViewUint16Inspectable extends IMapView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint16 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint16 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -841,18 +833,17 @@ final class _IMapViewUint32Inspectable extends IMapView { V lookup(int key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -872,18 +863,17 @@ final class _IMapViewUint32Inspectable extends IMapView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -905,18 +895,17 @@ final class _IMapViewUint64Inspectable extends IMapView { V lookup(int key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint64 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint64 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -936,18 +925,17 @@ final class _IMapViewUint64Inspectable extends IMapView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint64 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint64 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -967,7 +955,7 @@ final class _IMapViewUriString extends IMapView { try { final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -980,7 +968,7 @@ final class _IMapViewUriString extends IMapView { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toWinRTUri().lpVtbl, retValuePtr); + lpVtbl, key.toWinRTUri().lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -995,7 +983,7 @@ final class _IMapViewUriString extends IMapView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -1006,7 +994,7 @@ final class _IMapViewUriString extends IMapView { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toWinRTUri().lpVtbl, retValuePtr); + lpVtbl, key.toWinRTUri().lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1031,7 +1019,7 @@ final class _IMapViewWinRTEnumInspectable extends IMapView { V lookup(K key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1042,7 +1030,7 @@ final class _IMapViewWinRTEnumInspectable extends IMapView { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, (key as WinRTEnum).value, retValuePtr); + lpVtbl, (key as WinRTEnum).value, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -1062,7 +1050,7 @@ final class _IMapViewWinRTEnumInspectable extends IMapView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -1073,7 +1061,7 @@ final class _IMapViewWinRTEnumInspectable extends IMapView { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, (key as WinRTEnum).value, retValuePtr); + lpVtbl, (key as WinRTEnum).value, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1098,7 +1086,7 @@ final class _IMapViewWinRTFlagsEnumInspectable extends IMapView { V lookup(K key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1109,7 +1097,7 @@ final class _IMapViewWinRTFlagsEnumInspectable extends IMapView { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, (key as WinRTEnum).value, retValuePtr); + lpVtbl, (key as WinRTEnum).value, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -1129,7 +1117,7 @@ final class _IMapViewWinRTFlagsEnumInspectable extends IMapView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -1140,7 +1128,7 @@ final class _IMapViewWinRTFlagsEnumInspectable extends IMapView { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, (key as WinRTEnum).value, retValuePtr); + lpVtbl, (key as WinRTEnum).value, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_foundation/lib/src/collections/iobservablemap.dart b/packages/windows_foundation/lib/src/collections/iobservablemap.dart index da79060c..0d5046ba 100644 --- a/packages/windows_foundation/lib/src/collections/iobservablemap.dart +++ b/packages/windows_foundation/lib/src/collections/iobservablemap.dart @@ -22,7 +22,7 @@ interface class IObservableMap extends IInspectable { try { final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -35,7 +35,7 @@ interface class IObservableMap extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer vhnd, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, vhnd.ref.lpVtbl, retValuePtr); + lpVtbl, vhnd.ref.lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -47,7 +47,7 @@ interface class IObservableMap extends IInspectable { void remove_MapChanged(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -56,7 +56,7 @@ interface class IObservableMap extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_foundation/lib/src/collections/ivector.dart b/packages/windows_foundation/lib/src/collections/ivector.dart index 8bac2d22..d73d34ce 100644 --- a/packages/windows_foundation/lib/src/collections/ivector.dart +++ b/packages/windows_foundation/lib/src/collections/ivector.dart @@ -268,7 +268,7 @@ abstract interface class IVector extends IInspectable final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -278,7 +278,7 @@ abstract interface class IVector extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -292,7 +292,7 @@ abstract interface class IVector extends IInspectable List getView() { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -302,7 +302,7 @@ abstract interface class IVector extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -331,15 +331,14 @@ abstract interface class IVector extends IInspectable /// Removes the item at the specified index in the vector. void removeAt(int index) { - final hr = ptr.ref.vtable - .elementAt(12) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32)>>>() - .value - .asFunction()( - ptr.ref.lpVtbl, index); + final hr = vtable + .elementAt(12) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32)>>>() + .value + .asFunction()(lpVtbl, index); if (FAILED(hr)) throwWindowsException(hr); } @@ -349,22 +348,22 @@ abstract interface class IVector extends IInspectable /// Removes the last item from the vector. void removeAtEnd() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } /// Removes all items from the vector. void clear() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_foundation/lib/src/collections/ivector_part.dart b/packages/windows_foundation/lib/src/collections/ivector_part.dart index aa5e62c0..58d681d3 100644 --- a/packages/windows_foundation/lib/src/collections/ivector_part.dart +++ b/packages/windows_foundation/lib/src/collections/ivector_part.dart @@ -17,7 +17,7 @@ final class _IVectorAccessListEntry extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -28,7 +28,7 @@ final class _IVectorAccessListEntry extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -45,7 +45,7 @@ final class _IVectorAccessListEntry extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -62,7 +62,7 @@ final class _IVectorAccessListEntry extends IVector { NativeAccessListEntry value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -78,7 +78,7 @@ final class _IVectorAccessListEntry extends IVector { void setAt(int index, AccessListEntry value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -89,7 +89,7 @@ final class _IVectorAccessListEntry extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativeAccessListEntry value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -100,7 +100,7 @@ final class _IVectorAccessListEntry extends IVector { void insertAt(int index, AccessListEntry value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -111,7 +111,7 @@ final class _IVectorAccessListEntry extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativeAccessListEntry value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -122,7 +122,7 @@ final class _IVectorAccessListEntry extends IVector { void append(AccessListEntry value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -133,7 +133,7 @@ final class _IVectorAccessListEntry extends IVector { .asFunction< int Function( VTablePointer lpVtbl, NativeAccessListEntry value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -146,7 +146,7 @@ final class _IVectorAccessListEntry extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -165,7 +165,7 @@ final class _IVectorAccessListEntry extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -184,7 +184,7 @@ final class _IVectorAccessListEntry extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -195,7 +195,7 @@ final class _IVectorAccessListEntry extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -213,7 +213,7 @@ final class _IVectorBackgroundTransferFileRange final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -229,7 +229,7 @@ final class _IVectorBackgroundTransferFileRange VTablePointer lpVtbl, int index, Pointer - retValuePtr)>()(ptr.ref.lpVtbl, index, retValuePtr); + retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -246,7 +246,7 @@ final class _IVectorBackgroundTransferFileRange final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -263,7 +263,7 @@ final class _IVectorBackgroundTransferFileRange NativeBackgroundTransferFileRange value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -279,7 +279,7 @@ final class _IVectorBackgroundTransferFileRange void setAt(int index, BackgroundTransferFileRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -290,7 +290,7 @@ final class _IVectorBackgroundTransferFileRange .asFunction< int Function(VTablePointer lpVtbl, int index, NativeBackgroundTransferFileRange value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -301,7 +301,7 @@ final class _IVectorBackgroundTransferFileRange void insertAt(int index, BackgroundTransferFileRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -312,7 +312,7 @@ final class _IVectorBackgroundTransferFileRange .asFunction< int Function(VTablePointer lpVtbl, int index, NativeBackgroundTransferFileRange value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -323,7 +323,7 @@ final class _IVectorBackgroundTransferFileRange void append(BackgroundTransferFileRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -334,7 +334,7 @@ final class _IVectorBackgroundTransferFileRange .asFunction< int Function(VTablePointer lpVtbl, NativeBackgroundTransferFileRange value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -348,7 +348,7 @@ final class _IVectorBackgroundTransferFileRange final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -367,7 +367,7 @@ final class _IVectorBackgroundTransferFileRange int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -386,7 +386,7 @@ final class _IVectorBackgroundTransferFileRange final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -399,7 +399,7 @@ final class _IVectorBackgroundTransferFileRange VTablePointer lpVtbl, int itemsSize, Pointer - items)>()(ptr.ref.lpVtbl, items.length, itemsArray); + items)>()(lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -415,7 +415,7 @@ final class _IVectorBasicGeoposition extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -426,7 +426,7 @@ final class _IVectorBasicGeoposition extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -443,7 +443,7 @@ final class _IVectorBasicGeoposition extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -460,7 +460,7 @@ final class _IVectorBasicGeoposition extends IVector { NativeBasicGeoposition value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -476,7 +476,7 @@ final class _IVectorBasicGeoposition extends IVector { void setAt(int index, BasicGeoposition value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -487,7 +487,7 @@ final class _IVectorBasicGeoposition extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativeBasicGeoposition value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -498,7 +498,7 @@ final class _IVectorBasicGeoposition extends IVector { void insertAt(int index, BasicGeoposition value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -509,7 +509,7 @@ final class _IVectorBasicGeoposition extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativeBasicGeoposition value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -520,7 +520,7 @@ final class _IVectorBasicGeoposition extends IVector { void append(BasicGeoposition value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -531,7 +531,7 @@ final class _IVectorBasicGeoposition extends IVector { .asFunction< int Function( VTablePointer lpVtbl, NativeBasicGeoposition value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -544,7 +544,7 @@ final class _IVectorBasicGeoposition extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -563,7 +563,7 @@ final class _IVectorBasicGeoposition extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -582,7 +582,7 @@ final class _IVectorBasicGeoposition extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -593,7 +593,7 @@ final class _IVectorBasicGeoposition extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -609,18 +609,17 @@ final class _IVectorBool extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -637,7 +636,7 @@ final class _IVectorBool extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -651,7 +650,7 @@ final class _IVectorBool extends IVector { .asFunction< int Function(VTablePointer lpVtbl, bool value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -664,7 +663,7 @@ final class _IVectorBool extends IVector { @override void setAt(int index, bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -674,14 +673,14 @@ final class _IVectorBool extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, bool value)>()( - ptr.ref.lpVtbl, index, value); + lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -691,14 +690,14 @@ final class _IVectorBool extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, bool value)>()( - ptr.ref.lpVtbl, index, value); + lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void append(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -706,7 +705,7 @@ final class _IVectorBool extends IVector { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -717,7 +716,7 @@ final class _IVectorBool extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -736,7 +735,7 @@ final class _IVectorBool extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -754,18 +753,17 @@ final class _IVectorBool extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); @@ -781,7 +779,7 @@ final class _IVectorColor extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -792,7 +790,7 @@ final class _IVectorColor extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -810,7 +808,7 @@ final class _IVectorColor extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -824,7 +822,7 @@ final class _IVectorColor extends IVector { .asFunction< int Function(VTablePointer lpVtbl, NativeColor value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -840,18 +838,17 @@ final class _IVectorColor extends IVector { void setAt(int index, Color value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - NativeColor value)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, int index, NativeColor value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + NativeColor value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + NativeColor value)>()(lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -862,18 +859,17 @@ final class _IVectorColor extends IVector { void insertAt(int index, Color value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - NativeColor value)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, int index, NativeColor value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + NativeColor value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + NativeColor value)>()(lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -884,7 +880,7 @@ final class _IVectorColor extends IVector { void append(Color value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -894,7 +890,7 @@ final class _IVectorColor extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, NativeColor value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -907,7 +903,7 @@ final class _IVectorColor extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -926,7 +922,7 @@ final class _IVectorColor extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -945,7 +941,7 @@ final class _IVectorColor extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -956,7 +952,7 @@ final class _IVectorColor extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -972,18 +968,17 @@ final class _IVectorDateTime extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1000,7 +995,7 @@ final class _IVectorDateTime extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -1014,7 +1009,7 @@ final class _IVectorDateTime extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value.toWinRTDateTime(), index, retValuePtr); + lpVtbl, value.toWinRTDateTime(), index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1027,7 +1022,7 @@ final class _IVectorDateTime extends IVector { @override void setAt(int index, DateTime value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -1037,14 +1032,14 @@ final class _IVectorDateTime extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value.toWinRTDateTime()); + int value)>()(lpVtbl, index, value.toWinRTDateTime()); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, DateTime value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -1054,14 +1049,14 @@ final class _IVectorDateTime extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value.toWinRTDateTime()); + int value)>()(lpVtbl, index, value.toWinRTDateTime()); if (FAILED(hr)) throwWindowsException(hr); } @override void append(DateTime value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -1069,7 +1064,7 @@ final class _IVectorDateTime extends IVector { HRESULT Function(VTablePointer lpVtbl, Int64 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toWinRTDateTime()); + lpVtbl, value.toWinRTDateTime()); if (FAILED(hr)) throwWindowsException(hr); } @@ -1080,7 +1075,7 @@ final class _IVectorDateTime extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -1099,7 +1094,7 @@ final class _IVectorDateTime extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1117,18 +1112,17 @@ final class _IVectorDateTime extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); @@ -1145,18 +1139,17 @@ final class _IVectorDouble extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1173,7 +1166,7 @@ final class _IVectorDouble extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -1187,7 +1180,7 @@ final class _IVectorDouble extends IVector { .asFunction< int Function(VTablePointer lpVtbl, double value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1200,7 +1193,7 @@ final class _IVectorDouble extends IVector { @override void setAt(int index, double value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -1210,14 +1203,14 @@ final class _IVectorDouble extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - double value)>()(ptr.ref.lpVtbl, index, value); + double value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, double value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -1227,7 +1220,7 @@ final class _IVectorDouble extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - double value)>()(ptr.ref.lpVtbl, index, value); + double value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -1235,7 +1228,7 @@ final class _IVectorDouble extends IVector { @override void append(double value) { final hr = - ptr.ref.vtable + vtable .elementAt(13) .cast< Pointer< @@ -1244,7 +1237,7 @@ final class _IVectorDouble extends IVector { VTablePointer lpVtbl, Double value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -1255,7 +1248,7 @@ final class _IVectorDouble extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -1274,7 +1267,7 @@ final class _IVectorDouble extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1292,18 +1285,17 @@ final class _IVectorDouble extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); @@ -1319,18 +1311,17 @@ final class _IVectorDuration extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1347,7 +1338,7 @@ final class _IVectorDuration extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -1361,7 +1352,7 @@ final class _IVectorDuration extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value.toWinRTDuration(), index, retValuePtr); + lpVtbl, value.toWinRTDuration(), index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1374,7 +1365,7 @@ final class _IVectorDuration extends IVector { @override void setAt(int index, Duration value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -1384,14 +1375,14 @@ final class _IVectorDuration extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value.toWinRTDuration()); + int value)>()(lpVtbl, index, value.toWinRTDuration()); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, Duration value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -1401,14 +1392,14 @@ final class _IVectorDuration extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value.toWinRTDuration()); + int value)>()(lpVtbl, index, value.toWinRTDuration()); if (FAILED(hr)) throwWindowsException(hr); } @override void append(Duration value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -1416,7 +1407,7 @@ final class _IVectorDuration extends IVector { HRESULT Function(VTablePointer lpVtbl, Int64 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toWinRTDuration()); + lpVtbl, value.toWinRTDuration()); if (FAILED(hr)) throwWindowsException(hr); } @@ -1427,7 +1418,7 @@ final class _IVectorDuration extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -1446,7 +1437,7 @@ final class _IVectorDuration extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1464,18 +1455,17 @@ final class _IVectorDuration extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); @@ -1492,18 +1482,17 @@ final class _IVectorFloat extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1520,7 +1509,7 @@ final class _IVectorFloat extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -1534,7 +1523,7 @@ final class _IVectorFloat extends IVector { .asFunction< int Function(VTablePointer lpVtbl, double value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1547,7 +1536,7 @@ final class _IVectorFloat extends IVector { @override void setAt(int index, double value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -1557,14 +1546,14 @@ final class _IVectorFloat extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - double value)>()(ptr.ref.lpVtbl, index, value); + double value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, double value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -1574,14 +1563,14 @@ final class _IVectorFloat extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - double value)>()(ptr.ref.lpVtbl, index, value); + double value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void append(double value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -1589,7 +1578,7 @@ final class _IVectorFloat extends IVector { HRESULT Function(VTablePointer lpVtbl, Float value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -1600,7 +1589,7 @@ final class _IVectorFloat extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -1619,7 +1608,7 @@ final class _IVectorFloat extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1637,18 +1626,17 @@ final class _IVectorFloat extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); @@ -1664,7 +1652,7 @@ final class _IVectorGpioChangeRecord extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1675,7 +1663,7 @@ final class _IVectorGpioChangeRecord extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1692,7 +1680,7 @@ final class _IVectorGpioChangeRecord extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1709,7 +1697,7 @@ final class _IVectorGpioChangeRecord extends IVector { NativeGpioChangeRecord value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1725,7 +1713,7 @@ final class _IVectorGpioChangeRecord extends IVector { void setAt(int index, GpioChangeRecord value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -1736,7 +1724,7 @@ final class _IVectorGpioChangeRecord extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativeGpioChangeRecord value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -1747,7 +1735,7 @@ final class _IVectorGpioChangeRecord extends IVector { void insertAt(int index, GpioChangeRecord value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -1758,7 +1746,7 @@ final class _IVectorGpioChangeRecord extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativeGpioChangeRecord value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -1769,7 +1757,7 @@ final class _IVectorGpioChangeRecord extends IVector { void append(GpioChangeRecord value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -1780,7 +1768,7 @@ final class _IVectorGpioChangeRecord extends IVector { .asFunction< int Function( VTablePointer lpVtbl, NativeGpioChangeRecord value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -1793,7 +1781,7 @@ final class _IVectorGpioChangeRecord extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -1812,7 +1800,7 @@ final class _IVectorGpioChangeRecord extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1831,7 +1819,7 @@ final class _IVectorGpioChangeRecord extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -1842,7 +1830,7 @@ final class _IVectorGpioChangeRecord extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -1858,18 +1846,17 @@ final class _IVectorGuid extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1887,7 +1874,7 @@ final class _IVectorGuid extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -1901,7 +1888,7 @@ final class _IVectorGuid extends IVector { .asFunction< int Function(VTablePointer lpVtbl, GUID value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1917,7 +1904,7 @@ final class _IVectorGuid extends IVector { void setAt(int index, Guid value) { final valueNativeStructPtr = value.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -1927,7 +1914,7 @@ final class _IVectorGuid extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, GUID value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -1938,7 +1925,7 @@ final class _IVectorGuid extends IVector { void insertAt(int index, Guid value) { final valueNativeStructPtr = value.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -1948,7 +1935,7 @@ final class _IVectorGuid extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, GUID value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -1959,7 +1946,7 @@ final class _IVectorGuid extends IVector { void append(Guid value) { final valueNativeStructPtr = value.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -1967,7 +1954,7 @@ final class _IVectorGuid extends IVector { HRESULT Function(VTablePointer lpVtbl, GUID value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -1980,7 +1967,7 @@ final class _IVectorGuid extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -1999,7 +1986,7 @@ final class _IVectorGuid extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2018,18 +2005,17 @@ final class _IVectorGuid extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -2045,18 +2031,17 @@ final class _IVectorInt16 extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2073,7 +2058,7 @@ final class _IVectorInt16 extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -2087,7 +2072,7 @@ final class _IVectorInt16 extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2100,7 +2085,7 @@ final class _IVectorInt16 extends IVector { @override void setAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -2110,14 +2095,14 @@ final class _IVectorInt16 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -2127,14 +2112,14 @@ final class _IVectorInt16 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void append(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -2142,7 +2127,7 @@ final class _IVectorInt16 extends IVector { HRESULT Function(VTablePointer lpVtbl, Int16 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -2153,7 +2138,7 @@ final class _IVectorInt16 extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -2172,7 +2157,7 @@ final class _IVectorInt16 extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2190,18 +2175,17 @@ final class _IVectorInt16 extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); @@ -2217,18 +2201,17 @@ final class _IVectorInt32 extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2245,7 +2228,7 @@ final class _IVectorInt32 extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -2259,7 +2242,7 @@ final class _IVectorInt32 extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2272,7 +2255,7 @@ final class _IVectorInt32 extends IVector { @override void setAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -2282,14 +2265,14 @@ final class _IVectorInt32 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -2299,14 +2282,14 @@ final class _IVectorInt32 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void append(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -2314,7 +2297,7 @@ final class _IVectorInt32 extends IVector { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -2325,7 +2308,7 @@ final class _IVectorInt32 extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -2344,7 +2327,7 @@ final class _IVectorInt32 extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2362,18 +2345,17 @@ final class _IVectorInt32 extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); @@ -2389,18 +2371,17 @@ final class _IVectorInt64 extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2417,7 +2398,7 @@ final class _IVectorInt64 extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -2431,7 +2412,7 @@ final class _IVectorInt64 extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2444,7 +2425,7 @@ final class _IVectorInt64 extends IVector { @override void setAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -2454,14 +2435,14 @@ final class _IVectorInt64 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -2471,14 +2452,14 @@ final class _IVectorInt64 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void append(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -2486,7 +2467,7 @@ final class _IVectorInt64 extends IVector { HRESULT Function(VTablePointer lpVtbl, Int64 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -2497,7 +2478,7 @@ final class _IVectorInt64 extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -2516,7 +2497,7 @@ final class _IVectorInt64 extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2534,18 +2515,17 @@ final class _IVectorInt64 extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); @@ -2561,7 +2541,7 @@ final class _IVectorMediaTimeRange extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -2572,7 +2552,7 @@ final class _IVectorMediaTimeRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2589,7 +2569,7 @@ final class _IVectorMediaTimeRange extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -2603,7 +2583,7 @@ final class _IVectorMediaTimeRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, NativeMediaTimeRange value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2619,7 +2599,7 @@ final class _IVectorMediaTimeRange extends IVector { void setAt(int index, MediaTimeRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -2630,7 +2610,7 @@ final class _IVectorMediaTimeRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativeMediaTimeRange value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -2641,7 +2621,7 @@ final class _IVectorMediaTimeRange extends IVector { void insertAt(int index, MediaTimeRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -2652,7 +2632,7 @@ final class _IVectorMediaTimeRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativeMediaTimeRange value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -2663,7 +2643,7 @@ final class _IVectorMediaTimeRange extends IVector { void append(MediaTimeRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -2674,7 +2654,7 @@ final class _IVectorMediaTimeRange extends IVector { .asFunction< int Function( VTablePointer lpVtbl, NativeMediaTimeRange value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -2687,7 +2667,7 @@ final class _IVectorMediaTimeRange extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -2706,7 +2686,7 @@ final class _IVectorMediaTimeRange extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2725,7 +2705,7 @@ final class _IVectorMediaTimeRange extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -2736,7 +2716,7 @@ final class _IVectorMediaTimeRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -2752,7 +2732,7 @@ final class _IVectorMseTimeRange extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -2763,7 +2743,7 @@ final class _IVectorMseTimeRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2780,7 +2760,7 @@ final class _IVectorMseTimeRange extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -2794,7 +2774,7 @@ final class _IVectorMseTimeRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, NativeMseTimeRange value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2810,7 +2790,7 @@ final class _IVectorMseTimeRange extends IVector { void setAt(int index, MseTimeRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -2821,7 +2801,7 @@ final class _IVectorMseTimeRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativeMseTimeRange value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -2832,7 +2812,7 @@ final class _IVectorMseTimeRange extends IVector { void insertAt(int index, MseTimeRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -2843,7 +2823,7 @@ final class _IVectorMseTimeRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativeMseTimeRange value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -2854,7 +2834,7 @@ final class _IVectorMseTimeRange extends IVector { void append(MseTimeRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -2864,7 +2844,7 @@ final class _IVectorMseTimeRange extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, NativeMseTimeRange value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -2877,7 +2857,7 @@ final class _IVectorMseTimeRange extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -2896,7 +2876,7 @@ final class _IVectorMseTimeRange extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2915,7 +2895,7 @@ final class _IVectorMseTimeRange extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -2926,7 +2906,7 @@ final class _IVectorMseTimeRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -2942,7 +2922,7 @@ final class _IVectorNitRange extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -2953,7 +2933,7 @@ final class _IVectorNitRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2970,7 +2950,7 @@ final class _IVectorNitRange extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -2984,7 +2964,7 @@ final class _IVectorNitRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, NativeNitRange value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3000,7 +2980,7 @@ final class _IVectorNitRange extends IVector { void setAt(int index, NitRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -3011,7 +2991,7 @@ final class _IVectorNitRange extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, NativeNitRange value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -3022,7 +3002,7 @@ final class _IVectorNitRange extends IVector { void insertAt(int index, NitRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -3033,7 +3013,7 @@ final class _IVectorNitRange extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, NativeNitRange value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -3044,7 +3024,7 @@ final class _IVectorNitRange extends IVector { void append(NitRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -3054,7 +3034,7 @@ final class _IVectorNitRange extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, NativeNitRange value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -3067,7 +3047,7 @@ final class _IVectorNitRange extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -3086,7 +3066,7 @@ final class _IVectorNitRange extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3105,7 +3085,7 @@ final class _IVectorNitRange extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -3116,7 +3096,7 @@ final class _IVectorNitRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -3135,18 +3115,17 @@ final class _IVectorInspectable extends IVector { T getAt(int index) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -3167,7 +3146,7 @@ final class _IVectorInspectable extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -3181,7 +3160,7 @@ final class _IVectorInspectable extends IVector { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, (value as IInspectable).lpVtbl, index, retValuePtr); + lpVtbl, (value as IInspectable).lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3194,7 +3173,7 @@ final class _IVectorInspectable extends IVector { @override void setAt(int index, T value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -3205,14 +3184,14 @@ final class _IVectorInspectable extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, VTablePointer value)>()( - ptr.ref.lpVtbl, index, (value as IInspectable).lpVtbl); + lpVtbl, index, (value as IInspectable).lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, T value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -3223,14 +3202,14 @@ final class _IVectorInspectable extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, VTablePointer value)>()( - ptr.ref.lpVtbl, index, (value as IInspectable).lpVtbl); + lpVtbl, index, (value as IInspectable).lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @override void append(T value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -3240,7 +3219,7 @@ final class _IVectorInspectable extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, (value as IInspectable).lpVtbl); + lpVtbl, (value as IInspectable).lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -3251,7 +3230,7 @@ final class _IVectorInspectable extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -3270,7 +3249,7 @@ final class _IVectorInspectable extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3288,7 +3267,7 @@ final class _IVectorInspectable extends IVector { void replaceAll(List items) { final itemsArray = items.cast().toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -3299,7 +3278,7 @@ final class _IVectorInspectable extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); free(itemsArray); @@ -3314,18 +3293,17 @@ final class _IVectorObject extends IVector { Object? getAt(int index) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -3346,7 +3324,7 @@ final class _IVectorObject extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -3360,10 +3338,7 @@ final class _IVectorObject extends IVector { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, - value?.boxValue().lpVtbl ?? nullptr, - index, - retValuePtr); + lpVtbl, value?.boxValue().lpVtbl ?? nullptr, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3376,7 +3351,7 @@ final class _IVectorObject extends IVector { @override void setAt(int index, Object? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -3387,14 +3362,14 @@ final class _IVectorObject extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, VTablePointer value)>()( - ptr.ref.lpVtbl, index, value?.boxValue().lpVtbl ?? nullptr); + lpVtbl, index, value?.boxValue().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, Object? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -3405,14 +3380,14 @@ final class _IVectorObject extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, VTablePointer value)>()( - ptr.ref.lpVtbl, index, value?.boxValue().lpVtbl ?? nullptr); + lpVtbl, index, value?.boxValue().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @override void append(Object? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -3422,7 +3397,7 @@ final class _IVectorObject extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.boxValue().lpVtbl ?? nullptr); + lpVtbl, value?.boxValue().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @@ -3433,7 +3408,7 @@ final class _IVectorObject extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -3452,7 +3427,7 @@ final class _IVectorObject extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3470,7 +3445,7 @@ final class _IVectorObject extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -3481,7 +3456,7 @@ final class _IVectorObject extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); free(itemsArray); @@ -3496,18 +3471,17 @@ final class _IVectorUri extends IVector { Uri? getAt(int index) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -3528,7 +3502,7 @@ final class _IVectorUri extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -3542,10 +3516,7 @@ final class _IVectorUri extends IVector { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, - value?.toWinRTUri().lpVtbl ?? nullptr, - index, - retValuePtr); + lpVtbl, value?.toWinRTUri().lpVtbl ?? nullptr, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3558,7 +3529,7 @@ final class _IVectorUri extends IVector { @override void setAt(int index, Uri? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -3569,14 +3540,14 @@ final class _IVectorUri extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, VTablePointer value)>()( - ptr.ref.lpVtbl, index, value?.toWinRTUri().lpVtbl ?? nullptr); + lpVtbl, index, value?.toWinRTUri().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, Uri? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -3587,14 +3558,14 @@ final class _IVectorUri extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, VTablePointer value)>()( - ptr.ref.lpVtbl, index, value?.toWinRTUri().lpVtbl ?? nullptr); + lpVtbl, index, value?.toWinRTUri().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @override void append(Uri? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -3604,7 +3575,7 @@ final class _IVectorUri extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toWinRTUri().lpVtbl ?? nullptr); + lpVtbl, value?.toWinRTUri().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @@ -3615,7 +3586,7 @@ final class _IVectorUri extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -3634,7 +3605,7 @@ final class _IVectorUri extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3652,7 +3623,7 @@ final class _IVectorUri extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -3663,7 +3634,7 @@ final class _IVectorUri extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); free(itemsArray); @@ -3679,7 +3650,7 @@ final class _IVectorPoint extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -3690,7 +3661,7 @@ final class _IVectorPoint extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3708,7 +3679,7 @@ final class _IVectorPoint extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -3722,7 +3693,7 @@ final class _IVectorPoint extends IVector { .asFunction< int Function(VTablePointer lpVtbl, NativePoint value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3738,18 +3709,17 @@ final class _IVectorPoint extends IVector { void setAt(int index, Point value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - NativePoint value)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, int index, NativePoint value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + NativePoint value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + NativePoint value)>()(lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -3760,18 +3730,17 @@ final class _IVectorPoint extends IVector { void insertAt(int index, Point value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - NativePoint value)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, int index, NativePoint value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + NativePoint value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + NativePoint value)>()(lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -3782,7 +3751,7 @@ final class _IVectorPoint extends IVector { void append(Point value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -3792,7 +3761,7 @@ final class _IVectorPoint extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, NativePoint value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -3805,7 +3774,7 @@ final class _IVectorPoint extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -3824,7 +3793,7 @@ final class _IVectorPoint extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3843,7 +3812,7 @@ final class _IVectorPoint extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -3854,7 +3823,7 @@ final class _IVectorPoint extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -3870,7 +3839,7 @@ final class _IVectorPointerDeviceUsage extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -3883,7 +3852,7 @@ final class _IVectorPointerDeviceUsage extends IVector { VTablePointer lpVtbl, int index, Pointer - retValuePtr)>()(ptr.ref.lpVtbl, index, retValuePtr); + retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3900,7 +3869,7 @@ final class _IVectorPointerDeviceUsage extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -3917,7 +3886,7 @@ final class _IVectorPointerDeviceUsage extends IVector { NativePointerDeviceUsage value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3933,7 +3902,7 @@ final class _IVectorPointerDeviceUsage extends IVector { void setAt(int index, PointerDeviceUsage value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -3944,7 +3913,7 @@ final class _IVectorPointerDeviceUsage extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativePointerDeviceUsage value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -3955,7 +3924,7 @@ final class _IVectorPointerDeviceUsage extends IVector { void insertAt(int index, PointerDeviceUsage value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -3966,7 +3935,7 @@ final class _IVectorPointerDeviceUsage extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativePointerDeviceUsage value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -3977,7 +3946,7 @@ final class _IVectorPointerDeviceUsage extends IVector { void append(PointerDeviceUsage value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -3988,7 +3957,7 @@ final class _IVectorPointerDeviceUsage extends IVector { .asFunction< int Function( VTablePointer lpVtbl, NativePointerDeviceUsage value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4002,7 +3971,7 @@ final class _IVectorPointerDeviceUsage extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -4021,7 +3990,7 @@ final class _IVectorPointerDeviceUsage extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4040,7 +4009,7 @@ final class _IVectorPointerDeviceUsage extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -4051,7 +4020,7 @@ final class _IVectorPointerDeviceUsage extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -4067,7 +4036,7 @@ final class _IVectorRect extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -4078,7 +4047,7 @@ final class _IVectorRect extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4096,7 +4065,7 @@ final class _IVectorRect extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -4110,7 +4079,7 @@ final class _IVectorRect extends IVector { .asFunction< int Function(VTablePointer lpVtbl, NativeRect value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4126,18 +4095,17 @@ final class _IVectorRect extends IVector { void setAt(int index, Rect value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - NativeRect value)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, int index, NativeRect value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + NativeRect value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + NativeRect value)>()(lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4148,18 +4116,17 @@ final class _IVectorRect extends IVector { void insertAt(int index, Rect value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - NativeRect value)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, int index, NativeRect value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + NativeRect value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + NativeRect value)>()(lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4170,7 +4137,7 @@ final class _IVectorRect extends IVector { void append(Rect value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -4179,7 +4146,7 @@ final class _IVectorRect extends IVector { VTablePointer lpVtbl, NativeRect value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4192,7 +4159,7 @@ final class _IVectorRect extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -4211,7 +4178,7 @@ final class _IVectorRect extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4230,18 +4197,17 @@ final class _IVectorRect extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -4257,7 +4223,7 @@ final class _IVectorRectInt32 extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -4268,7 +4234,7 @@ final class _IVectorRectInt32 extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4285,7 +4251,7 @@ final class _IVectorRectInt32 extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -4299,7 +4265,7 @@ final class _IVectorRectInt32 extends IVector { .asFunction< int Function(VTablePointer lpVtbl, NativeRectInt32 value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4315,7 +4281,7 @@ final class _IVectorRectInt32 extends IVector { void setAt(int index, RectInt32 value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -4326,7 +4292,7 @@ final class _IVectorRectInt32 extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, NativeRectInt32 value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4337,7 +4303,7 @@ final class _IVectorRectInt32 extends IVector { void insertAt(int index, RectInt32 value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -4348,7 +4314,7 @@ final class _IVectorRectInt32 extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, NativeRectInt32 value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4359,7 +4325,7 @@ final class _IVectorRectInt32 extends IVector { void append(RectInt32 value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -4369,7 +4335,7 @@ final class _IVectorRectInt32 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, NativeRectInt32 value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4382,7 +4348,7 @@ final class _IVectorRectInt32 extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -4401,7 +4367,7 @@ final class _IVectorRectInt32 extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4420,7 +4386,7 @@ final class _IVectorRectInt32 extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -4431,7 +4397,7 @@ final class _IVectorRectInt32 extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -4447,7 +4413,7 @@ final class _IVectorSize extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -4458,7 +4424,7 @@ final class _IVectorSize extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4476,7 +4442,7 @@ final class _IVectorSize extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -4490,7 +4456,7 @@ final class _IVectorSize extends IVector { .asFunction< int Function(VTablePointer lpVtbl, NativeSize value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4506,18 +4472,17 @@ final class _IVectorSize extends IVector { void setAt(int index, Size value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - NativeSize value)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, int index, NativeSize value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + NativeSize value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + NativeSize value)>()(lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4528,18 +4493,17 @@ final class _IVectorSize extends IVector { void insertAt(int index, Size value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - NativeSize value)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, int index, NativeSize value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + NativeSize value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + NativeSize value)>()(lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4550,7 +4514,7 @@ final class _IVectorSize extends IVector { void append(Size value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -4559,7 +4523,7 @@ final class _IVectorSize extends IVector { VTablePointer lpVtbl, NativeSize value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4572,7 +4536,7 @@ final class _IVectorSize extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -4591,7 +4555,7 @@ final class _IVectorSize extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4610,18 +4574,17 @@ final class _IVectorSize extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -4637,7 +4600,7 @@ final class _IVectorSizeUInt32 extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -4648,7 +4611,7 @@ final class _IVectorSizeUInt32 extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4665,7 +4628,7 @@ final class _IVectorSizeUInt32 extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -4679,7 +4642,7 @@ final class _IVectorSizeUInt32 extends IVector { .asFunction< int Function(VTablePointer lpVtbl, NativeSizeUInt32 value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4695,7 +4658,7 @@ final class _IVectorSizeUInt32 extends IVector { void setAt(int index, SizeUInt32 value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -4706,7 +4669,7 @@ final class _IVectorSizeUInt32 extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, NativeSizeUInt32 value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4717,7 +4680,7 @@ final class _IVectorSizeUInt32 extends IVector { void insertAt(int index, SizeUInt32 value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -4728,7 +4691,7 @@ final class _IVectorSizeUInt32 extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, NativeSizeUInt32 value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4739,7 +4702,7 @@ final class _IVectorSizeUInt32 extends IVector { void append(SizeUInt32 value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -4749,7 +4712,7 @@ final class _IVectorSizeUInt32 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, NativeSizeUInt32 value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4762,7 +4725,7 @@ final class _IVectorSizeUInt32 extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -4781,7 +4744,7 @@ final class _IVectorSizeUInt32 extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4800,7 +4763,7 @@ final class _IVectorSizeUInt32 extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -4811,7 +4774,7 @@ final class _IVectorSizeUInt32 extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -4827,7 +4790,7 @@ final class _IVectorSortEntry extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -4838,7 +4801,7 @@ final class _IVectorSortEntry extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4855,7 +4818,7 @@ final class _IVectorSortEntry extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -4869,7 +4832,7 @@ final class _IVectorSortEntry extends IVector { .asFunction< int Function(VTablePointer lpVtbl, NativeSortEntry value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4885,7 +4848,7 @@ final class _IVectorSortEntry extends IVector { void setAt(int index, SortEntry value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -4896,7 +4859,7 @@ final class _IVectorSortEntry extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, NativeSortEntry value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4907,7 +4870,7 @@ final class _IVectorSortEntry extends IVector { void insertAt(int index, SortEntry value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -4918,7 +4881,7 @@ final class _IVectorSortEntry extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, NativeSortEntry value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4929,7 +4892,7 @@ final class _IVectorSortEntry extends IVector { void append(SortEntry value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -4939,7 +4902,7 @@ final class _IVectorSortEntry extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, NativeSortEntry value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4952,7 +4915,7 @@ final class _IVectorSortEntry extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -4971,7 +4934,7 @@ final class _IVectorSortEntry extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4990,7 +4953,7 @@ final class _IVectorSortEntry extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -5001,7 +4964,7 @@ final class _IVectorSortEntry extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -5019,7 +4982,7 @@ final class _IVectorStorePackageUpdateStatus final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -5033,7 +4996,7 @@ final class _IVectorStorePackageUpdateStatus .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5050,7 +5013,7 @@ final class _IVectorStorePackageUpdateStatus final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -5067,7 +5030,7 @@ final class _IVectorStorePackageUpdateStatus NativeStorePackageUpdateStatus value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5083,7 +5046,7 @@ final class _IVectorStorePackageUpdateStatus void setAt(int index, StorePackageUpdateStatus value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -5094,7 +5057,7 @@ final class _IVectorStorePackageUpdateStatus .asFunction< int Function(VTablePointer lpVtbl, int index, NativeStorePackageUpdateStatus value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -5105,7 +5068,7 @@ final class _IVectorStorePackageUpdateStatus void insertAt(int index, StorePackageUpdateStatus value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -5116,7 +5079,7 @@ final class _IVectorStorePackageUpdateStatus .asFunction< int Function(VTablePointer lpVtbl, int index, NativeStorePackageUpdateStatus value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -5127,7 +5090,7 @@ final class _IVectorStorePackageUpdateStatus void append(StorePackageUpdateStatus value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -5138,7 +5101,7 @@ final class _IVectorStorePackageUpdateStatus .asFunction< int Function(VTablePointer lpVtbl, NativeStorePackageUpdateStatus value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -5152,7 +5115,7 @@ final class _IVectorStorePackageUpdateStatus final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -5171,7 +5134,7 @@ final class _IVectorStorePackageUpdateStatus int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5190,7 +5153,7 @@ final class _IVectorStorePackageUpdateStatus final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -5201,7 +5164,7 @@ final class _IVectorStorePackageUpdateStatus .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -5217,18 +5180,17 @@ final class _IVectorString extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5245,7 +5207,7 @@ final class _IVectorString extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -5259,7 +5221,7 @@ final class _IVectorString extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value.toHString(), index, retValuePtr); + lpVtbl, value.toHString(), index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5272,7 +5234,7 @@ final class _IVectorString extends IVector { @override void setAt(int index, String value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -5282,14 +5244,14 @@ final class _IVectorString extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value.toHString()); + int value)>()(lpVtbl, index, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, String value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -5299,7 +5261,7 @@ final class _IVectorString extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value.toHString()); + int value)>()(lpVtbl, index, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -5307,7 +5269,7 @@ final class _IVectorString extends IVector { @override void append(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(13) .cast< Pointer< @@ -5316,7 +5278,7 @@ final class _IVectorString extends IVector { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -5327,7 +5289,7 @@ final class _IVectorString extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -5346,7 +5308,7 @@ final class _IVectorString extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5364,19 +5326,18 @@ final class _IVectorString extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); - + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); + free(itemsArray); if (FAILED(hr)) throwWindowsException(hr); @@ -5391,7 +5352,7 @@ final class _IVectorTextRange extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -5402,7 +5363,7 @@ final class _IVectorTextRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5419,7 +5380,7 @@ final class _IVectorTextRange extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -5433,7 +5394,7 @@ final class _IVectorTextRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, NativeTextRange value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5449,7 +5410,7 @@ final class _IVectorTextRange extends IVector { void setAt(int index, TextRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -5460,7 +5421,7 @@ final class _IVectorTextRange extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, NativeTextRange value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -5471,7 +5432,7 @@ final class _IVectorTextRange extends IVector { void insertAt(int index, TextRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -5482,7 +5443,7 @@ final class _IVectorTextRange extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, NativeTextRange value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -5493,7 +5454,7 @@ final class _IVectorTextRange extends IVector { void append(TextRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -5503,7 +5464,7 @@ final class _IVectorTextRange extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, NativeTextRange value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -5516,7 +5477,7 @@ final class _IVectorTextRange extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -5535,7 +5496,7 @@ final class _IVectorTextRange extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5554,7 +5515,7 @@ final class _IVectorTextRange extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -5565,7 +5526,7 @@ final class _IVectorTextRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -5581,7 +5542,7 @@ final class _IVectorTextSegment extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -5592,7 +5553,7 @@ final class _IVectorTextSegment extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5609,7 +5570,7 @@ final class _IVectorTextSegment extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -5623,7 +5584,7 @@ final class _IVectorTextSegment extends IVector { .asFunction< int Function(VTablePointer lpVtbl, NativeTextSegment value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5639,7 +5600,7 @@ final class _IVectorTextSegment extends IVector { void setAt(int index, TextSegment value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -5650,7 +5611,7 @@ final class _IVectorTextSegment extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativeTextSegment value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -5661,7 +5622,7 @@ final class _IVectorTextSegment extends IVector { void insertAt(int index, TextSegment value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -5672,7 +5633,7 @@ final class _IVectorTextSegment extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativeTextSegment value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -5683,7 +5644,7 @@ final class _IVectorTextSegment extends IVector { void append(TextSegment value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -5693,7 +5654,7 @@ final class _IVectorTextSegment extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, NativeTextSegment value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -5706,7 +5667,7 @@ final class _IVectorTextSegment extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -5725,7 +5686,7 @@ final class _IVectorTextSegment extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5744,7 +5705,7 @@ final class _IVectorTextSegment extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -5755,7 +5716,7 @@ final class _IVectorTextSegment extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -5771,18 +5732,17 @@ final class _IVectorUint8 extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5799,7 +5759,7 @@ final class _IVectorUint8 extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -5813,7 +5773,7 @@ final class _IVectorUint8 extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5826,7 +5786,7 @@ final class _IVectorUint8 extends IVector { @override void setAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -5836,14 +5796,14 @@ final class _IVectorUint8 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -5853,14 +5813,14 @@ final class _IVectorUint8 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void append(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -5868,7 +5828,7 @@ final class _IVectorUint8 extends IVector { HRESULT Function(VTablePointer lpVtbl, Uint8 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -5879,7 +5839,7 @@ final class _IVectorUint8 extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -5898,7 +5858,7 @@ final class _IVectorUint8 extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5916,18 +5876,17 @@ final class _IVectorUint8 extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); @@ -5944,18 +5903,17 @@ final class _IVectorUint16 extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5972,7 +5930,7 @@ final class _IVectorUint16 extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -5986,7 +5944,7 @@ final class _IVectorUint16 extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5999,7 +5957,7 @@ final class _IVectorUint16 extends IVector { @override void setAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -6009,14 +5967,14 @@ final class _IVectorUint16 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -6026,7 +5984,7 @@ final class _IVectorUint16 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -6034,7 +5992,7 @@ final class _IVectorUint16 extends IVector { @override void append(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(13) .cast< Pointer< @@ -6043,7 +6001,7 @@ final class _IVectorUint16 extends IVector { VTablePointer lpVtbl, Uint16 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -6054,7 +6012,7 @@ final class _IVectorUint16 extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -6073,7 +6031,7 @@ final class _IVectorUint16 extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6091,18 +6049,17 @@ final class _IVectorUint16 extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); @@ -6119,18 +6076,17 @@ final class _IVectorUint32 extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6147,7 +6103,7 @@ final class _IVectorUint32 extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -6161,7 +6117,7 @@ final class _IVectorUint32 extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6174,7 +6130,7 @@ final class _IVectorUint32 extends IVector { @override void setAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -6184,14 +6140,14 @@ final class _IVectorUint32 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -6201,7 +6157,7 @@ final class _IVectorUint32 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -6209,7 +6165,7 @@ final class _IVectorUint32 extends IVector { @override void append(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(13) .cast< Pointer< @@ -6218,7 +6174,7 @@ final class _IVectorUint32 extends IVector { VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -6229,7 +6185,7 @@ final class _IVectorUint32 extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -6248,7 +6204,7 @@ final class _IVectorUint32 extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6266,18 +6222,17 @@ final class _IVectorUint32 extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); @@ -6294,18 +6249,17 @@ final class _IVectorUint64 extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6322,7 +6276,7 @@ final class _IVectorUint64 extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -6336,7 +6290,7 @@ final class _IVectorUint64 extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6349,7 +6303,7 @@ final class _IVectorUint64 extends IVector { @override void setAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -6359,14 +6313,14 @@ final class _IVectorUint64 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -6376,7 +6330,7 @@ final class _IVectorUint64 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -6384,7 +6338,7 @@ final class _IVectorUint64 extends IVector { @override void append(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(13) .cast< Pointer< @@ -6393,7 +6347,7 @@ final class _IVectorUint64 extends IVector { VTablePointer lpVtbl, Uint64 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -6404,7 +6358,7 @@ final class _IVectorUint64 extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -6423,7 +6377,7 @@ final class _IVectorUint64 extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6441,18 +6395,17 @@ final class _IVectorUint64 extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); @@ -6468,7 +6421,7 @@ final class _IVectorWindowId extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -6479,7 +6432,7 @@ final class _IVectorWindowId extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6496,7 +6449,7 @@ final class _IVectorWindowId extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -6510,7 +6463,7 @@ final class _IVectorWindowId extends IVector { .asFunction< int Function(VTablePointer lpVtbl, NativeWindowId value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6526,7 +6479,7 @@ final class _IVectorWindowId extends IVector { void setAt(int index, WindowId value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -6537,7 +6490,7 @@ final class _IVectorWindowId extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, NativeWindowId value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -6548,7 +6501,7 @@ final class _IVectorWindowId extends IVector { void insertAt(int index, WindowId value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -6559,7 +6512,7 @@ final class _IVectorWindowId extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, NativeWindowId value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -6570,7 +6523,7 @@ final class _IVectorWindowId extends IVector { void append(WindowId value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -6580,7 +6533,7 @@ final class _IVectorWindowId extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, NativeWindowId value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -6593,7 +6546,7 @@ final class _IVectorWindowId extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -6612,7 +6565,7 @@ final class _IVectorWindowId extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6631,7 +6584,7 @@ final class _IVectorWindowId extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -6642,7 +6595,7 @@ final class _IVectorWindowId extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -6662,18 +6615,17 @@ final class _IVectorWinRTEnum extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6690,7 +6642,7 @@ final class _IVectorWinRTEnum extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -6704,7 +6656,7 @@ final class _IVectorWinRTEnum extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, (value as WinRTEnum).value, index, retValuePtr); + lpVtbl, (value as WinRTEnum).value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6717,41 +6669,41 @@ final class _IVectorWinRTEnum extends IVector { @override void setAt(int index, T value) { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Int32 value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, int value)>()( - ptr.ref.lpVtbl, index, (value as WinRTEnum).value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Uint32 index, Int32 value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + int value)>()(lpVtbl, index, (value as WinRTEnum).value); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, T value) { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Int32 value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, int value)>()( - ptr.ref.lpVtbl, index, (value as WinRTEnum).value); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Uint32 index, Int32 value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + int value)>()(lpVtbl, index, (value as WinRTEnum).value); if (FAILED(hr)) throwWindowsException(hr); } @override void append(T value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -6759,7 +6711,7 @@ final class _IVectorWinRTEnum extends IVector { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, (value as WinRTEnum).value); + lpVtbl, (value as WinRTEnum).value); if (FAILED(hr)) throwWindowsException(hr); } @@ -6770,7 +6722,7 @@ final class _IVectorWinRTEnum extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -6789,7 +6741,7 @@ final class _IVectorWinRTEnum extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6807,18 +6759,17 @@ final class _IVectorWinRTEnum extends IVector { void replaceAll(List items) { final itemsArray = items.cast().toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); @@ -6838,18 +6789,17 @@ final class _IVectorWinRTFlagsEnum extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6866,7 +6816,7 @@ final class _IVectorWinRTFlagsEnum extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -6880,7 +6830,7 @@ final class _IVectorWinRTFlagsEnum extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, (value as WinRTEnum).value, index, retValuePtr); + lpVtbl, (value as WinRTEnum).value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6893,34 +6843,34 @@ final class _IVectorWinRTFlagsEnum extends IVector { @override void setAt(int index, T value) { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Uint32 value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, int value)>()( - ptr.ref.lpVtbl, index, (value as WinRTEnum).value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Uint32 index, Uint32 value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + int value)>()(lpVtbl, index, (value as WinRTEnum).value); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, T value) { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Uint32 value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, int value)>()( - ptr.ref.lpVtbl, index, (value as WinRTEnum).value); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Uint32 index, Uint32 value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + int value)>()(lpVtbl, index, (value as WinRTEnum).value); if (FAILED(hr)) throwWindowsException(hr); } @@ -6928,7 +6878,7 @@ final class _IVectorWinRTFlagsEnum extends IVector { @override void append(T value) { final hr = - ptr.ref.vtable + vtable .elementAt(13) .cast< Pointer< @@ -6937,7 +6887,7 @@ final class _IVectorWinRTFlagsEnum extends IVector { VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, (value as WinRTEnum).value); + lpVtbl, (value as WinRTEnum).value); if (FAILED(hr)) throwWindowsException(hr); } @@ -6948,7 +6898,7 @@ final class _IVectorWinRTFlagsEnum extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -6967,7 +6917,7 @@ final class _IVectorWinRTFlagsEnum extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6985,18 +6935,17 @@ final class _IVectorWinRTFlagsEnum extends IVector { void replaceAll(List items) { final itemsArray = items.cast().toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); diff --git a/packages/windows_foundation/lib/src/collections/ivectorview.dart b/packages/windows_foundation/lib/src/collections/ivectorview.dart index 93c8b1af..ec3af98f 100644 --- a/packages/windows_foundation/lib/src/collections/ivectorview.dart +++ b/packages/windows_foundation/lib/src/collections/ivectorview.dart @@ -271,7 +271,7 @@ abstract interface class IVectorView extends IInspectable final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -281,7 +281,7 @@ abstract interface class IVectorView extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_foundation/lib/src/collections/ivectorview_part.dart b/packages/windows_foundation/lib/src/collections/ivectorview_part.dart index 0333ef7f..45142e07 100644 --- a/packages/windows_foundation/lib/src/collections/ivectorview_part.dart +++ b/packages/windows_foundation/lib/src/collections/ivectorview_part.dart @@ -17,7 +17,7 @@ final class _IVectorViewAccessListEntry extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -28,7 +28,7 @@ final class _IVectorViewAccessListEntry extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -45,7 +45,7 @@ final class _IVectorViewAccessListEntry extends IVectorView { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -62,7 +62,7 @@ final class _IVectorViewAccessListEntry extends IVectorView { NativeAccessListEntry value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -80,7 +80,7 @@ final class _IVectorViewAccessListEntry extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -99,7 +99,7 @@ final class _IVectorViewAccessListEntry extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -124,7 +124,7 @@ final class _IVectorViewBackgroundTransferFileRange final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -140,7 +140,7 @@ final class _IVectorViewBackgroundTransferFileRange VTablePointer lpVtbl, int index, Pointer - retValuePtr)>()(ptr.ref.lpVtbl, index, retValuePtr); + retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -157,7 +157,7 @@ final class _IVectorViewBackgroundTransferFileRange final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -174,7 +174,7 @@ final class _IVectorViewBackgroundTransferFileRange NativeBackgroundTransferFileRange value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -193,7 +193,7 @@ final class _IVectorViewBackgroundTransferFileRange final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -212,7 +212,7 @@ final class _IVectorViewBackgroundTransferFileRange int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -235,7 +235,7 @@ final class _IVectorViewBasicGeoposition extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -246,7 +246,7 @@ final class _IVectorViewBasicGeoposition extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -263,7 +263,7 @@ final class _IVectorViewBasicGeoposition extends IVectorView { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -280,7 +280,7 @@ final class _IVectorViewBasicGeoposition extends IVectorView { NativeBasicGeoposition value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -298,7 +298,7 @@ final class _IVectorViewBasicGeoposition extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -317,7 +317,7 @@ final class _IVectorViewBasicGeoposition extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -340,18 +340,17 @@ final class _IVectorViewBool extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -368,7 +367,7 @@ final class _IVectorViewBool extends IVectorView { try { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -382,7 +381,7 @@ final class _IVectorViewBool extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, bool value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -399,7 +398,7 @@ final class _IVectorViewBool extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -418,7 +417,7 @@ final class _IVectorViewBool extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -441,7 +440,7 @@ final class _IVectorViewColor extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -452,7 +451,7 @@ final class _IVectorViewColor extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -470,7 +469,7 @@ final class _IVectorViewColor extends IVectorView { try { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -484,7 +483,7 @@ final class _IVectorViewColor extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, NativeColor value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -502,7 +501,7 @@ final class _IVectorViewColor extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -521,7 +520,7 @@ final class _IVectorViewColor extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -544,18 +543,17 @@ final class _IVectorViewDateTime extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -572,7 +570,7 @@ final class _IVectorViewDateTime extends IVectorView { try { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -586,7 +584,7 @@ final class _IVectorViewDateTime extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value.toWinRTDateTime(), index, retValuePtr); + lpVtbl, value.toWinRTDateTime(), index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -603,7 +601,7 @@ final class _IVectorViewDateTime extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -622,7 +620,7 @@ final class _IVectorViewDateTime extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -646,18 +644,17 @@ final class _IVectorViewDouble extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -674,7 +671,7 @@ final class _IVectorViewDouble extends IVectorView { try { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -688,7 +685,7 @@ final class _IVectorViewDouble extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, double value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -705,7 +702,7 @@ final class _IVectorViewDouble extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -724,7 +721,7 @@ final class _IVectorViewDouble extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -747,18 +744,17 @@ final class _IVectorViewDuration extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -775,7 +771,7 @@ final class _IVectorViewDuration extends IVectorView { try { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -789,7 +785,7 @@ final class _IVectorViewDuration extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value.toWinRTDuration(), index, retValuePtr); + lpVtbl, value.toWinRTDuration(), index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -806,7 +802,7 @@ final class _IVectorViewDuration extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -825,7 +821,7 @@ final class _IVectorViewDuration extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -849,18 +845,17 @@ final class _IVectorViewFloat extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -877,7 +872,7 @@ final class _IVectorViewFloat extends IVectorView { try { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -891,7 +886,7 @@ final class _IVectorViewFloat extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, double value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -908,7 +903,7 @@ final class _IVectorViewFloat extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -927,7 +922,7 @@ final class _IVectorViewFloat extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -950,7 +945,7 @@ final class _IVectorViewGpioChangeRecord extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -961,7 +956,7 @@ final class _IVectorViewGpioChangeRecord extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -978,7 +973,7 @@ final class _IVectorViewGpioChangeRecord extends IVectorView { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -995,7 +990,7 @@ final class _IVectorViewGpioChangeRecord extends IVectorView { NativeGpioChangeRecord value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1013,7 +1008,7 @@ final class _IVectorViewGpioChangeRecord extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1032,7 +1027,7 @@ final class _IVectorViewGpioChangeRecord extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1055,18 +1050,17 @@ final class _IVectorViewGuid extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1084,7 +1078,7 @@ final class _IVectorViewGuid extends IVectorView { try { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -1098,7 +1092,7 @@ final class _IVectorViewGuid extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, GUID value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1116,7 +1110,7 @@ final class _IVectorViewGuid extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1135,7 +1129,7 @@ final class _IVectorViewGuid extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1159,18 +1153,17 @@ final class _IVectorViewInt16 extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1187,7 +1180,7 @@ final class _IVectorViewInt16 extends IVectorView { try { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -1201,7 +1194,7 @@ final class _IVectorViewInt16 extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1218,7 +1211,7 @@ final class _IVectorViewInt16 extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1237,7 +1230,7 @@ final class _IVectorViewInt16 extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1261,18 +1254,17 @@ final class _IVectorViewInt32 extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1289,7 +1281,7 @@ final class _IVectorViewInt32 extends IVectorView { try { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -1303,7 +1295,7 @@ final class _IVectorViewInt32 extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1320,7 +1312,7 @@ final class _IVectorViewInt32 extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1339,7 +1331,7 @@ final class _IVectorViewInt32 extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1363,18 +1355,17 @@ final class _IVectorViewInt64 extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1391,7 +1382,7 @@ final class _IVectorViewInt64 extends IVectorView { try { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -1405,7 +1396,7 @@ final class _IVectorViewInt64 extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1422,7 +1413,7 @@ final class _IVectorViewInt64 extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1441,7 +1432,7 @@ final class _IVectorViewInt64 extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1464,7 +1455,7 @@ final class _IVectorViewMediaTimeRange extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1475,7 +1466,7 @@ final class _IVectorViewMediaTimeRange extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1492,7 +1483,7 @@ final class _IVectorViewMediaTimeRange extends IVectorView { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -1506,7 +1497,7 @@ final class _IVectorViewMediaTimeRange extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, NativeMediaTimeRange value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1524,7 +1515,7 @@ final class _IVectorViewMediaTimeRange extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1543,7 +1534,7 @@ final class _IVectorViewMediaTimeRange extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1566,7 +1557,7 @@ final class _IVectorViewMseTimeRange extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1577,7 +1568,7 @@ final class _IVectorViewMseTimeRange extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1594,7 +1585,7 @@ final class _IVectorViewMseTimeRange extends IVectorView { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -1608,7 +1599,7 @@ final class _IVectorViewMseTimeRange extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, NativeMseTimeRange value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1626,7 +1617,7 @@ final class _IVectorViewMseTimeRange extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1645,7 +1636,7 @@ final class _IVectorViewMseTimeRange extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1668,7 +1659,7 @@ final class _IVectorViewNitRange extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1679,7 +1670,7 @@ final class _IVectorViewNitRange extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1696,7 +1687,7 @@ final class _IVectorViewNitRange extends IVectorView { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -1710,7 +1701,7 @@ final class _IVectorViewNitRange extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, NativeNitRange value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1728,7 +1719,7 @@ final class _IVectorViewNitRange extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1747,7 +1738,7 @@ final class _IVectorViewNitRange extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1773,18 +1764,17 @@ final class _IVectorViewInspectable extends IVectorView { T getAt(int index) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -1805,7 +1795,7 @@ final class _IVectorViewInspectable extends IVectorView { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -1819,7 +1809,7 @@ final class _IVectorViewInspectable extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, (value as IInspectable).lpVtbl, index, retValuePtr); + lpVtbl, (value as IInspectable).lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1836,7 +1826,7 @@ final class _IVectorViewInspectable extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1855,7 +1845,7 @@ final class _IVectorViewInspectable extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1877,18 +1867,17 @@ final class _IVectorViewObject extends IVectorView { Object? getAt(int index) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -1909,7 +1898,7 @@ final class _IVectorViewObject extends IVectorView { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -1923,10 +1912,7 @@ final class _IVectorViewObject extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, - value?.boxValue().lpVtbl ?? nullptr, - index, - retValuePtr); + lpVtbl, value?.boxValue().lpVtbl ?? nullptr, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1943,7 +1929,7 @@ final class _IVectorViewObject extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1962,7 +1948,7 @@ final class _IVectorViewObject extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1984,18 +1970,17 @@ final class _IVectorViewUri extends IVectorView { Uri? getAt(int index) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -2016,7 +2001,7 @@ final class _IVectorViewUri extends IVectorView { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -2030,10 +2015,7 @@ final class _IVectorViewUri extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, - value?.toWinRTUri().lpVtbl ?? nullptr, - index, - retValuePtr); + lpVtbl, value?.toWinRTUri().lpVtbl ?? nullptr, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2050,7 +2032,7 @@ final class _IVectorViewUri extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -2069,7 +2051,7 @@ final class _IVectorViewUri extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2092,7 +2074,7 @@ final class _IVectorViewPoint extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -2103,7 +2085,7 @@ final class _IVectorViewPoint extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2121,7 +2103,7 @@ final class _IVectorViewPoint extends IVectorView { try { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -2135,7 +2117,7 @@ final class _IVectorViewPoint extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, NativePoint value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2153,7 +2135,7 @@ final class _IVectorViewPoint extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -2172,7 +2154,7 @@ final class _IVectorViewPoint extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2197,7 +2179,7 @@ final class _IVectorViewPointerDeviceUsage final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -2210,7 +2192,7 @@ final class _IVectorViewPointerDeviceUsage VTablePointer lpVtbl, int index, Pointer - retValuePtr)>()(ptr.ref.lpVtbl, index, retValuePtr); + retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2227,7 +2209,7 @@ final class _IVectorViewPointerDeviceUsage final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -2244,7 +2226,7 @@ final class _IVectorViewPointerDeviceUsage NativePointerDeviceUsage value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2263,7 +2245,7 @@ final class _IVectorViewPointerDeviceUsage final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -2282,7 +2264,7 @@ final class _IVectorViewPointerDeviceUsage int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2305,7 +2287,7 @@ final class _IVectorViewRect extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -2316,7 +2298,7 @@ final class _IVectorViewRect extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2334,7 +2316,7 @@ final class _IVectorViewRect extends IVectorView { try { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -2348,7 +2330,7 @@ final class _IVectorViewRect extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, NativeRect value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2366,7 +2348,7 @@ final class _IVectorViewRect extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -2385,7 +2367,7 @@ final class _IVectorViewRect extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2408,7 +2390,7 @@ final class _IVectorViewRectInt32 extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -2419,7 +2401,7 @@ final class _IVectorViewRectInt32 extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2436,7 +2418,7 @@ final class _IVectorViewRectInt32 extends IVectorView { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -2450,7 +2432,7 @@ final class _IVectorViewRectInt32 extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, NativeRectInt32 value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2468,7 +2450,7 @@ final class _IVectorViewRectInt32 extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -2487,7 +2469,7 @@ final class _IVectorViewRectInt32 extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2510,7 +2492,7 @@ final class _IVectorViewSize extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -2521,7 +2503,7 @@ final class _IVectorViewSize extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2539,7 +2521,7 @@ final class _IVectorViewSize extends IVectorView { try { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -2553,7 +2535,7 @@ final class _IVectorViewSize extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, NativeSize value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2571,7 +2553,7 @@ final class _IVectorViewSize extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -2590,7 +2572,7 @@ final class _IVectorViewSize extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2613,7 +2595,7 @@ final class _IVectorViewSizeUInt32 extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -2624,7 +2606,7 @@ final class _IVectorViewSizeUInt32 extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2641,7 +2623,7 @@ final class _IVectorViewSizeUInt32 extends IVectorView { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -2655,7 +2637,7 @@ final class _IVectorViewSizeUInt32 extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, NativeSizeUInt32 value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2673,7 +2655,7 @@ final class _IVectorViewSizeUInt32 extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -2692,7 +2674,7 @@ final class _IVectorViewSizeUInt32 extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2715,7 +2697,7 @@ final class _IVectorViewSortEntry extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -2726,7 +2708,7 @@ final class _IVectorViewSortEntry extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2743,7 +2725,7 @@ final class _IVectorViewSortEntry extends IVectorView { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -2757,7 +2739,7 @@ final class _IVectorViewSortEntry extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, NativeSortEntry value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2775,7 +2757,7 @@ final class _IVectorViewSortEntry extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -2794,7 +2776,7 @@ final class _IVectorViewSortEntry extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2819,7 +2801,7 @@ final class _IVectorViewStorePackageUpdateStatus final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -2833,7 +2815,7 @@ final class _IVectorViewStorePackageUpdateStatus .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2850,7 +2832,7 @@ final class _IVectorViewStorePackageUpdateStatus final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -2867,7 +2849,7 @@ final class _IVectorViewStorePackageUpdateStatus NativeStorePackageUpdateStatus value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2886,7 +2868,7 @@ final class _IVectorViewStorePackageUpdateStatus final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -2905,7 +2887,7 @@ final class _IVectorViewStorePackageUpdateStatus int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2928,18 +2910,17 @@ final class _IVectorViewString extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2956,7 +2937,7 @@ final class _IVectorViewString extends IVectorView { try { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -2970,7 +2951,7 @@ final class _IVectorViewString extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value.toHString(), index, retValuePtr); + lpVtbl, value.toHString(), index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2987,7 +2968,7 @@ final class _IVectorViewString extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -3006,7 +2987,7 @@ final class _IVectorViewString extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3029,7 +3010,7 @@ final class _IVectorViewTextRange extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -3040,7 +3021,7 @@ final class _IVectorViewTextRange extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3057,7 +3038,7 @@ final class _IVectorViewTextRange extends IVectorView { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -3071,7 +3052,7 @@ final class _IVectorViewTextRange extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, NativeTextRange value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3089,7 +3070,7 @@ final class _IVectorViewTextRange extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -3108,7 +3089,7 @@ final class _IVectorViewTextRange extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3131,7 +3112,7 @@ final class _IVectorViewTextSegment extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -3142,7 +3123,7 @@ final class _IVectorViewTextSegment extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3159,7 +3140,7 @@ final class _IVectorViewTextSegment extends IVectorView { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -3173,7 +3154,7 @@ final class _IVectorViewTextSegment extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, NativeTextSegment value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3191,7 +3172,7 @@ final class _IVectorViewTextSegment extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -3210,7 +3191,7 @@ final class _IVectorViewTextSegment extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3234,18 +3215,17 @@ final class _IVectorViewUint8 extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3262,7 +3242,7 @@ final class _IVectorViewUint8 extends IVectorView { try { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -3276,7 +3256,7 @@ final class _IVectorViewUint8 extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3293,7 +3273,7 @@ final class _IVectorViewUint8 extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -3312,7 +3292,7 @@ final class _IVectorViewUint8 extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3336,18 +3316,17 @@ final class _IVectorViewUint16 extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3364,7 +3343,7 @@ final class _IVectorViewUint16 extends IVectorView { try { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -3378,7 +3357,7 @@ final class _IVectorViewUint16 extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3395,7 +3374,7 @@ final class _IVectorViewUint16 extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -3414,7 +3393,7 @@ final class _IVectorViewUint16 extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3438,18 +3417,17 @@ final class _IVectorViewUint32 extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3466,7 +3444,7 @@ final class _IVectorViewUint32 extends IVectorView { try { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -3480,7 +3458,7 @@ final class _IVectorViewUint32 extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3497,7 +3475,7 @@ final class _IVectorViewUint32 extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -3516,7 +3494,7 @@ final class _IVectorViewUint32 extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3540,18 +3518,17 @@ final class _IVectorViewUint64 extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3568,7 +3545,7 @@ final class _IVectorViewUint64 extends IVectorView { try { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -3582,7 +3559,7 @@ final class _IVectorViewUint64 extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3599,7 +3576,7 @@ final class _IVectorViewUint64 extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -3618,7 +3595,7 @@ final class _IVectorViewUint64 extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3641,7 +3618,7 @@ final class _IVectorViewWindowId extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -3652,7 +3629,7 @@ final class _IVectorViewWindowId extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3669,7 +3646,7 @@ final class _IVectorViewWindowId extends IVectorView { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -3683,7 +3660,7 @@ final class _IVectorViewWindowId extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, NativeWindowId value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3701,7 +3678,7 @@ final class _IVectorViewWindowId extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -3720,7 +3697,7 @@ final class _IVectorViewWindowId extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3747,18 +3724,17 @@ final class _IVectorViewWinRTEnum extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3775,7 +3751,7 @@ final class _IVectorViewWinRTEnum extends IVectorView { try { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -3789,7 +3765,7 @@ final class _IVectorViewWinRTEnum extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, (value as WinRTEnum).value, index, retValuePtr); + lpVtbl, (value as WinRTEnum).value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3806,7 +3782,7 @@ final class _IVectorViewWinRTEnum extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -3825,7 +3801,7 @@ final class _IVectorViewWinRTEnum extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3852,18 +3828,17 @@ final class _IVectorViewWinRTFlagsEnum extends IVectorView { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3880,7 +3855,7 @@ final class _IVectorViewWinRTFlagsEnum extends IVectorView { try { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -3894,7 +3869,7 @@ final class _IVectorViewWinRTFlagsEnum extends IVectorView { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, (value as WinRTEnum).value, index, retValuePtr); + lpVtbl, (value as WinRTEnum).value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3911,7 +3886,7 @@ final class _IVectorViewWinRTFlagsEnum extends IVectorView { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -3930,7 +3905,7 @@ final class _IVectorViewWinRTFlagsEnum extends IVectorView { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_foundation/lib/src/iasyncaction.dart b/packages/windows_foundation/lib/src/iasyncaction.dart index c2738ea0..7207356e 100644 --- a/packages/windows_foundation/lib/src/iasyncaction.dart +++ b/packages/windows_foundation/lib/src/iasyncaction.dart @@ -35,7 +35,7 @@ class IAsyncAction extends IInspectable implements IAsyncInfo { interface.cast(IAsyncAction.fromPtr, IID_IAsyncAction); set completed(Pointer handler) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IAsyncAction extends IInspectable implements IAsyncInfo { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer handler)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl); + lpVtbl, handler.ref.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -53,7 +53,7 @@ class IAsyncAction extends IInspectable implements IAsyncInfo { Pointer get completed { final handler = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -63,7 +63,7 @@ class IAsyncAction extends IInspectable implements IAsyncInfo { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer handler)>()(ptr.ref.lpVtbl, handler); + Pointer handler)>()(lpVtbl, handler); if (FAILED(hr)) { free(handler); @@ -74,11 +74,11 @@ class IAsyncAction extends IInspectable implements IAsyncInfo { } void getResults() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_foundation/lib/src/iasyncinfo.dart b/packages/windows_foundation/lib/src/iasyncinfo.dart index 54eeef32..2056fccd 100644 --- a/packages/windows_foundation/lib/src/iasyncinfo.dart +++ b/packages/windows_foundation/lib/src/iasyncinfo.dart @@ -39,7 +39,7 @@ class IAsyncInfo extends IInspectable { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -49,7 +49,7 @@ class IAsyncInfo extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -63,7 +63,7 @@ class IAsyncInfo extends IInspectable { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -73,7 +73,7 @@ class IAsyncInfo extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -87,7 +87,7 @@ class IAsyncInfo extends IInspectable { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -97,7 +97,7 @@ class IAsyncInfo extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -108,21 +108,21 @@ class IAsyncInfo extends IInspectable { } void cancel() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } void close() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_foundation/lib/src/iasyncoperation.dart b/packages/windows_foundation/lib/src/iasyncoperation.dart index 5d245c0d..6cc4b3d4 100644 --- a/packages/windows_foundation/lib/src/iasyncoperation.dart +++ b/packages/windows_foundation/lib/src/iasyncoperation.dart @@ -129,7 +129,7 @@ abstract interface class IAsyncOperation extends IInspectable /// Sets the method that handles the operation completed notification. set completed(Pointer value) { - final hr = ptr.ref.lpVtbl.value + final hr = vtable .elementAt(6) .cast< Pointer< @@ -148,7 +148,7 @@ abstract interface class IAsyncOperation extends IInspectable Pointer get completed { final retValuePtr = calloc(); - final hr = ptr.ref.lpVtbl.value + final hr = vtable .elementAt(7) .cast< Pointer< @@ -158,7 +158,7 @@ abstract interface class IAsyncOperation extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_foundation/lib/src/iasyncoperation_part.dart b/packages/windows_foundation/lib/src/iasyncoperation_part.dart index cbede4e9..d273ce5d 100644 --- a/packages/windows_foundation/lib/src/iasyncoperation_part.dart +++ b/packages/windows_foundation/lib/src/iasyncoperation_part.dart @@ -17,7 +17,7 @@ final class _IAsyncOperationBool extends IAsyncOperation { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -27,7 +27,7 @@ final class _IAsyncOperationBool extends IAsyncOperation { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -46,7 +46,7 @@ final class _IAsyncOperationDouble extends IAsyncOperation { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -56,7 +56,7 @@ final class _IAsyncOperationDouble extends IAsyncOperation { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -75,7 +75,7 @@ final class _IAsyncOperationFloat extends IAsyncOperation { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -85,7 +85,7 @@ final class _IAsyncOperationFloat extends IAsyncOperation { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -104,7 +104,7 @@ final class _IAsyncOperationGuid extends IAsyncOperation { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -114,7 +114,7 @@ final class _IAsyncOperationGuid extends IAsyncOperation { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -133,7 +133,7 @@ final class _IAsyncOperationInt16 extends IAsyncOperation { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -143,7 +143,7 @@ final class _IAsyncOperationInt16 extends IAsyncOperation { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -162,7 +162,7 @@ final class _IAsyncOperationInt32 extends IAsyncOperation { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -172,7 +172,7 @@ final class _IAsyncOperationInt32 extends IAsyncOperation { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -191,7 +191,7 @@ final class _IAsyncOperationInt64 extends IAsyncOperation { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -201,7 +201,7 @@ final class _IAsyncOperationInt64 extends IAsyncOperation { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -221,7 +221,7 @@ final class _IAsyncOperationLoadMoreItemsResult final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -233,7 +233,7 @@ final class _IAsyncOperationLoadMoreItemsResult int Function( VTablePointer lpVtbl, Pointer - retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -254,7 +254,7 @@ final class _IAsyncOperationInspectable TResult getResults() { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -264,7 +264,7 @@ final class _IAsyncOperationInspectable .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -287,7 +287,7 @@ final class _IAsyncOperationObject extends IAsyncOperation { Object? getResults() { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -297,7 +297,7 @@ final class _IAsyncOperationObject extends IAsyncOperation { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -320,7 +320,7 @@ final class _IAsyncOperationUri extends IAsyncOperation { Uri? getResults() { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -330,7 +330,7 @@ final class _IAsyncOperationUri extends IAsyncOperation { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -354,7 +354,7 @@ final class _IAsyncOperationString extends IAsyncOperation { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -364,7 +364,7 @@ final class _IAsyncOperationString extends IAsyncOperation { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -383,7 +383,7 @@ final class _IAsyncOperationUint8 extends IAsyncOperation { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -393,7 +393,7 @@ final class _IAsyncOperationUint8 extends IAsyncOperation { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -412,7 +412,7 @@ final class _IAsyncOperationUint16 extends IAsyncOperation { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -422,7 +422,7 @@ final class _IAsyncOperationUint16 extends IAsyncOperation { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -441,7 +441,7 @@ final class _IAsyncOperationUint32 extends IAsyncOperation { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -451,7 +451,7 @@ final class _IAsyncOperationUint32 extends IAsyncOperation { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -470,7 +470,7 @@ final class _IAsyncOperationUint64 extends IAsyncOperation { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -480,7 +480,7 @@ final class _IAsyncOperationUint64 extends IAsyncOperation { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -502,7 +502,7 @@ final class _IAsyncOperationWinRTEnum final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -512,7 +512,7 @@ final class _IAsyncOperationWinRTEnum .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -535,7 +535,7 @@ final class _IAsyncOperationWinRTFlagsEnum final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -545,7 +545,7 @@ final class _IAsyncOperationWinRTFlagsEnum .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_foundation/lib/src/iclosable.dart b/packages/windows_foundation/lib/src/iclosable.dart index c2cce847..44d34245 100644 --- a/packages/windows_foundation/lib/src/iclosable.dart +++ b/packages/windows_foundation/lib/src/iclosable.dart @@ -31,11 +31,11 @@ class IClosable extends IInspectable { interface.cast(IClosable.fromPtr, IID_IClosable); void close() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_foundation/lib/src/iguidhelperstatics.dart b/packages/windows_foundation/lib/src/iguidhelperstatics.dart index a78b9b32..a31c2e72 100644 --- a/packages/windows_foundation/lib/src/iguidhelperstatics.dart +++ b/packages/windows_foundation/lib/src/iguidhelperstatics.dart @@ -33,7 +33,7 @@ class IGuidHelperStatics extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IGuidHelperStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -57,17 +57,17 @@ class IGuidHelperStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -84,7 +84,7 @@ class IGuidHelperStatics extends IInspectable { final targetNativeStructPtr = target.toNativeGUID(); final valueNativeStructPtr = value.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -98,7 +98,7 @@ class IGuidHelperStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, Pointer target, Pointer value, Pointer result)>()( - ptr.ref.lpVtbl, targetNativeStructPtr, valueNativeStructPtr, result); + lpVtbl, targetNativeStructPtr, valueNativeStructPtr, result); free(targetNativeStructPtr); free(valueNativeStructPtr); diff --git a/packages/windows_foundation/lib/src/imemorybuffer.dart b/packages/windows_foundation/lib/src/imemorybuffer.dart index c86c3d7c..9e8692e9 100644 --- a/packages/windows_foundation/lib/src/imemorybuffer.dart +++ b/packages/windows_foundation/lib/src/imemorybuffer.dart @@ -35,7 +35,7 @@ class IMemoryBuffer extends IInspectable implements IClosable { IMemoryBufferReference? createReference() { final reference = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IMemoryBuffer extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer reference)>()(ptr.ref.lpVtbl, reference); + Pointer reference)>()(lpVtbl, reference); if (FAILED(hr)) { free(reference); diff --git a/packages/windows_foundation/lib/src/imemorybufferfactory.dart b/packages/windows_foundation/lib/src/imemorybufferfactory.dart index d2dcb718..742373f1 100644 --- a/packages/windows_foundation/lib/src/imemorybufferfactory.dart +++ b/packages/windows_foundation/lib/src/imemorybufferfactory.dart @@ -33,7 +33,7 @@ class IMemoryBufferFactory extends IInspectable { MemoryBuffer create(int capacity) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IMemoryBufferFactory extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int capacity, - Pointer value)>()(ptr.ref.lpVtbl, capacity, value); + Pointer value)>()(lpVtbl, capacity, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_foundation/lib/src/imemorybufferreference.dart b/packages/windows_foundation/lib/src/imemorybufferreference.dart index d6dcedfd..2e011494 100644 --- a/packages/windows_foundation/lib/src/imemorybufferreference.dart +++ b/packages/windows_foundation/lib/src/imemorybufferreference.dart @@ -35,7 +35,7 @@ class IMemoryBufferReference extends IInspectable implements IClosable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IMemoryBufferReference extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -60,7 +60,7 @@ class IMemoryBufferReference extends IInspectable implements IClosable { try { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -73,7 +73,7 @@ class IMemoryBufferReference extends IInspectable implements IClosable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer handler, Pointer cookie)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, cookie); + lpVtbl, handler.ref.lpVtbl, cookie); if (FAILED(hr)) throwWindowsException(hr); @@ -85,7 +85,7 @@ class IMemoryBufferReference extends IInspectable implements IClosable { void remove_Closed(int cookie) { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -94,7 +94,7 @@ class IMemoryBufferReference extends IInspectable implements IClosable { VTablePointer lpVtbl, IntPtr cookie)>>>() .value .asFunction()( - ptr.ref.lpVtbl, cookie); + lpVtbl, cookie); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_foundation/lib/src/internal/extensions/extensions.dart b/packages/windows_foundation/lib/src/internal/extensions/extensions.dart index 2678d959..e68c9078 100644 --- a/packages/windows_foundation/lib/src/internal/extensions/extensions.dart +++ b/packages/windows_foundation/lib/src/internal/extensions/extensions.dart @@ -10,9 +10,9 @@ export 'double.dart'; export 'duration.dart'; export 'enum.dart'; export 'guid.dart'; -export 'iinspectable.dart'; export 'int.dart'; export 'ipropertyvalue.dart'; +export 'iunknown.dart'; export 'object.dart'; export 'string.dart'; export 'struct.dart'; diff --git a/packages/windows_foundation/lib/src/internal/extensions/ipropertyvalue.dart b/packages/windows_foundation/lib/src/internal/extensions/ipropertyvalue.dart index 3c7e7207..d7686478 100644 --- a/packages/windows_foundation/lib/src/internal/extensions/ipropertyvalue.dart +++ b/packages/windows_foundation/lib/src/internal/extensions/ipropertyvalue.dart @@ -10,7 +10,7 @@ import '../../iuriruntimeclass.dart'; import '../../propertytype.dart'; import '../../uri.dart' as winrt_uri; import 'comobject.dart'; -import 'iinspectable.dart'; +import 'iunknown.dart'; import 'uri.dart'; extension IPropertyValueHelper on IPropertyValue { diff --git a/packages/windows_foundation/lib/src/internal/extensions/iinspectable.dart b/packages/windows_foundation/lib/src/internal/extensions/iunknown.dart similarity index 62% rename from packages/windows_foundation/lib/src/internal/extensions/iinspectable.dart rename to packages/windows_foundation/lib/src/internal/extensions/iunknown.dart index 1af7a7a1..597a212b 100644 --- a/packages/windows_foundation/lib/src/internal/extensions/iinspectable.dart +++ b/packages/windows_foundation/lib/src/internal/extensions/iunknown.dart @@ -8,7 +8,13 @@ import 'package:ffi/ffi.dart'; import 'package:win32/win32.dart'; /// @nodoc -extension IInspectableFreeHelper on IInspectable { +extension IUnknownHelpers on IUnknown { + /// Returns the [VTablePointer] associated with the object. + VTablePointer get lpVtbl => ptr.ref.lpVtbl; + + /// Returns the v-table associated with the object. + Pointer get vtable => lpVtbl.value; + /// Detaches the object from the `Finalizer`, decrements its reference count /// and frees its memory. void free() { @@ -19,8 +25,8 @@ extension IInspectableFreeHelper on IInspectable { } /// @nodoc -extension IInspectableVTablePointerHelper on IInspectable? { +extension NullableIUnknownVTablePointerHelper on IUnknown? { /// Returns the [VTablePointer] associated with the object, or returns /// [nullptr] if the object is `null`. - VTablePointer get lpVtbl => this?.ptr.ref.lpVtbl ?? nullptr; + VTablePointer get lpVtbl => this?.lpVtbl ?? nullptr; } diff --git a/packages/windows_foundation/lib/src/internal/extensions/object.dart b/packages/windows_foundation/lib/src/internal/extensions/object.dart index 23e88fe6..4a313932 100644 --- a/packages/windows_foundation/lib/src/internal/extensions/object.dart +++ b/packages/windows_foundation/lib/src/internal/extensions/object.dart @@ -19,9 +19,9 @@ import 'datetime.dart'; import 'double.dart'; import 'duration.dart'; import 'guid.dart'; -import 'iinspectable.dart'; import 'int.dart'; import 'ipropertyvalue.dart'; +import 'iunknown.dart'; import 'string.dart'; import 'struct.dart'; import 'uri.dart'; diff --git a/packages/windows_foundation/lib/src/ipropertyvalue.dart b/packages/windows_foundation/lib/src/ipropertyvalue.dart index df7d0d46..4cc479a7 100644 --- a/packages/windows_foundation/lib/src/ipropertyvalue.dart +++ b/packages/windows_foundation/lib/src/ipropertyvalue.dart @@ -38,17 +38,17 @@ class IPropertyValue extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -62,17 +62,17 @@ class IPropertyValue extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -86,17 +86,17 @@ class IPropertyValue extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -110,17 +110,17 @@ class IPropertyValue extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -134,7 +134,7 @@ class IPropertyValue extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -144,7 +144,7 @@ class IPropertyValue extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -158,17 +158,17 @@ class IPropertyValue extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -182,7 +182,7 @@ class IPropertyValue extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -192,7 +192,7 @@ class IPropertyValue extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -206,17 +206,17 @@ class IPropertyValue extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(13) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(13) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -230,7 +230,7 @@ class IPropertyValue extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -240,7 +240,7 @@ class IPropertyValue extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -254,17 +254,17 @@ class IPropertyValue extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(15) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(15) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -278,7 +278,7 @@ class IPropertyValue extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -288,7 +288,7 @@ class IPropertyValue extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -302,7 +302,7 @@ class IPropertyValue extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -312,7 +312,7 @@ class IPropertyValue extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -326,17 +326,17 @@ class IPropertyValue extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(18) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(18) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -350,7 +350,7 @@ class IPropertyValue extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(19) .cast< Pointer< @@ -360,7 +360,7 @@ class IPropertyValue extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -374,17 +374,17 @@ class IPropertyValue extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(20) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(20) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -398,17 +398,17 @@ class IPropertyValue extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(21) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(21) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -422,17 +422,17 @@ class IPropertyValue extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(22) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(22) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -446,7 +446,7 @@ class IPropertyValue extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(23) .cast< Pointer< @@ -456,7 +456,7 @@ class IPropertyValue extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -470,7 +470,7 @@ class IPropertyValue extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(24) .cast< Pointer< @@ -480,7 +480,7 @@ class IPropertyValue extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -494,7 +494,7 @@ class IPropertyValue extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(25) .cast< Pointer< @@ -504,7 +504,7 @@ class IPropertyValue extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -519,20 +519,19 @@ class IPropertyValue extends IInspectable { final value = calloc>(); try { - final hr = ptr.ref.vtable - .elementAt(26) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - Pointer valueSize, - Pointer> value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer valueSize, - Pointer> value)>()( - ptr.ref.lpVtbl, valueSize, value); + final hr = vtable + .elementAt(26) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, + Pointer valueSize, + Pointer> value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, Pointer valueSize, + Pointer> value)>()(lpVtbl, valueSize, value); if (FAILED(hr)) throwWindowsException(hr); @@ -548,20 +547,19 @@ class IPropertyValue extends IInspectable { final value = calloc>(); try { - final hr = ptr.ref.vtable - .elementAt(27) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - Pointer valueSize, - Pointer> value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer valueSize, - Pointer> value)>()( - ptr.ref.lpVtbl, valueSize, value); + final hr = vtable + .elementAt(27) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, + Pointer valueSize, + Pointer> value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, Pointer valueSize, + Pointer> value)>()(lpVtbl, valueSize, value); if (FAILED(hr)) throwWindowsException(hr); @@ -577,20 +575,19 @@ class IPropertyValue extends IInspectable { final value = calloc>(); try { - final hr = ptr.ref.vtable - .elementAt(28) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - Pointer valueSize, - Pointer> value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer valueSize, - Pointer> value)>()( - ptr.ref.lpVtbl, valueSize, value); + final hr = vtable + .elementAt(28) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, + Pointer valueSize, + Pointer> value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, Pointer valueSize, + Pointer> value)>()(lpVtbl, valueSize, value); if (FAILED(hr)) throwWindowsException(hr); @@ -606,20 +603,19 @@ class IPropertyValue extends IInspectable { final value = calloc>(); try { - final hr = ptr.ref.vtable - .elementAt(29) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - Pointer valueSize, - Pointer> value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer valueSize, - Pointer> value)>()( - ptr.ref.lpVtbl, valueSize, value); + final hr = vtable + .elementAt(29) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, + Pointer valueSize, + Pointer> value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, Pointer valueSize, + Pointer> value)>()(lpVtbl, valueSize, value); if (FAILED(hr)) throwWindowsException(hr); @@ -635,20 +631,19 @@ class IPropertyValue extends IInspectable { final value = calloc>(); try { - final hr = ptr.ref.vtable - .elementAt(30) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - Pointer valueSize, - Pointer> value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer valueSize, - Pointer> value)>()( - ptr.ref.lpVtbl, valueSize, value); + final hr = vtable + .elementAt(30) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, + Pointer valueSize, + Pointer> value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, Pointer valueSize, + Pointer> value)>()(lpVtbl, valueSize, value); if (FAILED(hr)) throwWindowsException(hr); @@ -664,20 +659,19 @@ class IPropertyValue extends IInspectable { final value = calloc>(); try { - final hr = ptr.ref.vtable - .elementAt(31) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - Pointer valueSize, - Pointer> value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer valueSize, - Pointer> value)>()( - ptr.ref.lpVtbl, valueSize, value); + final hr = vtable + .elementAt(31) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, + Pointer valueSize, + Pointer> value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, Pointer valueSize, + Pointer> value)>()(lpVtbl, valueSize, value); if (FAILED(hr)) throwWindowsException(hr); @@ -693,20 +687,19 @@ class IPropertyValue extends IInspectable { final value = calloc>(); try { - final hr = ptr.ref.vtable - .elementAt(32) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - Pointer valueSize, - Pointer> value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer valueSize, - Pointer> value)>()( - ptr.ref.lpVtbl, valueSize, value); + final hr = vtable + .elementAt(32) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, + Pointer valueSize, + Pointer> value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, Pointer valueSize, + Pointer> value)>()(lpVtbl, valueSize, value); if (FAILED(hr)) throwWindowsException(hr); @@ -722,20 +715,19 @@ class IPropertyValue extends IInspectable { final value = calloc>(); try { - final hr = ptr.ref.vtable - .elementAt(33) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - Pointer valueSize, - Pointer> value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer valueSize, - Pointer> value)>()( - ptr.ref.lpVtbl, valueSize, value); + final hr = vtable + .elementAt(33) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, + Pointer valueSize, + Pointer> value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, Pointer valueSize, + Pointer> value)>()(lpVtbl, valueSize, value); if (FAILED(hr)) throwWindowsException(hr); @@ -751,20 +743,19 @@ class IPropertyValue extends IInspectable { final value = calloc>(); try { - final hr = ptr.ref.vtable - .elementAt(34) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - Pointer valueSize, - Pointer> value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer valueSize, - Pointer> value)>()( - ptr.ref.lpVtbl, valueSize, value); + final hr = vtable + .elementAt(34) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, + Pointer valueSize, + Pointer> value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, Pointer valueSize, + Pointer> value)>()(lpVtbl, valueSize, value); if (FAILED(hr)) throwWindowsException(hr); @@ -780,20 +771,19 @@ class IPropertyValue extends IInspectable { final value = calloc>(); try { - final hr = ptr.ref.vtable - .elementAt(35) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - Pointer valueSize, - Pointer> value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer valueSize, - Pointer> value)>()( - ptr.ref.lpVtbl, valueSize, value); + final hr = vtable + .elementAt(35) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, + Pointer valueSize, + Pointer> value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, Pointer valueSize, + Pointer> value)>()(lpVtbl, valueSize, value); if (FAILED(hr)) throwWindowsException(hr); @@ -809,20 +799,19 @@ class IPropertyValue extends IInspectable { final value = calloc>(); try { - final hr = ptr.ref.vtable - .elementAt(36) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - Pointer valueSize, - Pointer> value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer valueSize, - Pointer> value)>()( - ptr.ref.lpVtbl, valueSize, value); + final hr = vtable + .elementAt(36) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, + Pointer valueSize, + Pointer> value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, Pointer valueSize, + Pointer> value)>()(lpVtbl, valueSize, value); if (FAILED(hr)) throwWindowsException(hr); @@ -838,20 +827,19 @@ class IPropertyValue extends IInspectable { final value = calloc>(); try { - final hr = ptr.ref.vtable - .elementAt(37) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - Pointer valueSize, - Pointer> value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer valueSize, - Pointer> value)>()( - ptr.ref.lpVtbl, valueSize, value); + final hr = vtable + .elementAt(37) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, + Pointer valueSize, + Pointer> value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, Pointer valueSize, + Pointer> value)>()(lpVtbl, valueSize, value); if (FAILED(hr)) throwWindowsException(hr); @@ -867,7 +855,7 @@ class IPropertyValue extends IInspectable { final value = calloc>(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(38) .cast< Pointer< @@ -880,7 +868,7 @@ class IPropertyValue extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, Pointer valueSize, Pointer> value)>()( - ptr.ref.lpVtbl, valueSize, value); + lpVtbl, valueSize, value); if (FAILED(hr)) throwWindowsException(hr); @@ -896,20 +884,19 @@ class IPropertyValue extends IInspectable { final value = calloc>(); try { - final hr = ptr.ref.vtable - .elementAt(39) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - Pointer valueSize, - Pointer> value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer valueSize, - Pointer> value)>()( - ptr.ref.lpVtbl, valueSize, value); + final hr = vtable + .elementAt(39) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, + Pointer valueSize, + Pointer> value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, Pointer valueSize, + Pointer> value)>()(lpVtbl, valueSize, value); if (FAILED(hr)) throwWindowsException(hr); @@ -925,20 +912,19 @@ class IPropertyValue extends IInspectable { final value = calloc>(); try { - final hr = ptr.ref.vtable - .elementAt(40) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - Pointer valueSize, - Pointer> value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer valueSize, - Pointer> value)>()( - ptr.ref.lpVtbl, valueSize, value); + final hr = vtable + .elementAt(40) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, + Pointer valueSize, + Pointer> value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, Pointer valueSize, + Pointer> value)>()(lpVtbl, valueSize, value); if (FAILED(hr)) throwWindowsException(hr); @@ -954,20 +940,19 @@ class IPropertyValue extends IInspectable { final value = calloc>(); try { - final hr = ptr.ref.vtable - .elementAt(41) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - Pointer valueSize, - Pointer> value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer valueSize, - Pointer> value)>()( - ptr.ref.lpVtbl, valueSize, value); + final hr = vtable + .elementAt(41) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, + Pointer valueSize, + Pointer> value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, Pointer valueSize, + Pointer> value)>()(lpVtbl, valueSize, value); if (FAILED(hr)) throwWindowsException(hr); @@ -983,7 +968,7 @@ class IPropertyValue extends IInspectable { final value = calloc>(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(42) .cast< Pointer< @@ -996,7 +981,7 @@ class IPropertyValue extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, Pointer valueSize, Pointer> value)>()( - ptr.ref.lpVtbl, valueSize, value); + lpVtbl, valueSize, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1012,7 +997,7 @@ class IPropertyValue extends IInspectable { final value = calloc>(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(43) .cast< Pointer< @@ -1025,7 +1010,7 @@ class IPropertyValue extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, Pointer valueSize, Pointer> value)>()( - ptr.ref.lpVtbl, valueSize, value); + lpVtbl, valueSize, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1041,7 +1026,7 @@ class IPropertyValue extends IInspectable { final value = calloc>(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(44) .cast< Pointer< @@ -1054,7 +1039,7 @@ class IPropertyValue extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, Pointer valueSize, Pointer> value)>()( - ptr.ref.lpVtbl, valueSize, value); + lpVtbl, valueSize, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_foundation/lib/src/ipropertyvaluestatics.dart b/packages/windows_foundation/lib/src/ipropertyvaluestatics.dart index c6b90945..50373d5c 100644 --- a/packages/windows_foundation/lib/src/ipropertyvaluestatics.dart +++ b/packages/windows_foundation/lib/src/ipropertyvaluestatics.dart @@ -35,18 +35,17 @@ class IPropertyValueStatics extends IInspectable { Pointer createEmpty() { final propertyValue = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer propertyValue)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, Pointer propertyValue)>()( - ptr.ref.lpVtbl, propertyValue); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer propertyValue)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer propertyValue)>()(lpVtbl, propertyValue); if (FAILED(hr)) { free(propertyValue); @@ -59,7 +58,7 @@ class IPropertyValueStatics extends IInspectable { IPropertyValue createUInt8(int value) { final propertyValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -70,7 +69,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value, propertyValue); + lpVtbl, value, propertyValue); if (FAILED(hr)) { free(propertyValue); @@ -83,7 +82,7 @@ class IPropertyValueStatics extends IInspectable { IPropertyValue createInt16(int value) { final propertyValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -94,7 +93,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value, propertyValue); + lpVtbl, value, propertyValue); if (FAILED(hr)) { free(propertyValue); @@ -107,7 +106,7 @@ class IPropertyValueStatics extends IInspectable { IPropertyValue createUInt16(int value) { final propertyValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -118,7 +117,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value, propertyValue); + lpVtbl, value, propertyValue); if (FAILED(hr)) { free(propertyValue); @@ -131,7 +130,7 @@ class IPropertyValueStatics extends IInspectable { IPropertyValue createInt32(int value) { final propertyValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -142,7 +141,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value, propertyValue); + lpVtbl, value, propertyValue); if (FAILED(hr)) { free(propertyValue); @@ -155,7 +154,7 @@ class IPropertyValueStatics extends IInspectable { IPropertyValue createUInt32(int value) { final propertyValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -166,7 +165,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value, propertyValue); + lpVtbl, value, propertyValue); if (FAILED(hr)) { free(propertyValue); @@ -179,7 +178,7 @@ class IPropertyValueStatics extends IInspectable { IPropertyValue createInt64(int value) { final propertyValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -190,7 +189,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value, propertyValue); + lpVtbl, value, propertyValue); if (FAILED(hr)) { free(propertyValue); @@ -203,7 +202,7 @@ class IPropertyValueStatics extends IInspectable { IPropertyValue createUInt64(int value) { final propertyValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -214,7 +213,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value, propertyValue); + lpVtbl, value, propertyValue); if (FAILED(hr)) { free(propertyValue); @@ -227,7 +226,7 @@ class IPropertyValueStatics extends IInspectable { IPropertyValue createSingle(double value) { final propertyValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -238,7 +237,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, double value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value, propertyValue); + lpVtbl, value, propertyValue); if (FAILED(hr)) { free(propertyValue); @@ -251,7 +250,7 @@ class IPropertyValueStatics extends IInspectable { IPropertyValue createDouble(double value) { final propertyValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -262,7 +261,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, double value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value, propertyValue); + lpVtbl, value, propertyValue); if (FAILED(hr)) { free(propertyValue); @@ -275,7 +274,7 @@ class IPropertyValueStatics extends IInspectable { IPropertyValue createChar16(String value) { final propertyValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -286,7 +285,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value.codeUnitAt(0), propertyValue); + lpVtbl, value.codeUnitAt(0), propertyValue); if (FAILED(hr)) { free(propertyValue); @@ -299,7 +298,7 @@ class IPropertyValueStatics extends IInspectable { IPropertyValue createBoolean(bool value) { final propertyValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -310,7 +309,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, bool value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value, propertyValue); + lpVtbl, value, propertyValue); if (FAILED(hr)) { free(propertyValue); @@ -323,7 +322,7 @@ class IPropertyValueStatics extends IInspectable { IPropertyValue createString(String value) { final propertyValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast< Pointer< @@ -334,7 +333,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value.toHString(), propertyValue); + lpVtbl, value.toHString(), propertyValue); if (FAILED(hr)) { free(propertyValue); @@ -348,7 +347,7 @@ class IPropertyValueStatics extends IInspectable { final propertyValue = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(19) .cast< Pointer< @@ -361,7 +360,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value?.boxValue().lpVtbl ?? nullptr, propertyValue); + lpVtbl, value?.boxValue().lpVtbl ?? nullptr, propertyValue); if (FAILED(hr)) { free(propertyValue); @@ -375,7 +374,7 @@ class IPropertyValueStatics extends IInspectable { final propertyValue = calloc(); final valueNativeStructPtr = value.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(20) .cast< Pointer< @@ -386,7 +385,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, GUID value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, propertyValue); + lpVtbl, valueNativeStructPtr.ref, propertyValue); free(valueNativeStructPtr); @@ -401,7 +400,7 @@ class IPropertyValueStatics extends IInspectable { IPropertyValue createDateTime(DateTime value) { final propertyValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(21) .cast< Pointer< @@ -412,7 +411,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value.toWinRTDateTime(), propertyValue); + lpVtbl, value.toWinRTDateTime(), propertyValue); if (FAILED(hr)) { free(propertyValue); @@ -425,7 +424,7 @@ class IPropertyValueStatics extends IInspectable { IPropertyValue createTimeSpan(Duration value) { final propertyValue = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(22) .cast< Pointer< @@ -436,7 +435,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value.toWinRTDuration(), propertyValue); + lpVtbl, value.toWinRTDuration(), propertyValue); if (FAILED(hr)) { free(propertyValue); @@ -451,7 +450,7 @@ class IPropertyValueStatics extends IInspectable { final valueNativeStructPtr = value.toNative(); final hr = - ptr.ref.vtable + vtable .elementAt(23) .cast< Pointer< @@ -464,7 +463,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, NativePoint value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, propertyValue); + lpVtbl, valueNativeStructPtr.ref, propertyValue); free(valueNativeStructPtr); @@ -480,7 +479,7 @@ class IPropertyValueStatics extends IInspectable { final propertyValue = calloc(); final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(24) .cast< Pointer< @@ -491,7 +490,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, NativeSize value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, propertyValue); + lpVtbl, valueNativeStructPtr.ref, propertyValue); free(valueNativeStructPtr); @@ -507,7 +506,7 @@ class IPropertyValueStatics extends IInspectable { final propertyValue = calloc(); final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(25) .cast< Pointer< @@ -518,7 +517,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, NativeRect value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, propertyValue); + lpVtbl, valueNativeStructPtr.ref, propertyValue); free(valueNativeStructPtr); @@ -534,7 +533,7 @@ class IPropertyValueStatics extends IInspectable { final propertyValue = calloc(); final valueArray = value.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(26) .cast< Pointer< @@ -548,7 +547,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int valueSize, Pointer value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value.length, valueArray, propertyValue); + lpVtbl, value.length, valueArray, propertyValue); free(valueArray); @@ -564,7 +563,7 @@ class IPropertyValueStatics extends IInspectable { final propertyValue = calloc(); final valueArray = value.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(27) .cast< Pointer< @@ -578,7 +577,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int valueSize, Pointer value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value.length, valueArray, propertyValue); + lpVtbl, value.length, valueArray, propertyValue); free(valueArray); @@ -594,7 +593,7 @@ class IPropertyValueStatics extends IInspectable { final propertyValue = calloc(); final valueArray = value.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(28) .cast< Pointer< @@ -608,7 +607,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int valueSize, Pointer value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value.length, valueArray, propertyValue); + lpVtbl, value.length, valueArray, propertyValue); free(valueArray); @@ -624,7 +623,7 @@ class IPropertyValueStatics extends IInspectable { final propertyValue = calloc(); final valueArray = value.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(29) .cast< Pointer< @@ -638,7 +637,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int valueSize, Pointer value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value.length, valueArray, propertyValue); + lpVtbl, value.length, valueArray, propertyValue); free(valueArray); @@ -654,7 +653,7 @@ class IPropertyValueStatics extends IInspectable { final propertyValue = calloc(); final valueArray = value.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(30) .cast< Pointer< @@ -668,7 +667,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int valueSize, Pointer value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value.length, valueArray, propertyValue); + lpVtbl, value.length, valueArray, propertyValue); free(valueArray); @@ -684,7 +683,7 @@ class IPropertyValueStatics extends IInspectable { final propertyValue = calloc(); final valueArray = value.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(31) .cast< Pointer< @@ -698,7 +697,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int valueSize, Pointer value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value.length, valueArray, propertyValue); + lpVtbl, value.length, valueArray, propertyValue); free(valueArray); @@ -714,7 +713,7 @@ class IPropertyValueStatics extends IInspectable { final propertyValue = calloc(); final valueArray = value.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(32) .cast< Pointer< @@ -728,7 +727,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int valueSize, Pointer value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value.length, valueArray, propertyValue); + lpVtbl, value.length, valueArray, propertyValue); free(valueArray); @@ -744,7 +743,7 @@ class IPropertyValueStatics extends IInspectable { final propertyValue = calloc(); final valueArray = value.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(33) .cast< Pointer< @@ -758,7 +757,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int valueSize, Pointer value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value.length, valueArray, propertyValue); + lpVtbl, value.length, valueArray, propertyValue); free(valueArray); @@ -774,7 +773,7 @@ class IPropertyValueStatics extends IInspectable { final propertyValue = calloc(); final valueArray = value.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(34) .cast< Pointer< @@ -788,7 +787,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int valueSize, Pointer value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value.length, valueArray, propertyValue); + lpVtbl, value.length, valueArray, propertyValue); free(valueArray); @@ -804,7 +803,7 @@ class IPropertyValueStatics extends IInspectable { final propertyValue = calloc(); final valueArray = value.toUint16Array(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(35) .cast< Pointer< @@ -818,7 +817,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int valueSize, Pointer value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value.length, valueArray, propertyValue); + lpVtbl, value.length, valueArray, propertyValue); free(valueArray); @@ -834,7 +833,7 @@ class IPropertyValueStatics extends IInspectable { final propertyValue = calloc(); final valueArray = value.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(36) .cast< Pointer< @@ -848,7 +847,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int valueSize, Pointer value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value.length, valueArray, propertyValue); + lpVtbl, value.length, valueArray, propertyValue); free(valueArray); @@ -864,7 +863,7 @@ class IPropertyValueStatics extends IInspectable { final propertyValue = calloc(); final valueArray = value.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(37) .cast< Pointer< @@ -878,7 +877,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int valueSize, Pointer value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value.length, valueArray, propertyValue); + lpVtbl, value.length, valueArray, propertyValue); free(valueArray); @@ -894,7 +893,7 @@ class IPropertyValueStatics extends IInspectable { final propertyValue = calloc(); final valueArray = value.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(38) .cast< Pointer< @@ -911,7 +910,7 @@ class IPropertyValueStatics extends IInspectable { int valueSize, Pointer value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value.length, valueArray, propertyValue); + lpVtbl, value.length, valueArray, propertyValue); free(valueArray); @@ -928,7 +927,7 @@ class IPropertyValueStatics extends IInspectable { final allocator = Arena(); final valueArray = value.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(39) .cast< Pointer< @@ -942,7 +941,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int valueSize, Pointer value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value.length, valueArray, propertyValue); + lpVtbl, value.length, valueArray, propertyValue); allocator.releaseAll(); @@ -958,7 +957,7 @@ class IPropertyValueStatics extends IInspectable { final propertyValue = calloc(); final valueArray = value.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(40) .cast< Pointer< @@ -972,7 +971,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int valueSize, Pointer value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value.length, valueArray, propertyValue); + lpVtbl, value.length, valueArray, propertyValue); free(valueArray); @@ -988,7 +987,7 @@ class IPropertyValueStatics extends IInspectable { final propertyValue = calloc(); final valueArray = value.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(41) .cast< Pointer< @@ -1002,7 +1001,7 @@ class IPropertyValueStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int valueSize, Pointer value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value.length, valueArray, propertyValue); + lpVtbl, value.length, valueArray, propertyValue); free(valueArray); @@ -1019,7 +1018,7 @@ class IPropertyValueStatics extends IInspectable { final allocator = Arena(); final valueArray = value.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(42) .cast< Pointer< @@ -1036,7 +1035,7 @@ class IPropertyValueStatics extends IInspectable { int valueSize, Pointer value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value.length, valueArray, propertyValue); + lpVtbl, value.length, valueArray, propertyValue); allocator.releaseAll(); @@ -1053,7 +1052,7 @@ class IPropertyValueStatics extends IInspectable { final allocator = Arena(); final valueArray = value.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(43) .cast< Pointer< @@ -1070,7 +1069,7 @@ class IPropertyValueStatics extends IInspectable { int valueSize, Pointer value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value.length, valueArray, propertyValue); + lpVtbl, value.length, valueArray, propertyValue); allocator.releaseAll(); @@ -1087,7 +1086,7 @@ class IPropertyValueStatics extends IInspectable { final allocator = Arena(); final valueArray = value.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(44) .cast< Pointer< @@ -1104,7 +1103,7 @@ class IPropertyValueStatics extends IInspectable { int valueSize, Pointer value, Pointer propertyValue)>()( - ptr.ref.lpVtbl, value.length, valueArray, propertyValue); + lpVtbl, value.length, valueArray, propertyValue); allocator.releaseAll(); diff --git a/packages/windows_foundation/lib/src/ireference_part.dart b/packages/windows_foundation/lib/src/ireference_part.dart index 564532c2..e395cb8d 100644 --- a/packages/windows_foundation/lib/src/ireference_part.dart +++ b/packages/windows_foundation/lib/src/ireference_part.dart @@ -19,7 +19,7 @@ final class _IReferenceBasicGeoposition extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -30,7 +30,7 @@ final class _IReferenceBasicGeoposition extends IReference { .asFunction< int Function(VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -51,7 +51,7 @@ final class _IReferenceBool extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -61,7 +61,7 @@ final class _IReferenceBool extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -82,18 +82,17 @@ final class _IReferenceColor extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -114,7 +113,7 @@ final class _IReferenceDateTime extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -124,7 +123,7 @@ final class _IReferenceDateTime extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -146,7 +145,7 @@ final class _IReferenceDisplayPresentationRate final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -159,7 +158,7 @@ final class _IReferenceDisplayPresentationRate .asFunction< int Function(VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -180,7 +179,7 @@ final class _IReferenceDouble extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -190,7 +189,7 @@ final class _IReferenceDouble extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -211,7 +210,7 @@ final class _IReferenceDuration extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -221,7 +220,7 @@ final class _IReferenceDuration extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -242,7 +241,7 @@ final class _IReferenceFloat extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -252,7 +251,7 @@ final class _IReferenceFloat extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -273,7 +272,7 @@ final class _IReferenceGuid extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -283,7 +282,7 @@ final class _IReferenceGuid extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -305,7 +304,7 @@ final class _IReferenceHolographicStereoTransform final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -318,7 +317,7 @@ final class _IReferenceHolographicStereoTransform .asFunction< int Function(VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -339,7 +338,7 @@ final class _IReferenceInt16 extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -349,7 +348,7 @@ final class _IReferenceInt16 extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -370,7 +369,7 @@ final class _IReferenceInt32 extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -380,7 +379,7 @@ final class _IReferenceInt32 extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -401,7 +400,7 @@ final class _IReferenceInt64 extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -411,7 +410,7 @@ final class _IReferenceInt64 extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -432,18 +431,17 @@ final class _IReferenceMatrix4x4 extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -464,7 +462,7 @@ final class _IReferenceMseTimeRange extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -475,7 +473,7 @@ final class _IReferenceMseTimeRange extends IReference { .asFunction< int Function(VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -496,18 +494,17 @@ final class _IReferencePoint extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -528,7 +525,7 @@ final class _IReferenceQuaternion extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -539,7 +536,7 @@ final class _IReferenceQuaternion extends IReference { .asFunction< int Function(VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -560,18 +557,17 @@ final class _IReferenceRect extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -592,18 +588,17 @@ final class _IReferenceSize extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -624,18 +619,17 @@ final class _IReferenceSizeInt32 extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -657,7 +651,7 @@ final class _IReferenceSpatialBoundingBox final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -669,7 +663,7 @@ final class _IReferenceSpatialBoundingBox int Function( VTablePointer lpVtbl, Pointer - retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -691,7 +685,7 @@ final class _IReferenceSpatialBoundingFrustum final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -704,7 +698,7 @@ final class _IReferenceSpatialBoundingFrustum .asFunction< int Function(VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -726,7 +720,7 @@ final class _IReferenceSpatialBoundingOrientedBox final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -739,7 +733,7 @@ final class _IReferenceSpatialBoundingOrientedBox .asFunction< int Function(VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -760,7 +754,7 @@ final class _IReferenceSpatialRay extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -771,7 +765,7 @@ final class _IReferenceSpatialRay extends IReference { .asFunction< int Function(VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -792,7 +786,7 @@ final class _IReferenceString extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -802,7 +796,7 @@ final class _IReferenceString extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -823,7 +817,7 @@ final class _IReferenceUint8 extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -833,7 +827,7 @@ final class _IReferenceUint8 extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -854,7 +848,7 @@ final class _IReferenceUint16 extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -864,7 +858,7 @@ final class _IReferenceUint16 extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -885,7 +879,7 @@ final class _IReferenceUint32 extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -895,7 +889,7 @@ final class _IReferenceUint32 extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -916,7 +910,7 @@ final class _IReferenceUint64 extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -926,7 +920,7 @@ final class _IReferenceUint64 extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -947,18 +941,17 @@ final class _IReferenceVector2 extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -979,18 +972,17 @@ final class _IReferenceVector3 extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1011,7 +1003,7 @@ final class _IReferenceWhiteBalanceGain extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1022,7 +1014,7 @@ final class _IReferenceWhiteBalanceGain extends IReference { .asFunction< int Function(VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1045,7 +1037,7 @@ final class _IReferenceWinRTEnum extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1055,7 +1047,7 @@ final class _IReferenceWinRTEnum extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1078,7 +1070,7 @@ final class _IReferenceWinRTFlagsEnum extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1088,7 +1080,7 @@ final class _IReferenceWinRTFlagsEnum extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_foundation/lib/src/istringable.dart b/packages/windows_foundation/lib/src/istringable.dart index e67ee743..262d6d64 100644 --- a/packages/windows_foundation/lib/src/istringable.dart +++ b/packages/windows_foundation/lib/src/istringable.dart @@ -35,7 +35,7 @@ class IStringable extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IStringable extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_foundation/lib/src/iuriescapestatics.dart b/packages/windows_foundation/lib/src/iuriescapestatics.dart index 5b3b7ac4..d088e2e8 100644 --- a/packages/windows_foundation/lib/src/iuriescapestatics.dart +++ b/packages/windows_foundation/lib/src/iuriescapestatics.dart @@ -34,7 +34,7 @@ class IUriEscapeStatics extends IInspectable { try { final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IUriEscapeStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int toUnescape, Pointer value)>()( - ptr.ref.lpVtbl, toUnescape.toHString(), value); + lpVtbl, toUnescape.toHString(), value); if (FAILED(hr)) throwWindowsException(hr); @@ -60,7 +60,7 @@ class IUriEscapeStatics extends IInspectable { try { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -71,7 +71,7 @@ class IUriEscapeStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int toEscape, Pointer value)>()( - ptr.ref.lpVtbl, toEscape.toHString(), value); + lpVtbl, toEscape.toHString(), value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_foundation/lib/src/iuriruntimeclass.dart b/packages/windows_foundation/lib/src/iuriruntimeclass.dart index b090e7d5..cc355fec 100644 --- a/packages/windows_foundation/lib/src/iuriruntimeclass.dart +++ b/packages/windows_foundation/lib/src/iuriruntimeclass.dart @@ -35,7 +35,7 @@ class IUriRuntimeClass extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IUriRuntimeClass extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -59,7 +59,7 @@ class IUriRuntimeClass extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -69,7 +69,7 @@ class IUriRuntimeClass extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -83,7 +83,7 @@ class IUriRuntimeClass extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -93,7 +93,7 @@ class IUriRuntimeClass extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -107,7 +107,7 @@ class IUriRuntimeClass extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -117,7 +117,7 @@ class IUriRuntimeClass extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -131,7 +131,7 @@ class IUriRuntimeClass extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -141,7 +141,7 @@ class IUriRuntimeClass extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -155,7 +155,7 @@ class IUriRuntimeClass extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -165,7 +165,7 @@ class IUriRuntimeClass extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -179,7 +179,7 @@ class IUriRuntimeClass extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -189,7 +189,7 @@ class IUriRuntimeClass extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -203,7 +203,7 @@ class IUriRuntimeClass extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -213,7 +213,7 @@ class IUriRuntimeClass extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -227,7 +227,7 @@ class IUriRuntimeClass extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -237,7 +237,7 @@ class IUriRuntimeClass extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -250,7 +250,7 @@ class IUriRuntimeClass extends IInspectable { WwwFormUrlDecoder? get queryParsed { final ppWwwFormUrlDecoder = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -261,7 +261,7 @@ class IUriRuntimeClass extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, Pointer ppWwwFormUrlDecoder)>()( - ptr.ref.lpVtbl, ppWwwFormUrlDecoder); + lpVtbl, ppWwwFormUrlDecoder); if (FAILED(hr)) { free(ppWwwFormUrlDecoder); @@ -280,7 +280,7 @@ class IUriRuntimeClass extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -290,7 +290,7 @@ class IUriRuntimeClass extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -304,7 +304,7 @@ class IUriRuntimeClass extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -314,7 +314,7 @@ class IUriRuntimeClass extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -328,7 +328,7 @@ class IUriRuntimeClass extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast< Pointer< @@ -338,7 +338,7 @@ class IUriRuntimeClass extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -352,17 +352,17 @@ class IUriRuntimeClass extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(19) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(19) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -376,17 +376,17 @@ class IUriRuntimeClass extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(20) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(20) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -400,7 +400,7 @@ class IUriRuntimeClass extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(21) .cast< Pointer< @@ -410,7 +410,7 @@ class IUriRuntimeClass extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer pUri, - Pointer value)>()(ptr.ref.lpVtbl, pUri.lpVtbl, value); + Pointer value)>()(lpVtbl, pUri.lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -424,7 +424,7 @@ class IUriRuntimeClass extends IInspectable { final instance = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(22) .cast< Pointer< @@ -437,7 +437,7 @@ class IUriRuntimeClass extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int relativeUri, Pointer instance)>()( - ptr.ref.lpVtbl, relativeUri.toHString(), instance); + lpVtbl, relativeUri.toHString(), instance); if (FAILED(hr)) { free(instance); diff --git a/packages/windows_foundation/lib/src/iuriruntimeclassfactory.dart b/packages/windows_foundation/lib/src/iuriruntimeclassfactory.dart index 6a17e3a3..f9d94bac 100644 --- a/packages/windows_foundation/lib/src/iuriruntimeclassfactory.dart +++ b/packages/windows_foundation/lib/src/iuriruntimeclassfactory.dart @@ -33,7 +33,7 @@ class IUriRuntimeClassFactory extends IInspectable { Uri createUri(String uri) { final instance = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class IUriRuntimeClassFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int uri, Pointer instance)>()( - ptr.ref.lpVtbl, uri.toHString(), instance); + lpVtbl, uri.toHString(), instance); if (FAILED(hr)) { free(instance); @@ -58,7 +58,7 @@ class IUriRuntimeClassFactory extends IInspectable { final instance = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -72,10 +72,7 @@ class IUriRuntimeClassFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int baseUri, int relativeUri, Pointer instance)>()( - ptr.ref.lpVtbl, - baseUri.toHString(), - relativeUri.toHString(), - instance); + lpVtbl, baseUri.toHString(), relativeUri.toHString(), instance); if (FAILED(hr)) { free(instance); diff --git a/packages/windows_foundation/lib/src/iuriruntimeclasswithabsolutecanonicaluri.dart b/packages/windows_foundation/lib/src/iuriruntimeclasswithabsolutecanonicaluri.dart index 02222b19..d632f79e 100644 --- a/packages/windows_foundation/lib/src/iuriruntimeclasswithabsolutecanonicaluri.dart +++ b/packages/windows_foundation/lib/src/iuriruntimeclasswithabsolutecanonicaluri.dart @@ -36,7 +36,7 @@ class IUriRuntimeClassWithAbsoluteCanonicalUri extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -46,7 +46,7 @@ class IUriRuntimeClassWithAbsoluteCanonicalUri extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -60,7 +60,7 @@ class IUriRuntimeClassWithAbsoluteCanonicalUri extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -70,7 +70,7 @@ class IUriRuntimeClassWithAbsoluteCanonicalUri extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_foundation/lib/src/iwwwformurldecoderentry.dart b/packages/windows_foundation/lib/src/iwwwformurldecoderentry.dart index dcb8f366..3f4aafe8 100644 --- a/packages/windows_foundation/lib/src/iwwwformurldecoderentry.dart +++ b/packages/windows_foundation/lib/src/iwwwformurldecoderentry.dart @@ -33,7 +33,7 @@ class IWwwFormUrlDecoderEntry extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IWwwFormUrlDecoderEntry extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -57,7 +57,7 @@ class IWwwFormUrlDecoderEntry extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -67,7 +67,7 @@ class IWwwFormUrlDecoderEntry extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_foundation/lib/src/iwwwformurldecoderruntimeclass.dart b/packages/windows_foundation/lib/src/iwwwformurldecoderruntimeclass.dart index 958e39f5..c0076745 100644 --- a/packages/windows_foundation/lib/src/iwwwformurldecoderruntimeclass.dart +++ b/packages/windows_foundation/lib/src/iwwwformurldecoderruntimeclass.dart @@ -41,7 +41,7 @@ class IWwwFormUrlDecoderRuntimeClass extends IInspectable final phstrValue = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -52,7 +52,7 @@ class IWwwFormUrlDecoderRuntimeClass extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, int name, Pointer phstrValue)>()( - ptr.ref.lpVtbl, name.toHString(), phstrValue); + lpVtbl, name.toHString(), phstrValue); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_foundation/lib/src/iwwwformurldecoderruntimeclassfactory.dart b/packages/windows_foundation/lib/src/iwwwformurldecoderruntimeclassfactory.dart index 65af4e92..a5491872 100644 --- a/packages/windows_foundation/lib/src/iwwwformurldecoderruntimeclassfactory.dart +++ b/packages/windows_foundation/lib/src/iwwwformurldecoderruntimeclassfactory.dart @@ -35,7 +35,7 @@ class IWwwFormUrlDecoderRuntimeClassFactory extends IInspectable { WwwFormUrlDecoder createWwwFormUrlDecoder(String query) { final instance = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -46,7 +46,7 @@ class IWwwFormUrlDecoderRuntimeClassFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int query, Pointer instance)>()( - ptr.ref.lpVtbl, query.toHString(), instance); + lpVtbl, query.toHString(), instance); if (FAILED(hr)) { free(instance); diff --git a/packages/windows_foundation/test/collections/imapview_test.dart b/packages/windows_foundation/test/collections/imapview_test.dart index 82fd6503..ef1a213d 100644 --- a/packages/windows_foundation/test/collections/imapview_test.dart +++ b/packages/windows_foundation/test/collections/imapview_test.dart @@ -21,7 +21,7 @@ void main() { IMapView getView(Pointer ptr) { final retValuePtr = calloc(); - final hr = ptr.ref.lpVtbl.value + final hr = ptr.ref.vtable .elementAt(9) .cast< Pointer< diff --git a/packages/windows_gaming/lib/src/input/igamecontroller.dart b/packages/windows_gaming/lib/src/input/igamecontroller.dart index 44d11df9..507edd18 100644 --- a/packages/windows_gaming/lib/src/input/igamecontroller.dart +++ b/packages/windows_gaming/lib/src/input/igamecontroller.dart @@ -33,18 +33,17 @@ class IGameController extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer value, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer value, - Pointer token)>()( - ptr.ref.lpVtbl, value.ref.lpVtbl, token); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer value, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer value, + Pointer token)>()(lpVtbl, value.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +55,7 @@ class IGameController extends IInspectable { void remove_HeadsetConnected(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -65,7 +64,7 @@ class IGameController extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -74,18 +73,17 @@ class IGameController extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer value, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer value, - Pointer token)>()( - ptr.ref.lpVtbl, value.ref.lpVtbl, token); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer value, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer value, + Pointer token)>()(lpVtbl, value.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -97,7 +95,7 @@ class IGameController extends IInspectable { void remove_HeadsetDisconnected(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -106,7 +104,7 @@ class IGameController extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -115,18 +113,17 @@ class IGameController extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer value, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer value, - Pointer token)>()( - ptr.ref.lpVtbl, value.ref.lpVtbl, token); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer value, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer value, + Pointer token)>()(lpVtbl, value.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -138,7 +135,7 @@ class IGameController extends IInspectable { void remove_UserChanged(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(11) .cast< Pointer< @@ -147,7 +144,7 @@ class IGameController extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -155,7 +152,7 @@ class IGameController extends IInspectable { Headset? get headset { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -165,7 +162,7 @@ class IGameController extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -184,17 +181,17 @@ class IGameController extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(13) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(13) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -207,7 +204,7 @@ class IGameController extends IInspectable { User? get user { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -217,7 +214,7 @@ class IGameController extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_gaming/lib/src/input/igamecontrollerbatteryinfo.dart b/packages/windows_gaming/lib/src/input/igamecontrollerbatteryinfo.dart index 372154b8..9e3bd8ff 100644 --- a/packages/windows_gaming/lib/src/input/igamecontrollerbatteryinfo.dart +++ b/packages/windows_gaming/lib/src/input/igamecontrollerbatteryinfo.dart @@ -30,7 +30,7 @@ class IGameControllerBatteryInfo extends IInspectable { BatteryReport? tryGetBatteryReport() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IGameControllerBatteryInfo extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_gaming/lib/src/input/igamepad.dart b/packages/windows_gaming/lib/src/input/igamepad.dart index 53cf3a9e..2d844209 100644 --- a/packages/windows_gaming/lib/src/input/igamepad.dart +++ b/packages/windows_gaming/lib/src/input/igamepad.dart @@ -36,18 +36,17 @@ class IGamepad extends IInspectable implements IGameController { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -60,7 +59,7 @@ class IGamepad extends IInspectable implements IGameController { set vibration(GamepadVibration value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -71,7 +70,7 @@ class IGamepad extends IInspectable implements IGameController { .asFunction< int Function( VTablePointer lpVtbl, NativeGamepadVibration value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -82,18 +81,17 @@ class IGamepad extends IInspectable implements IGameController { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_gaming/lib/src/input/igamepad2.dart b/packages/windows_gaming/lib/src/input/igamepad2.dart index a2aaf90f..6f0f7eda 100644 --- a/packages/windows_gaming/lib/src/input/igamepad2.dart +++ b/packages/windows_gaming/lib/src/input/igamepad2.dart @@ -39,7 +39,7 @@ class IGamepad2 extends IInspectable implements IGamepad, IGameController { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -49,7 +49,7 @@ class IGamepad2 extends IInspectable implements IGamepad, IGameController { .value .asFunction< int Function(VTablePointer lpVtbl, int button, - Pointer value)>()(ptr.ref.lpVtbl, button.value, value); + Pointer value)>()(lpVtbl, button.value, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_gaming/lib/src/input/igamepadstatics.dart b/packages/windows_gaming/lib/src/input/igamepadstatics.dart index fdba1ddf..a44d61c7 100644 --- a/packages/windows_gaming/lib/src/input/igamepadstatics.dart +++ b/packages/windows_gaming/lib/src/input/igamepadstatics.dart @@ -32,18 +32,17 @@ class IGamepadStatics extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer value, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer value, - Pointer token)>()( - ptr.ref.lpVtbl, value.ref.lpVtbl, token); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer value, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer value, + Pointer token)>()(lpVtbl, value.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +54,7 @@ class IGamepadStatics extends IInspectable { void remove_GamepadAdded(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -64,7 +63,7 @@ class IGamepadStatics extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -73,18 +72,17 @@ class IGamepadStatics extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer value, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer value, - Pointer token)>()( - ptr.ref.lpVtbl, value.ref.lpVtbl, token); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer value, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer value, + Pointer token)>()(lpVtbl, value.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -96,7 +94,7 @@ class IGamepadStatics extends IInspectable { void remove_GamepadRemoved(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -105,7 +103,7 @@ class IGamepadStatics extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -113,7 +111,7 @@ class IGamepadStatics extends IInspectable { List? get gamepads { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -123,7 +121,7 @@ class IGamepadStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_gaming/lib/src/input/igamepadstatics2.dart b/packages/windows_gaming/lib/src/input/igamepadstatics2.dart index 40926820..c0530dc4 100644 --- a/packages/windows_gaming/lib/src/input/igamepadstatics2.dart +++ b/packages/windows_gaming/lib/src/input/igamepadstatics2.dart @@ -33,7 +33,7 @@ class IGamepadStatics2 extends IInspectable implements IGamepadStatics { Gamepad? fromGameController(IGameController? gameController) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -46,7 +46,7 @@ class IGamepadStatics2 extends IInspectable implements IGamepadStatics { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer gameController, Pointer value)>()( - ptr.ref.lpVtbl, gameController.lpVtbl, value); + lpVtbl, gameController.lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_gaming/lib/src/input/iheadset.dart b/packages/windows_gaming/lib/src/input/iheadset.dart index 7e2923e3..359725b0 100644 --- a/packages/windows_gaming/lib/src/input/iheadset.dart +++ b/packages/windows_gaming/lib/src/input/iheadset.dart @@ -30,7 +30,7 @@ class IHeadset extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IHeadset extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IHeadset extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IHeadset extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/collation/icharactergrouping.dart b/packages/windows_globalization/lib/src/collation/icharactergrouping.dart index 06017e5b..b7b08f35 100644 --- a/packages/windows_globalization/lib/src/collation/icharactergrouping.dart +++ b/packages/windows_globalization/lib/src/collation/icharactergrouping.dart @@ -30,7 +30,7 @@ class ICharacterGrouping extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class ICharacterGrouping extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class ICharacterGrouping extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class ICharacterGrouping extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/collation/icharactergroupings.dart b/packages/windows_globalization/lib/src/collation/icharactergroupings.dart index d23ece51..d4dc7e9f 100644 --- a/packages/windows_globalization/lib/src/collation/icharactergroupings.dart +++ b/packages/windows_globalization/lib/src/collation/icharactergroupings.dart @@ -33,18 +33,17 @@ class ICharacterGroupings extends IInspectable final result = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, IntPtr text, - Pointer result)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int text, - Pointer result)>()( - ptr.ref.lpVtbl, text.toHString(), result); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, IntPtr text, + Pointer result)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int text, + Pointer result)>()(lpVtbl, text.toHString(), result); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/collation/icharactergroupingsfactory.dart b/packages/windows_globalization/lib/src/collation/icharactergroupingsfactory.dart index 4f3b3d26..154938f6 100644 --- a/packages/windows_globalization/lib/src/collation/icharactergroupingsfactory.dart +++ b/packages/windows_globalization/lib/src/collation/icharactergroupingsfactory.dart @@ -31,7 +31,7 @@ class ICharacterGroupingsFactory extends IInspectable { CharacterGroupings create(String language) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class ICharacterGroupingsFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int language, Pointer result)>()( - ptr.ref.lpVtbl, language.toHString(), result); + lpVtbl, language.toHString(), result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_globalization/lib/src/datetimeformatting/idatetimeformatter.dart b/packages/windows_globalization/lib/src/datetimeformatting/idatetimeformatter.dart index 1c29f2ac..86c57d46 100644 --- a/packages/windows_globalization/lib/src/datetimeformatting/idatetimeformatter.dart +++ b/packages/windows_globalization/lib/src/datetimeformatting/idatetimeformatter.dart @@ -37,7 +37,7 @@ class IDateTimeFormatter extends IInspectable { List? get languages { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -47,7 +47,7 @@ class IDateTimeFormatter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -68,7 +68,7 @@ class IDateTimeFormatter extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -78,7 +78,7 @@ class IDateTimeFormatter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -92,7 +92,7 @@ class IDateTimeFormatter extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -102,7 +102,7 @@ class IDateTimeFormatter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -116,7 +116,7 @@ class IDateTimeFormatter extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -126,7 +126,7 @@ class IDateTimeFormatter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -140,7 +140,7 @@ class IDateTimeFormatter extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -150,7 +150,7 @@ class IDateTimeFormatter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -162,7 +162,7 @@ class IDateTimeFormatter extends IInspectable { set numeralSystem(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(11) .cast< Pointer< @@ -171,7 +171,7 @@ class IDateTimeFormatter extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -179,7 +179,7 @@ class IDateTimeFormatter extends IInspectable { List? get patterns { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -189,7 +189,7 @@ class IDateTimeFormatter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -210,7 +210,7 @@ class IDateTimeFormatter extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -220,7 +220,7 @@ class IDateTimeFormatter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -234,7 +234,7 @@ class IDateTimeFormatter extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -245,7 +245,7 @@ class IDateTimeFormatter extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer result)>()( - ptr.ref.lpVtbl, value.toWinRTDateTime(), result); + lpVtbl, value.toWinRTDateTime(), result); if (FAILED(hr)) throwWindowsException(hr); @@ -259,17 +259,17 @@ class IDateTimeFormatter extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(15) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(15) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -283,17 +283,17 @@ class IDateTimeFormatter extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(16) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(16) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -307,17 +307,17 @@ class IDateTimeFormatter extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -331,17 +331,17 @@ class IDateTimeFormatter extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(18) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(18) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -355,17 +355,17 @@ class IDateTimeFormatter extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(19) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(19) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -379,17 +379,17 @@ class IDateTimeFormatter extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(20) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(20) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -403,17 +403,17 @@ class IDateTimeFormatter extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(21) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(21) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -427,7 +427,7 @@ class IDateTimeFormatter extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(22) .cast< Pointer< @@ -437,7 +437,7 @@ class IDateTimeFormatter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -451,7 +451,7 @@ class IDateTimeFormatter extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(23) .cast< Pointer< @@ -461,7 +461,7 @@ class IDateTimeFormatter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/datetimeformatting/idatetimeformatter2.dart b/packages/windows_globalization/lib/src/datetimeformatting/idatetimeformatter2.dart index c8642d9b..60d2777a 100644 --- a/packages/windows_globalization/lib/src/datetimeformatting/idatetimeformatter2.dart +++ b/packages/windows_globalization/lib/src/datetimeformatting/idatetimeformatter2.dart @@ -30,7 +30,7 @@ class IDateTimeFormatter2 extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,8 +40,8 @@ class IDateTimeFormatter2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int datetime, - int timeZoneId, Pointer result)>()(ptr.ref.lpVtbl, - datetime.toWinRTDateTime(), timeZoneId.toHString(), result); + int timeZoneId, Pointer result)>()( + lpVtbl, datetime.toWinRTDateTime(), timeZoneId.toHString(), result); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/datetimeformatting/idatetimeformatterfactory.dart b/packages/windows_globalization/lib/src/datetimeformatting/idatetimeformatterfactory.dart index e572fe57..6bde03d0 100644 --- a/packages/windows_globalization/lib/src/datetimeformatting/idatetimeformatterfactory.dart +++ b/packages/windows_globalization/lib/src/datetimeformatting/idatetimeformatterfactory.dart @@ -39,7 +39,7 @@ class IDateTimeFormatterFactory extends IInspectable { final result = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -52,7 +52,7 @@ class IDateTimeFormatterFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int formatTemplate, Pointer result)>()( - ptr.ref.lpVtbl, formatTemplate.toHString(), result); + lpVtbl, formatTemplate.toHString(), result); if (FAILED(hr)) { free(result); @@ -66,7 +66,7 @@ class IDateTimeFormatterFactory extends IInspectable { String formatTemplate, IIterable? languages) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -80,7 +80,7 @@ class IDateTimeFormatterFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int formatTemplate, VTablePointer languages, Pointer result)>()( - ptr.ref.lpVtbl, formatTemplate.toHString(), languages.lpVtbl, result); + lpVtbl, formatTemplate.toHString(), languages.lpVtbl, result); if (FAILED(hr)) { free(result); @@ -98,7 +98,7 @@ class IDateTimeFormatterFactory extends IInspectable { String clock) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -121,7 +121,7 @@ class IDateTimeFormatterFactory extends IInspectable { int calendar, int clock, Pointer result)>()( - ptr.ref.lpVtbl, + lpVtbl, formatTemplate.toHString(), languages.lpVtbl, geographicRegion.toHString(), @@ -144,7 +144,7 @@ class IDateTimeFormatterFactory extends IInspectable { DayOfWeekFormat dayOfWeekFormat) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -164,13 +164,8 @@ class IDateTimeFormatterFactory extends IInspectable { int monthFormat, int dayFormat, int dayOfWeekFormat, - Pointer result)>()( - ptr.ref.lpVtbl, - yearFormat.value, - monthFormat.value, - dayFormat.value, - dayOfWeekFormat.value, - result); + Pointer result)>()(lpVtbl, yearFormat.value, + monthFormat.value, dayFormat.value, dayOfWeekFormat.value, result); if (FAILED(hr)) { free(result); @@ -184,7 +179,7 @@ class IDateTimeFormatterFactory extends IInspectable { MinuteFormat minuteFormat, SecondFormat secondFormat) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -202,8 +197,8 @@ class IDateTimeFormatterFactory extends IInspectable { int hourFormat, int minuteFormat, int secondFormat, - Pointer result)>()(ptr.ref.lpVtbl, - hourFormat.value, minuteFormat.value, secondFormat.value, result); + Pointer result)>()(lpVtbl, hourFormat.value, + minuteFormat.value, secondFormat.value, result); if (FAILED(hr)) { free(result); @@ -224,7 +219,7 @@ class IDateTimeFormatterFactory extends IInspectable { IIterable? languages) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -253,7 +248,7 @@ class IDateTimeFormatterFactory extends IInspectable { int secondFormat, VTablePointer languages, Pointer result)>()( - ptr.ref.lpVtbl, + lpVtbl, yearFormat.value, monthFormat.value, dayFormat.value, @@ -286,7 +281,7 @@ class IDateTimeFormatterFactory extends IInspectable { String clock) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -321,7 +316,7 @@ class IDateTimeFormatterFactory extends IInspectable { int calendar, int clock, Pointer result)>()( - ptr.ref.lpVtbl, + lpVtbl, yearFormat.value, monthFormat.value, dayFormat.value, diff --git a/packages/windows_globalization/lib/src/datetimeformatting/idatetimeformatterstatics.dart b/packages/windows_globalization/lib/src/datetimeformatting/idatetimeformatterstatics.dart index 3076e527..faefd9ee 100644 --- a/packages/windows_globalization/lib/src/datetimeformatting/idatetimeformatterstatics.dart +++ b/packages/windows_globalization/lib/src/datetimeformatting/idatetimeformatterstatics.dart @@ -31,7 +31,7 @@ class IDateTimeFormatterStatics extends IInspectable { DateTimeFormatter? get longDate { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IDateTimeFormatterStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -59,7 +59,7 @@ class IDateTimeFormatterStatics extends IInspectable { DateTimeFormatter? get longTime { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -69,7 +69,7 @@ class IDateTimeFormatterStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -87,7 +87,7 @@ class IDateTimeFormatterStatics extends IInspectable { DateTimeFormatter? get shortDate { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -97,7 +97,7 @@ class IDateTimeFormatterStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -115,7 +115,7 @@ class IDateTimeFormatterStatics extends IInspectable { DateTimeFormatter? get shortTime { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -125,7 +125,7 @@ class IDateTimeFormatterStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_globalization/lib/src/icalendar.dart b/packages/windows_globalization/lib/src/icalendar.dart index dc23b836..cfd4d623 100644 --- a/packages/windows_globalization/lib/src/icalendar.dart +++ b/packages/windows_globalization/lib/src/icalendar.dart @@ -32,7 +32,7 @@ class ICalendar extends IInspectable { Calendar? clone() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -58,21 +58,21 @@ class ICalendar extends IInspectable { } void setToMin() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } void setToMax() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -80,7 +80,7 @@ class ICalendar extends IInspectable { List? get languages { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -90,7 +90,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -111,7 +111,7 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -121,7 +121,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -133,7 +133,7 @@ class ICalendar extends IInspectable { set numeralSystem(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(11) .cast< Pointer< @@ -142,7 +142,7 @@ class ICalendar extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -151,7 +151,7 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -161,7 +161,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -173,7 +173,7 @@ class ICalendar extends IInspectable { void changeCalendarSystem(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(13) .cast< Pointer< @@ -182,7 +182,7 @@ class ICalendar extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -191,7 +191,7 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -201,7 +201,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -213,7 +213,7 @@ class ICalendar extends IInspectable { void changeClock(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(15) .cast< Pointer< @@ -222,7 +222,7 @@ class ICalendar extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -231,7 +231,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -241,7 +241,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -252,7 +252,7 @@ class ICalendar extends IInspectable { } void setDateTime(DateTime value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -260,17 +260,17 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int64 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toWinRTDateTime()); + lpVtbl, value.toWinRTDateTime()); if (FAILED(hr)) throwWindowsException(hr); } void setToNow() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -279,17 +279,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(19) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(19) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -303,17 +303,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(20) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(20) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -327,17 +327,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(21) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(21) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -351,17 +351,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(22) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(22) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -372,7 +372,7 @@ class ICalendar extends IInspectable { } set era(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(23) .cast< Pointer< @@ -380,13 +380,13 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } void addEras(int eras) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(24) .cast< Pointer< @@ -394,7 +394,7 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 eras)>>>() .value .asFunction()( - ptr.ref.lpVtbl, eras); + lpVtbl, eras); if (FAILED(hr)) throwWindowsException(hr); } @@ -403,7 +403,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(25) .cast< Pointer< @@ -413,7 +413,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -427,7 +427,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(26) .cast< Pointer< @@ -436,11 +436,8 @@ class ICalendar extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - int idealLength, - Pointer - result)>()(ptr.ref.lpVtbl, idealLength, result); + int Function(VTablePointer lpVtbl, int idealLength, + Pointer result)>()(lpVtbl, idealLength, result); if (FAILED(hr)) throwWindowsException(hr); @@ -454,17 +451,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(27) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(27) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -478,17 +475,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(28) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(28) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -502,17 +499,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(29) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(29) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -526,17 +523,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(30) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(30) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -547,7 +544,7 @@ class ICalendar extends IInspectable { } set year(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(31) .cast< Pointer< @@ -555,13 +552,13 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } void addYears(int years) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(32) .cast< Pointer< @@ -569,7 +566,7 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 years)>>>() .value .asFunction()( - ptr.ref.lpVtbl, years); + lpVtbl, years); if (FAILED(hr)) throwWindowsException(hr); } @@ -578,7 +575,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(33) .cast< Pointer< @@ -588,7 +585,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -602,21 +599,17 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = - ptr.ref.vtable - .elementAt(34) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - Int32 remainingDigits, - Pointer result)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int remainingDigits, - Pointer result)>()( - ptr.ref.lpVtbl, remainingDigits, result); + final hr = vtable + .elementAt(34) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Int32 remainingDigits, Pointer result)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int remainingDigits, + Pointer result)>()(lpVtbl, remainingDigits, result); if (FAILED(hr)) throwWindowsException(hr); @@ -630,7 +623,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(35) .cast< Pointer< @@ -640,7 +633,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int minDigits, - Pointer result)>()(ptr.ref.lpVtbl, minDigits, result); + Pointer result)>()(lpVtbl, minDigits, result); if (FAILED(hr)) throwWindowsException(hr); @@ -654,17 +647,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(36) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(36) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -678,17 +671,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(37) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(37) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -702,17 +695,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(38) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(38) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -726,17 +719,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(39) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(39) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -747,7 +740,7 @@ class ICalendar extends IInspectable { } set month(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(40) .cast< Pointer< @@ -755,14 +748,14 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } void addMonths(int months) { final hr = - ptr.ref.vtable + vtable .elementAt(41) .cast< Pointer< @@ -771,7 +764,7 @@ class ICalendar extends IInspectable { VTablePointer lpVtbl, Int32 months)>>>() .value .asFunction()( - ptr.ref.lpVtbl, months); + lpVtbl, months); if (FAILED(hr)) throwWindowsException(hr); } @@ -780,7 +773,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(42) .cast< Pointer< @@ -790,7 +783,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -804,7 +797,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(43) .cast< Pointer< @@ -813,11 +806,8 @@ class ICalendar extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - int idealLength, - Pointer - result)>()(ptr.ref.lpVtbl, idealLength, result); + int Function(VTablePointer lpVtbl, int idealLength, + Pointer result)>()(lpVtbl, idealLength, result); if (FAILED(hr)) throwWindowsException(hr); @@ -831,7 +821,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(44) .cast< Pointer< @@ -841,7 +831,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -855,7 +845,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(45) .cast< Pointer< @@ -864,11 +854,8 @@ class ICalendar extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - int idealLength, - Pointer - result)>()(ptr.ref.lpVtbl, idealLength, result); + int Function(VTablePointer lpVtbl, int idealLength, + Pointer result)>()(lpVtbl, idealLength, result); if (FAILED(hr)) throwWindowsException(hr); @@ -882,7 +869,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(46) .cast< Pointer< @@ -892,7 +879,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -906,7 +893,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(47) .cast< Pointer< @@ -916,7 +903,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int minDigits, - Pointer result)>()(ptr.ref.lpVtbl, minDigits, result); + Pointer result)>()(lpVtbl, minDigits, result); if (FAILED(hr)) throwWindowsException(hr); @@ -927,7 +914,7 @@ class ICalendar extends IInspectable { } void addWeeks(int weeks) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(48) .cast< Pointer< @@ -935,7 +922,7 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 weeks)>>>() .value .asFunction()( - ptr.ref.lpVtbl, weeks); + lpVtbl, weeks); if (FAILED(hr)) throwWindowsException(hr); } @@ -944,17 +931,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(49) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(49) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -968,17 +955,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(50) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(50) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -992,17 +979,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(51) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(51) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1016,17 +1003,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(52) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(52) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1037,7 +1024,7 @@ class ICalendar extends IInspectable { } set day(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(53) .cast< Pointer< @@ -1045,13 +1032,13 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } void addDays(int days) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(54) .cast< Pointer< @@ -1059,7 +1046,7 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 days)>>>() .value .asFunction()( - ptr.ref.lpVtbl, days); + lpVtbl, days); if (FAILED(hr)) throwWindowsException(hr); } @@ -1068,7 +1055,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(55) .cast< Pointer< @@ -1078,7 +1065,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1092,7 +1079,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(56) .cast< Pointer< @@ -1102,7 +1089,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int minDigits, - Pointer result)>()(ptr.ref.lpVtbl, minDigits, result); + Pointer result)>()(lpVtbl, minDigits, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1116,17 +1103,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(57) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(57) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1140,7 +1127,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(58) .cast< Pointer< @@ -1150,7 +1137,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1164,7 +1151,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(59) .cast< Pointer< @@ -1173,11 +1160,8 @@ class ICalendar extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - int idealLength, - Pointer - result)>()(ptr.ref.lpVtbl, idealLength, result); + int Function(VTablePointer lpVtbl, int idealLength, + Pointer result)>()(lpVtbl, idealLength, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1191,7 +1175,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(60) .cast< Pointer< @@ -1201,7 +1185,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1215,7 +1199,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(61) .cast< Pointer< @@ -1224,11 +1208,8 @@ class ICalendar extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - int idealLength, - Pointer - result)>()(ptr.ref.lpVtbl, idealLength, result); + int Function(VTablePointer lpVtbl, int idealLength, + Pointer result)>()(lpVtbl, idealLength, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1242,17 +1223,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(62) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(62) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1266,17 +1247,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(63) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(63) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1290,17 +1271,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(64) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(64) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1314,17 +1295,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(65) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(65) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1335,7 +1316,7 @@ class ICalendar extends IInspectable { } set period(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(66) .cast< Pointer< @@ -1343,14 +1324,14 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } void addPeriods(int periods) { final hr = - ptr.ref.vtable + vtable .elementAt(67) .cast< Pointer< @@ -1359,7 +1340,7 @@ class ICalendar extends IInspectable { VTablePointer lpVtbl, Int32 periods)>>>() .value .asFunction()( - ptr.ref.lpVtbl, periods); + lpVtbl, periods); if (FAILED(hr)) throwWindowsException(hr); } @@ -1368,7 +1349,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(68) .cast< Pointer< @@ -1378,7 +1359,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1392,7 +1373,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(69) .cast< Pointer< @@ -1401,11 +1382,8 @@ class ICalendar extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - int idealLength, - Pointer - result)>()(ptr.ref.lpVtbl, idealLength, result); + int Function(VTablePointer lpVtbl, int idealLength, + Pointer result)>()(lpVtbl, idealLength, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1419,17 +1397,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(70) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(70) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1443,17 +1421,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(71) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(71) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1467,17 +1445,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(72) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(72) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1491,17 +1469,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(73) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(73) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1512,7 +1490,7 @@ class ICalendar extends IInspectable { } set hour(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(74) .cast< Pointer< @@ -1520,13 +1498,13 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } void addHours(int hours) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(75) .cast< Pointer< @@ -1534,7 +1512,7 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 hours)>>>() .value .asFunction()( - ptr.ref.lpVtbl, hours); + lpVtbl, hours); if (FAILED(hr)) throwWindowsException(hr); } @@ -1543,7 +1521,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(76) .cast< Pointer< @@ -1553,7 +1531,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1567,7 +1545,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(77) .cast< Pointer< @@ -1577,7 +1555,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int minDigits, - Pointer result)>()(ptr.ref.lpVtbl, minDigits, result); + Pointer result)>()(lpVtbl, minDigits, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1591,17 +1569,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(78) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(78) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1612,7 +1590,7 @@ class ICalendar extends IInspectable { } set minute(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(79) .cast< Pointer< @@ -1620,14 +1598,14 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } void addMinutes(int minutes) { final hr = - ptr.ref.vtable + vtable .elementAt(80) .cast< Pointer< @@ -1636,7 +1614,7 @@ class ICalendar extends IInspectable { VTablePointer lpVtbl, Int32 minutes)>>>() .value .asFunction()( - ptr.ref.lpVtbl, minutes); + lpVtbl, minutes); if (FAILED(hr)) throwWindowsException(hr); } @@ -1645,7 +1623,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(81) .cast< Pointer< @@ -1655,7 +1633,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1669,7 +1647,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(82) .cast< Pointer< @@ -1679,7 +1657,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int minDigits, - Pointer result)>()(ptr.ref.lpVtbl, minDigits, result); + Pointer result)>()(lpVtbl, minDigits, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1693,17 +1671,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(83) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(83) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1714,7 +1692,7 @@ class ICalendar extends IInspectable { } set second(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(84) .cast< Pointer< @@ -1722,14 +1700,14 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } void addSeconds(int seconds) { final hr = - ptr.ref.vtable + vtable .elementAt(85) .cast< Pointer< @@ -1738,7 +1716,7 @@ class ICalendar extends IInspectable { VTablePointer lpVtbl, Int32 seconds)>>>() .value .asFunction()( - ptr.ref.lpVtbl, seconds); + lpVtbl, seconds); if (FAILED(hr)) throwWindowsException(hr); } @@ -1747,7 +1725,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(86) .cast< Pointer< @@ -1757,7 +1735,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1771,7 +1749,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(87) .cast< Pointer< @@ -1781,7 +1759,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int minDigits, - Pointer result)>()(ptr.ref.lpVtbl, minDigits, result); + Pointer result)>()(lpVtbl, minDigits, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1795,17 +1773,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(88) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(88) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1816,7 +1794,7 @@ class ICalendar extends IInspectable { } set nanosecond(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(89) .cast< Pointer< @@ -1824,13 +1802,13 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } void addNanoseconds(int nanoseconds) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(90) .cast< Pointer< @@ -1839,7 +1817,7 @@ class ICalendar extends IInspectable { VTablePointer lpVtbl, Int32 nanoseconds)>>>() .value .asFunction()( - ptr.ref.lpVtbl, nanoseconds); + lpVtbl, nanoseconds); if (FAILED(hr)) throwWindowsException(hr); } @@ -1848,7 +1826,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(91) .cast< Pointer< @@ -1858,7 +1836,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1872,7 +1850,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(92) .cast< Pointer< @@ -1882,7 +1860,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int minDigits, - Pointer result)>()(ptr.ref.lpVtbl, minDigits, result); + Pointer result)>()(lpVtbl, minDigits, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1896,18 +1874,17 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(93) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer other, Pointer result)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer other, - Pointer result)>()( - ptr.ref.lpVtbl, other.lpVtbl, result); + final hr = vtable + .elementAt(93) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer other, Pointer result)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer other, + Pointer result)>()(lpVtbl, other.lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1921,7 +1898,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(94) .cast< Pointer< @@ -1932,7 +1909,7 @@ class ICalendar extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int other, Pointer result)>()( - ptr.ref.lpVtbl, other.toWinRTDateTime(), result); + lpVtbl, other.toWinRTDateTime(), result); if (FAILED(hr)) throwWindowsException(hr); @@ -1943,7 +1920,7 @@ class ICalendar extends IInspectable { } void copyTo(Calendar? other) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(95) .cast< Pointer< @@ -1953,7 +1930,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer other)>()( - ptr.ref.lpVtbl, other.lpVtbl); + lpVtbl, other.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -1962,17 +1939,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(96) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(96) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1986,17 +1963,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(97) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(97) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2010,17 +1987,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(98) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(98) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2034,17 +2011,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(99) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(99) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2058,17 +2035,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(100) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(100) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2082,17 +2059,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(101) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(101) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2106,7 +2083,7 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(102) .cast< Pointer< @@ -2116,7 +2093,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2130,17 +2107,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(103) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(103) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/icalendarfactory.dart b/packages/windows_globalization/lib/src/icalendarfactory.dart index 1da55b9c..6b357407 100644 --- a/packages/windows_globalization/lib/src/icalendarfactory.dart +++ b/packages/windows_globalization/lib/src/icalendarfactory.dart @@ -31,21 +31,17 @@ class ICalendarFactory extends IInspectable { Calendar createCalendarDefaultCalendarAndClock(IIterable? languages) { final result = calloc(); - final hr = - ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - VTablePointer languages, - Pointer result)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer languages, - Pointer result)>()( - ptr.ref.lpVtbl, languages.lpVtbl, result); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer languages, Pointer result)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer languages, + Pointer result)>()(lpVtbl, languages.lpVtbl, result); if (FAILED(hr)) { free(result); @@ -59,7 +55,7 @@ class ICalendarFactory extends IInspectable { IIterable? languages, String calendar, String clock) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -74,7 +70,7 @@ class ICalendarFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer languages, int calendar, int clock, Pointer result)>()( - ptr.ref.lpVtbl, + lpVtbl, languages.lpVtbl, calendar.toHString(), clock.toHString(), diff --git a/packages/windows_globalization/lib/src/icalendarfactory2.dart b/packages/windows_globalization/lib/src/icalendarfactory2.dart index 5b15bc8a..c1718055 100644 --- a/packages/windows_globalization/lib/src/icalendarfactory2.dart +++ b/packages/windows_globalization/lib/src/icalendarfactory2.dart @@ -32,7 +32,7 @@ class ICalendarFactory2 extends IInspectable { String calendar, String clock, String timeZoneId) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -53,7 +53,7 @@ class ICalendarFactory2 extends IInspectable { int clock, int timeZoneId, Pointer result)>()( - ptr.ref.lpVtbl, + lpVtbl, languages.lpVtbl, calendar.toHString(), clock.toHString(), diff --git a/packages/windows_globalization/lib/src/icalendaridentifiersstatics.dart b/packages/windows_globalization/lib/src/icalendaridentifiersstatics.dart index 9e8d995d..66f68aa1 100644 --- a/packages/windows_globalization/lib/src/icalendaridentifiersstatics.dart +++ b/packages/windows_globalization/lib/src/icalendaridentifiersstatics.dart @@ -32,7 +32,7 @@ class ICalendarIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class ICalendarIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class ICalendarIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class ICalendarIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -80,7 +80,7 @@ class ICalendarIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -90,7 +90,7 @@ class ICalendarIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -104,7 +104,7 @@ class ICalendarIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -114,7 +114,7 @@ class ICalendarIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -128,7 +128,7 @@ class ICalendarIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -138,7 +138,7 @@ class ICalendarIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -152,7 +152,7 @@ class ICalendarIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -162,7 +162,7 @@ class ICalendarIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -176,7 +176,7 @@ class ICalendarIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -186,7 +186,7 @@ class ICalendarIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -200,7 +200,7 @@ class ICalendarIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -210,7 +210,7 @@ class ICalendarIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -224,7 +224,7 @@ class ICalendarIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -234,7 +234,7 @@ class ICalendarIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/icalendaridentifiersstatics2.dart b/packages/windows_globalization/lib/src/icalendaridentifiersstatics2.dart index c15b5922..3592b109 100644 --- a/packages/windows_globalization/lib/src/icalendaridentifiersstatics2.dart +++ b/packages/windows_globalization/lib/src/icalendaridentifiersstatics2.dart @@ -32,7 +32,7 @@ class ICalendarIdentifiersStatics2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class ICalendarIdentifiersStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/icalendaridentifiersstatics3.dart b/packages/windows_globalization/lib/src/icalendaridentifiersstatics3.dart index 8f943da6..40acbe08 100644 --- a/packages/windows_globalization/lib/src/icalendaridentifiersstatics3.dart +++ b/packages/windows_globalization/lib/src/icalendaridentifiersstatics3.dart @@ -32,7 +32,7 @@ class ICalendarIdentifiersStatics3 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class ICalendarIdentifiersStatics3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class ICalendarIdentifiersStatics3 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class ICalendarIdentifiersStatics3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -80,7 +80,7 @@ class ICalendarIdentifiersStatics3 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -90,7 +90,7 @@ class ICalendarIdentifiersStatics3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -104,7 +104,7 @@ class ICalendarIdentifiersStatics3 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -114,7 +114,7 @@ class ICalendarIdentifiersStatics3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -128,7 +128,7 @@ class ICalendarIdentifiersStatics3 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -138,7 +138,7 @@ class ICalendarIdentifiersStatics3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/iclockidentifiersstatics.dart b/packages/windows_globalization/lib/src/iclockidentifiersstatics.dart index b00d001f..7132b15a 100644 --- a/packages/windows_globalization/lib/src/iclockidentifiersstatics.dart +++ b/packages/windows_globalization/lib/src/iclockidentifiersstatics.dart @@ -30,7 +30,7 @@ class IClockIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IClockIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IClockIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IClockIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/icurrencyamount.dart b/packages/windows_globalization/lib/src/icurrencyamount.dart index 81592e78..86ffdcd1 100644 --- a/packages/windows_globalization/lib/src/icurrencyamount.dart +++ b/packages/windows_globalization/lib/src/icurrencyamount.dart @@ -30,7 +30,7 @@ class ICurrencyAmount extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class ICurrencyAmount extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class ICurrencyAmount extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class ICurrencyAmount extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/icurrencyamountfactory.dart b/packages/windows_globalization/lib/src/icurrencyamountfactory.dart index 74b8c7d1..ef0c25fc 100644 --- a/packages/windows_globalization/lib/src/icurrencyamountfactory.dart +++ b/packages/windows_globalization/lib/src/icurrencyamountfactory.dart @@ -31,7 +31,7 @@ class ICurrencyAmountFactory extends IInspectable { CurrencyAmount create(String amount, String currency) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class ICurrencyAmountFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int amount, int currency, Pointer result)>()( - ptr.ref.lpVtbl, amount.toHString(), currency.toHString(), result); + lpVtbl, amount.toHString(), currency.toHString(), result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_globalization/lib/src/icurrencyidentifiersstatics.dart b/packages/windows_globalization/lib/src/icurrencyidentifiersstatics.dart index 70d35515..e24a284d 100644 --- a/packages/windows_globalization/lib/src/icurrencyidentifiersstatics.dart +++ b/packages/windows_globalization/lib/src/icurrencyidentifiersstatics.dart @@ -32,7 +32,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -80,7 +80,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -90,7 +90,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -104,7 +104,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -114,7 +114,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -128,7 +128,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -138,7 +138,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -152,7 +152,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -162,7 +162,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -176,7 +176,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -186,7 +186,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -200,7 +200,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -210,7 +210,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -224,7 +224,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -234,7 +234,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -248,7 +248,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -258,7 +258,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -272,7 +272,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -282,7 +282,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -296,7 +296,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -306,7 +306,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -320,7 +320,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast< Pointer< @@ -330,7 +330,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -344,7 +344,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(19) .cast< Pointer< @@ -354,7 +354,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -368,7 +368,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(20) .cast< Pointer< @@ -378,7 +378,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -392,7 +392,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(21) .cast< Pointer< @@ -402,7 +402,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -416,7 +416,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(22) .cast< Pointer< @@ -426,7 +426,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -440,7 +440,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(23) .cast< Pointer< @@ -450,7 +450,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -464,7 +464,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(24) .cast< Pointer< @@ -474,7 +474,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -488,7 +488,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(25) .cast< Pointer< @@ -498,7 +498,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -512,7 +512,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(26) .cast< Pointer< @@ -522,7 +522,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -536,7 +536,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(27) .cast< Pointer< @@ -546,7 +546,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -560,7 +560,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(28) .cast< Pointer< @@ -570,7 +570,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -584,7 +584,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(29) .cast< Pointer< @@ -594,7 +594,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -608,7 +608,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(30) .cast< Pointer< @@ -618,7 +618,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -632,7 +632,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(31) .cast< Pointer< @@ -642,7 +642,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -656,7 +656,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(32) .cast< Pointer< @@ -666,7 +666,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -680,7 +680,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(33) .cast< Pointer< @@ -690,7 +690,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -704,7 +704,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(34) .cast< Pointer< @@ -714,7 +714,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -728,7 +728,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(35) .cast< Pointer< @@ -738,7 +738,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -752,7 +752,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(36) .cast< Pointer< @@ -762,7 +762,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -776,7 +776,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(37) .cast< Pointer< @@ -786,7 +786,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -800,7 +800,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(38) .cast< Pointer< @@ -810,7 +810,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -824,7 +824,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(39) .cast< Pointer< @@ -834,7 +834,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -848,7 +848,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(40) .cast< Pointer< @@ -858,7 +858,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -872,7 +872,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(41) .cast< Pointer< @@ -882,7 +882,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -896,7 +896,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(42) .cast< Pointer< @@ -906,7 +906,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -920,7 +920,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(43) .cast< Pointer< @@ -930,7 +930,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -944,7 +944,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(44) .cast< Pointer< @@ -954,7 +954,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -968,7 +968,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(45) .cast< Pointer< @@ -978,7 +978,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -992,7 +992,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(46) .cast< Pointer< @@ -1002,7 +1002,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1016,7 +1016,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(47) .cast< Pointer< @@ -1026,7 +1026,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1040,7 +1040,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(48) .cast< Pointer< @@ -1050,7 +1050,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1064,7 +1064,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(49) .cast< Pointer< @@ -1074,7 +1074,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1088,7 +1088,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(50) .cast< Pointer< @@ -1098,7 +1098,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1112,7 +1112,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(51) .cast< Pointer< @@ -1122,7 +1122,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1136,7 +1136,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(52) .cast< Pointer< @@ -1146,7 +1146,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1160,7 +1160,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(53) .cast< Pointer< @@ -1170,7 +1170,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1184,7 +1184,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(54) .cast< Pointer< @@ -1194,7 +1194,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1208,7 +1208,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(55) .cast< Pointer< @@ -1218,7 +1218,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1232,7 +1232,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(56) .cast< Pointer< @@ -1242,7 +1242,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1256,7 +1256,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(57) .cast< Pointer< @@ -1266,7 +1266,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1280,7 +1280,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(58) .cast< Pointer< @@ -1290,7 +1290,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1304,7 +1304,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(59) .cast< Pointer< @@ -1314,7 +1314,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1328,7 +1328,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(60) .cast< Pointer< @@ -1338,7 +1338,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1352,7 +1352,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(61) .cast< Pointer< @@ -1362,7 +1362,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1376,7 +1376,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(62) .cast< Pointer< @@ -1386,7 +1386,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1400,7 +1400,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(63) .cast< Pointer< @@ -1410,7 +1410,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1424,7 +1424,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(64) .cast< Pointer< @@ -1434,7 +1434,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1448,7 +1448,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(65) .cast< Pointer< @@ -1458,7 +1458,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1472,7 +1472,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(66) .cast< Pointer< @@ -1482,7 +1482,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1496,7 +1496,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(67) .cast< Pointer< @@ -1506,7 +1506,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1520,7 +1520,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(68) .cast< Pointer< @@ -1530,7 +1530,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1544,7 +1544,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(69) .cast< Pointer< @@ -1554,7 +1554,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1568,7 +1568,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(70) .cast< Pointer< @@ -1578,7 +1578,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1592,7 +1592,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(71) .cast< Pointer< @@ -1602,7 +1602,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1616,7 +1616,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(72) .cast< Pointer< @@ -1626,7 +1626,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1640,7 +1640,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(73) .cast< Pointer< @@ -1650,7 +1650,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1664,7 +1664,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(74) .cast< Pointer< @@ -1674,7 +1674,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1688,7 +1688,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(75) .cast< Pointer< @@ -1698,7 +1698,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1712,7 +1712,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(76) .cast< Pointer< @@ -1722,7 +1722,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1736,7 +1736,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(77) .cast< Pointer< @@ -1746,7 +1746,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1760,7 +1760,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(78) .cast< Pointer< @@ -1770,7 +1770,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1784,7 +1784,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(79) .cast< Pointer< @@ -1794,7 +1794,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1808,7 +1808,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(80) .cast< Pointer< @@ -1818,7 +1818,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1832,7 +1832,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(81) .cast< Pointer< @@ -1842,7 +1842,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1856,7 +1856,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(82) .cast< Pointer< @@ -1866,7 +1866,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1880,7 +1880,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(83) .cast< Pointer< @@ -1890,7 +1890,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1904,7 +1904,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(84) .cast< Pointer< @@ -1914,7 +1914,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1928,7 +1928,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(85) .cast< Pointer< @@ -1938,7 +1938,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1952,7 +1952,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(86) .cast< Pointer< @@ -1962,7 +1962,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1976,7 +1976,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(87) .cast< Pointer< @@ -1986,7 +1986,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2000,7 +2000,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(88) .cast< Pointer< @@ -2010,7 +2010,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2024,7 +2024,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(89) .cast< Pointer< @@ -2034,7 +2034,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2048,7 +2048,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(90) .cast< Pointer< @@ -2058,7 +2058,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2072,7 +2072,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(91) .cast< Pointer< @@ -2082,7 +2082,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2096,7 +2096,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(92) .cast< Pointer< @@ -2106,7 +2106,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2120,7 +2120,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(93) .cast< Pointer< @@ -2130,7 +2130,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2144,7 +2144,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(94) .cast< Pointer< @@ -2154,7 +2154,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2168,7 +2168,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(95) .cast< Pointer< @@ -2178,7 +2178,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2192,7 +2192,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(96) .cast< Pointer< @@ -2202,7 +2202,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2216,7 +2216,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(97) .cast< Pointer< @@ -2226,7 +2226,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2240,7 +2240,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(98) .cast< Pointer< @@ -2250,7 +2250,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2264,7 +2264,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(99) .cast< Pointer< @@ -2274,7 +2274,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2288,7 +2288,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(100) .cast< Pointer< @@ -2298,7 +2298,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2312,7 +2312,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(101) .cast< Pointer< @@ -2322,7 +2322,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2336,7 +2336,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(102) .cast< Pointer< @@ -2346,7 +2346,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2360,7 +2360,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(103) .cast< Pointer< @@ -2370,7 +2370,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2384,7 +2384,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(104) .cast< Pointer< @@ -2394,7 +2394,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2408,7 +2408,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(105) .cast< Pointer< @@ -2418,7 +2418,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2432,7 +2432,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(106) .cast< Pointer< @@ -2442,7 +2442,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2456,7 +2456,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(107) .cast< Pointer< @@ -2466,7 +2466,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2480,7 +2480,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(108) .cast< Pointer< @@ -2490,7 +2490,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2504,7 +2504,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(109) .cast< Pointer< @@ -2514,7 +2514,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2528,7 +2528,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(110) .cast< Pointer< @@ -2538,7 +2538,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2552,7 +2552,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(111) .cast< Pointer< @@ -2562,7 +2562,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2576,7 +2576,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(112) .cast< Pointer< @@ -2586,7 +2586,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2600,7 +2600,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(113) .cast< Pointer< @@ -2610,7 +2610,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2624,7 +2624,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(114) .cast< Pointer< @@ -2634,7 +2634,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2648,7 +2648,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(115) .cast< Pointer< @@ -2658,7 +2658,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2672,7 +2672,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(116) .cast< Pointer< @@ -2682,7 +2682,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2696,7 +2696,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(117) .cast< Pointer< @@ -2706,7 +2706,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2720,7 +2720,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(118) .cast< Pointer< @@ -2730,7 +2730,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2744,7 +2744,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(119) .cast< Pointer< @@ -2754,7 +2754,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2768,7 +2768,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(120) .cast< Pointer< @@ -2778,7 +2778,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2792,7 +2792,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(121) .cast< Pointer< @@ -2802,7 +2802,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2816,7 +2816,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(122) .cast< Pointer< @@ -2826,7 +2826,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2840,7 +2840,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(123) .cast< Pointer< @@ -2850,7 +2850,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2864,7 +2864,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(124) .cast< Pointer< @@ -2874,7 +2874,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2888,7 +2888,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(125) .cast< Pointer< @@ -2898,7 +2898,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2912,7 +2912,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(126) .cast< Pointer< @@ -2922,7 +2922,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2936,7 +2936,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(127) .cast< Pointer< @@ -2946,7 +2946,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2960,7 +2960,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(128) .cast< Pointer< @@ -2970,7 +2970,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2984,7 +2984,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(129) .cast< Pointer< @@ -2994,7 +2994,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3008,7 +3008,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(130) .cast< Pointer< @@ -3018,7 +3018,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3032,7 +3032,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(131) .cast< Pointer< @@ -3042,7 +3042,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3056,7 +3056,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(132) .cast< Pointer< @@ -3066,7 +3066,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3080,7 +3080,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(133) .cast< Pointer< @@ -3090,7 +3090,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3104,7 +3104,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(134) .cast< Pointer< @@ -3114,7 +3114,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3128,7 +3128,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(135) .cast< Pointer< @@ -3138,7 +3138,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3152,7 +3152,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(136) .cast< Pointer< @@ -3162,7 +3162,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3176,7 +3176,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(137) .cast< Pointer< @@ -3186,7 +3186,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3200,7 +3200,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(138) .cast< Pointer< @@ -3210,7 +3210,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3224,7 +3224,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(139) .cast< Pointer< @@ -3234,7 +3234,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3248,7 +3248,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(140) .cast< Pointer< @@ -3258,7 +3258,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3272,7 +3272,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(141) .cast< Pointer< @@ -3282,7 +3282,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3296,7 +3296,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(142) .cast< Pointer< @@ -3306,7 +3306,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3320,7 +3320,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(143) .cast< Pointer< @@ -3330,7 +3330,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3344,7 +3344,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(144) .cast< Pointer< @@ -3354,7 +3354,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3368,7 +3368,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(145) .cast< Pointer< @@ -3378,7 +3378,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3392,7 +3392,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(146) .cast< Pointer< @@ -3402,7 +3402,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3416,7 +3416,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(147) .cast< Pointer< @@ -3426,7 +3426,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3440,7 +3440,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(148) .cast< Pointer< @@ -3450,7 +3450,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3464,7 +3464,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(149) .cast< Pointer< @@ -3474,7 +3474,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3488,7 +3488,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(150) .cast< Pointer< @@ -3498,7 +3498,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3512,7 +3512,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(151) .cast< Pointer< @@ -3522,7 +3522,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3536,7 +3536,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(152) .cast< Pointer< @@ -3546,7 +3546,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3560,7 +3560,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(153) .cast< Pointer< @@ -3570,7 +3570,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3584,7 +3584,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(154) .cast< Pointer< @@ -3594,7 +3594,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3608,7 +3608,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(155) .cast< Pointer< @@ -3618,7 +3618,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3632,7 +3632,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(156) .cast< Pointer< @@ -3642,7 +3642,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3656,7 +3656,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(157) .cast< Pointer< @@ -3666,7 +3666,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3680,7 +3680,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(158) .cast< Pointer< @@ -3690,7 +3690,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3704,7 +3704,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(159) .cast< Pointer< @@ -3714,7 +3714,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3728,7 +3728,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(160) .cast< Pointer< @@ -3738,7 +3738,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3752,7 +3752,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(161) .cast< Pointer< @@ -3762,7 +3762,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -3776,7 +3776,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(162) .cast< Pointer< @@ -3786,7 +3786,7 @@ class ICurrencyIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/icurrencyidentifiersstatics2.dart b/packages/windows_globalization/lib/src/icurrencyidentifiersstatics2.dart index f321d62f..299939a3 100644 --- a/packages/windows_globalization/lib/src/icurrencyidentifiersstatics2.dart +++ b/packages/windows_globalization/lib/src/icurrencyidentifiersstatics2.dart @@ -32,7 +32,7 @@ class ICurrencyIdentifiersStatics2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class ICurrencyIdentifiersStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/icurrencyidentifiersstatics3.dart b/packages/windows_globalization/lib/src/icurrencyidentifiersstatics3.dart index e434962c..c0f3e0f5 100644 --- a/packages/windows_globalization/lib/src/icurrencyidentifiersstatics3.dart +++ b/packages/windows_globalization/lib/src/icurrencyidentifiersstatics3.dart @@ -32,7 +32,7 @@ class ICurrencyIdentifiersStatics3 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class ICurrencyIdentifiersStatics3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class ICurrencyIdentifiersStatics3 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class ICurrencyIdentifiersStatics3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -80,7 +80,7 @@ class ICurrencyIdentifiersStatics3 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -90,7 +90,7 @@ class ICurrencyIdentifiersStatics3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -104,7 +104,7 @@ class ICurrencyIdentifiersStatics3 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -114,7 +114,7 @@ class ICurrencyIdentifiersStatics3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/igeographicregion.dart b/packages/windows_globalization/lib/src/igeographicregion.dart index 52a32735..4c1c57a7 100644 --- a/packages/windows_globalization/lib/src/igeographicregion.dart +++ b/packages/windows_globalization/lib/src/igeographicregion.dart @@ -30,7 +30,7 @@ class IGeographicRegion extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IGeographicRegion extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IGeographicRegion extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IGeographicRegion extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -78,7 +78,7 @@ class IGeographicRegion extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -88,7 +88,7 @@ class IGeographicRegion extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -102,7 +102,7 @@ class IGeographicRegion extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -112,7 +112,7 @@ class IGeographicRegion extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -126,7 +126,7 @@ class IGeographicRegion extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -136,7 +136,7 @@ class IGeographicRegion extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -150,7 +150,7 @@ class IGeographicRegion extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -160,7 +160,7 @@ class IGeographicRegion extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -173,7 +173,7 @@ class IGeographicRegion extends IInspectable { List? get currenciesInUse { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -183,7 +183,7 @@ class IGeographicRegion extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_globalization/lib/src/igeographicregionfactory.dart b/packages/windows_globalization/lib/src/igeographicregionfactory.dart index bfd46ad3..83236de1 100644 --- a/packages/windows_globalization/lib/src/igeographicregionfactory.dart +++ b/packages/windows_globalization/lib/src/igeographicregionfactory.dart @@ -31,7 +31,7 @@ class IGeographicRegionFactory extends IInspectable { GeographicRegion createGeographicRegion(String geographicRegionCode) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class IGeographicRegionFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int geographicRegionCode, Pointer result)>()( - ptr.ref.lpVtbl, geographicRegionCode.toHString(), result); + lpVtbl, geographicRegionCode.toHString(), result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_globalization/lib/src/igeographicregionstatics.dart b/packages/windows_globalization/lib/src/igeographicregionstatics.dart index c89bf7e7..ad8d5ffb 100644 --- a/packages/windows_globalization/lib/src/igeographicregionstatics.dart +++ b/packages/windows_globalization/lib/src/igeographicregionstatics.dart @@ -30,7 +30,7 @@ class IGeographicRegionStatics extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IGeographicRegionStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int geographicRegionCode, Pointer result)>()( - ptr.ref.lpVtbl, geographicRegionCode.toHString(), result); + lpVtbl, geographicRegionCode.toHString(), result); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/ijapanesephoneme.dart b/packages/windows_globalization/lib/src/ijapanesephoneme.dart index bf758431..13d84a91 100644 --- a/packages/windows_globalization/lib/src/ijapanesephoneme.dart +++ b/packages/windows_globalization/lib/src/ijapanesephoneme.dart @@ -30,7 +30,7 @@ class IJapanesePhoneme extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IJapanesePhoneme extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IJapanesePhoneme extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IJapanesePhoneme extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -78,17 +78,17 @@ class IJapanesePhoneme extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/ijapanesephoneticanalyzerstatics.dart b/packages/windows_globalization/lib/src/ijapanesephoneticanalyzerstatics.dart index 1fbd2b15..3df635bf 100644 --- a/packages/windows_globalization/lib/src/ijapanesephoneticanalyzerstatics.dart +++ b/packages/windows_globalization/lib/src/ijapanesephoneticanalyzerstatics.dart @@ -33,7 +33,7 @@ class IJapanesePhoneticAnalyzerStatics extends IInspectable { List getWords(String input) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class IJapanesePhoneticAnalyzerStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int input, Pointer result)>()( - ptr.ref.lpVtbl, input.toHString(), result); + lpVtbl, input.toHString(), result); if (FAILED(hr)) { free(result); @@ -61,7 +61,7 @@ class IJapanesePhoneticAnalyzerStatics extends IInspectable { String input, bool monoRuby) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -72,7 +72,7 @@ class IJapanesePhoneticAnalyzerStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int input, bool monoRuby, Pointer result)>()( - ptr.ref.lpVtbl, input.toHString(), monoRuby, result); + lpVtbl, input.toHString(), monoRuby, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_globalization/lib/src/ilanguage.dart b/packages/windows_globalization/lib/src/ilanguage.dart index bedd8031..446a8773 100644 --- a/packages/windows_globalization/lib/src/ilanguage.dart +++ b/packages/windows_globalization/lib/src/ilanguage.dart @@ -30,7 +30,7 @@ class ILanguage extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class ILanguage extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class ILanguage extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class ILanguage extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -78,7 +78,7 @@ class ILanguage extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -88,7 +88,7 @@ class ILanguage extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -102,7 +102,7 @@ class ILanguage extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -112,7 +112,7 @@ class ILanguage extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/ilanguage2.dart b/packages/windows_globalization/lib/src/ilanguage2.dart index 40546a38..f64ac593 100644 --- a/packages/windows_globalization/lib/src/ilanguage2.dart +++ b/packages/windows_globalization/lib/src/ilanguage2.dart @@ -32,17 +32,17 @@ class ILanguage2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/ilanguage3.dart b/packages/windows_globalization/lib/src/ilanguage3.dart index 5b6b718b..d9fdf1fa 100644 --- a/packages/windows_globalization/lib/src/ilanguage3.dart +++ b/packages/windows_globalization/lib/src/ilanguage3.dart @@ -30,7 +30,7 @@ class ILanguage3 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class ILanguage3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/ilanguageextensionsubtags.dart b/packages/windows_globalization/lib/src/ilanguageextensionsubtags.dart index fa4df714..26263239 100644 --- a/packages/windows_globalization/lib/src/ilanguageextensionsubtags.dart +++ b/packages/windows_globalization/lib/src/ilanguageextensionsubtags.dart @@ -29,7 +29,7 @@ class ILanguageExtensionSubtags extends IInspectable { List getExtensionSubtags(String singleton) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class ILanguageExtensionSubtags extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int singleton, Pointer value)>()( - ptr.ref.lpVtbl, singleton.toHString(), value); + lpVtbl, singleton.toHString(), value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_globalization/lib/src/ilanguagefactory.dart b/packages/windows_globalization/lib/src/ilanguagefactory.dart index 87e1839e..79f6bdfd 100644 --- a/packages/windows_globalization/lib/src/ilanguagefactory.dart +++ b/packages/windows_globalization/lib/src/ilanguagefactory.dart @@ -31,7 +31,7 @@ class ILanguageFactory extends IInspectable { Language createLanguage(String languageTag) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class ILanguageFactory extends IInspectable { VTablePointer lpVtbl, int languageTag, Pointer - result)>()(ptr.ref.lpVtbl, languageTag.toHString(), result); + result)>()(lpVtbl, languageTag.toHString(), result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_globalization/lib/src/ilanguagestatics.dart b/packages/windows_globalization/lib/src/ilanguagestatics.dart index 06672a98..49740b1c 100644 --- a/packages/windows_globalization/lib/src/ilanguagestatics.dart +++ b/packages/windows_globalization/lib/src/ilanguagestatics.dart @@ -31,7 +31,7 @@ class ILanguageStatics extends IInspectable { try { final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class ILanguageStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int languageTag, Pointer result)>()( - ptr.ref.lpVtbl, languageTag.toHString(), result); + lpVtbl, languageTag.toHString(), result); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class ILanguageStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class ILanguageStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/ilanguagestatics2.dart b/packages/windows_globalization/lib/src/ilanguagestatics2.dart index eaefd76b..de92ee9b 100644 --- a/packages/windows_globalization/lib/src/ilanguagestatics2.dart +++ b/packages/windows_globalization/lib/src/ilanguagestatics2.dart @@ -31,7 +31,7 @@ class ILanguageStatics2 extends IInspectable { try { final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class ILanguageStatics2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int languageTag, Pointer result)>()( - ptr.ref.lpVtbl, languageTag.toHString(), result); + lpVtbl, languageTag.toHString(), result); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/ilanguagestatics3.dart b/packages/windows_globalization/lib/src/ilanguagestatics3.dart index ffd24a2a..384ede23 100644 --- a/packages/windows_globalization/lib/src/ilanguagestatics3.dart +++ b/packages/windows_globalization/lib/src/ilanguagestatics3.dart @@ -30,7 +30,7 @@ class ILanguageStatics3 extends IInspectable { IIterable? languageTags) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class ILanguageStatics3 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer languageTags, Pointer result)>()( - ptr.ref.lpVtbl, languageTags.lpVtbl, result); + lpVtbl, languageTags.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_globalization/lib/src/inumeralsystemidentifiersstatics.dart b/packages/windows_globalization/lib/src/inumeralsystemidentifiersstatics.dart index 87d752ef..0739d482 100644 --- a/packages/windows_globalization/lib/src/inumeralsystemidentifiersstatics.dart +++ b/packages/windows_globalization/lib/src/inumeralsystemidentifiersstatics.dart @@ -32,7 +32,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -80,7 +80,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -90,7 +90,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -104,7 +104,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -114,7 +114,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -128,7 +128,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -138,7 +138,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -152,7 +152,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -162,7 +162,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -176,7 +176,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -186,7 +186,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -200,7 +200,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -210,7 +210,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -224,7 +224,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -234,7 +234,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -248,7 +248,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -258,7 +258,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -272,7 +272,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -282,7 +282,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -296,7 +296,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -306,7 +306,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -320,7 +320,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast< Pointer< @@ -330,7 +330,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -344,7 +344,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(19) .cast< Pointer< @@ -354,7 +354,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -368,7 +368,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(20) .cast< Pointer< @@ -378,7 +378,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -392,7 +392,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(21) .cast< Pointer< @@ -402,7 +402,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -416,7 +416,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(22) .cast< Pointer< @@ -426,7 +426,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -440,7 +440,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(23) .cast< Pointer< @@ -450,7 +450,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -464,7 +464,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(24) .cast< Pointer< @@ -474,7 +474,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -488,7 +488,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(25) .cast< Pointer< @@ -498,7 +498,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -512,7 +512,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(26) .cast< Pointer< @@ -522,7 +522,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -536,7 +536,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(27) .cast< Pointer< @@ -546,7 +546,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -560,7 +560,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(28) .cast< Pointer< @@ -570,7 +570,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -584,7 +584,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(29) .cast< Pointer< @@ -594,7 +594,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -608,7 +608,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(30) .cast< Pointer< @@ -618,7 +618,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -632,7 +632,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(31) .cast< Pointer< @@ -642,7 +642,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -656,7 +656,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(32) .cast< Pointer< @@ -666,7 +666,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -680,7 +680,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(33) .cast< Pointer< @@ -690,7 +690,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -704,7 +704,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(34) .cast< Pointer< @@ -714,7 +714,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -728,7 +728,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(35) .cast< Pointer< @@ -738,7 +738,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -752,7 +752,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(36) .cast< Pointer< @@ -762,7 +762,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -776,7 +776,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(37) .cast< Pointer< @@ -786,7 +786,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -800,7 +800,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(38) .cast< Pointer< @@ -810,7 +810,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -824,7 +824,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(39) .cast< Pointer< @@ -834,7 +834,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -848,7 +848,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(40) .cast< Pointer< @@ -858,7 +858,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -872,7 +872,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(41) .cast< Pointer< @@ -882,7 +882,7 @@ class INumeralSystemIdentifiersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/inumeralsystemidentifiersstatics2.dart b/packages/windows_globalization/lib/src/inumeralsystemidentifiersstatics2.dart index 3915f272..b47fd6d1 100644 --- a/packages/windows_globalization/lib/src/inumeralsystemidentifiersstatics2.dart +++ b/packages/windows_globalization/lib/src/inumeralsystemidentifiersstatics2.dart @@ -32,7 +32,7 @@ class INumeralSystemIdentifiersStatics2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class INumeralSystemIdentifiersStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class INumeralSystemIdentifiersStatics2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class INumeralSystemIdentifiersStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -80,7 +80,7 @@ class INumeralSystemIdentifiersStatics2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -90,7 +90,7 @@ class INumeralSystemIdentifiersStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -104,7 +104,7 @@ class INumeralSystemIdentifiersStatics2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -114,7 +114,7 @@ class INumeralSystemIdentifiersStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -128,7 +128,7 @@ class INumeralSystemIdentifiersStatics2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -138,7 +138,7 @@ class INumeralSystemIdentifiersStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -152,7 +152,7 @@ class INumeralSystemIdentifiersStatics2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -162,7 +162,7 @@ class INumeralSystemIdentifiersStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -176,7 +176,7 @@ class INumeralSystemIdentifiersStatics2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -186,7 +186,7 @@ class INumeralSystemIdentifiersStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -200,7 +200,7 @@ class INumeralSystemIdentifiersStatics2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -210,7 +210,7 @@ class INumeralSystemIdentifiersStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -224,7 +224,7 @@ class INumeralSystemIdentifiersStatics2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -234,7 +234,7 @@ class INumeralSystemIdentifiersStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -248,7 +248,7 @@ class INumeralSystemIdentifiersStatics2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -258,7 +258,7 @@ class INumeralSystemIdentifiersStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -272,7 +272,7 @@ class INumeralSystemIdentifiersStatics2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -282,7 +282,7 @@ class INumeralSystemIdentifiersStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -296,7 +296,7 @@ class INumeralSystemIdentifiersStatics2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -306,7 +306,7 @@ class INumeralSystemIdentifiersStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/itimezoneoncalendar.dart b/packages/windows_globalization/lib/src/itimezoneoncalendar.dart index 2cfe9834..0ee19f09 100644 --- a/packages/windows_globalization/lib/src/itimezoneoncalendar.dart +++ b/packages/windows_globalization/lib/src/itimezoneoncalendar.dart @@ -30,7 +30,7 @@ class ITimeZoneOnCalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class ITimeZoneOnCalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -51,7 +51,7 @@ class ITimeZoneOnCalendar extends IInspectable { } void changeTimeZone(String timeZoneId) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -60,7 +60,7 @@ class ITimeZoneOnCalendar extends IInspectable { VTablePointer lpVtbl, IntPtr timeZoneId)>>>() .value .asFunction()( - ptr.ref.lpVtbl, timeZoneId.toHString()); + lpVtbl, timeZoneId.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -69,7 +69,7 @@ class ITimeZoneOnCalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -79,7 +79,7 @@ class ITimeZoneOnCalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -93,7 +93,7 @@ class ITimeZoneOnCalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -102,11 +102,8 @@ class ITimeZoneOnCalendar extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - int idealLength, - Pointer - result)>()(ptr.ref.lpVtbl, idealLength, result); + int Function(VTablePointer lpVtbl, int idealLength, + Pointer result)>()(lpVtbl, idealLength, result); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/numberformatting/icurrencyformatter.dart b/packages/windows_globalization/lib/src/numberformatting/icurrencyformatter.dart index 4c493edf..ed8f7398 100644 --- a/packages/windows_globalization/lib/src/numberformatting/icurrencyformatter.dart +++ b/packages/windows_globalization/lib/src/numberformatting/icurrencyformatter.dart @@ -35,7 +35,7 @@ class ICurrencyFormatter extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class ICurrencyFormatter extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -59,7 +59,7 @@ class ICurrencyFormatter extends IInspectable "Currency may be read-only for releases after Windows 8.1. Instead, use a new CurrencyFormatter.") set currency(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -68,7 +68,7 @@ class ICurrencyFormatter extends IInspectable VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_globalization/lib/src/numberformatting/icurrencyformatter2.dart b/packages/windows_globalization/lib/src/numberformatting/icurrencyformatter2.dart index f5e670e6..38343caa 100644 --- a/packages/windows_globalization/lib/src/numberformatting/icurrencyformatter2.dart +++ b/packages/windows_globalization/lib/src/numberformatting/icurrencyformatter2.dart @@ -33,17 +33,17 @@ class ICurrencyFormatter2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class ICurrencyFormatter2 extends IInspectable { } set mode(CurrencyFormatterMode value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -62,13 +62,13 @@ class ICurrencyFormatter2 extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } void applyRoundingForCurrency(RoundingAlgorithm roundingAlgorithm) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -78,7 +78,7 @@ class ICurrencyFormatter2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int roundingAlgorithm)>()( - ptr.ref.lpVtbl, roundingAlgorithm.value); + lpVtbl, roundingAlgorithm.value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_globalization/lib/src/numberformatting/icurrencyformatterfactory.dart b/packages/windows_globalization/lib/src/numberformatting/icurrencyformatterfactory.dart index 05fa5376..0fa9ccd6 100644 --- a/packages/windows_globalization/lib/src/numberformatting/icurrencyformatterfactory.dart +++ b/packages/windows_globalization/lib/src/numberformatting/icurrencyformatterfactory.dart @@ -31,7 +31,7 @@ class ICurrencyFormatterFactory extends IInspectable { CurrencyFormatter createCurrencyFormatterCode(String currencyCode) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class ICurrencyFormatterFactory extends IInspectable { VTablePointer lpVtbl, int currencyCode, Pointer - result)>()(ptr.ref.lpVtbl, currencyCode.toHString(), result); + result)>()(lpVtbl, currencyCode.toHString(), result); if (FAILED(hr)) { free(result); @@ -58,7 +58,7 @@ class ICurrencyFormatterFactory extends IInspectable { IIterable? languages, String geographicRegion) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -77,7 +77,7 @@ class ICurrencyFormatterFactory extends IInspectable { VTablePointer languages, int geographicRegion, Pointer result)>()( - ptr.ref.lpVtbl, + lpVtbl, currencyCode.toHString(), languages.lpVtbl, geographicRegion.toHString(), diff --git a/packages/windows_globalization/lib/src/numberformatting/idecimalformatterfactory.dart b/packages/windows_globalization/lib/src/numberformatting/idecimalformatterfactory.dart index cb58e707..7cba5973 100644 --- a/packages/windows_globalization/lib/src/numberformatting/idecimalformatterfactory.dart +++ b/packages/windows_globalization/lib/src/numberformatting/idecimalformatterfactory.dart @@ -32,7 +32,7 @@ class IDecimalFormatterFactory extends IInspectable { IIterable? languages, String geographicRegion) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -46,7 +46,7 @@ class IDecimalFormatterFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer languages, int geographicRegion, Pointer result)>()( - ptr.ref.lpVtbl, languages.lpVtbl, geographicRegion.toHString(), result); + lpVtbl, languages.lpVtbl, geographicRegion.toHString(), result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_globalization/lib/src/numberformatting/iincrementnumberrounder.dart b/packages/windows_globalization/lib/src/numberformatting/iincrementnumberrounder.dart index 2b886a4c..a6d34e2a 100644 --- a/packages/windows_globalization/lib/src/numberformatting/iincrementnumberrounder.dart +++ b/packages/windows_globalization/lib/src/numberformatting/iincrementnumberrounder.dart @@ -32,17 +32,17 @@ class IIncrementNumberRounder extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -53,7 +53,7 @@ class IIncrementNumberRounder extends IInspectable { } set roundingAlgorithm(RoundingAlgorithm value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -61,7 +61,7 @@ class IIncrementNumberRounder extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -70,7 +70,7 @@ class IIncrementNumberRounder extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -80,7 +80,7 @@ class IIncrementNumberRounder extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -92,7 +92,7 @@ class IIncrementNumberRounder extends IInspectable { set increment(double value) { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -101,7 +101,7 @@ class IIncrementNumberRounder extends IInspectable { VTablePointer lpVtbl, Double value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_globalization/lib/src/numberformatting/inumberformatter.dart b/packages/windows_globalization/lib/src/numberformatting/inumberformatter.dart index 691d1b7e..04b785ed 100644 --- a/packages/windows_globalization/lib/src/numberformatting/inumberformatter.dart +++ b/packages/windows_globalization/lib/src/numberformatting/inumberformatter.dart @@ -30,7 +30,7 @@ class INumberFormatter extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class INumberFormatter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int value, - Pointer result)>()(ptr.ref.lpVtbl, value, result); + Pointer result)>()(lpVtbl, value, result); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class INumberFormatter extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class INumberFormatter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int value, - Pointer result)>()(ptr.ref.lpVtbl, value, result); + Pointer result)>()(lpVtbl, value, result); if (FAILED(hr)) throwWindowsException(hr); @@ -78,7 +78,7 @@ class INumberFormatter extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -88,7 +88,7 @@ class INumberFormatter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, double value, - Pointer result)>()(ptr.ref.lpVtbl, value, result); + Pointer result)>()(lpVtbl, value, result); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/numberformatting/inumberformatteroptions.dart b/packages/windows_globalization/lib/src/numberformatting/inumberformatteroptions.dart index e4815170..c42ee735 100644 --- a/packages/windows_globalization/lib/src/numberformatting/inumberformatteroptions.dart +++ b/packages/windows_globalization/lib/src/numberformatting/inumberformatteroptions.dart @@ -29,7 +29,7 @@ class INumberFormatterOptions extends IInspectable { List? get languages { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class INumberFormatterOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -60,7 +60,7 @@ class INumberFormatterOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -70,7 +70,7 @@ class INumberFormatterOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -84,17 +84,17 @@ class INumberFormatterOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -105,7 +105,7 @@ class INumberFormatterOptions extends IInspectable { } set integerDigits(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -113,7 +113,7 @@ class INumberFormatterOptions extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -122,17 +122,17 @@ class INumberFormatterOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -143,7 +143,7 @@ class INumberFormatterOptions extends IInspectable { } set fractionDigits(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -151,7 +151,7 @@ class INumberFormatterOptions extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -160,17 +160,17 @@ class INumberFormatterOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(12) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(12) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -181,7 +181,7 @@ class INumberFormatterOptions extends IInspectable { } set isGrouped(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -189,7 +189,7 @@ class INumberFormatterOptions extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -198,17 +198,17 @@ class INumberFormatterOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(14) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(14) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -219,7 +219,7 @@ class INumberFormatterOptions extends IInspectable { } set isDecimalPointAlwaysDisplayed(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -227,7 +227,7 @@ class INumberFormatterOptions extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -236,7 +236,7 @@ class INumberFormatterOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -246,7 +246,7 @@ class INumberFormatterOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -258,7 +258,7 @@ class INumberFormatterOptions extends IInspectable { set numeralSystem(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(17) .cast< Pointer< @@ -267,7 +267,7 @@ class INumberFormatterOptions extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -276,7 +276,7 @@ class INumberFormatterOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast< Pointer< @@ -286,7 +286,7 @@ class INumberFormatterOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -300,7 +300,7 @@ class INumberFormatterOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(19) .cast< Pointer< @@ -310,7 +310,7 @@ class INumberFormatterOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/numberformatting/inumberparser.dart b/packages/windows_globalization/lib/src/numberformatting/inumberparser.dart index e908fd05..b8bfd56d 100644 --- a/packages/windows_globalization/lib/src/numberformatting/inumberparser.dart +++ b/packages/windows_globalization/lib/src/numberformatting/inumberparser.dart @@ -29,18 +29,17 @@ class INumberParser extends IInspectable { int? parseInt(String text) { final result = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, IntPtr text, - Pointer result)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int text, - Pointer result)>()( - ptr.ref.lpVtbl, text.toHString(), result); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, IntPtr text, + Pointer result)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int text, + Pointer result)>()(lpVtbl, text.toHString(), result); if (FAILED(hr)) { free(result); @@ -60,18 +59,17 @@ class INumberParser extends IInspectable { int? parseUInt(String text) { final result = calloc(); - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, IntPtr text, - Pointer result)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int text, - Pointer result)>()( - ptr.ref.lpVtbl, text.toHString(), result); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, IntPtr text, + Pointer result)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int text, + Pointer result)>()(lpVtbl, text.toHString(), result); if (FAILED(hr)) { free(result); @@ -91,18 +89,17 @@ class INumberParser extends IInspectable { double? parseDouble(String text) { final result = calloc(); - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, IntPtr text, - Pointer result)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int text, - Pointer result)>()( - ptr.ref.lpVtbl, text.toHString(), result); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, IntPtr text, + Pointer result)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int text, + Pointer result)>()(lpVtbl, text.toHString(), result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_globalization/lib/src/numberformatting/inumberrounder.dart b/packages/windows_globalization/lib/src/numberformatting/inumberrounder.dart index 9fbdf14a..c6068233 100644 --- a/packages/windows_globalization/lib/src/numberformatting/inumberrounder.dart +++ b/packages/windows_globalization/lib/src/numberformatting/inumberrounder.dart @@ -32,7 +32,7 @@ class INumberRounder extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class INumberRounder extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int value, - Pointer result)>()(ptr.ref.lpVtbl, value, result); + Pointer result)>()(lpVtbl, value, result); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class INumberRounder extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class INumberRounder extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int value, - Pointer result)>()(ptr.ref.lpVtbl, value, result); + Pointer result)>()(lpVtbl, value, result); if (FAILED(hr)) throwWindowsException(hr); @@ -80,7 +80,7 @@ class INumberRounder extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -90,7 +90,7 @@ class INumberRounder extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int value, - Pointer result)>()(ptr.ref.lpVtbl, value, result); + Pointer result)>()(lpVtbl, value, result); if (FAILED(hr)) throwWindowsException(hr); @@ -104,7 +104,7 @@ class INumberRounder extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -114,7 +114,7 @@ class INumberRounder extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int value, - Pointer result)>()(ptr.ref.lpVtbl, value, result); + Pointer result)>()(lpVtbl, value, result); if (FAILED(hr)) throwWindowsException(hr); @@ -128,7 +128,7 @@ class INumberRounder extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -138,7 +138,7 @@ class INumberRounder extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, double value, - Pointer result)>()(ptr.ref.lpVtbl, value, result); + Pointer result)>()(lpVtbl, value, result); if (FAILED(hr)) throwWindowsException(hr); @@ -152,7 +152,7 @@ class INumberRounder extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -162,7 +162,7 @@ class INumberRounder extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, double value, - Pointer result)>()(ptr.ref.lpVtbl, value, result); + Pointer result)>()(lpVtbl, value, result); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/numberformatting/inumberrounderoption.dart b/packages/windows_globalization/lib/src/numberformatting/inumberrounderoption.dart index 44fabed4..670a5282 100644 --- a/packages/windows_globalization/lib/src/numberformatting/inumberrounderoption.dart +++ b/packages/windows_globalization/lib/src/numberformatting/inumberrounderoption.dart @@ -31,7 +31,7 @@ class INumberRounderOption extends IInspectable { INumberRounder? get numberRounder { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class INumberRounderOption extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -57,7 +57,7 @@ class INumberRounderOption extends IInspectable { } set numberRounder(INumberRounder? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -67,7 +67,7 @@ class INumberRounderOption extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value.lpVtbl); + lpVtbl, value.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_globalization/lib/src/numberformatting/inumeralsystemtranslator.dart b/packages/windows_globalization/lib/src/numberformatting/inumeralsystemtranslator.dart index 32495ce7..66a56ad3 100644 --- a/packages/windows_globalization/lib/src/numberformatting/inumeralsystemtranslator.dart +++ b/packages/windows_globalization/lib/src/numberformatting/inumeralsystemtranslator.dart @@ -29,7 +29,7 @@ class INumeralSystemTranslator extends IInspectable { List? get languages { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class INumeralSystemTranslator extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -60,7 +60,7 @@ class INumeralSystemTranslator extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -70,7 +70,7 @@ class INumeralSystemTranslator extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -84,7 +84,7 @@ class INumeralSystemTranslator extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -94,7 +94,7 @@ class INumeralSystemTranslator extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -106,7 +106,7 @@ class INumeralSystemTranslator extends IInspectable { set numeralSystem(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -115,7 +115,7 @@ class INumeralSystemTranslator extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -124,18 +124,17 @@ class INumeralSystemTranslator extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, IntPtr value, - Pointer result)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int value, - Pointer result)>()( - ptr.ref.lpVtbl, value.toHString(), result); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, IntPtr value, + Pointer result)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int value, + Pointer result)>()(lpVtbl, value.toHString(), result); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/numberformatting/inumeralsystemtranslatorfactory.dart b/packages/windows_globalization/lib/src/numberformatting/inumeralsystemtranslatorfactory.dart index f3a2dc96..2b530fcc 100644 --- a/packages/windows_globalization/lib/src/numberformatting/inumeralsystemtranslatorfactory.dart +++ b/packages/windows_globalization/lib/src/numberformatting/inumeralsystemtranslatorfactory.dart @@ -33,21 +33,17 @@ class INumeralSystemTranslatorFactory extends IInspectable { NumeralSystemTranslator create(IIterable? languages) { final result = calloc(); - final hr = - ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - VTablePointer languages, - Pointer result)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer languages, - Pointer result)>()( - ptr.ref.lpVtbl, languages.lpVtbl, result); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer languages, Pointer result)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer languages, + Pointer result)>()(lpVtbl, languages.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_globalization/lib/src/numberformatting/ipercentformatterfactory.dart b/packages/windows_globalization/lib/src/numberformatting/ipercentformatterfactory.dart index 7e33721e..ead04b9e 100644 --- a/packages/windows_globalization/lib/src/numberformatting/ipercentformatterfactory.dart +++ b/packages/windows_globalization/lib/src/numberformatting/ipercentformatterfactory.dart @@ -32,7 +32,7 @@ class IPercentFormatterFactory extends IInspectable { IIterable? languages, String geographicRegion) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -46,7 +46,7 @@ class IPercentFormatterFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer languages, int geographicRegion, Pointer result)>()( - ptr.ref.lpVtbl, languages.lpVtbl, geographicRegion.toHString(), result); + lpVtbl, languages.lpVtbl, geographicRegion.toHString(), result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_globalization/lib/src/numberformatting/ipermilleformatterfactory.dart b/packages/windows_globalization/lib/src/numberformatting/ipermilleformatterfactory.dart index b9b328f9..b7c7263d 100644 --- a/packages/windows_globalization/lib/src/numberformatting/ipermilleformatterfactory.dart +++ b/packages/windows_globalization/lib/src/numberformatting/ipermilleformatterfactory.dart @@ -32,7 +32,7 @@ class IPermilleFormatterFactory extends IInspectable { IIterable? languages, String geographicRegion) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -46,7 +46,7 @@ class IPermilleFormatterFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer languages, int geographicRegion, Pointer result)>()( - ptr.ref.lpVtbl, languages.lpVtbl, geographicRegion.toHString(), result); + lpVtbl, languages.lpVtbl, geographicRegion.toHString(), result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_globalization/lib/src/numberformatting/isignedzerooption.dart b/packages/windows_globalization/lib/src/numberformatting/isignedzerooption.dart index 6e5086ae..52509fb4 100644 --- a/packages/windows_globalization/lib/src/numberformatting/isignedzerooption.dart +++ b/packages/windows_globalization/lib/src/numberformatting/isignedzerooption.dart @@ -30,17 +30,17 @@ class ISignedZeroOption extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -51,7 +51,7 @@ class ISignedZeroOption extends IInspectable { } set isZeroSigned(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -59,7 +59,7 @@ class ISignedZeroOption extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_globalization/lib/src/numberformatting/isignificantdigitsnumberrounder.dart b/packages/windows_globalization/lib/src/numberformatting/isignificantdigitsnumberrounder.dart index db273aee..689bf97d 100644 --- a/packages/windows_globalization/lib/src/numberformatting/isignificantdigitsnumberrounder.dart +++ b/packages/windows_globalization/lib/src/numberformatting/isignificantdigitsnumberrounder.dart @@ -34,17 +34,17 @@ class ISignificantDigitsNumberRounder extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +55,7 @@ class ISignificantDigitsNumberRounder extends IInspectable { } set roundingAlgorithm(RoundingAlgorithm value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -63,7 +63,7 @@ class ISignificantDigitsNumberRounder extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -72,7 +72,7 @@ class ISignificantDigitsNumberRounder extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -82,7 +82,7 @@ class ISignificantDigitsNumberRounder extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -94,7 +94,7 @@ class ISignificantDigitsNumberRounder extends IInspectable { set significantDigits(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -103,7 +103,7 @@ class ISignificantDigitsNumberRounder extends IInspectable { VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_globalization/lib/src/numberformatting/isignificantdigitsoption.dart b/packages/windows_globalization/lib/src/numberformatting/isignificantdigitsoption.dart index ea2df8c0..6106f26c 100644 --- a/packages/windows_globalization/lib/src/numberformatting/isignificantdigitsoption.dart +++ b/packages/windows_globalization/lib/src/numberformatting/isignificantdigitsoption.dart @@ -30,17 +30,17 @@ class ISignificantDigitsOption extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -51,7 +51,7 @@ class ISignificantDigitsOption extends IInspectable { } set significantDigits(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -59,7 +59,7 @@ class ISignificantDigitsOption extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_globalization/lib/src/phonenumberformatting/iphonenumberformatter.dart b/packages/windows_globalization/lib/src/phonenumberformatting/iphonenumberformatter.dart index a5d20be4..4b9c7193 100644 --- a/packages/windows_globalization/lib/src/phonenumberformatting/iphonenumberformatter.dart +++ b/packages/windows_globalization/lib/src/phonenumberformatting/iphonenumberformatter.dart @@ -33,18 +33,17 @@ class IPhoneNumberFormatter extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer number, Pointer result)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer number, - Pointer result)>()( - ptr.ref.lpVtbl, number.lpVtbl, result); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer number, Pointer result)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer number, + Pointer result)>()(lpVtbl, number.lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -59,7 +58,7 @@ class IPhoneNumberFormatter extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -73,7 +72,7 @@ class IPhoneNumberFormatter extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer number, int numberFormat, Pointer result)>()( - ptr.ref.lpVtbl, number.lpVtbl, numberFormat.value, result); + lpVtbl, number.lpVtbl, numberFormat.value, result); if (FAILED(hr)) throwWindowsException(hr); @@ -87,7 +86,7 @@ class IPhoneNumberFormatter extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -98,7 +97,7 @@ class IPhoneNumberFormatter extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int number, Pointer result)>()( - ptr.ref.lpVtbl, number.toHString(), result); + lpVtbl, number.toHString(), result); if (FAILED(hr)) throwWindowsException(hr); @@ -112,7 +111,7 @@ class IPhoneNumberFormatter extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -123,7 +122,7 @@ class IPhoneNumberFormatter extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int number, Pointer result)>()( - ptr.ref.lpVtbl, number.toHString(), result); + lpVtbl, number.toHString(), result); if (FAILED(hr)) throwWindowsException(hr); @@ -137,7 +136,7 @@ class IPhoneNumberFormatter extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -148,7 +147,7 @@ class IPhoneNumberFormatter extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int number, Pointer result)>()( - ptr.ref.lpVtbl, number.toHString(), result); + lpVtbl, number.toHString(), result); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/phonenumberformatting/iphonenumberformatterstatics.dart b/packages/windows_globalization/lib/src/phonenumberformatting/iphonenumberformatterstatics.dart index 2ad21225..17f9ff0a 100644 --- a/packages/windows_globalization/lib/src/phonenumberformatting/iphonenumberformatterstatics.dart +++ b/packages/windows_globalization/lib/src/phonenumberformatting/iphonenumberformatterstatics.dart @@ -35,7 +35,7 @@ class IPhoneNumberFormatterStatics extends IInspectable { try { final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -48,7 +48,7 @@ class IPhoneNumberFormatterStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int regionCode, Pointer phoneNumber)>()( - ptr.ref.lpVtbl, regionCode.toHString(), phoneNumber); + lpVtbl, regionCode.toHString(), phoneNumber); if (FAILED(hr)) { free(phoneNumber); @@ -69,7 +69,7 @@ class IPhoneNumberFormatterStatics extends IInspectable { try { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -80,7 +80,7 @@ class IPhoneNumberFormatterStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int regionCode, Pointer result)>()( - ptr.ref.lpVtbl, regionCode.toHString(), result); + lpVtbl, regionCode.toHString(), result); if (FAILED(hr)) throwWindowsException(hr); @@ -96,7 +96,7 @@ class IPhoneNumberFormatterStatics extends IInspectable { try { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -110,7 +110,7 @@ class IPhoneNumberFormatterStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int regionCode, bool stripNonDigit, Pointer result)>()( - ptr.ref.lpVtbl, regionCode.toHString(), stripNonDigit, result); + lpVtbl, regionCode.toHString(), stripNonDigit, result); if (FAILED(hr)) throwWindowsException(hr); @@ -124,7 +124,7 @@ class IPhoneNumberFormatterStatics extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -135,7 +135,7 @@ class IPhoneNumberFormatterStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int number, Pointer result)>()( - ptr.ref.lpVtbl, number.toHString(), result); + lpVtbl, number.toHString(), result); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/phonenumberformatting/iphonenumberinfo.dart b/packages/windows_globalization/lib/src/phonenumberformatting/iphonenumberinfo.dart index eeaed098..47c44337 100644 --- a/packages/windows_globalization/lib/src/phonenumberformatting/iphonenumberinfo.dart +++ b/packages/windows_globalization/lib/src/phonenumberformatting/iphonenumberinfo.dart @@ -34,17 +34,17 @@ class IPhoneNumberInfo extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -58,7 +58,7 @@ class IPhoneNumberInfo extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,7 +68,7 @@ class IPhoneNumberInfo extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -82,7 +82,7 @@ class IPhoneNumberInfo extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -92,7 +92,7 @@ class IPhoneNumberInfo extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -106,7 +106,7 @@ class IPhoneNumberInfo extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -116,7 +116,7 @@ class IPhoneNumberInfo extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -130,7 +130,7 @@ class IPhoneNumberInfo extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -140,7 +140,7 @@ class IPhoneNumberInfo extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -154,7 +154,7 @@ class IPhoneNumberInfo extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -164,7 +164,7 @@ class IPhoneNumberInfo extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -178,7 +178,7 @@ class IPhoneNumberInfo extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -188,7 +188,7 @@ class IPhoneNumberInfo extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -202,21 +202,17 @@ class IPhoneNumberInfo extends IInspectable { final result = calloc(); try { - final hr = - ptr.ref.vtable - .elementAt(13) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - VTablePointer otherNumber, - Pointer result)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - VTablePointer otherNumber, Pointer result)>()( - ptr.ref.lpVtbl, otherNumber.lpVtbl, result); + final hr = vtable + .elementAt(13) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer otherNumber, Pointer result)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer otherNumber, + Pointer result)>()(lpVtbl, otherNumber.lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_globalization/lib/src/phonenumberformatting/iphonenumberinfofactory.dart b/packages/windows_globalization/lib/src/phonenumberformatting/iphonenumberinfofactory.dart index d0042f6d..8731dc07 100644 --- a/packages/windows_globalization/lib/src/phonenumberformatting/iphonenumberinfofactory.dart +++ b/packages/windows_globalization/lib/src/phonenumberformatting/iphonenumberinfofactory.dart @@ -31,7 +31,7 @@ class IPhoneNumberInfoFactory extends IInspectable { PhoneNumberInfo create(String number) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IPhoneNumberInfoFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int number, Pointer result)>()( - ptr.ref.lpVtbl, number.toHString(), result); + lpVtbl, number.toHString(), result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_globalization/lib/src/phonenumberformatting/iphonenumberinfostatics.dart b/packages/windows_globalization/lib/src/phonenumberformatting/iphonenumberinfostatics.dart index 3505a769..1f495dc2 100644 --- a/packages/windows_globalization/lib/src/phonenumberformatting/iphonenumberinfostatics.dart +++ b/packages/windows_globalization/lib/src/phonenumberformatting/iphonenumberinfostatics.dart @@ -35,7 +35,7 @@ class IPhoneNumberInfoStatics extends IInspectable { final phoneNumber = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -49,7 +49,7 @@ class IPhoneNumberInfoStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int input, Pointer phoneNumber, Pointer result)>()( - ptr.ref.lpVtbl, input.toHString(), phoneNumber, result); + lpVtbl, input.toHString(), phoneNumber, result); if (FAILED(hr)) { free(phoneNumber); @@ -78,7 +78,7 @@ class IPhoneNumberInfoStatics extends IInspectable { final phoneNumber = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -93,7 +93,7 @@ class IPhoneNumberInfoStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int input, int regionCode, Pointer phoneNumber, Pointer result)>()( - ptr.ref.lpVtbl, + lpVtbl, input.toHString(), regionCode.toHString(), phoneNumber, diff --git a/packages/windows_graphics/lib/src/directx/direct3d11/idirect3ddevice.dart b/packages/windows_graphics/lib/src/directx/direct3d11/idirect3ddevice.dart index 1f56b82e..0539b598 100644 --- a/packages/windows_graphics/lib/src/directx/direct3d11/idirect3ddevice.dart +++ b/packages/windows_graphics/lib/src/directx/direct3d11/idirect3ddevice.dart @@ -29,11 +29,11 @@ class IDirect3DDevice extends IInspectable implements IClosable { interface.cast(IDirect3DDevice.fromPtr, IID_IDirect3DDevice); void trim() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_graphics/lib/src/directx/direct3d11/idirect3dsurface.dart b/packages/windows_graphics/lib/src/directx/direct3d11/idirect3dsurface.dart index 3a55e518..bd8a2641 100644 --- a/packages/windows_graphics/lib/src/directx/direct3d11/idirect3dsurface.dart +++ b/packages/windows_graphics/lib/src/directx/direct3d11/idirect3dsurface.dart @@ -34,7 +34,7 @@ class IDirect3DSurface extends IInspectable implements IClosable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -46,7 +46,7 @@ class IDirect3DSurface extends IInspectable implements IClosable { int Function( VTablePointer lpVtbl, Pointer - value)>()(ptr.ref.lpVtbl, value); + value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_graphics/lib/src/imaging/ibitmapbuffer.dart b/packages/windows_graphics/lib/src/imaging/ibitmapbuffer.dart index 4857ea81..7dd5e217 100644 --- a/packages/windows_graphics/lib/src/imaging/ibitmapbuffer.dart +++ b/packages/windows_graphics/lib/src/imaging/ibitmapbuffer.dart @@ -32,17 +32,17 @@ class IBitmapBuffer extends IInspectable implements IMemoryBuffer, IClosable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class IBitmapBuffer extends IInspectable implements IMemoryBuffer, IClosable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -67,7 +67,7 @@ class IBitmapBuffer extends IInspectable implements IMemoryBuffer, IClosable { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer value)>()( - ptr.ref.lpVtbl, index, value); + lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_graphics/lib/src/imaging/ibitmapcodecinformation.dart b/packages/windows_graphics/lib/src/imaging/ibitmapcodecinformation.dart index d0171219..573f67e4 100644 --- a/packages/windows_graphics/lib/src/imaging/ibitmapcodecinformation.dart +++ b/packages/windows_graphics/lib/src/imaging/ibitmapcodecinformation.dart @@ -30,17 +30,17 @@ class IBitmapCodecInformation extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -53,7 +53,7 @@ class IBitmapCodecInformation extends IInspectable { List? get fileExtensions { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -63,7 +63,7 @@ class IBitmapCodecInformation extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -84,7 +84,7 @@ class IBitmapCodecInformation extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -94,7 +94,7 @@ class IBitmapCodecInformation extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -107,7 +107,7 @@ class IBitmapCodecInformation extends IInspectable { List? get mimeTypes { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -117,7 +117,7 @@ class IBitmapCodecInformation extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_graphics/lib/src/imaging/ibitmapdecoder.dart b/packages/windows_graphics/lib/src/imaging/ibitmapdecoder.dart index dc0631fb..4d1b0449 100644 --- a/packages/windows_graphics/lib/src/imaging/ibitmapdecoder.dart +++ b/packages/windows_graphics/lib/src/imaging/ibitmapdecoder.dart @@ -34,7 +34,7 @@ class IBitmapDecoder extends IInspectable { BitmapPropertiesView? get bitmapContainerProperties { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class IBitmapDecoder extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -62,7 +62,7 @@ class IBitmapDecoder extends IInspectable { BitmapCodecInformation? get decoderInformation { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -72,7 +72,7 @@ class IBitmapDecoder extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -91,7 +91,7 @@ class IBitmapDecoder extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -101,7 +101,7 @@ class IBitmapDecoder extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -114,7 +114,7 @@ class IBitmapDecoder extends IInspectable { Future getPreviewAsync() { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -124,7 +124,7 @@ class IBitmapDecoder extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer asyncInfo)>()(ptr.ref.lpVtbl, asyncInfo); + Pointer asyncInfo)>()(lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -139,21 +139,17 @@ class IBitmapDecoder extends IInspectable { Future getFrameAsync(int frameIndex) { final asyncInfo = calloc(); - final hr = - ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - Uint32 frameIndex, - Pointer asyncInfo)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int frameIndex, - Pointer asyncInfo)>()( - ptr.ref.lpVtbl, frameIndex, asyncInfo); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 frameIndex, + Pointer asyncInfo)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int frameIndex, + Pointer asyncInfo)>()(lpVtbl, frameIndex, asyncInfo); if (FAILED(hr)) { free(asyncInfo); diff --git a/packages/windows_graphics/lib/src/imaging/ibitmapdecoderstatics.dart b/packages/windows_graphics/lib/src/imaging/ibitmapdecoderstatics.dart index 15940dbf..17c5d3d6 100644 --- a/packages/windows_graphics/lib/src/imaging/ibitmapdecoderstatics.dart +++ b/packages/windows_graphics/lib/src/imaging/ibitmapdecoderstatics.dart @@ -34,17 +34,17 @@ class IBitmapDecoderStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -58,17 +58,17 @@ class IBitmapDecoderStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -82,17 +82,17 @@ class IBitmapDecoderStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -106,17 +106,17 @@ class IBitmapDecoderStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -130,17 +130,17 @@ class IBitmapDecoderStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -154,17 +154,17 @@ class IBitmapDecoderStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -178,17 +178,17 @@ class IBitmapDecoderStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(12) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(12) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -202,7 +202,7 @@ class IBitmapDecoderStatics extends IInspectable { final decoderInformationEnumerator = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(13) .cast< Pointer< @@ -215,7 +215,7 @@ class IBitmapDecoderStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, Pointer decoderInformationEnumerator)>()( - ptr.ref.lpVtbl, decoderInformationEnumerator); + lpVtbl, decoderInformationEnumerator); if (FAILED(hr)) { free(decoderInformationEnumerator); @@ -233,7 +233,7 @@ class IBitmapDecoderStatics extends IInspectable { final asyncInfo = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(14) .cast< Pointer< @@ -246,7 +246,7 @@ class IBitmapDecoderStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer stream, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, stream.lpVtbl, asyncInfo); + lpVtbl, stream.lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -264,7 +264,7 @@ class IBitmapDecoderStatics extends IInspectable { final decoderIdNativeStructPtr = decoderId.toNativeGUID(); final hr = - ptr.ref.vtable + vtable .elementAt(15) .cast< Pointer< @@ -278,10 +278,7 @@ class IBitmapDecoderStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, GUID decoderId, VTablePointer stream, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, - decoderIdNativeStructPtr.ref, - stream.lpVtbl, - asyncInfo); + lpVtbl, decoderIdNativeStructPtr.ref, stream.lpVtbl, asyncInfo); free(decoderIdNativeStructPtr); diff --git a/packages/windows_graphics/lib/src/imaging/ibitmapdecoderstatics2.dart b/packages/windows_graphics/lib/src/imaging/ibitmapdecoderstatics2.dart index 676af369..57410142 100644 --- a/packages/windows_graphics/lib/src/imaging/ibitmapdecoderstatics2.dart +++ b/packages/windows_graphics/lib/src/imaging/ibitmapdecoderstatics2.dart @@ -30,17 +30,17 @@ class IBitmapDecoderStatics2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,17 +54,17 @@ class IBitmapDecoderStatics2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_graphics/lib/src/imaging/ibitmapframe.dart b/packages/windows_graphics/lib/src/imaging/ibitmapframe.dart index 475a0046..0e9ad653 100644 --- a/packages/windows_graphics/lib/src/imaging/ibitmapframe.dart +++ b/packages/windows_graphics/lib/src/imaging/ibitmapframe.dart @@ -38,7 +38,7 @@ class IBitmapFrame extends IInspectable { Future getThumbnailAsync() { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -48,7 +48,7 @@ class IBitmapFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer asyncInfo)>()(ptr.ref.lpVtbl, asyncInfo); + Pointer asyncInfo)>()(lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -63,7 +63,7 @@ class IBitmapFrame extends IInspectable { BitmapPropertiesView? get bitmapProperties { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -73,7 +73,7 @@ class IBitmapFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -92,17 +92,17 @@ class IBitmapFrame extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -116,17 +116,17 @@ class IBitmapFrame extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -140,7 +140,7 @@ class IBitmapFrame extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -150,7 +150,7 @@ class IBitmapFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -164,7 +164,7 @@ class IBitmapFrame extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -174,7 +174,7 @@ class IBitmapFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -188,7 +188,7 @@ class IBitmapFrame extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -198,7 +198,7 @@ class IBitmapFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -212,7 +212,7 @@ class IBitmapFrame extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -222,7 +222,7 @@ class IBitmapFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -236,7 +236,7 @@ class IBitmapFrame extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -246,7 +246,7 @@ class IBitmapFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -260,7 +260,7 @@ class IBitmapFrame extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -270,7 +270,7 @@ class IBitmapFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -283,7 +283,7 @@ class IBitmapFrame extends IInspectable { Future getPixelDataAsync() { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -293,7 +293,7 @@ class IBitmapFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer asyncInfo)>()(ptr.ref.lpVtbl, asyncInfo); + Pointer asyncInfo)>()(lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -314,7 +314,7 @@ class IBitmapFrame extends IInspectable { ColorManagementMode colorManagementMode) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -337,7 +337,7 @@ class IBitmapFrame extends IInspectable { int exifOrientationMode, int colorManagementMode, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, + lpVtbl, pixelFormat.value, alphaMode.value, transform.lpVtbl, diff --git a/packages/windows_graphics/lib/src/imaging/ibitmapframewithsoftwarebitmap.dart b/packages/windows_graphics/lib/src/imaging/ibitmapframewithsoftwarebitmap.dart index cc969418..533b9831 100644 --- a/packages/windows_graphics/lib/src/imaging/ibitmapframewithsoftwarebitmap.dart +++ b/packages/windows_graphics/lib/src/imaging/ibitmapframewithsoftwarebitmap.dart @@ -43,7 +43,7 @@ class IBitmapFrameWithSoftwareBitmap extends IInspectable Future getSoftwareBitmapAsync() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -53,7 +53,7 @@ class IBitmapFrameWithSoftwareBitmap extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -70,7 +70,7 @@ class IBitmapFrameWithSoftwareBitmap extends IInspectable final value = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -84,7 +84,7 @@ class IBitmapFrameWithSoftwareBitmap extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, int pixelFormat, int alphaMode, Pointer value)>()( - ptr.ref.lpVtbl, pixelFormat.value, alphaMode.value, value); + lpVtbl, pixelFormat.value, alphaMode.value, value); if (FAILED(hr)) { free(value); @@ -104,7 +104,7 @@ class IBitmapFrameWithSoftwareBitmap extends IInspectable ColorManagementMode colorManagementMode) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -127,7 +127,7 @@ class IBitmapFrameWithSoftwareBitmap extends IInspectable int exifOrientationMode, int colorManagementMode, Pointer value)>()( - ptr.ref.lpVtbl, + lpVtbl, pixelFormat.value, alphaMode.value, transform.lpVtbl, diff --git a/packages/windows_graphics/lib/src/imaging/ibitmappropertiesview.dart b/packages/windows_graphics/lib/src/imaging/ibitmappropertiesview.dart index 124b8d45..1ad94ac6 100644 --- a/packages/windows_graphics/lib/src/imaging/ibitmappropertiesview.dart +++ b/packages/windows_graphics/lib/src/imaging/ibitmappropertiesview.dart @@ -32,7 +32,7 @@ class IBitmapPropertiesView extends IInspectable { IIterable? propertiesToRetrieve) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -47,7 +47,7 @@ class IBitmapPropertiesView extends IInspectable { VTablePointer lpVtbl, VTablePointer propertiesToRetrieve, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, propertiesToRetrieve.lpVtbl, asyncInfo); + lpVtbl, propertiesToRetrieve.lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); diff --git a/packages/windows_graphics/lib/src/imaging/ibitmaptransform.dart b/packages/windows_graphics/lib/src/imaging/ibitmaptransform.dart index ca809dcc..460422e9 100644 --- a/packages/windows_graphics/lib/src/imaging/ibitmaptransform.dart +++ b/packages/windows_graphics/lib/src/imaging/ibitmaptransform.dart @@ -35,7 +35,7 @@ class IBitmapTransform extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IBitmapTransform extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -57,7 +57,7 @@ class IBitmapTransform extends IInspectable { set scaledWidth(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class IBitmapTransform extends IInspectable { VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -75,7 +75,7 @@ class IBitmapTransform extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -85,7 +85,7 @@ class IBitmapTransform extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -97,7 +97,7 @@ class IBitmapTransform extends IInspectable { set scaledHeight(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -106,7 +106,7 @@ class IBitmapTransform extends IInspectable { VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -115,17 +115,17 @@ class IBitmapTransform extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -136,7 +136,7 @@ class IBitmapTransform extends IInspectable { } set interpolationMode(BitmapInterpolationMode value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -144,7 +144,7 @@ class IBitmapTransform extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -153,17 +153,17 @@ class IBitmapTransform extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(12) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(12) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -174,7 +174,7 @@ class IBitmapTransform extends IInspectable { } set flip(BitmapFlip value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -182,7 +182,7 @@ class IBitmapTransform extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -191,17 +191,17 @@ class IBitmapTransform extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(14) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(14) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -212,7 +212,7 @@ class IBitmapTransform extends IInspectable { } set rotation(BitmapRotation value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -220,7 +220,7 @@ class IBitmapTransform extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -229,7 +229,7 @@ class IBitmapTransform extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -239,7 +239,7 @@ class IBitmapTransform extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -252,7 +252,7 @@ class IBitmapTransform extends IInspectable { set bounds(BitmapBounds value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -262,7 +262,7 @@ class IBitmapTransform extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, NativeBitmapBounds value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); diff --git a/packages/windows_graphics/lib/src/imaging/ibitmaptypedvalue.dart b/packages/windows_graphics/lib/src/imaging/ibitmaptypedvalue.dart index 8fdf6f25..48475511 100644 --- a/packages/windows_graphics/lib/src/imaging/ibitmaptypedvalue.dart +++ b/packages/windows_graphics/lib/src/imaging/ibitmaptypedvalue.dart @@ -29,7 +29,7 @@ class IBitmapTypedValue extends IInspectable { Object? get value { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class IBitmapTypedValue extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -58,17 +58,17 @@ class IBitmapTypedValue extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_graphics/lib/src/imaging/ibitmaptypedvaluefactory.dart b/packages/windows_graphics/lib/src/imaging/ibitmaptypedvaluefactory.dart index ffcc0c46..775fa27d 100644 --- a/packages/windows_graphics/lib/src/imaging/ibitmaptypedvaluefactory.dart +++ b/packages/windows_graphics/lib/src/imaging/ibitmaptypedvaluefactory.dart @@ -32,7 +32,7 @@ class IBitmapTypedValueFactory extends IInspectable { final bitmapTypedValue = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -46,7 +46,7 @@ class IBitmapTypedValueFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value, int type, Pointer bitmapTypedValue)>()( - ptr.ref.lpVtbl, + lpVtbl, value?.boxValue().lpVtbl ?? nullptr, type.value, bitmapTypedValue); diff --git a/packages/windows_graphics/lib/src/imaging/ipixeldataprovider.dart b/packages/windows_graphics/lib/src/imaging/ipixeldataprovider.dart index 844b8af9..f4be4246 100644 --- a/packages/windows_graphics/lib/src/imaging/ipixeldataprovider.dart +++ b/packages/windows_graphics/lib/src/imaging/ipixeldataprovider.dart @@ -31,7 +31,7 @@ class IPixelDataProvider extends IInspectable { final pixelData = calloc>(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -46,7 +46,7 @@ class IPixelDataProvider extends IInspectable { VTablePointer lpVtbl, Pointer pixelDataSize, Pointer> pixelData)>()( - ptr.ref.lpVtbl, pixelDataSize, pixelData); + lpVtbl, pixelDataSize, pixelData); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_graphics/lib/src/imaging/isoftwarebitmap.dart b/packages/windows_graphics/lib/src/imaging/isoftwarebitmap.dart index 28775823..242c28e0 100644 --- a/packages/windows_graphics/lib/src/imaging/isoftwarebitmap.dart +++ b/packages/windows_graphics/lib/src/imaging/isoftwarebitmap.dart @@ -37,17 +37,17 @@ class ISoftwareBitmap extends IInspectable implements IClosable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -61,17 +61,17 @@ class ISoftwareBitmap extends IInspectable implements IClosable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -85,17 +85,17 @@ class ISoftwareBitmap extends IInspectable implements IClosable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -109,17 +109,17 @@ class ISoftwareBitmap extends IInspectable implements IClosable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -133,17 +133,17 @@ class ISoftwareBitmap extends IInspectable implements IClosable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -155,7 +155,7 @@ class ISoftwareBitmap extends IInspectable implements IClosable { set dpiX(double value) { final hr = - ptr.ref.vtable + vtable .elementAt(11) .cast< Pointer< @@ -164,7 +164,7 @@ class ISoftwareBitmap extends IInspectable implements IClosable { VTablePointer lpVtbl, Double value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -173,7 +173,7 @@ class ISoftwareBitmap extends IInspectable implements IClosable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -183,7 +183,7 @@ class ISoftwareBitmap extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -195,7 +195,7 @@ class ISoftwareBitmap extends IInspectable implements IClosable { set dpiY(double value) { final hr = - ptr.ref.vtable + vtable .elementAt(13) .cast< Pointer< @@ -204,7 +204,7 @@ class ISoftwareBitmap extends IInspectable implements IClosable { VTablePointer lpVtbl, Double value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -213,7 +213,7 @@ class ISoftwareBitmap extends IInspectable implements IClosable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -223,7 +223,7 @@ class ISoftwareBitmap extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -236,7 +236,7 @@ class ISoftwareBitmap extends IInspectable implements IClosable { BitmapBuffer? lockBuffer(BitmapBufferAccessMode mode) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -246,7 +246,7 @@ class ISoftwareBitmap extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, int mode, - Pointer value)>()(ptr.ref.lpVtbl, mode.value, value); + Pointer value)>()(lpVtbl, mode.value, value); if (FAILED(hr)) { free(value); @@ -262,7 +262,7 @@ class ISoftwareBitmap extends IInspectable implements IClosable { } void copyTo(SoftwareBitmap? bitmap) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -272,13 +272,13 @@ class ISoftwareBitmap extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer bitmap)>()( - ptr.ref.lpVtbl, bitmap.lpVtbl); + lpVtbl, bitmap.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } void copyFromBuffer(IBuffer? buffer) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -288,13 +288,13 @@ class ISoftwareBitmap extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer buffer)>()( - ptr.ref.lpVtbl, buffer.lpVtbl); + lpVtbl, buffer.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } void copyToBuffer(IBuffer? buffer) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast< Pointer< @@ -304,7 +304,7 @@ class ISoftwareBitmap extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer buffer)>()( - ptr.ref.lpVtbl, buffer.lpVtbl); + lpVtbl, buffer.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -312,7 +312,7 @@ class ISoftwareBitmap extends IInspectable implements IClosable { SoftwareBitmap? getReadOnlyView() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(19) .cast< Pointer< @@ -322,7 +322,7 @@ class ISoftwareBitmap extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_graphics/lib/src/imaging/isoftwarebitmapfactory.dart b/packages/windows_graphics/lib/src/imaging/isoftwarebitmapfactory.dart index b16a49eb..ef15b992 100644 --- a/packages/windows_graphics/lib/src/imaging/isoftwarebitmapfactory.dart +++ b/packages/windows_graphics/lib/src/imaging/isoftwarebitmapfactory.dart @@ -33,7 +33,7 @@ class ISoftwareBitmapFactory extends IInspectable { SoftwareBitmap create(BitmapPixelFormat format, int width, int height) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -48,7 +48,7 @@ class ISoftwareBitmapFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int format, int width, int height, Pointer value)>()( - ptr.ref.lpVtbl, format.value, width, height, value); + lpVtbl, format.value, width, height, value); if (FAILED(hr)) { free(value); @@ -62,7 +62,7 @@ class ISoftwareBitmapFactory extends IInspectable { BitmapPixelFormat format, int width, int height, BitmapAlphaMode alpha) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -78,7 +78,7 @@ class ISoftwareBitmapFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int format, int width, int height, int alpha, Pointer value)>()( - ptr.ref.lpVtbl, format.value, width, height, alpha.value, value); + lpVtbl, format.value, width, height, alpha.value, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_graphics/lib/src/imaging/isoftwarebitmapstatics.dart b/packages/windows_graphics/lib/src/imaging/isoftwarebitmapstatics.dart index d4d870c8..7c285b1d 100644 --- a/packages/windows_graphics/lib/src/imaging/isoftwarebitmapstatics.dart +++ b/packages/windows_graphics/lib/src/imaging/isoftwarebitmapstatics.dart @@ -35,7 +35,7 @@ class ISoftwareBitmapStatics extends IInspectable { SoftwareBitmap? copy(SoftwareBitmap? source) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,11 +44,8 @@ class ISoftwareBitmapStatics extends IInspectable { Pointer value)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer source, - Pointer - value)>()(ptr.ref.lpVtbl, source.lpVtbl, value); + int Function(VTablePointer lpVtbl, VTablePointer source, + Pointer value)>()(lpVtbl, source.lpVtbl, value); if (FAILED(hr)) { free(value); @@ -67,7 +64,7 @@ class ISoftwareBitmapStatics extends IInspectable { final value = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -81,7 +78,7 @@ class ISoftwareBitmapStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer source, int format, Pointer value)>()( - ptr.ref.lpVtbl, source.lpVtbl, format.value, value); + lpVtbl, source.lpVtbl, format.value, value); if (FAILED(hr)) { free(value); @@ -100,7 +97,7 @@ class ISoftwareBitmapStatics extends IInspectable { SoftwareBitmap? source, BitmapPixelFormat format, BitmapAlphaMode alpha) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -115,7 +112,7 @@ class ISoftwareBitmapStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer source, int format, int alpha, Pointer value)>()( - ptr.ref.lpVtbl, source.lpVtbl, format.value, alpha.value, value); + lpVtbl, source.lpVtbl, format.value, alpha.value, value); if (FAILED(hr)) { free(value); @@ -134,7 +131,7 @@ class ISoftwareBitmapStatics extends IInspectable { IBuffer? source, BitmapPixelFormat format, int width, int height) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -155,7 +152,7 @@ class ISoftwareBitmapStatics extends IInspectable { int width, int height, Pointer value)>()( - ptr.ref.lpVtbl, source.lpVtbl, format.value, width, height, value); + lpVtbl, source.lpVtbl, format.value, width, height, value); if (FAILED(hr)) { free(value); @@ -174,7 +171,7 @@ class ISoftwareBitmapStatics extends IInspectable { BitmapPixelFormat format, int width, int height, BitmapAlphaMode alpha) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -196,8 +193,8 @@ class ISoftwareBitmapStatics extends IInspectable { int width, int height, int alpha, - Pointer value)>()(ptr.ref.lpVtbl, source.lpVtbl, - format.value, width, height, alpha.value, value); + Pointer value)>()( + lpVtbl, source.lpVtbl, format.value, width, height, alpha.value, value); if (FAILED(hr)) { free(value); @@ -216,21 +213,17 @@ class ISoftwareBitmapStatics extends IInspectable { IDirect3DSurface? surface) { final value = calloc(); - final hr = - ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - VTablePointer surface, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer surface, - Pointer value)>()( - ptr.ref.lpVtbl, surface.lpVtbl, value); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer surface, Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer surface, + Pointer value)>()(lpVtbl, surface.lpVtbl, value); if (FAILED(hr)) { free(value); @@ -246,7 +239,7 @@ class ISoftwareBitmapStatics extends IInspectable { IDirect3DSurface? surface, BitmapAlphaMode alpha) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -260,7 +253,7 @@ class ISoftwareBitmapStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer surface, int alpha, Pointer value)>()( - ptr.ref.lpVtbl, surface.lpVtbl, alpha.value, value); + lpVtbl, surface.lpVtbl, alpha.value, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_graphics/lib/src/printing3d/iprinting3dmultiplepropertymaterial.dart b/packages/windows_graphics/lib/src/printing3d/iprinting3dmultiplepropertymaterial.dart index 90d8422b..a0f6b39d 100644 --- a/packages/windows_graphics/lib/src/printing3d/iprinting3dmultiplepropertymaterial.dart +++ b/packages/windows_graphics/lib/src/printing3d/iprinting3dmultiplepropertymaterial.dart @@ -31,7 +31,7 @@ class IPrinting3DMultiplePropertyMaterial extends IInspectable { IVector? get materialIndices { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IPrinting3DMultiplePropertyMaterial extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/core/ivariablephotosequencecapture.dart b/packages/windows_media/lib/src/capture/core/ivariablephotosequencecapture.dart index 9f984673..bac52cc0 100644 --- a/packages/windows_media/lib/src/capture/core/ivariablephotosequencecapture.dart +++ b/packages/windows_media/lib/src/capture/core/ivariablephotosequencecapture.dart @@ -33,7 +33,7 @@ class IVariablePhotoSequenceCapture extends IInspectable { Future startAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IVariablePhotoSequenceCapture extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -56,7 +56,7 @@ class IVariablePhotoSequenceCapture extends IInspectable { Future stopAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class IVariablePhotoSequenceCapture extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -79,7 +79,7 @@ class IVariablePhotoSequenceCapture extends IInspectable { Future finishAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -89,7 +89,7 @@ class IVariablePhotoSequenceCapture extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -103,18 +103,17 @@ class IVariablePhotoSequenceCapture extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -126,7 +125,7 @@ class IVariablePhotoSequenceCapture extends IInspectable { void remove_PhotoCaptured(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -135,7 +134,7 @@ class IVariablePhotoSequenceCapture extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -144,18 +143,17 @@ class IVariablePhotoSequenceCapture extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -167,7 +165,7 @@ class IVariablePhotoSequenceCapture extends IInspectable { void remove_Stopped(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(12) .cast< Pointer< @@ -176,7 +174,7 @@ class IVariablePhotoSequenceCapture extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/capture/core/ivariablephotosequencecapture2.dart b/packages/windows_media/lib/src/capture/core/ivariablephotosequencecapture2.dart index 72906e38..52503d97 100644 --- a/packages/windows_media/lib/src/capture/core/ivariablephotosequencecapture2.dart +++ b/packages/windows_media/lib/src/capture/core/ivariablephotosequencecapture2.dart @@ -31,7 +31,7 @@ class IVariablePhotoSequenceCapture2 extends IInspectable { Future updateSettingsAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IVariablePhotoSequenceCapture2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_media/lib/src/capture/frames/iaudiomediaframe.dart b/packages/windows_media/lib/src/capture/frames/iaudiomediaframe.dart index 18fcb2ea..29039df4 100644 --- a/packages/windows_media/lib/src/capture/frames/iaudiomediaframe.dart +++ b/packages/windows_media/lib/src/capture/frames/iaudiomediaframe.dart @@ -33,7 +33,7 @@ class IAudioMediaFrame extends IInspectable { MediaFrameReference? get frameReference { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IAudioMediaFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -61,7 +61,7 @@ class IAudioMediaFrame extends IInspectable { AudioEncodingProperties? get audioEncodingProperties { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -71,7 +71,7 @@ class IAudioMediaFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -89,7 +89,7 @@ class IAudioMediaFrame extends IInspectable { AudioFrame? getAudioFrame() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -99,7 +99,7 @@ class IAudioMediaFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/frames/ibuffermediaframe.dart b/packages/windows_media/lib/src/capture/frames/ibuffermediaframe.dart index cd96a56d..aad5642b 100644 --- a/packages/windows_media/lib/src/capture/frames/ibuffermediaframe.dart +++ b/packages/windows_media/lib/src/capture/frames/ibuffermediaframe.dart @@ -32,7 +32,7 @@ class IBufferMediaFrame extends IInspectable { MediaFrameReference? get frameReference { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IBufferMediaFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -60,7 +60,7 @@ class IBufferMediaFrame extends IInspectable { IBuffer? get buffer { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -70,7 +70,7 @@ class IBufferMediaFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/frames/idepthmediaframe.dart b/packages/windows_media/lib/src/capture/frames/idepthmediaframe.dart index 3883919b..2c38bd94 100644 --- a/packages/windows_media/lib/src/capture/frames/idepthmediaframe.dart +++ b/packages/windows_media/lib/src/capture/frames/idepthmediaframe.dart @@ -36,7 +36,7 @@ class IDepthMediaFrame extends IInspectable { MediaFrameReference? get frameReference { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -46,7 +46,7 @@ class IDepthMediaFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -64,7 +64,7 @@ class IDepthMediaFrame extends IInspectable { VideoMediaFrame? get videoMediaFrame { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -74,7 +74,7 @@ class IDepthMediaFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -92,7 +92,7 @@ class IDepthMediaFrame extends IInspectable { DepthMediaFrameFormat? get depthFormat { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -102,7 +102,7 @@ class IDepthMediaFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -122,7 +122,7 @@ class IDepthMediaFrame extends IInspectable { SpatialCoordinateSystem? coordinateSystem) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -138,8 +138,8 @@ class IDepthMediaFrame extends IInspectable { VTablePointer lpVtbl, VTablePointer cameraIntrinsics, VTablePointer coordinateSystem, - Pointer value)>()(ptr.ref.lpVtbl, - cameraIntrinsics.lpVtbl, coordinateSystem.lpVtbl, value); + Pointer value)>()( + lpVtbl, cameraIntrinsics.lpVtbl, coordinateSystem.lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/frames/idepthmediaframe2.dart b/packages/windows_media/lib/src/capture/frames/idepthmediaframe2.dart index 7f5ee37e..c04b3178 100644 --- a/packages/windows_media/lib/src/capture/frames/idepthmediaframe2.dart +++ b/packages/windows_media/lib/src/capture/frames/idepthmediaframe2.dart @@ -30,7 +30,7 @@ class IDepthMediaFrame2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IDepthMediaFrame2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IDepthMediaFrame2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IDepthMediaFrame2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/capture/frames/idepthmediaframeformat.dart b/packages/windows_media/lib/src/capture/frames/idepthmediaframeformat.dart index 620b3ba2..b8540e0e 100644 --- a/packages/windows_media/lib/src/capture/frames/idepthmediaframeformat.dart +++ b/packages/windows_media/lib/src/capture/frames/idepthmediaframeformat.dart @@ -31,7 +31,7 @@ class IDepthMediaFrameFormat extends IInspectable { VideoMediaFrameFormat? get videoFormat { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IDepthMediaFrameFormat extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -60,7 +60,7 @@ class IDepthMediaFrameFormat extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -70,7 +70,7 @@ class IDepthMediaFrameFormat extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/capture/frames/iinfraredmediaframe.dart b/packages/windows_media/lib/src/capture/frames/iinfraredmediaframe.dart index a60f0a60..7a7c28ff 100644 --- a/packages/windows_media/lib/src/capture/frames/iinfraredmediaframe.dart +++ b/packages/windows_media/lib/src/capture/frames/iinfraredmediaframe.dart @@ -32,7 +32,7 @@ class IInfraredMediaFrame extends IInspectable { MediaFrameReference? get frameReference { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IInfraredMediaFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -60,7 +60,7 @@ class IInfraredMediaFrame extends IInspectable { VideoMediaFrame? get videoMediaFrame { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -70,7 +70,7 @@ class IInfraredMediaFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -89,17 +89,17 @@ class IInfraredMediaFrame extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/capture/frames/imediaframeformat.dart b/packages/windows_media/lib/src/capture/frames/imediaframeformat.dart index c7f260cf..489d2026 100644 --- a/packages/windows_media/lib/src/capture/frames/imediaframeformat.dart +++ b/packages/windows_media/lib/src/capture/frames/imediaframeformat.dart @@ -33,7 +33,7 @@ class IMediaFrameFormat extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IMediaFrameFormat extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -57,7 +57,7 @@ class IMediaFrameFormat extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -67,7 +67,7 @@ class IMediaFrameFormat extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -80,7 +80,7 @@ class IMediaFrameFormat extends IInspectable { MediaRatio? get frameRate { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -90,7 +90,7 @@ class IMediaFrameFormat extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -108,7 +108,7 @@ class IMediaFrameFormat extends IInspectable { Map? get properties { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -118,7 +118,7 @@ class IMediaFrameFormat extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -138,7 +138,7 @@ class IMediaFrameFormat extends IInspectable { VideoMediaFrameFormat? get videoFormat { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -148,7 +148,7 @@ class IMediaFrameFormat extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/frames/imediaframeformat2.dart b/packages/windows_media/lib/src/capture/frames/imediaframeformat2.dart index 1ac4864f..a133fe9e 100644 --- a/packages/windows_media/lib/src/capture/frames/imediaframeformat2.dart +++ b/packages/windows_media/lib/src/capture/frames/imediaframeformat2.dart @@ -31,7 +31,7 @@ class IMediaFrameFormat2 extends IInspectable { AudioEncodingProperties? get audioEncodingProperties { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IMediaFrameFormat2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/frames/imediaframereader.dart b/packages/windows_media/lib/src/capture/frames/imediaframereader.dart index f0edd347..a5ec0fd7 100644 --- a/packages/windows_media/lib/src/capture/frames/imediaframereader.dart +++ b/packages/windows_media/lib/src/capture/frames/imediaframereader.dart @@ -34,18 +34,17 @@ class IMediaFrameReader extends IInspectable implements IClosable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -57,7 +56,7 @@ class IMediaFrameReader extends IInspectable implements IClosable { void remove_FrameArrived(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -66,7 +65,7 @@ class IMediaFrameReader extends IInspectable implements IClosable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -74,7 +73,7 @@ class IMediaFrameReader extends IInspectable implements IClosable { MediaFrameReference? tryAcquireLatestFrame() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -84,7 +83,7 @@ class IMediaFrameReader extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -102,7 +101,7 @@ class IMediaFrameReader extends IInspectable implements IClosable { Future startAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -112,7 +111,7 @@ class IMediaFrameReader extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -128,7 +127,7 @@ class IMediaFrameReader extends IInspectable implements IClosable { Future stopAsync() { final action = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -138,7 +137,7 @@ class IMediaFrameReader extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer action)>()(ptr.ref.lpVtbl, action); + Pointer action)>()(lpVtbl, action); if (FAILED(hr)) { free(action); diff --git a/packages/windows_media/lib/src/capture/frames/imediaframereader2.dart b/packages/windows_media/lib/src/capture/frames/imediaframereader2.dart index 33612032..8de9d685 100644 --- a/packages/windows_media/lib/src/capture/frames/imediaframereader2.dart +++ b/packages/windows_media/lib/src/capture/frames/imediaframereader2.dart @@ -29,7 +29,7 @@ class IMediaFrameReader2 extends IInspectable { interface.cast(IMediaFrameReader2.fromPtr, IID_IMediaFrameReader2); set acquisitionMode(MediaFrameReaderAcquisitionMode value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -37,7 +37,7 @@ class IMediaFrameReader2 extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -46,17 +46,17 @@ class IMediaFrameReader2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/capture/frames/imediaframereference.dart b/packages/windows_media/lib/src/capture/frames/imediaframereference.dart index 28431c50..72a37309 100644 --- a/packages/windows_media/lib/src/capture/frames/imediaframereference.dart +++ b/packages/windows_media/lib/src/capture/frames/imediaframereference.dart @@ -36,17 +36,17 @@ class IMediaFrameReference extends IInspectable implements IClosable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -59,7 +59,7 @@ class IMediaFrameReference extends IInspectable implements IClosable { MediaFrameFormat? get format { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -69,7 +69,7 @@ class IMediaFrameReference extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -87,7 +87,7 @@ class IMediaFrameReference extends IInspectable implements IClosable { Duration? get systemRelativeTime { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -97,7 +97,7 @@ class IMediaFrameReference extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -118,17 +118,17 @@ class IMediaFrameReference extends IInspectable implements IClosable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -141,7 +141,7 @@ class IMediaFrameReference extends IInspectable implements IClosable { Map? get properties { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -151,7 +151,7 @@ class IMediaFrameReference extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -171,7 +171,7 @@ class IMediaFrameReference extends IInspectable implements IClosable { BufferMediaFrame? get bufferMediaFrame { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -181,7 +181,7 @@ class IMediaFrameReference extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -199,7 +199,7 @@ class IMediaFrameReference extends IInspectable implements IClosable { VideoMediaFrame? get videoMediaFrame { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -209,7 +209,7 @@ class IMediaFrameReference extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -227,7 +227,7 @@ class IMediaFrameReference extends IInspectable implements IClosable { SpatialCoordinateSystem? get coordinateSystem { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -237,7 +237,7 @@ class IMediaFrameReference extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/frames/imediaframereference2.dart b/packages/windows_media/lib/src/capture/frames/imediaframereference2.dart index e8f16d27..dbbdb607 100644 --- a/packages/windows_media/lib/src/capture/frames/imediaframereference2.dart +++ b/packages/windows_media/lib/src/capture/frames/imediaframereference2.dart @@ -31,7 +31,7 @@ class IMediaFrameReference2 extends IInspectable { AudioMediaFrame? get audioMediaFrame { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IMediaFrameReference2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/frames/imediaframesource.dart b/packages/windows_media/lib/src/capture/frames/imediaframesource.dart index b9b84016..e5a06b3a 100644 --- a/packages/windows_media/lib/src/capture/frames/imediaframesource.dart +++ b/packages/windows_media/lib/src/capture/frames/imediaframesource.dart @@ -35,7 +35,7 @@ class IMediaFrameSource extends IInspectable { MediaFrameSourceInfo? get info { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IMediaFrameSource extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -63,7 +63,7 @@ class IMediaFrameSource extends IInspectable { MediaFrameSourceController? get controller { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -73,7 +73,7 @@ class IMediaFrameSource extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -91,7 +91,7 @@ class IMediaFrameSource extends IInspectable { List? get supportedFormats { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -101,7 +101,7 @@ class IMediaFrameSource extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -122,7 +122,7 @@ class IMediaFrameSource extends IInspectable { MediaFrameFormat? get currentFormat { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -132,7 +132,7 @@ class IMediaFrameSource extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -150,7 +150,7 @@ class IMediaFrameSource extends IInspectable { Future setFormatAsync(MediaFrameFormat? format) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -159,11 +159,8 @@ class IMediaFrameSource extends IInspectable { Pointer value)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer format, - Pointer - value)>()(ptr.ref.lpVtbl, format.lpVtbl, value); + int Function(VTablePointer lpVtbl, VTablePointer format, + Pointer value)>()(lpVtbl, format.lpVtbl, value); if (FAILED(hr)) { free(value); @@ -177,18 +174,17 @@ class IMediaFrameSource extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -200,7 +196,7 @@ class IMediaFrameSource extends IInspectable { void remove_FormatChanged(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(12) .cast< Pointer< @@ -209,7 +205,7 @@ class IMediaFrameSource extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -217,7 +213,7 @@ class IMediaFrameSource extends IInspectable { CameraIntrinsics? tryGetCameraIntrinsics(MediaFrameFormat? format) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -226,11 +222,8 @@ class IMediaFrameSource extends IInspectable { Pointer value)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer format, - Pointer - value)>()(ptr.ref.lpVtbl, format.lpVtbl, value); + int Function(VTablePointer lpVtbl, VTablePointer format, + Pointer value)>()(lpVtbl, format.lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/frames/imediaframesourcecontroller.dart b/packages/windows_media/lib/src/capture/frames/imediaframesourcecontroller.dart index da679da1..23326c1d 100644 --- a/packages/windows_media/lib/src/capture/frames/imediaframesourcecontroller.dart +++ b/packages/windows_media/lib/src/capture/frames/imediaframesourcecontroller.dart @@ -36,7 +36,7 @@ class IMediaFrameSourceController extends IInspectable { String propertyId) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -49,7 +49,7 @@ class IMediaFrameSourceController extends IInspectable { VTablePointer lpVtbl, int propertyId, Pointer - value)>()(ptr.ref.lpVtbl, propertyId.toHString(), value); + value)>()(lpVtbl, propertyId.toHString(), value); if (FAILED(hr)) { free(value); @@ -66,7 +66,7 @@ class IMediaFrameSourceController extends IInspectable { String propertyId, Object? propertyValue) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -80,7 +80,7 @@ class IMediaFrameSourceController extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int propertyId, VTablePointer propertyValue, Pointer value)>()( - ptr.ref.lpVtbl, + lpVtbl, propertyId.toHString(), propertyValue?.boxValue().lpVtbl ?? nullptr, value); @@ -99,7 +99,7 @@ class IMediaFrameSourceController extends IInspectable { VideoDeviceController? get videoDeviceController { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -109,7 +109,7 @@ class IMediaFrameSourceController extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/frames/imediaframesourcecontroller2.dart b/packages/windows_media/lib/src/capture/frames/imediaframesourcecontroller2.dart index 89aa6b14..b4518a3c 100644 --- a/packages/windows_media/lib/src/capture/frames/imediaframesourcecontroller2.dart +++ b/packages/windows_media/lib/src/capture/frames/imediaframesourcecontroller2.dart @@ -36,7 +36,7 @@ class IMediaFrameSourceController2 extends IInspectable { final operation = calloc(); final extendedPropertyIdArray = extendedPropertyId.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -55,7 +55,7 @@ class IMediaFrameSourceController2 extends IInspectable { Pointer extendedPropertyId, VTablePointer maxPropertyValueSize, Pointer operation)>()( - ptr.ref.lpVtbl, + lpVtbl, extendedPropertyId.length, extendedPropertyIdArray, maxPropertyValueSize?.toReference(IntType.uint32).lpVtbl ?? nullptr, @@ -80,7 +80,7 @@ class IMediaFrameSourceController2 extends IInspectable { final extendedPropertyIdArray = extendedPropertyId.toArray(); final propertyValueArray = propertyValue.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -101,7 +101,7 @@ class IMediaFrameSourceController2 extends IInspectable { int propertyValueSize, Pointer propertyValue, Pointer operation)>()( - ptr.ref.lpVtbl, + lpVtbl, extendedPropertyId.length, extendedPropertyIdArray, propertyValue.length, diff --git a/packages/windows_media/lib/src/capture/frames/imediaframesourcecontroller3.dart b/packages/windows_media/lib/src/capture/frames/imediaframesourcecontroller3.dart index 09f55d74..5159f72b 100644 --- a/packages/windows_media/lib/src/capture/frames/imediaframesourcecontroller3.dart +++ b/packages/windows_media/lib/src/capture/frames/imediaframesourcecontroller3.dart @@ -33,7 +33,7 @@ class IMediaFrameSourceController3 extends IInspectable { AudioDeviceController? get audioDeviceController { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IMediaFrameSourceController3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/frames/imediaframesourcegetpropertyresult.dart b/packages/windows_media/lib/src/capture/frames/imediaframesourcegetpropertyresult.dart index 454bc23b..c2d3cd70 100644 --- a/packages/windows_media/lib/src/capture/frames/imediaframesourcegetpropertyresult.dart +++ b/packages/windows_media/lib/src/capture/frames/imediaframesourcegetpropertyresult.dart @@ -34,17 +34,17 @@ class IMediaFrameSourceGetPropertyResult extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -57,7 +57,7 @@ class IMediaFrameSourceGetPropertyResult extends IInspectable { Object? get value { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -67,7 +67,7 @@ class IMediaFrameSourceGetPropertyResult extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/frames/imediaframesourcegroup.dart b/packages/windows_media/lib/src/capture/frames/imediaframesourcegroup.dart index 22e31996..98ac58d3 100644 --- a/packages/windows_media/lib/src/capture/frames/imediaframesourcegroup.dart +++ b/packages/windows_media/lib/src/capture/frames/imediaframesourcegroup.dart @@ -32,7 +32,7 @@ class IMediaFrameSourceGroup extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IMediaFrameSourceGroup extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class IMediaFrameSourceGroup extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class IMediaFrameSourceGroup extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -79,7 +79,7 @@ class IMediaFrameSourceGroup extends IInspectable { List? get sourceInfos { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -89,7 +89,7 @@ class IMediaFrameSourceGroup extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/frames/imediaframesourcegroupstatics.dart b/packages/windows_media/lib/src/capture/frames/imediaframesourcegroupstatics.dart index 3f1f0ec3..df7d39bf 100644 --- a/packages/windows_media/lib/src/capture/frames/imediaframesourcegroupstatics.dart +++ b/packages/windows_media/lib/src/capture/frames/imediaframesourcegroupstatics.dart @@ -33,7 +33,7 @@ class IMediaFrameSourceGroupStatics extends IInspectable { Future> findAllAsync() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IMediaFrameSourceGroupStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -61,18 +61,17 @@ class IMediaFrameSourceGroupStatics extends IInspectable { Future fromIdAsync(String id) { final value = calloc(); - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, IntPtr id, - Pointer value)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, int id, Pointer value)>()( - ptr.ref.lpVtbl, id.toHString(), value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, IntPtr id, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int id, + Pointer value)>()(lpVtbl, id.toHString(), value); if (FAILED(hr)) { free(value); @@ -89,7 +88,7 @@ class IMediaFrameSourceGroupStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -99,7 +98,7 @@ class IMediaFrameSourceGroupStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/capture/frames/imediaframesourceinfo.dart b/packages/windows_media/lib/src/capture/frames/imediaframesourceinfo.dart index f4ae2378..f9f25382 100644 --- a/packages/windows_media/lib/src/capture/frames/imediaframesourceinfo.dart +++ b/packages/windows_media/lib/src/capture/frames/imediaframesourceinfo.dart @@ -36,7 +36,7 @@ class IMediaFrameSourceInfo extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -46,7 +46,7 @@ class IMediaFrameSourceInfo extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -60,17 +60,17 @@ class IMediaFrameSourceInfo extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -84,17 +84,17 @@ class IMediaFrameSourceInfo extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -107,7 +107,7 @@ class IMediaFrameSourceInfo extends IInspectable { MediaFrameSourceGroup? get sourceGroup { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -117,7 +117,7 @@ class IMediaFrameSourceInfo extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -135,7 +135,7 @@ class IMediaFrameSourceInfo extends IInspectable { DeviceInformation? get deviceInformation { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -145,7 +145,7 @@ class IMediaFrameSourceInfo extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -163,7 +163,7 @@ class IMediaFrameSourceInfo extends IInspectable { Map? get properties { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -173,7 +173,7 @@ class IMediaFrameSourceInfo extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -193,7 +193,7 @@ class IMediaFrameSourceInfo extends IInspectable { SpatialCoordinateSystem? get coordinateSystem { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -203,7 +203,7 @@ class IMediaFrameSourceInfo extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/frames/imediaframesourceinfo2.dart b/packages/windows_media/lib/src/capture/frames/imediaframesourceinfo2.dart index d9982a66..5b62f8c3 100644 --- a/packages/windows_media/lib/src/capture/frames/imediaframesourceinfo2.dart +++ b/packages/windows_media/lib/src/capture/frames/imediaframesourceinfo2.dart @@ -32,7 +32,7 @@ class IMediaFrameSourceInfo2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IMediaFrameSourceInfo2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class IMediaFrameSourceInfo2 extends IInspectable { get videoProfileMediaDescription { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class IMediaFrameSourceInfo2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/frames/imediaframesourceinfo3.dart b/packages/windows_media/lib/src/capture/frames/imediaframesourceinfo3.dart index e3f1a669..0af32a2f 100644 --- a/packages/windows_media/lib/src/capture/frames/imediaframesourceinfo3.dart +++ b/packages/windows_media/lib/src/capture/frames/imediaframesourceinfo3.dart @@ -32,7 +32,7 @@ class IMediaFrameSourceInfo3 extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IMediaFrameSourceInfo3 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer displayRegion, Pointer result)>()( - ptr.ref.lpVtbl, displayRegion.lpVtbl, result); + lpVtbl, displayRegion.lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/capture/frames/imediaframesourceinfo4.dart b/packages/windows_media/lib/src/capture/frames/imediaframesourceinfo4.dart index 173ef8e9..d411b032 100644 --- a/packages/windows_media/lib/src/capture/frames/imediaframesourceinfo4.dart +++ b/packages/windows_media/lib/src/capture/frames/imediaframesourceinfo4.dart @@ -30,17 +30,17 @@ class IMediaFrameSourceInfo4 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/capture/frames/imultisourcemediaframereader.dart b/packages/windows_media/lib/src/capture/frames/imultisourcemediaframereader.dart index b26ef0a1..85c14d1a 100644 --- a/packages/windows_media/lib/src/capture/frames/imultisourcemediaframereader.dart +++ b/packages/windows_media/lib/src/capture/frames/imultisourcemediaframereader.dart @@ -36,18 +36,17 @@ class IMultiSourceMediaFrameReader extends IInspectable implements IClosable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -59,7 +58,7 @@ class IMultiSourceMediaFrameReader extends IInspectable implements IClosable { void remove_FrameArrived(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -68,7 +67,7 @@ class IMultiSourceMediaFrameReader extends IInspectable implements IClosable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -76,7 +75,7 @@ class IMultiSourceMediaFrameReader extends IInspectable implements IClosable { MultiSourceMediaFrameReference? tryAcquireLatestFrame() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -86,7 +85,7 @@ class IMultiSourceMediaFrameReader extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -104,7 +103,7 @@ class IMultiSourceMediaFrameReader extends IInspectable implements IClosable { Future startAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -114,7 +113,7 @@ class IMultiSourceMediaFrameReader extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -131,7 +130,7 @@ class IMultiSourceMediaFrameReader extends IInspectable implements IClosable { Future stopAsync() { final action = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -141,7 +140,7 @@ class IMultiSourceMediaFrameReader extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer action)>()(ptr.ref.lpVtbl, action); + Pointer action)>()(lpVtbl, action); if (FAILED(hr)) { free(action); diff --git a/packages/windows_media/lib/src/capture/frames/imultisourcemediaframereader2.dart b/packages/windows_media/lib/src/capture/frames/imultisourcemediaframereader2.dart index a7f1efdd..10c83cd9 100644 --- a/packages/windows_media/lib/src/capture/frames/imultisourcemediaframereader2.dart +++ b/packages/windows_media/lib/src/capture/frames/imultisourcemediaframereader2.dart @@ -31,7 +31,7 @@ class IMultiSourceMediaFrameReader2 extends IInspectable { IID_IMultiSourceMediaFrameReader2); set acquisitionMode(MediaFrameReaderAcquisitionMode value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class IMultiSourceMediaFrameReader2 extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -48,17 +48,17 @@ class IMultiSourceMediaFrameReader2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/capture/frames/imultisourcemediaframereference.dart b/packages/windows_media/lib/src/capture/frames/imultisourcemediaframereference.dart index a52e6e92..a49f2ec7 100644 --- a/packages/windows_media/lib/src/capture/frames/imultisourcemediaframereference.dart +++ b/packages/windows_media/lib/src/capture/frames/imultisourcemediaframereference.dart @@ -34,7 +34,7 @@ class IMultiSourceMediaFrameReference extends IInspectable MediaFrameReference? tryGetFrameReferenceBySourceId(String sourceId) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IMultiSourceMediaFrameReference extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, int sourceId, Pointer value)>()( - ptr.ref.lpVtbl, sourceId.toHString(), value); + lpVtbl, sourceId.toHString(), value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/frames/ivideomediaframe.dart b/packages/windows_media/lib/src/capture/frames/ivideomediaframe.dart index 09fe7b3c..074fa470 100644 --- a/packages/windows_media/lib/src/capture/frames/ivideomediaframe.dart +++ b/packages/windows_media/lib/src/capture/frames/ivideomediaframe.dart @@ -37,7 +37,7 @@ class IVideoMediaFrame extends IInspectable { MediaFrameReference? get frameReference { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -47,7 +47,7 @@ class IVideoMediaFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -65,7 +65,7 @@ class IVideoMediaFrame extends IInspectable { VideoMediaFrameFormat? get videoFormat { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -75,7 +75,7 @@ class IVideoMediaFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -93,7 +93,7 @@ class IVideoMediaFrame extends IInspectable { SoftwareBitmap? get softwareBitmap { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -103,7 +103,7 @@ class IVideoMediaFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -121,7 +121,7 @@ class IVideoMediaFrame extends IInspectable { IDirect3DSurface? get direct3DSurface { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -131,7 +131,7 @@ class IVideoMediaFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -149,7 +149,7 @@ class IVideoMediaFrame extends IInspectable { CameraIntrinsics? get cameraIntrinsics { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -159,7 +159,7 @@ class IVideoMediaFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -177,7 +177,7 @@ class IVideoMediaFrame extends IInspectable { InfraredMediaFrame? get infraredMediaFrame { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -187,7 +187,7 @@ class IVideoMediaFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -205,7 +205,7 @@ class IVideoMediaFrame extends IInspectable { DepthMediaFrame? get depthMediaFrame { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -215,7 +215,7 @@ class IVideoMediaFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -233,7 +233,7 @@ class IVideoMediaFrame extends IInspectable { VideoFrame? getVideoFrame() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -243,7 +243,7 @@ class IVideoMediaFrame extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/frames/ivideomediaframeformat.dart b/packages/windows_media/lib/src/capture/frames/ivideomediaframeformat.dart index 81c4fd8b..e6e7280e 100644 --- a/packages/windows_media/lib/src/capture/frames/ivideomediaframeformat.dart +++ b/packages/windows_media/lib/src/capture/frames/ivideomediaframeformat.dart @@ -32,7 +32,7 @@ class IVideoMediaFrameFormat extends IInspectable { MediaFrameFormat? get mediaFrameFormat { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IVideoMediaFrameFormat extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -60,7 +60,7 @@ class IVideoMediaFrameFormat extends IInspectable { DepthMediaFrameFormat? get depthFormat { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -70,7 +70,7 @@ class IVideoMediaFrameFormat extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -89,7 +89,7 @@ class IVideoMediaFrameFormat extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -99,7 +99,7 @@ class IVideoMediaFrameFormat extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -113,7 +113,7 @@ class IVideoMediaFrameFormat extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -123,7 +123,7 @@ class IVideoMediaFrameFormat extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/capture/iadvancedcapturedphoto.dart b/packages/windows_media/lib/src/capture/iadvancedcapturedphoto.dart index 54b8015d..4da67edb 100644 --- a/packages/windows_media/lib/src/capture/iadvancedcapturedphoto.dart +++ b/packages/windows_media/lib/src/capture/iadvancedcapturedphoto.dart @@ -32,7 +32,7 @@ class IAdvancedCapturedPhoto extends IInspectable { CapturedFrame? get frame { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IAdvancedCapturedPhoto extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -61,17 +61,17 @@ class IAdvancedCapturedPhoto extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -84,7 +84,7 @@ class IAdvancedCapturedPhoto extends IInspectable { Object? get context { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -94,7 +94,7 @@ class IAdvancedCapturedPhoto extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/iadvancedcapturedphoto2.dart b/packages/windows_media/lib/src/capture/iadvancedcapturedphoto2.dart index bdcc26b2..3da60e01 100644 --- a/packages/windows_media/lib/src/capture/iadvancedcapturedphoto2.dart +++ b/packages/windows_media/lib/src/capture/iadvancedcapturedphoto2.dart @@ -29,7 +29,7 @@ class IAdvancedCapturedPhoto2 extends IInspectable { Rect? get frameBoundsRelativeToReferencePhoto { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class IAdvancedCapturedPhoto2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/iadvancedphotocapture.dart b/packages/windows_media/lib/src/capture/iadvancedphotocapture.dart index 62ae3db8..8b97bdf9 100644 --- a/packages/windows_media/lib/src/capture/iadvancedphotocapture.dart +++ b/packages/windows_media/lib/src/capture/iadvancedphotocapture.dart @@ -32,7 +32,7 @@ class IAdvancedPhotoCapture extends IInspectable { Future captureAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IAdvancedPhotoCapture extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -58,7 +58,7 @@ class IAdvancedPhotoCapture extends IInspectable { Future captureWithContextAsync(Object? context) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -71,7 +71,7 @@ class IAdvancedPhotoCapture extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer context, Pointer operation)>()( - ptr.ref.lpVtbl, context?.boxValue().lpVtbl ?? nullptr, operation); + lpVtbl, context?.boxValue().lpVtbl ?? nullptr, operation); if (FAILED(hr)) { free(operation); @@ -88,18 +88,17 @@ class IAdvancedPhotoCapture extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -111,7 +110,7 @@ class IAdvancedPhotoCapture extends IInspectable { void remove_OptionalReferencePhotoCaptured(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -120,7 +119,7 @@ class IAdvancedPhotoCapture extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -129,18 +128,17 @@ class IAdvancedPhotoCapture extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -152,7 +150,7 @@ class IAdvancedPhotoCapture extends IInspectable { void remove_AllPhotosCaptured(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(11) .cast< Pointer< @@ -161,7 +159,7 @@ class IAdvancedPhotoCapture extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -169,7 +167,7 @@ class IAdvancedPhotoCapture extends IInspectable { Future finishAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -179,7 +177,7 @@ class IAdvancedPhotoCapture extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_media/lib/src/capture/icapturedframe.dart b/packages/windows_media/lib/src/capture/icapturedframe.dart index 4773ced9..60a438d3 100644 --- a/packages/windows_media/lib/src/capture/icapturedframe.dart +++ b/packages/windows_media/lib/src/capture/icapturedframe.dart @@ -38,7 +38,7 @@ class ICapturedFrame extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -48,7 +48,7 @@ class ICapturedFrame extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -62,7 +62,7 @@ class ICapturedFrame extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -72,7 +72,7 @@ class ICapturedFrame extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/capture/icapturedframe2.dart b/packages/windows_media/lib/src/capture/icapturedframe2.dart index 11e4b0af..2133dd85 100644 --- a/packages/windows_media/lib/src/capture/icapturedframe2.dart +++ b/packages/windows_media/lib/src/capture/icapturedframe2.dart @@ -32,7 +32,7 @@ class ICapturedFrame2 extends IInspectable { CapturedFrameControlValues? get controlValues { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class ICapturedFrame2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -60,7 +60,7 @@ class ICapturedFrame2 extends IInspectable { BitmapPropertySet? get bitmapProperties { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -70,7 +70,7 @@ class ICapturedFrame2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/icapturedframecontrolvalues.dart b/packages/windows_media/lib/src/capture/icapturedframecontrolvalues.dart index 7fa5d914..01d02ab4 100644 --- a/packages/windows_media/lib/src/capture/icapturedframecontrolvalues.dart +++ b/packages/windows_media/lib/src/capture/icapturedframecontrolvalues.dart @@ -33,7 +33,7 @@ class ICapturedFrameControlValues extends IInspectable { Duration? get exposure { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class ICapturedFrameControlValues extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -63,7 +63,7 @@ class ICapturedFrameControlValues extends IInspectable { double? get exposureCompensation { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -73,7 +73,7 @@ class ICapturedFrameControlValues extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -93,7 +93,7 @@ class ICapturedFrameControlValues extends IInspectable { int? get isoSpeed { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -103,7 +103,7 @@ class ICapturedFrameControlValues extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -123,7 +123,7 @@ class ICapturedFrameControlValues extends IInspectable { int? get focus { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -133,7 +133,7 @@ class ICapturedFrameControlValues extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -153,7 +153,7 @@ class ICapturedFrameControlValues extends IInspectable { CaptureSceneMode? get sceneMode { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -163,7 +163,7 @@ class ICapturedFrameControlValues extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -184,7 +184,7 @@ class ICapturedFrameControlValues extends IInspectable { bool? get flashed { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -194,7 +194,7 @@ class ICapturedFrameControlValues extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -214,7 +214,7 @@ class ICapturedFrameControlValues extends IInspectable { double? get flashPowerPercent { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -224,7 +224,7 @@ class ICapturedFrameControlValues extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -244,7 +244,7 @@ class ICapturedFrameControlValues extends IInspectable { int? get whiteBalance { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -254,7 +254,7 @@ class ICapturedFrameControlValues extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -274,7 +274,7 @@ class ICapturedFrameControlValues extends IInspectable { double? get zoomFactor { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -284,7 +284,7 @@ class ICapturedFrameControlValues extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/icapturedframecontrolvalues2.dart b/packages/windows_media/lib/src/capture/icapturedframecontrolvalues2.dart index ca023a1d..d59abb57 100644 --- a/packages/windows_media/lib/src/capture/icapturedframecontrolvalues2.dart +++ b/packages/windows_media/lib/src/capture/icapturedframecontrolvalues2.dart @@ -35,7 +35,7 @@ class ICapturedFrameControlValues2 extends IInspectable { MediaCaptureFocusState? get focusState { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class ICapturedFrameControlValues2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -66,7 +66,7 @@ class ICapturedFrameControlValues2 extends IInspectable { double? get isoDigitalGain { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -76,7 +76,7 @@ class ICapturedFrameControlValues2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -96,7 +96,7 @@ class ICapturedFrameControlValues2 extends IInspectable { double? get isoAnalogGain { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -106,7 +106,7 @@ class ICapturedFrameControlValues2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -126,7 +126,7 @@ class ICapturedFrameControlValues2 extends IInspectable { MediaRatio? get sensorFrameRate { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -136,7 +136,7 @@ class ICapturedFrameControlValues2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -154,7 +154,7 @@ class ICapturedFrameControlValues2 extends IInspectable { WhiteBalanceGain? get whiteBalanceGain { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -164,7 +164,7 @@ class ICapturedFrameControlValues2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/icapturedframewithsoftwarebitmap.dart b/packages/windows_media/lib/src/capture/icapturedframewithsoftwarebitmap.dart index dc36de07..33350602 100644 --- a/packages/windows_media/lib/src/capture/icapturedframewithsoftwarebitmap.dart +++ b/packages/windows_media/lib/src/capture/icapturedframewithsoftwarebitmap.dart @@ -32,7 +32,7 @@ class ICapturedFrameWithSoftwareBitmap extends IInspectable { SoftwareBitmap? get softwareBitmap { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class ICapturedFrameWithSoftwareBitmap extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/icapturedphoto.dart b/packages/windows_media/lib/src/capture/icapturedphoto.dart index 154cd529..98a57958 100644 --- a/packages/windows_media/lib/src/capture/icapturedphoto.dart +++ b/packages/windows_media/lib/src/capture/icapturedphoto.dart @@ -31,7 +31,7 @@ class ICapturedPhoto extends IInspectable { CapturedFrame? get frame { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class ICapturedPhoto extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -59,7 +59,7 @@ class ICapturedPhoto extends IInspectable { CapturedFrame? get thumbnail { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -69,7 +69,7 @@ class ICapturedPhoto extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/ilowlagmediarecording.dart b/packages/windows_media/lib/src/capture/ilowlagmediarecording.dart index 1e42aeb0..a02b3292 100644 --- a/packages/windows_media/lib/src/capture/ilowlagmediarecording.dart +++ b/packages/windows_media/lib/src/capture/ilowlagmediarecording.dart @@ -29,7 +29,7 @@ class ILowLagMediaRecording extends IInspectable { Future startAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class ILowLagMediaRecording extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -52,7 +52,7 @@ class ILowLagMediaRecording extends IInspectable { Future stopAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -62,7 +62,7 @@ class ILowLagMediaRecording extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -75,7 +75,7 @@ class ILowLagMediaRecording extends IInspectable { Future finishAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -85,7 +85,7 @@ class ILowLagMediaRecording extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_media/lib/src/capture/ilowlagmediarecording2.dart b/packages/windows_media/lib/src/capture/ilowlagmediarecording2.dart index d3443870..66e01609 100644 --- a/packages/windows_media/lib/src/capture/ilowlagmediarecording2.dart +++ b/packages/windows_media/lib/src/capture/ilowlagmediarecording2.dart @@ -31,7 +31,7 @@ class ILowLagMediaRecording2 extends IInspectable { Future pauseAsync(MediaCapturePauseBehavior behavior) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class ILowLagMediaRecording2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int behavior, Pointer operation)>()( - ptr.ref.lpVtbl, behavior.value, operation); + lpVtbl, behavior.value, operation); if (FAILED(hr)) { free(operation); @@ -55,7 +55,7 @@ class ILowLagMediaRecording2 extends IInspectable { Future resumeAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -65,7 +65,7 @@ class ILowLagMediaRecording2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_media/lib/src/capture/ilowlagmediarecording3.dart b/packages/windows_media/lib/src/capture/ilowlagmediarecording3.dart index 24555af3..1119d575 100644 --- a/packages/windows_media/lib/src/capture/ilowlagmediarecording3.dart +++ b/packages/windows_media/lib/src/capture/ilowlagmediarecording3.dart @@ -34,7 +34,7 @@ class ILowLagMediaRecording3 extends IInspectable { MediaCapturePauseBehavior behavior) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class ILowLagMediaRecording3 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int behavior, Pointer operation)>()( - ptr.ref.lpVtbl, behavior.value, operation); + lpVtbl, behavior.value, operation); if (FAILED(hr)) { free(operation); @@ -61,7 +61,7 @@ class ILowLagMediaRecording3 extends IInspectable { Future stopWithResultAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -71,7 +71,7 @@ class ILowLagMediaRecording3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_media/lib/src/capture/ilowlagphotocapture.dart b/packages/windows_media/lib/src/capture/ilowlagphotocapture.dart index df904d9d..ec5166b5 100644 --- a/packages/windows_media/lib/src/capture/ilowlagphotocapture.dart +++ b/packages/windows_media/lib/src/capture/ilowlagphotocapture.dart @@ -31,7 +31,7 @@ class ILowLagPhotoCapture extends IInspectable { Future captureAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class ILowLagPhotoCapture extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -56,7 +56,7 @@ class ILowLagPhotoCapture extends IInspectable { Future finishAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class ILowLagPhotoCapture extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_media/lib/src/capture/ilowlagphotosequencecapture.dart b/packages/windows_media/lib/src/capture/ilowlagphotosequencecapture.dart index b9e30446..85eab1ef 100644 --- a/packages/windows_media/lib/src/capture/ilowlagphotosequencecapture.dart +++ b/packages/windows_media/lib/src/capture/ilowlagphotosequencecapture.dart @@ -33,7 +33,7 @@ class ILowLagPhotoSequenceCapture extends IInspectable { Future startAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class ILowLagPhotoSequenceCapture extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -56,7 +56,7 @@ class ILowLagPhotoSequenceCapture extends IInspectable { Future stopAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class ILowLagPhotoSequenceCapture extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -79,7 +79,7 @@ class ILowLagPhotoSequenceCapture extends IInspectable { Future finishAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -89,7 +89,7 @@ class ILowLagPhotoSequenceCapture extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -103,18 +103,17 @@ class ILowLagPhotoSequenceCapture extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -126,7 +125,7 @@ class ILowLagPhotoSequenceCapture extends IInspectable { void remove_PhotoCaptured(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -135,7 +134,7 @@ class ILowLagPhotoSequenceCapture extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/capture/imediacapture.dart b/packages/windows_media/lib/src/capture/imediacapture.dart index 9b0361ee..49e19898 100644 --- a/packages/windows_media/lib/src/capture/imediacapture.dart +++ b/packages/windows_media/lib/src/capture/imediacapture.dart @@ -40,7 +40,7 @@ class IMediaCapture extends IInspectable { Future initializeAsync() { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -50,7 +50,7 @@ class IMediaCapture extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer asyncInfo)>()(ptr.ref.lpVtbl, asyncInfo); + Pointer asyncInfo)>()(lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -64,7 +64,7 @@ class IMediaCapture extends IInspectable { MediaCaptureInitializationSettings? mediaCaptureInitializationSettings) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -79,7 +79,7 @@ class IMediaCapture extends IInspectable { VTablePointer lpVtbl, VTablePointer mediaCaptureInitializationSettings, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, mediaCaptureInitializationSettings.lpVtbl, asyncInfo); + lpVtbl, mediaCaptureInitializationSettings.lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -93,7 +93,7 @@ class IMediaCapture extends IInspectable { MediaEncodingProfile? encodingProfile, IStorageFile? file) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -110,7 +110,7 @@ class IMediaCapture extends IInspectable { VTablePointer encodingProfile, VTablePointer file, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, encodingProfile.lpVtbl, file.lpVtbl, asyncInfo); + lpVtbl, encodingProfile.lpVtbl, file.lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -124,7 +124,7 @@ class IMediaCapture extends IInspectable { MediaEncodingProfile? encodingProfile, IRandomAccessStream? stream) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -141,7 +141,7 @@ class IMediaCapture extends IInspectable { VTablePointer encodingProfile, VTablePointer stream, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, encodingProfile.lpVtbl, stream.lpVtbl, asyncInfo); + lpVtbl, encodingProfile.lpVtbl, stream.lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -155,7 +155,7 @@ class IMediaCapture extends IInspectable { MediaEncodingProfile? encodingProfile, IMediaExtension? customMediaSink) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -171,8 +171,8 @@ class IMediaCapture extends IInspectable { VTablePointer lpVtbl, VTablePointer encodingProfile, VTablePointer customMediaSink, - Pointer asyncInfo)>()(ptr.ref.lpVtbl, - encodingProfile.lpVtbl, customMediaSink.lpVtbl, asyncInfo); + Pointer asyncInfo)>()( + lpVtbl, encodingProfile.lpVtbl, customMediaSink.lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -188,7 +188,7 @@ class IMediaCapture extends IInspectable { IPropertySet? customSinkSettings) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -207,7 +207,7 @@ class IMediaCapture extends IInspectable { int customSinkActivationId, VTablePointer customSinkSettings, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, + lpVtbl, encodingProfile.lpVtbl, customSinkActivationId.toHString(), customSinkSettings.lpVtbl, @@ -224,7 +224,7 @@ class IMediaCapture extends IInspectable { Future stopRecordAsync() { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -234,7 +234,7 @@ class IMediaCapture extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer asyncInfo)>()(ptr.ref.lpVtbl, asyncInfo); + Pointer asyncInfo)>()(lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -249,7 +249,7 @@ class IMediaCapture extends IInspectable { final asyncInfo = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(13) .cast< Pointer< @@ -263,7 +263,7 @@ class IMediaCapture extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer type, VTablePointer file, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, type.lpVtbl, file.lpVtbl, asyncInfo); + lpVtbl, type.lpVtbl, file.lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -278,7 +278,7 @@ class IMediaCapture extends IInspectable { final asyncInfo = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(14) .cast< Pointer< @@ -292,7 +292,7 @@ class IMediaCapture extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer type, VTablePointer stream, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, type.lpVtbl, stream.lpVtbl, asyncInfo); + lpVtbl, type.lpVtbl, stream.lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -308,7 +308,7 @@ class IMediaCapture extends IInspectable { String effectActivationID, IPropertySet? effectSettings) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -327,7 +327,7 @@ class IMediaCapture extends IInspectable { int effectActivationID, VTablePointer effectSettings, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, + lpVtbl, mediaStreamType.value, effectActivationID.toHString(), effectSettings.lpVtbl, @@ -344,7 +344,7 @@ class IMediaCapture extends IInspectable { Future clearEffectsAsync(MediaStreamType mediaStreamType) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -357,7 +357,7 @@ class IMediaCapture extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int mediaStreamType, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, mediaStreamType.value, asyncInfo); + lpVtbl, mediaStreamType.value, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -371,7 +371,7 @@ class IMediaCapture extends IInspectable { MediaStreamType mediaStreamType, Guid propertyId, Object? propertyValue) { final propertyIdNativeStructPtr = propertyId.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -385,7 +385,7 @@ class IMediaCapture extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int mediaStreamType, GUID propertyId, VTablePointer propertyValue)>()( - ptr.ref.lpVtbl, + lpVtbl, mediaStreamType.value, propertyIdNativeStructPtr.ref, propertyValue?.boxValue().lpVtbl ?? nullptr); @@ -399,7 +399,7 @@ class IMediaCapture extends IInspectable { final propertyValue = calloc(); final propertyIdNativeStructPtr = propertyId.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast< Pointer< @@ -413,7 +413,7 @@ class IMediaCapture extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int mediaStreamType, GUID propertyId, Pointer propertyValue)>()( - ptr.ref.lpVtbl, + lpVtbl, mediaStreamType.value, propertyIdNativeStructPtr.ref, propertyValue); @@ -437,7 +437,7 @@ class IMediaCapture extends IInspectable { final eventCookie = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(19) .cast< Pointer< @@ -452,7 +452,7 @@ class IMediaCapture extends IInspectable { VTablePointer lpVtbl, VTablePointer errorEventHandler, Pointer eventCookie)>()( - ptr.ref.lpVtbl, errorEventHandler.ref.lpVtbl, eventCookie); + lpVtbl, errorEventHandler.ref.lpVtbl, eventCookie); if (FAILED(hr)) throwWindowsException(hr); @@ -463,7 +463,7 @@ class IMediaCapture extends IInspectable { } void remove_Failed(int eventCookie) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(20) .cast< Pointer< @@ -472,7 +472,7 @@ class IMediaCapture extends IInspectable { VTablePointer lpVtbl, IntPtr eventCookie)>>>() .value .asFunction()( - ptr.ref.lpVtbl, eventCookie); + lpVtbl, eventCookie); if (FAILED(hr)) throwWindowsException(hr); } @@ -483,7 +483,7 @@ class IMediaCapture extends IInspectable { try { final hr = - ptr.ref.vtable + vtable .elementAt(21) .cast< Pointer< @@ -498,7 +498,7 @@ class IMediaCapture extends IInspectable { int Function( VTablePointer lpVtbl, VTablePointer recordLimitationExceededEventHandler, - Pointer eventCookie)>()(ptr.ref.lpVtbl, + Pointer eventCookie)>()(lpVtbl, recordLimitationExceededEventHandler.ref.lpVtbl, eventCookie); if (FAILED(hr)) throwWindowsException(hr); @@ -510,7 +510,7 @@ class IMediaCapture extends IInspectable { } void remove_RecordLimitationExceeded(int eventCookie) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(22) .cast< Pointer< @@ -519,7 +519,7 @@ class IMediaCapture extends IInspectable { VTablePointer lpVtbl, IntPtr eventCookie)>>>() .value .asFunction()( - ptr.ref.lpVtbl, eventCookie); + lpVtbl, eventCookie); if (FAILED(hr)) throwWindowsException(hr); } @@ -527,7 +527,7 @@ class IMediaCapture extends IInspectable { MediaCaptureSettings? get mediaCaptureSettings { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(23) .cast< Pointer< @@ -537,7 +537,7 @@ class IMediaCapture extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -555,7 +555,7 @@ class IMediaCapture extends IInspectable { AudioDeviceController? get audioDeviceController { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(24) .cast< Pointer< @@ -565,7 +565,7 @@ class IMediaCapture extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -583,7 +583,7 @@ class IMediaCapture extends IInspectable { VideoDeviceController? get videoDeviceController { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(25) .cast< Pointer< @@ -593,7 +593,7 @@ class IMediaCapture extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -609,7 +609,7 @@ class IMediaCapture extends IInspectable { } void setPreviewMirroring(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(26) .cast< Pointer< @@ -617,7 +617,7 @@ class IMediaCapture extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -626,17 +626,17 @@ class IMediaCapture extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(27) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(27) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -647,7 +647,7 @@ class IMediaCapture extends IInspectable { } void setPreviewRotation(VideoRotation value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(28) .cast< Pointer< @@ -655,7 +655,7 @@ class IMediaCapture extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -664,17 +664,17 @@ class IMediaCapture extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(29) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(29) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -685,7 +685,7 @@ class IMediaCapture extends IInspectable { } void setRecordRotation(VideoRotation value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(30) .cast< Pointer< @@ -693,7 +693,7 @@ class IMediaCapture extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -702,17 +702,17 @@ class IMediaCapture extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(31) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(31) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/capture/imediacapture2.dart b/packages/windows_media/lib/src/capture/imediacapture2.dart index 024eb402..0d1228a5 100644 --- a/packages/windows_media/lib/src/capture/imediacapture2.dart +++ b/packages/windows_media/lib/src/capture/imediacapture2.dart @@ -41,7 +41,7 @@ class IMediaCapture2 extends IInspectable { MediaEncodingProfile? encodingProfile, IStorageFile? file) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -58,7 +58,7 @@ class IMediaCapture2 extends IInspectable { VTablePointer encodingProfile, VTablePointer file, Pointer operation)>()( - ptr.ref.lpVtbl, encodingProfile.lpVtbl, file.lpVtbl, operation); + lpVtbl, encodingProfile.lpVtbl, file.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -75,7 +75,7 @@ class IMediaCapture2 extends IInspectable { MediaEncodingProfile? encodingProfile, IRandomAccessStream? stream) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -92,7 +92,7 @@ class IMediaCapture2 extends IInspectable { VTablePointer encodingProfile, VTablePointer stream, Pointer operation)>()( - ptr.ref.lpVtbl, encodingProfile.lpVtbl, stream.lpVtbl, operation); + lpVtbl, encodingProfile.lpVtbl, stream.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -109,7 +109,7 @@ class IMediaCapture2 extends IInspectable { MediaEncodingProfile? encodingProfile, IMediaExtension? customMediaSink) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -125,8 +125,8 @@ class IMediaCapture2 extends IInspectable { VTablePointer lpVtbl, VTablePointer encodingProfile, VTablePointer customMediaSink, - Pointer operation)>()(ptr.ref.lpVtbl, - encodingProfile.lpVtbl, customMediaSink.lpVtbl, operation); + Pointer operation)>()( + lpVtbl, encodingProfile.lpVtbl, customMediaSink.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -145,7 +145,7 @@ class IMediaCapture2 extends IInspectable { IPropertySet? customSinkSettings) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -164,7 +164,7 @@ class IMediaCapture2 extends IInspectable { int customSinkActivationId, VTablePointer customSinkSettings, Pointer operation)>()( - ptr.ref.lpVtbl, + lpVtbl, encodingProfile.lpVtbl, customSinkActivationId.toHString(), customSinkSettings.lpVtbl, @@ -186,7 +186,7 @@ class IMediaCapture2 extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -199,7 +199,7 @@ class IMediaCapture2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer type, Pointer operation)>()( - ptr.ref.lpVtbl, type.lpVtbl, operation); + lpVtbl, type.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -217,7 +217,7 @@ class IMediaCapture2 extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(11) .cast< Pointer< @@ -230,7 +230,7 @@ class IMediaCapture2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer type, Pointer operation)>()( - ptr.ref.lpVtbl, type.lpVtbl, operation); + lpVtbl, type.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -249,7 +249,7 @@ class IMediaCapture2 extends IInspectable { MediaPropertySet? encoderProperties) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -268,7 +268,7 @@ class IMediaCapture2 extends IInspectable { VTablePointer mediaEncodingProperties, VTablePointer encoderProperties, Pointer operation)>()( - ptr.ref.lpVtbl, + lpVtbl, mediaStreamType.value, mediaEncodingProperties.lpVtbl, encoderProperties.lpVtbl, diff --git a/packages/windows_media/lib/src/capture/imediacapture3.dart b/packages/windows_media/lib/src/capture/imediacapture3.dart index 5c192163..91c56d14 100644 --- a/packages/windows_media/lib/src/capture/imediacapture3.dart +++ b/packages/windows_media/lib/src/capture/imediacapture3.dart @@ -35,7 +35,7 @@ class IMediaCapture3 extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -48,7 +48,7 @@ class IMediaCapture3 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer type, Pointer operation)>()( - ptr.ref.lpVtbl, type.lpVtbl, operation); + lpVtbl, type.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -65,18 +65,17 @@ class IMediaCapture3 extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -88,7 +87,7 @@ class IMediaCapture3 extends IInspectable { void remove_FocusChanged(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -97,7 +96,7 @@ class IMediaCapture3 extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -106,18 +105,17 @@ class IMediaCapture3 extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -129,7 +127,7 @@ class IMediaCapture3 extends IInspectable { void remove_PhotoConfirmationCaptured(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -138,7 +136,7 @@ class IMediaCapture3 extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/capture/imediacapture4.dart b/packages/windows_media/lib/src/capture/imediacapture4.dart index fbb110c4..d0368ffc 100644 --- a/packages/windows_media/lib/src/capture/imediacapture4.dart +++ b/packages/windows_media/lib/src/capture/imediacapture4.dart @@ -42,21 +42,17 @@ class IMediaCapture4 extends IInspectable { IAudioEffectDefinition? definition) { final op = calloc(); - final hr = - ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - VTablePointer definition, - Pointer op)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer definition, - Pointer op)>()( - ptr.ref.lpVtbl, definition.lpVtbl, op); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer definition, Pointer op)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer definition, + Pointer op)>()(lpVtbl, definition.lpVtbl, op); if (FAILED(hr)) { free(op); @@ -72,7 +68,7 @@ class IMediaCapture4 extends IInspectable { IVideoEffectDefinition? definition, MediaStreamType mediaStreamType) { final op = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -86,7 +82,7 @@ class IMediaCapture4 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer definition, int mediaStreamType, Pointer op)>()( - ptr.ref.lpVtbl, definition.lpVtbl, mediaStreamType.value, op); + lpVtbl, definition.lpVtbl, mediaStreamType.value, op); if (FAILED(hr)) { free(op); @@ -101,7 +97,7 @@ class IMediaCapture4 extends IInspectable { Future pauseRecordAsync(MediaCapturePauseBehavior behavior) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -112,7 +108,7 @@ class IMediaCapture4 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int behavior, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, behavior.value, asyncInfo); + lpVtbl, behavior.value, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -125,7 +121,7 @@ class IMediaCapture4 extends IInspectable { Future resumeRecordAsync() { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -135,7 +131,7 @@ class IMediaCapture4 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer asyncInfo)>()(ptr.ref.lpVtbl, asyncInfo); + Pointer asyncInfo)>()(lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -149,18 +145,17 @@ class IMediaCapture4 extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -172,7 +167,7 @@ class IMediaCapture4 extends IInspectable { void remove_CameraStreamStateChanged(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(11) .cast< Pointer< @@ -181,7 +176,7 @@ class IMediaCapture4 extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -190,7 +185,7 @@ class IMediaCapture4 extends IInspectable { final streamState = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -200,7 +195,7 @@ class IMediaCapture4 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer streamState)>()(ptr.ref.lpVtbl, streamState); + Pointer streamState)>()(lpVtbl, streamState); if (FAILED(hr)) throwWindowsException(hr); @@ -213,7 +208,7 @@ class IMediaCapture4 extends IInspectable { Future getPreviewFrameAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -223,7 +218,7 @@ class IMediaCapture4 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -238,7 +233,7 @@ class IMediaCapture4 extends IInspectable { Future getPreviewFrameCopyAsync(VideoFrame? destination) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -251,7 +246,7 @@ class IMediaCapture4 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer destination, Pointer operation)>()( - ptr.ref.lpVtbl, destination.lpVtbl, operation); + lpVtbl, destination.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -267,18 +262,17 @@ class IMediaCapture4 extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(15) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(15) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -290,7 +284,7 @@ class IMediaCapture4 extends IInspectable { void remove_ThermalStatusChanged(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(16) .cast< Pointer< @@ -299,7 +293,7 @@ class IMediaCapture4 extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -308,17 +302,17 @@ class IMediaCapture4 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -332,7 +326,7 @@ class IMediaCapture4 extends IInspectable { ImageEncodingProperties? encodingProperties) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast< Pointer< @@ -347,7 +341,7 @@ class IMediaCapture4 extends IInspectable { VTablePointer lpVtbl, VTablePointer encodingProperties, Pointer operation)>()( - ptr.ref.lpVtbl, encodingProperties.lpVtbl, operation); + lpVtbl, encodingProperties.lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_media/lib/src/capture/imediacapture5.dart b/packages/windows_media/lib/src/capture/imediacapture5.dart index 46dd5d69..1fc7bf6a 100644 --- a/packages/windows_media/lib/src/capture/imediacapture5.dart +++ b/packages/windows_media/lib/src/capture/imediacapture5.dart @@ -38,7 +38,7 @@ class IMediaCapture5 extends IInspectable { final asyncInfo = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -51,7 +51,7 @@ class IMediaCapture5 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer effect, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, effect.lpVtbl, asyncInfo); + lpVtbl, effect.lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -65,7 +65,7 @@ class IMediaCapture5 extends IInspectable { MediaCapturePauseBehavior behavior) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -76,7 +76,7 @@ class IMediaCapture5 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int behavior, Pointer operation)>()( - ptr.ref.lpVtbl, behavior.value, operation); + lpVtbl, behavior.value, operation); if (FAILED(hr)) { free(operation); @@ -92,7 +92,7 @@ class IMediaCapture5 extends IInspectable { Future stopRecordWithResultAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -102,7 +102,7 @@ class IMediaCapture5 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -118,7 +118,7 @@ class IMediaCapture5 extends IInspectable { Map? get frameSources { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -128,7 +128,7 @@ class IMediaCapture5 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -150,20 +150,19 @@ class IMediaCapture5 extends IInspectable { MediaFrameSource? inputSource) { final value = calloc(); - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - VTablePointer inputSource, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer inputSource, - Pointer value)>()( - ptr.ref.lpVtbl, inputSource.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, + VTablePointer inputSource, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer inputSource, + Pointer value)>()(lpVtbl, inputSource.lpVtbl, value); if (FAILED(hr)) { free(value); @@ -179,7 +178,7 @@ class IMediaCapture5 extends IInspectable { MediaFrameSource? inputSource, String outputSubtype) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -193,7 +192,7 @@ class IMediaCapture5 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer inputSource, int outputSubtype, Pointer value)>()( - ptr.ref.lpVtbl, inputSource.lpVtbl, outputSubtype.toHString(), value); + lpVtbl, inputSource.lpVtbl, outputSubtype.toHString(), value); if (FAILED(hr)) { free(value); @@ -212,7 +211,7 @@ class IMediaCapture5 extends IInspectable { final value = calloc(); final outputSizeNativeStructPtr = outputSize.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -230,12 +229,8 @@ class IMediaCapture5 extends IInspectable { VTablePointer inputSource, int outputSubtype, NativeBitmapSize outputSize, - Pointer value)>()( - ptr.ref.lpVtbl, - inputSource.lpVtbl, - outputSubtype.toHString(), - outputSizeNativeStructPtr.ref, - value); + Pointer value)>()(lpVtbl, inputSource.lpVtbl, + outputSubtype.toHString(), outputSizeNativeStructPtr.ref, value); free(outputSizeNativeStructPtr); diff --git a/packages/windows_media/lib/src/capture/imediacapture6.dart b/packages/windows_media/lib/src/capture/imediacapture6.dart index 74260812..122f7e72 100644 --- a/packages/windows_media/lib/src/capture/imediacapture6.dart +++ b/packages/windows_media/lib/src/capture/imediacapture6.dart @@ -35,18 +35,17 @@ class IMediaCapture6 extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -58,7 +57,7 @@ class IMediaCapture6 extends IInspectable { void remove_CaptureDeviceExclusiveControlStatusChanged(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -67,7 +66,7 @@ class IMediaCapture6 extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -76,7 +75,7 @@ class IMediaCapture6 extends IInspectable { IIterable? inputSources) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -89,7 +88,7 @@ class IMediaCapture6 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer inputSources, Pointer value)>()( - ptr.ref.lpVtbl, inputSources.lpVtbl, value); + lpVtbl, inputSources.lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/imediacapture7.dart b/packages/windows_media/lib/src/capture/imediacapture7.dart index 541f2a13..b4178d3d 100644 --- a/packages/windows_media/lib/src/capture/imediacapture7.dart +++ b/packages/windows_media/lib/src/capture/imediacapture7.dart @@ -34,7 +34,7 @@ class IMediaCapture7 extends IInspectable { StreamingCaptureMode captureMode, DisplayRegion? displayRegion) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -48,7 +48,7 @@ class IMediaCapture7 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int captureMode, VTablePointer displayRegion, Pointer result)>()( - ptr.ref.lpVtbl, captureMode.value, displayRegion.lpVtbl, result); + lpVtbl, captureMode.value, displayRegion.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings.dart b/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings.dart index bf959a57..bd5de5f9 100644 --- a/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings.dart +++ b/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings.dart @@ -33,7 +33,7 @@ class IMediaCaptureInitializationSettings extends IInspectable { set audioDeviceId(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IMediaCaptureInitializationSettings extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -51,7 +51,7 @@ class IMediaCaptureInitializationSettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -61,7 +61,7 @@ class IMediaCaptureInitializationSettings extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -73,7 +73,7 @@ class IMediaCaptureInitializationSettings extends IInspectable { set videoDeviceId(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -82,7 +82,7 @@ class IMediaCaptureInitializationSettings extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -91,7 +91,7 @@ class IMediaCaptureInitializationSettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -101,7 +101,7 @@ class IMediaCaptureInitializationSettings extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -112,7 +112,7 @@ class IMediaCaptureInitializationSettings extends IInspectable { } set streamingCaptureMode(StreamingCaptureMode value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -120,7 +120,7 @@ class IMediaCaptureInitializationSettings extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -129,17 +129,17 @@ class IMediaCaptureInitializationSettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -150,7 +150,7 @@ class IMediaCaptureInitializationSettings extends IInspectable { } set photoCaptureSource(PhotoCaptureSource value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -158,7 +158,7 @@ class IMediaCaptureInitializationSettings extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -167,17 +167,17 @@ class IMediaCaptureInitializationSettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(13) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(13) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings2.dart b/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings2.dart index 4f0ab582..8dbaf0b6 100644 --- a/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings2.dart +++ b/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings2.dart @@ -32,7 +32,7 @@ class IMediaCaptureInitializationSettings2 extends IInspectable { IID_IMediaCaptureInitializationSettings2); set mediaCategory(MediaCategory value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IMediaCaptureInitializationSettings2 extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -49,17 +49,17 @@ class IMediaCaptureInitializationSettings2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -70,7 +70,7 @@ class IMediaCaptureInitializationSettings2 extends IInspectable { } set audioProcessing(AudioProcessing value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -78,7 +78,7 @@ class IMediaCaptureInitializationSettings2 extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -87,17 +87,17 @@ class IMediaCaptureInitializationSettings2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings3.dart b/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings3.dart index 0e80fed3..1816abe8 100644 --- a/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings3.dart +++ b/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings3.dart @@ -31,7 +31,7 @@ class IMediaCaptureInitializationSettings3 extends IInspectable { IID_IMediaCaptureInitializationSettings3); set audioSource(IMediaSource? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IMediaCaptureInitializationSettings3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value.lpVtbl); + lpVtbl, value.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -49,7 +49,7 @@ class IMediaCaptureInitializationSettings3 extends IInspectable { IMediaSource? get audioSource { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -59,7 +59,7 @@ class IMediaCaptureInitializationSettings3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -75,7 +75,7 @@ class IMediaCaptureInitializationSettings3 extends IInspectable { } set videoSource(IMediaSource? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -85,7 +85,7 @@ class IMediaCaptureInitializationSettings3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value.lpVtbl); + lpVtbl, value.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -93,7 +93,7 @@ class IMediaCaptureInitializationSettings3 extends IInspectable { IMediaSource? get videoSource { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -103,7 +103,7 @@ class IMediaCaptureInitializationSettings3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings4.dart b/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings4.dart index df267c9c..6e979f3d 100644 --- a/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings4.dart +++ b/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings4.dart @@ -34,7 +34,7 @@ class IMediaCaptureInitializationSettings4 extends IInspectable { MediaCaptureVideoProfile? get videoProfile { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class IMediaCaptureInitializationSettings4 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -60,7 +60,7 @@ class IMediaCaptureInitializationSettings4 extends IInspectable { } set videoProfile(MediaCaptureVideoProfile? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -70,7 +70,7 @@ class IMediaCaptureInitializationSettings4 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value.lpVtbl); + lpVtbl, value.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -78,7 +78,7 @@ class IMediaCaptureInitializationSettings4 extends IInspectable { MediaCaptureVideoProfileMediaDescription? get previewMediaDescription { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -88,7 +88,7 @@ class IMediaCaptureInitializationSettings4 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -104,7 +104,7 @@ class IMediaCaptureInitializationSettings4 extends IInspectable { } set previewMediaDescription(MediaCaptureVideoProfileMediaDescription? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -114,7 +114,7 @@ class IMediaCaptureInitializationSettings4 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value.lpVtbl); + lpVtbl, value.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -122,7 +122,7 @@ class IMediaCaptureInitializationSettings4 extends IInspectable { MediaCaptureVideoProfileMediaDescription? get recordMediaDescription { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -132,7 +132,7 @@ class IMediaCaptureInitializationSettings4 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -148,7 +148,7 @@ class IMediaCaptureInitializationSettings4 extends IInspectable { } set recordMediaDescription(MediaCaptureVideoProfileMediaDescription? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -158,7 +158,7 @@ class IMediaCaptureInitializationSettings4 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value.lpVtbl); + lpVtbl, value.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -166,7 +166,7 @@ class IMediaCaptureInitializationSettings4 extends IInspectable { MediaCaptureVideoProfileMediaDescription? get photoMediaDescription { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -176,7 +176,7 @@ class IMediaCaptureInitializationSettings4 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -192,7 +192,7 @@ class IMediaCaptureInitializationSettings4 extends IInspectable { } set photoMediaDescription(MediaCaptureVideoProfileMediaDescription? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -202,7 +202,7 @@ class IMediaCaptureInitializationSettings4 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value.lpVtbl); + lpVtbl, value.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings5.dart b/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings5.dart index 6e50e453..90983aa2 100644 --- a/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings5.dart +++ b/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings5.dart @@ -35,7 +35,7 @@ class IMediaCaptureInitializationSettings5 extends IInspectable { MediaFrameSourceGroup? get sourceGroup { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IMediaCaptureInitializationSettings5 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -61,7 +61,7 @@ class IMediaCaptureInitializationSettings5 extends IInspectable { } set sourceGroup(MediaFrameSourceGroup? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -71,7 +71,7 @@ class IMediaCaptureInitializationSettings5 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value.lpVtbl); + lpVtbl, value.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -80,17 +80,17 @@ class IMediaCaptureInitializationSettings5 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -101,7 +101,7 @@ class IMediaCaptureInitializationSettings5 extends IInspectable { } set sharingMode(MediaCaptureSharingMode value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -109,7 +109,7 @@ class IMediaCaptureInitializationSettings5 extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -118,17 +118,17 @@ class IMediaCaptureInitializationSettings5 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -139,7 +139,7 @@ class IMediaCaptureInitializationSettings5 extends IInspectable { } set memoryPreference(MediaCaptureMemoryPreference value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -147,7 +147,7 @@ class IMediaCaptureInitializationSettings5 extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings6.dart b/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings6.dart index 9732c65a..6491b64b 100644 --- a/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings6.dart +++ b/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings6.dart @@ -32,17 +32,17 @@ class IMediaCaptureInitializationSettings6 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -53,7 +53,7 @@ class IMediaCaptureInitializationSettings6 extends IInspectable { } set alwaysPlaySystemShutterSound(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -61,7 +61,7 @@ class IMediaCaptureInitializationSettings6 extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings7.dart b/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings7.dart index 480684b4..7bf96544 100644 --- a/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings7.dart +++ b/packages/windows_media/lib/src/capture/imediacaptureinitializationsettings7.dart @@ -32,7 +32,7 @@ class IMediaCaptureInitializationSettings7 extends IInspectable { PasswordCredential? get deviceUriPasswordCredential { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IMediaCaptureInitializationSettings7 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -58,7 +58,7 @@ class IMediaCaptureInitializationSettings7 extends IInspectable { } set deviceUriPasswordCredential(PasswordCredential? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,7 +68,7 @@ class IMediaCaptureInitializationSettings7 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value.lpVtbl); + lpVtbl, value.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -76,7 +76,7 @@ class IMediaCaptureInitializationSettings7 extends IInspectable { Uri? get deviceUri { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -86,7 +86,7 @@ class IMediaCaptureInitializationSettings7 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -102,7 +102,7 @@ class IMediaCaptureInitializationSettings7 extends IInspectable { } set deviceUri(Uri? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -112,7 +112,7 @@ class IMediaCaptureInitializationSettings7 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toWinRTUri().lpVtbl ?? nullptr); + lpVtbl, value?.toWinRTUri().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/capture/imediacapturepauseresult.dart b/packages/windows_media/lib/src/capture/imediacapturepauseresult.dart index b9affb19..51f27410 100644 --- a/packages/windows_media/lib/src/capture/imediacapturepauseresult.dart +++ b/packages/windows_media/lib/src/capture/imediacapturepauseresult.dart @@ -31,7 +31,7 @@ class IMediaCapturePauseResult extends IInspectable { VideoFrame? get lastFrame { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IMediaCapturePauseResult extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -60,17 +60,17 @@ class IMediaCapturePauseResult extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/capture/imediacapturerelativepanelwatcher.dart b/packages/windows_media/lib/src/capture/imediacapturerelativepanelwatcher.dart index 8a94fd7c..cabedca9 100644 --- a/packages/windows_media/lib/src/capture/imediacapturerelativepanelwatcher.dart +++ b/packages/windows_media/lib/src/capture/imediacapturerelativepanelwatcher.dart @@ -35,17 +35,17 @@ class IMediaCaptureRelativePanelWatcher extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -59,18 +59,17 @@ class IMediaCaptureRelativePanelWatcher extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -82,7 +81,7 @@ class IMediaCaptureRelativePanelWatcher extends IInspectable { void remove_Changed(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -91,27 +90,27 @@ class IMediaCaptureRelativePanelWatcher extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } void start() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } void stop() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/capture/imediacapturesettings.dart b/packages/windows_media/lib/src/capture/imediacapturesettings.dart index e50ec860..fc80d8e8 100644 --- a/packages/windows_media/lib/src/capture/imediacapturesettings.dart +++ b/packages/windows_media/lib/src/capture/imediacapturesettings.dart @@ -34,7 +34,7 @@ class IMediaCaptureSettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class IMediaCaptureSettings extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -58,7 +58,7 @@ class IMediaCaptureSettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,7 +68,7 @@ class IMediaCaptureSettings extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -82,17 +82,17 @@ class IMediaCaptureSettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -106,17 +106,17 @@ class IMediaCaptureSettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -130,17 +130,17 @@ class IMediaCaptureSettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/capture/imediacapturesettings2.dart b/packages/windows_media/lib/src/capture/imediacapturesettings2.dart index 64811553..c96ae396 100644 --- a/packages/windows_media/lib/src/capture/imediacapturesettings2.dart +++ b/packages/windows_media/lib/src/capture/imediacapturesettings2.dart @@ -33,17 +33,17 @@ class IMediaCaptureSettings2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -57,17 +57,17 @@ class IMediaCaptureSettings2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -81,17 +81,17 @@ class IMediaCaptureSettings2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -104,7 +104,7 @@ class IMediaCaptureSettings2 extends IInspectable { int? get horizontal35mmEquivalentFocalLength { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -114,7 +114,7 @@ class IMediaCaptureSettings2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -134,7 +134,7 @@ class IMediaCaptureSettings2 extends IInspectable { int? get pitchOffsetDegrees { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -144,7 +144,7 @@ class IMediaCaptureSettings2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -164,7 +164,7 @@ class IMediaCaptureSettings2 extends IInspectable { int? get vertical35mmEquivalentFocalLength { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -174,7 +174,7 @@ class IMediaCaptureSettings2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -195,17 +195,17 @@ class IMediaCaptureSettings2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(12) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(12) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -219,17 +219,17 @@ class IMediaCaptureSettings2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(13) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(13) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/capture/imediacapturesettings3.dart b/packages/windows_media/lib/src/capture/imediacapturesettings3.dart index c03b93fb..e4aa1e71 100644 --- a/packages/windows_media/lib/src/capture/imediacapturesettings3.dart +++ b/packages/windows_media/lib/src/capture/imediacapturesettings3.dart @@ -30,7 +30,7 @@ class IMediaCaptureSettings3 extends IInspectable { IDirect3DDevice? get direct3D11Device { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IMediaCaptureSettings3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/imediacapturestatics.dart b/packages/windows_media/lib/src/capture/imediacapturestatics.dart index a1d92c72..5dd3c608 100644 --- a/packages/windows_media/lib/src/capture/imediacapturestatics.dart +++ b/packages/windows_media/lib/src/capture/imediacapturestatics.dart @@ -33,7 +33,7 @@ class IMediaCaptureStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class IMediaCaptureStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int videoDeviceId, Pointer value)>()( - ptr.ref.lpVtbl, videoDeviceId.toHString(), value); + lpVtbl, videoDeviceId.toHString(), value); if (FAILED(hr)) throwWindowsException(hr); @@ -57,7 +57,7 @@ class IMediaCaptureStatics extends IInspectable { List findAllVideoProfiles(String videoDeviceId) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -70,7 +70,7 @@ class IMediaCaptureStatics extends IInspectable { VTablePointer lpVtbl, int videoDeviceId, Pointer - value)>()(ptr.ref.lpVtbl, videoDeviceId.toHString(), value); + value)>()(lpVtbl, videoDeviceId.toHString(), value); if (FAILED(hr)) { free(value); @@ -86,7 +86,7 @@ class IMediaCaptureStatics extends IInspectable { List findConcurrentProfiles(String videoDeviceId) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -99,7 +99,7 @@ class IMediaCaptureStatics extends IInspectable { VTablePointer lpVtbl, int videoDeviceId, Pointer - value)>()(ptr.ref.lpVtbl, videoDeviceId.toHString(), value); + value)>()(lpVtbl, videoDeviceId.toHString(), value); if (FAILED(hr)) { free(value); @@ -117,7 +117,7 @@ class IMediaCaptureStatics extends IInspectable { final value = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -131,7 +131,7 @@ class IMediaCaptureStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int videoDeviceId, int name, Pointer value)>()( - ptr.ref.lpVtbl, videoDeviceId.toHString(), name.value, value); + lpVtbl, videoDeviceId.toHString(), name.value, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/imediacapturestopresult.dart b/packages/windows_media/lib/src/capture/imediacapturestopresult.dart index 27393f0d..2ce1a38e 100644 --- a/packages/windows_media/lib/src/capture/imediacapturestopresult.dart +++ b/packages/windows_media/lib/src/capture/imediacapturestopresult.dart @@ -31,7 +31,7 @@ class IMediaCaptureStopResult extends IInspectable { VideoFrame? get lastFrame { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IMediaCaptureStopResult extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -60,17 +60,17 @@ class IMediaCaptureStopResult extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/capture/imediacapturevideopreview.dart b/packages/windows_media/lib/src/capture/imediacapturevideopreview.dart index 22527248..e15e6c0e 100644 --- a/packages/windows_media/lib/src/capture/imediacapturevideopreview.dart +++ b/packages/windows_media/lib/src/capture/imediacapturevideopreview.dart @@ -32,7 +32,7 @@ class IMediaCaptureVideoPreview extends IInspectable { Future startPreviewAsync() { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IMediaCaptureVideoPreview extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer asyncInfo)>()(ptr.ref.lpVtbl, asyncInfo); + Pointer asyncInfo)>()(lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -56,7 +56,7 @@ class IMediaCaptureVideoPreview extends IInspectable { MediaEncodingProfile? encodingProfile, IMediaExtension? customMediaSink) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -72,8 +72,8 @@ class IMediaCaptureVideoPreview extends IInspectable { VTablePointer lpVtbl, VTablePointer encodingProfile, VTablePointer customMediaSink, - Pointer asyncInfo)>()(ptr.ref.lpVtbl, - encodingProfile.lpVtbl, customMediaSink.lpVtbl, asyncInfo); + Pointer asyncInfo)>()( + lpVtbl, encodingProfile.lpVtbl, customMediaSink.lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -89,7 +89,7 @@ class IMediaCaptureVideoPreview extends IInspectable { IPropertySet? customSinkSettings) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -108,7 +108,7 @@ class IMediaCaptureVideoPreview extends IInspectable { int customSinkActivationId, VTablePointer customSinkSettings, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, + lpVtbl, encodingProfile.lpVtbl, customSinkActivationId.toHString(), customSinkSettings.lpVtbl, @@ -125,7 +125,7 @@ class IMediaCaptureVideoPreview extends IInspectable { Future stopPreviewAsync() { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -135,7 +135,7 @@ class IMediaCaptureVideoPreview extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer asyncInfo)>()(ptr.ref.lpVtbl, asyncInfo); + Pointer asyncInfo)>()(lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); diff --git a/packages/windows_media/lib/src/capture/imediacapturevideoprofile.dart b/packages/windows_media/lib/src/capture/imediacapturevideoprofile.dart index 369a0697..b5786a2e 100644 --- a/packages/windows_media/lib/src/capture/imediacapturevideoprofile.dart +++ b/packages/windows_media/lib/src/capture/imediacapturevideoprofile.dart @@ -33,7 +33,7 @@ class IMediaCaptureVideoProfile extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IMediaCaptureVideoProfile extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -57,7 +57,7 @@ class IMediaCaptureVideoProfile extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -67,7 +67,7 @@ class IMediaCaptureVideoProfile extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -81,7 +81,7 @@ class IMediaCaptureVideoProfile extends IInspectable { get supportedPreviewMediaDescription { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -91,7 +91,7 @@ class IMediaCaptureVideoProfile extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -113,7 +113,7 @@ class IMediaCaptureVideoProfile extends IInspectable { get supportedRecordMediaDescription { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -123,7 +123,7 @@ class IMediaCaptureVideoProfile extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -145,7 +145,7 @@ class IMediaCaptureVideoProfile extends IInspectable { get supportedPhotoMediaDescription { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -155,7 +155,7 @@ class IMediaCaptureVideoProfile extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -176,7 +176,7 @@ class IMediaCaptureVideoProfile extends IInspectable { List getConcurrency() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -186,7 +186,7 @@ class IMediaCaptureVideoProfile extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/imediacapturevideoprofile2.dart b/packages/windows_media/lib/src/capture/imediacapturevideoprofile2.dart index 1b5c84eb..6098efea 100644 --- a/packages/windows_media/lib/src/capture/imediacapturevideoprofile2.dart +++ b/packages/windows_media/lib/src/capture/imediacapturevideoprofile2.dart @@ -31,7 +31,7 @@ class IMediaCaptureVideoProfile2 extends IInspectable { List? get frameSourceInfos { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IMediaCaptureVideoProfile2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -62,7 +62,7 @@ class IMediaCaptureVideoProfile2 extends IInspectable { Map? get properties { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -72,7 +72,7 @@ class IMediaCaptureVideoProfile2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/capture/imediacapturevideoprofilemediadescription.dart b/packages/windows_media/lib/src/capture/imediacapturevideoprofilemediadescription.dart index 76ac24fb..ed3235d9 100644 --- a/packages/windows_media/lib/src/capture/imediacapturevideoprofilemediadescription.dart +++ b/packages/windows_media/lib/src/capture/imediacapturevideoprofilemediadescription.dart @@ -33,7 +33,7 @@ class IMediaCaptureVideoProfileMediaDescription extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IMediaCaptureVideoProfileMediaDescription extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -57,7 +57,7 @@ class IMediaCaptureVideoProfileMediaDescription extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -67,7 +67,7 @@ class IMediaCaptureVideoProfileMediaDescription extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -81,7 +81,7 @@ class IMediaCaptureVideoProfileMediaDescription extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -91,7 +91,7 @@ class IMediaCaptureVideoProfileMediaDescription extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -107,17 +107,17 @@ class IMediaCaptureVideoProfileMediaDescription extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -133,17 +133,17 @@ class IMediaCaptureVideoProfileMediaDescription extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/capture/imediacapturevideoprofilemediadescription2.dart b/packages/windows_media/lib/src/capture/imediacapturevideoprofilemediadescription2.dart index 079a962e..3b6bf0e6 100644 --- a/packages/windows_media/lib/src/capture/imediacapturevideoprofilemediadescription2.dart +++ b/packages/windows_media/lib/src/capture/imediacapturevideoprofilemediadescription2.dart @@ -33,7 +33,7 @@ class IMediaCaptureVideoProfileMediaDescription2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IMediaCaptureVideoProfileMediaDescription2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class IMediaCaptureVideoProfileMediaDescription2 extends IInspectable { Map? get properties { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class IMediaCaptureVideoProfileMediaDescription2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/core/iaudiostreamdescriptor.dart b/packages/windows_media/lib/src/core/iaudiostreamdescriptor.dart index 5e621bf5..9297e127 100644 --- a/packages/windows_media/lib/src/core/iaudiostreamdescriptor.dart +++ b/packages/windows_media/lib/src/core/iaudiostreamdescriptor.dart @@ -33,7 +33,7 @@ class IAudioStreamDescriptor extends IInspectable AudioEncodingProperties? get encodingProperties { final encodingProperties = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class IAudioStreamDescriptor extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, Pointer encodingProperties)>()( - ptr.ref.lpVtbl, encodingProperties); + lpVtbl, encodingProperties); if (FAILED(hr)) { free(encodingProperties); diff --git a/packages/windows_media/lib/src/core/iaudiostreamdescriptor2.dart b/packages/windows_media/lib/src/core/iaudiostreamdescriptor2.dart index ed97e657..d0e234e7 100644 --- a/packages/windows_media/lib/src/core/iaudiostreamdescriptor2.dart +++ b/packages/windows_media/lib/src/core/iaudiostreamdescriptor2.dart @@ -30,7 +30,7 @@ class IAudioStreamDescriptor2 extends IInspectable .cast(IAudioStreamDescriptor2.fromPtr, IID_IAudioStreamDescriptor2); set leadingEncoderPadding(int? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IAudioStreamDescriptor2 extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toReference(IntType.uint32).lpVtbl ?? nullptr); + lpVtbl, value?.toReference(IntType.uint32).lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @@ -48,7 +48,7 @@ class IAudioStreamDescriptor2 extends IInspectable int? get leadingEncoderPadding { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -58,7 +58,7 @@ class IAudioStreamDescriptor2 extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -76,7 +76,7 @@ class IAudioStreamDescriptor2 extends IInspectable } set trailingEncoderPadding(int? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -86,7 +86,7 @@ class IAudioStreamDescriptor2 extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toReference(IntType.uint32).lpVtbl ?? nullptr); + lpVtbl, value?.toReference(IntType.uint32).lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @@ -94,7 +94,7 @@ class IAudioStreamDescriptor2 extends IInspectable int? get trailingEncoderPadding { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -104,7 +104,7 @@ class IAudioStreamDescriptor2 extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/core/iaudiostreamdescriptor3.dart b/packages/windows_media/lib/src/core/iaudiostreamdescriptor3.dart index acc60424..696f73d9 100644 --- a/packages/windows_media/lib/src/core/iaudiostreamdescriptor3.dart +++ b/packages/windows_media/lib/src/core/iaudiostreamdescriptor3.dart @@ -31,7 +31,7 @@ class IAudioStreamDescriptor3 extends IInspectable { AudioStreamDescriptor? copy() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IAudioStreamDescriptor3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_media/lib/src/core/iaudiostreamdescriptorfactory.dart b/packages/windows_media/lib/src/core/iaudiostreamdescriptorfactory.dart index ffb429ab..b5c13dfb 100644 --- a/packages/windows_media/lib/src/core/iaudiostreamdescriptorfactory.dart +++ b/packages/windows_media/lib/src/core/iaudiostreamdescriptorfactory.dart @@ -34,7 +34,7 @@ class IAudioStreamDescriptorFactory extends IInspectable { AudioStreamDescriptor create(AudioEncodingProperties? encodingProperties) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -49,7 +49,7 @@ class IAudioStreamDescriptorFactory extends IInspectable { VTablePointer lpVtbl, VTablePointer encodingProperties, Pointer result)>()( - ptr.ref.lpVtbl, encodingProperties.lpVtbl, result); + lpVtbl, encodingProperties.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_media/lib/src/core/imediastreamdescriptor.dart b/packages/windows_media/lib/src/core/imediastreamdescriptor.dart index d1fc0e1b..75e2fb8c 100644 --- a/packages/windows_media/lib/src/core/imediastreamdescriptor.dart +++ b/packages/windows_media/lib/src/core/imediastreamdescriptor.dart @@ -30,7 +30,7 @@ class IMediaStreamDescriptor extends IInspectable { final selected = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IMediaStreamDescriptor extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer selected)>()( - ptr.ref.lpVtbl, selected); + lpVtbl, selected); if (FAILED(hr)) throwWindowsException(hr); @@ -52,7 +52,7 @@ class IMediaStreamDescriptor extends IInspectable { set name(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -61,7 +61,7 @@ class IMediaStreamDescriptor extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -70,7 +70,7 @@ class IMediaStreamDescriptor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -80,7 +80,7 @@ class IMediaStreamDescriptor extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -92,7 +92,7 @@ class IMediaStreamDescriptor extends IInspectable { set language(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -101,7 +101,7 @@ class IMediaStreamDescriptor extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -110,7 +110,7 @@ class IMediaStreamDescriptor extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -120,7 +120,7 @@ class IMediaStreamDescriptor extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/core/imediastreamdescriptor2.dart b/packages/windows_media/lib/src/core/imediastreamdescriptor2.dart index a0d28910..c00e596d 100644 --- a/packages/windows_media/lib/src/core/imediastreamdescriptor2.dart +++ b/packages/windows_media/lib/src/core/imediastreamdescriptor2.dart @@ -31,7 +31,7 @@ class IMediaStreamDescriptor2 extends IInspectable set label(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IMediaStreamDescriptor2 extends IInspectable VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -49,7 +49,7 @@ class IMediaStreamDescriptor2 extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -59,7 +59,7 @@ class IMediaStreamDescriptor2 extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/core/itimedmetadatastreamdescriptor.dart b/packages/windows_media/lib/src/core/itimedmetadatastreamdescriptor.dart index b77beb60..0b2a2127 100644 --- a/packages/windows_media/lib/src/core/itimedmetadatastreamdescriptor.dart +++ b/packages/windows_media/lib/src/core/itimedmetadatastreamdescriptor.dart @@ -34,7 +34,7 @@ class ITimedMetadataStreamDescriptor extends IInspectable { TimedMetadataEncodingProperties? get encodingProperties { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class ITimedMetadataStreamDescriptor extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -62,7 +62,7 @@ class ITimedMetadataStreamDescriptor extends IInspectable { TimedMetadataStreamDescriptor? copy() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -72,7 +72,7 @@ class ITimedMetadataStreamDescriptor extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_media/lib/src/core/itimedmetadatastreamdescriptorfactory.dart b/packages/windows_media/lib/src/core/itimedmetadatastreamdescriptorfactory.dart index deab0504..646e38fd 100644 --- a/packages/windows_media/lib/src/core/itimedmetadatastreamdescriptorfactory.dart +++ b/packages/windows_media/lib/src/core/itimedmetadatastreamdescriptorfactory.dart @@ -35,7 +35,7 @@ class ITimedMetadataStreamDescriptorFactory extends IInspectable { TimedMetadataEncodingProperties? encodingProperties) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -50,7 +50,7 @@ class ITimedMetadataStreamDescriptorFactory extends IInspectable { VTablePointer lpVtbl, VTablePointer encodingProperties, Pointer result)>()( - ptr.ref.lpVtbl, encodingProperties.lpVtbl, result); + lpVtbl, encodingProperties.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_media/lib/src/core/ivideostreamdescriptor.dart b/packages/windows_media/lib/src/core/ivideostreamdescriptor.dart index 78e2effe..039e4d2c 100644 --- a/packages/windows_media/lib/src/core/ivideostreamdescriptor.dart +++ b/packages/windows_media/lib/src/core/ivideostreamdescriptor.dart @@ -33,7 +33,7 @@ class IVideoStreamDescriptor extends IInspectable VideoEncodingProperties? get encodingProperties { final encodingProperties = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class IVideoStreamDescriptor extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, Pointer encodingProperties)>()( - ptr.ref.lpVtbl, encodingProperties); + lpVtbl, encodingProperties); if (FAILED(hr)) { free(encodingProperties); diff --git a/packages/windows_media/lib/src/core/ivideostreamdescriptor2.dart b/packages/windows_media/lib/src/core/ivideostreamdescriptor2.dart index 49451271..a16f82a1 100644 --- a/packages/windows_media/lib/src/core/ivideostreamdescriptor2.dart +++ b/packages/windows_media/lib/src/core/ivideostreamdescriptor2.dart @@ -31,7 +31,7 @@ class IVideoStreamDescriptor2 extends IInspectable { VideoStreamDescriptor? copy() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IVideoStreamDescriptor2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_media/lib/src/core/ivideostreamdescriptorfactory.dart b/packages/windows_media/lib/src/core/ivideostreamdescriptorfactory.dart index 0712ee78..8650e3cd 100644 --- a/packages/windows_media/lib/src/core/ivideostreamdescriptorfactory.dart +++ b/packages/windows_media/lib/src/core/ivideostreamdescriptorfactory.dart @@ -34,7 +34,7 @@ class IVideoStreamDescriptorFactory extends IInspectable { VideoStreamDescriptor create(VideoEncodingProperties? encodingProperties) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -49,7 +49,7 @@ class IVideoStreamDescriptorFactory extends IInspectable { VTablePointer lpVtbl, VTablePointer encodingProperties, Pointer result)>()( - ptr.ref.lpVtbl, encodingProperties.lpVtbl, result); + lpVtbl, encodingProperties.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_media/lib/src/devices/core/icameraintrinsics.dart b/packages/windows_media/lib/src/devices/core/icameraintrinsics.dart index 617b2b89..34ccfdc3 100644 --- a/packages/windows_media/lib/src/devices/core/icameraintrinsics.dart +++ b/packages/windows_media/lib/src/devices/core/icameraintrinsics.dart @@ -30,7 +30,7 @@ class ICameraIntrinsics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class ICameraIntrinsics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class ICameraIntrinsics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class ICameraIntrinsics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -78,7 +78,7 @@ class ICameraIntrinsics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -88,7 +88,7 @@ class ICameraIntrinsics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -102,7 +102,7 @@ class ICameraIntrinsics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -112,7 +112,7 @@ class ICameraIntrinsics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -126,7 +126,7 @@ class ICameraIntrinsics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -136,7 +136,7 @@ class ICameraIntrinsics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -150,7 +150,7 @@ class ICameraIntrinsics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -160,7 +160,7 @@ class ICameraIntrinsics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -176,7 +176,7 @@ class ICameraIntrinsics extends IInspectable { try { final coordinateNativeStructPtr = coordinate.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -189,7 +189,7 @@ class ICameraIntrinsics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, NativeVector3 coordinate, Pointer result)>()( - ptr.ref.lpVtbl, coordinateNativeStructPtr.ref, result); + lpVtbl, coordinateNativeStructPtr.ref, result); free(coordinateNativeStructPtr); @@ -207,7 +207,7 @@ class ICameraIntrinsics extends IInspectable { try { final pixelCoordinateNativeStructPtr = pixelCoordinate.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -222,7 +222,7 @@ class ICameraIntrinsics extends IInspectable { VTablePointer lpVtbl, NativePoint pixelCoordinate, Pointer result)>()( - ptr.ref.lpVtbl, pixelCoordinateNativeStructPtr.ref, result); + lpVtbl, pixelCoordinateNativeStructPtr.ref, result); free(pixelCoordinateNativeStructPtr); @@ -240,7 +240,7 @@ class ICameraIntrinsics extends IInspectable { final results = calloc(resultsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -258,8 +258,8 @@ class ICameraIntrinsics extends IInspectable { int coordinatesSize, Pointer coordinates, int resultsSize, - Pointer results)>()(ptr.ref.lpVtbl, - coordinates.length, coordinatesArray, resultsSize, results); + Pointer results)>()( + lpVtbl, coordinates.length, coordinatesArray, resultsSize, results); if (FAILED(hr)) throwWindowsException(hr); @@ -278,7 +278,7 @@ class ICameraIntrinsics extends IInspectable { final results = calloc(resultsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -296,7 +296,7 @@ class ICameraIntrinsics extends IInspectable { int pixelCoordinatesSize, Pointer pixelCoordinates, int resultsSize, - Pointer results)>()(ptr.ref.lpVtbl, + Pointer results)>()(lpVtbl, pixelCoordinates.length, pixelCoordinatesArray, resultsSize, results); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/devices/core/icameraintrinsics2.dart b/packages/windows_media/lib/src/devices/core/icameraintrinsics2.dart index 479f2173..2969d546 100644 --- a/packages/windows_media/lib/src/devices/core/icameraintrinsics2.dart +++ b/packages/windows_media/lib/src/devices/core/icameraintrinsics2.dart @@ -30,7 +30,7 @@ class ICameraIntrinsics2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class ICameraIntrinsics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -57,7 +57,7 @@ class ICameraIntrinsics2 extends IInspectable { final inputNativeStructPtr = input.toNative(); final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -70,7 +70,7 @@ class ICameraIntrinsics2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, NativePoint input, Pointer result)>()( - ptr.ref.lpVtbl, inputNativeStructPtr.ref, result); + lpVtbl, inputNativeStructPtr.ref, result); free(inputNativeStructPtr); @@ -88,7 +88,7 @@ class ICameraIntrinsics2 extends IInspectable { final results = calloc(resultsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -107,7 +107,7 @@ class ICameraIntrinsics2 extends IInspectable { Pointer inputs, int resultsSize, Pointer results)>()( - ptr.ref.lpVtbl, inputs.length, inputsArray, resultsSize, results); + lpVtbl, inputs.length, inputsArray, resultsSize, results); if (FAILED(hr)) throwWindowsException(hr); @@ -125,7 +125,7 @@ class ICameraIntrinsics2 extends IInspectable { final inputNativeStructPtr = input.toNative(); final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -138,7 +138,7 @@ class ICameraIntrinsics2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, NativePoint input, Pointer result)>()( - ptr.ref.lpVtbl, inputNativeStructPtr.ref, result); + lpVtbl, inputNativeStructPtr.ref, result); free(inputNativeStructPtr); @@ -156,7 +156,7 @@ class ICameraIntrinsics2 extends IInspectable { final results = calloc(resultsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -175,7 +175,7 @@ class ICameraIntrinsics2 extends IInspectable { Pointer inputs, int resultsSize, Pointer results)>()( - ptr.ref.lpVtbl, inputs.length, inputsArray, resultsSize, results); + lpVtbl, inputs.length, inputsArray, resultsSize, results); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/devices/core/icameraintrinsicsfactory.dart b/packages/windows_media/lib/src/devices/core/icameraintrinsicsfactory.dart index 4b066689..eb98a2e0 100644 --- a/packages/windows_media/lib/src/devices/core/icameraintrinsicsfactory.dart +++ b/packages/windows_media/lib/src/devices/core/icameraintrinsicsfactory.dart @@ -41,7 +41,7 @@ class ICameraIntrinsicsFactory extends IInspectable { final radialDistortionNativeStructPtr = radialDistortion.toNative(); final tangentialDistortionNativeStructPtr = tangentialDistortion.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -66,7 +66,7 @@ class ICameraIntrinsicsFactory extends IInspectable { int imageWidth, int imageHeight, Pointer result)>()( - ptr.ref.lpVtbl, + lpVtbl, focalLengthNativeStructPtr.ref, principalPointNativeStructPtr.ref, radialDistortionNativeStructPtr.ref, diff --git a/packages/windows_media/lib/src/devices/core/idepthcorrelatedcoordinatemapper.dart b/packages/windows_media/lib/src/devices/core/idepthcorrelatedcoordinatemapper.dart index 7523f4d2..7ea913ab 100644 --- a/packages/windows_media/lib/src/devices/core/idepthcorrelatedcoordinatemapper.dart +++ b/packages/windows_media/lib/src/devices/core/idepthcorrelatedcoordinatemapper.dart @@ -39,7 +39,7 @@ class IDepthCorrelatedCoordinateMapper extends IInspectable try { final sourcePointNativeStructPtr = sourcePoint.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -56,7 +56,7 @@ class IDepthCorrelatedCoordinateMapper extends IInspectable NativePoint sourcePoint, VTablePointer targetCoordinateSystem, Pointer result)>()( - ptr.ref.lpVtbl, + lpVtbl, sourcePointNativeStructPtr.ref, targetCoordinateSystem.lpVtbl, result); @@ -78,7 +78,7 @@ class IDepthCorrelatedCoordinateMapper extends IInspectable final results = calloc(resultsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -99,7 +99,7 @@ class IDepthCorrelatedCoordinateMapper extends IInspectable VTablePointer targetCoordinateSystem, int resultsSize, Pointer results)>()( - ptr.ref.lpVtbl, + lpVtbl, sourcePoints.length, sourcePointsArray, targetCoordinateSystem.lpVtbl, @@ -124,7 +124,7 @@ class IDepthCorrelatedCoordinateMapper extends IInspectable try { final sourcePointNativeStructPtr = sourcePoint.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -143,7 +143,7 @@ class IDepthCorrelatedCoordinateMapper extends IInspectable VTablePointer targetCoordinateSystem, VTablePointer targetCameraIntrinsics, Pointer result)>()( - ptr.ref.lpVtbl, + lpVtbl, sourcePointNativeStructPtr.ref, targetCoordinateSystem.lpVtbl, targetCameraIntrinsics.lpVtbl, @@ -169,7 +169,7 @@ class IDepthCorrelatedCoordinateMapper extends IInspectable final results = calloc(resultsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -192,7 +192,7 @@ class IDepthCorrelatedCoordinateMapper extends IInspectable VTablePointer targetCameraIntrinsics, int resultsSize, Pointer results)>()( - ptr.ref.lpVtbl, + lpVtbl, sourcePoints.length, sourcePointsArray, targetCoordinateSystem.lpVtbl, diff --git a/packages/windows_media/lib/src/devices/core/iframecontrolcapabilities.dart b/packages/windows_media/lib/src/devices/core/iframecontrolcapabilities.dart index 37777713..d3d4e617 100644 --- a/packages/windows_media/lib/src/devices/core/iframecontrolcapabilities.dart +++ b/packages/windows_media/lib/src/devices/core/iframecontrolcapabilities.dart @@ -34,7 +34,7 @@ class IFrameControlCapabilities extends IInspectable { FrameExposureCapabilities? get exposure { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class IFrameControlCapabilities extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -62,7 +62,7 @@ class IFrameControlCapabilities extends IInspectable { FrameExposureCompensationCapabilities? get exposureCompensation { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -72,7 +72,7 @@ class IFrameControlCapabilities extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -90,7 +90,7 @@ class IFrameControlCapabilities extends IInspectable { FrameIsoSpeedCapabilities? get isoSpeed { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -100,7 +100,7 @@ class IFrameControlCapabilities extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -118,7 +118,7 @@ class IFrameControlCapabilities extends IInspectable { FrameFocusCapabilities? get focus { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -128,7 +128,7 @@ class IFrameControlCapabilities extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -147,17 +147,17 @@ class IFrameControlCapabilities extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/devices/core/iframecontrolcapabilities2.dart b/packages/windows_media/lib/src/devices/core/iframecontrolcapabilities2.dart index 393b4e69..19242538 100644 --- a/packages/windows_media/lib/src/devices/core/iframecontrolcapabilities2.dart +++ b/packages/windows_media/lib/src/devices/core/iframecontrolcapabilities2.dart @@ -31,7 +31,7 @@ class IFrameControlCapabilities2 extends IInspectable { FrameFlashCapabilities? get flash { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IFrameControlCapabilities2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/devices/core/iframecontroller.dart b/packages/windows_media/lib/src/devices/core/iframecontroller.dart index 6e587526..caa94724 100644 --- a/packages/windows_media/lib/src/devices/core/iframecontroller.dart +++ b/packages/windows_media/lib/src/devices/core/iframecontroller.dart @@ -34,7 +34,7 @@ class IFrameController extends IInspectable { FrameExposureControl? get exposureControl { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class IFrameController extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -62,7 +62,7 @@ class IFrameController extends IInspectable { FrameExposureCompensationControl? get exposureCompensationControl { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -72,7 +72,7 @@ class IFrameController extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -90,7 +90,7 @@ class IFrameController extends IInspectable { FrameIsoSpeedControl? get isoSpeedControl { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -100,7 +100,7 @@ class IFrameController extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -118,7 +118,7 @@ class IFrameController extends IInspectable { FrameFocusControl? get focusControl { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -128,7 +128,7 @@ class IFrameController extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -146,7 +146,7 @@ class IFrameController extends IInspectable { bool? get photoConfirmationEnabled { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -156,7 +156,7 @@ class IFrameController extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -174,7 +174,7 @@ class IFrameController extends IInspectable { } set photoConfirmationEnabled(bool? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -184,7 +184,7 @@ class IFrameController extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toReference().lpVtbl ?? nullptr); + lpVtbl, value?.toReference().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/devices/core/iframecontroller2.dart b/packages/windows_media/lib/src/devices/core/iframecontroller2.dart index 38ec49b8..f23cb46c 100644 --- a/packages/windows_media/lib/src/devices/core/iframecontroller2.dart +++ b/packages/windows_media/lib/src/devices/core/iframecontroller2.dart @@ -31,7 +31,7 @@ class IFrameController2 extends IInspectable { FrameFlashControl? get flashControl { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IFrameController2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/devices/core/iframeexposurecapabilities.dart b/packages/windows_media/lib/src/devices/core/iframeexposurecapabilities.dart index 01c6d2d9..41b8802f 100644 --- a/packages/windows_media/lib/src/devices/core/iframeexposurecapabilities.dart +++ b/packages/windows_media/lib/src/devices/core/iframeexposurecapabilities.dart @@ -30,17 +30,17 @@ class IFrameExposureCapabilities extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,17 +54,17 @@ class IFrameExposureCapabilities extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -78,17 +78,17 @@ class IFrameExposureCapabilities extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -102,17 +102,17 @@ class IFrameExposureCapabilities extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/devices/core/iframeexposurecompensationcapabilities.dart b/packages/windows_media/lib/src/devices/core/iframeexposurecompensationcapabilities.dart index b4c5fedb..b341eead 100644 --- a/packages/windows_media/lib/src/devices/core/iframeexposurecompensationcapabilities.dart +++ b/packages/windows_media/lib/src/devices/core/iframeexposurecompensationcapabilities.dart @@ -32,17 +32,17 @@ class IFrameExposureCompensationCapabilities extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,17 +56,17 @@ class IFrameExposureCompensationCapabilities extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -80,17 +80,17 @@ class IFrameExposureCompensationCapabilities extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -104,17 +104,17 @@ class IFrameExposureCompensationCapabilities extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/devices/core/iframeexposurecompensationcontrol.dart b/packages/windows_media/lib/src/devices/core/iframeexposurecompensationcontrol.dart index 118a3e8c..a542900d 100644 --- a/packages/windows_media/lib/src/devices/core/iframeexposurecompensationcontrol.dart +++ b/packages/windows_media/lib/src/devices/core/iframeexposurecompensationcontrol.dart @@ -31,7 +31,7 @@ class IFrameExposureCompensationControl extends IInspectable { double? get value { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IFrameExposureCompensationControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -59,7 +59,7 @@ class IFrameExposureCompensationControl extends IInspectable { } set value(double? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -69,7 +69,7 @@ class IFrameExposureCompensationControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toReference(DoubleType.float).lpVtbl ?? nullptr); + lpVtbl, value?.toReference(DoubleType.float).lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/devices/core/iframeexposurecontrol.dart b/packages/windows_media/lib/src/devices/core/iframeexposurecontrol.dart index fd322cbd..5457ca11 100644 --- a/packages/windows_media/lib/src/devices/core/iframeexposurecontrol.dart +++ b/packages/windows_media/lib/src/devices/core/iframeexposurecontrol.dart @@ -30,17 +30,17 @@ class IFrameExposureControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -51,7 +51,7 @@ class IFrameExposureControl extends IInspectable { } set auto(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -59,7 +59,7 @@ class IFrameExposureControl extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -67,7 +67,7 @@ class IFrameExposureControl extends IInspectable { Duration? get value { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -77,7 +77,7 @@ class IFrameExposureControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -95,7 +95,7 @@ class IFrameExposureControl extends IInspectable { } set value(Duration? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -105,7 +105,7 @@ class IFrameExposureControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toReference().lpVtbl ?? nullptr); + lpVtbl, value?.toReference().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/devices/core/iframeflashcapabilities.dart b/packages/windows_media/lib/src/devices/core/iframeflashcapabilities.dart index f8c7b46d..2eabbda9 100644 --- a/packages/windows_media/lib/src/devices/core/iframeflashcapabilities.dart +++ b/packages/windows_media/lib/src/devices/core/iframeflashcapabilities.dart @@ -30,17 +30,17 @@ class IFrameFlashCapabilities extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,17 +54,17 @@ class IFrameFlashCapabilities extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -78,17 +78,17 @@ class IFrameFlashCapabilities extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/devices/core/iframeflashcontrol.dart b/packages/windows_media/lib/src/devices/core/iframeflashcontrol.dart index 7daf3b0c..be527d8c 100644 --- a/packages/windows_media/lib/src/devices/core/iframeflashcontrol.dart +++ b/packages/windows_media/lib/src/devices/core/iframeflashcontrol.dart @@ -32,17 +32,17 @@ class IFrameFlashControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -53,7 +53,7 @@ class IFrameFlashControl extends IInspectable { } set mode(FrameFlashMode value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -61,7 +61,7 @@ class IFrameFlashControl extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -70,17 +70,17 @@ class IFrameFlashControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -91,7 +91,7 @@ class IFrameFlashControl extends IInspectable { } set auto(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -99,7 +99,7 @@ class IFrameFlashControl extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -108,17 +108,17 @@ class IFrameFlashControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -129,7 +129,7 @@ class IFrameFlashControl extends IInspectable { } set redEyeReduction(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -137,7 +137,7 @@ class IFrameFlashControl extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -146,17 +146,17 @@ class IFrameFlashControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(12) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(12) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -167,7 +167,7 @@ class IFrameFlashControl extends IInspectable { } set powerPercent(double value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -175,7 +175,7 @@ class IFrameFlashControl extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Float value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/devices/core/iframefocuscapabilities.dart b/packages/windows_media/lib/src/devices/core/iframefocuscapabilities.dart index 450242bd..d62d3d30 100644 --- a/packages/windows_media/lib/src/devices/core/iframefocuscapabilities.dart +++ b/packages/windows_media/lib/src/devices/core/iframefocuscapabilities.dart @@ -30,17 +30,17 @@ class IFrameFocusCapabilities extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IFrameFocusCapabilities extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IFrameFocusCapabilities extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -78,7 +78,7 @@ class IFrameFocusCapabilities extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -88,7 +88,7 @@ class IFrameFocusCapabilities extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -102,7 +102,7 @@ class IFrameFocusCapabilities extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -112,7 +112,7 @@ class IFrameFocusCapabilities extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/devices/core/iframefocuscontrol.dart b/packages/windows_media/lib/src/devices/core/iframefocuscontrol.dart index f1278456..ac2c3dcb 100644 --- a/packages/windows_media/lib/src/devices/core/iframefocuscontrol.dart +++ b/packages/windows_media/lib/src/devices/core/iframefocuscontrol.dart @@ -29,7 +29,7 @@ class IFrameFocusControl extends IInspectable { int? get value { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class IFrameFocusControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -57,7 +57,7 @@ class IFrameFocusControl extends IInspectable { } set value(int? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -67,7 +67,7 @@ class IFrameFocusControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toReference(IntType.uint32).lpVtbl ?? nullptr); + lpVtbl, value?.toReference(IntType.uint32).lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/devices/core/iframeisospeedcapabilities.dart b/packages/windows_media/lib/src/devices/core/iframeisospeedcapabilities.dart index 563af837..6e91708b 100644 --- a/packages/windows_media/lib/src/devices/core/iframeisospeedcapabilities.dart +++ b/packages/windows_media/lib/src/devices/core/iframeisospeedcapabilities.dart @@ -30,17 +30,17 @@ class IFrameIsoSpeedCapabilities extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IFrameIsoSpeedCapabilities extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IFrameIsoSpeedCapabilities extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -78,7 +78,7 @@ class IFrameIsoSpeedCapabilities extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -88,7 +88,7 @@ class IFrameIsoSpeedCapabilities extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -102,7 +102,7 @@ class IFrameIsoSpeedCapabilities extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -112,7 +112,7 @@ class IFrameIsoSpeedCapabilities extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/devices/core/iframeisospeedcontrol.dart b/packages/windows_media/lib/src/devices/core/iframeisospeedcontrol.dart index 054ab1a0..7e0fc54e 100644 --- a/packages/windows_media/lib/src/devices/core/iframeisospeedcontrol.dart +++ b/packages/windows_media/lib/src/devices/core/iframeisospeedcontrol.dart @@ -30,17 +30,17 @@ class IFrameIsoSpeedControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -51,7 +51,7 @@ class IFrameIsoSpeedControl extends IInspectable { } set auto(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -59,7 +59,7 @@ class IFrameIsoSpeedControl extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -67,7 +67,7 @@ class IFrameIsoSpeedControl extends IInspectable { int? get value { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -77,7 +77,7 @@ class IFrameIsoSpeedControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -95,7 +95,7 @@ class IFrameIsoSpeedControl extends IInspectable { } set value(int? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -105,7 +105,7 @@ class IFrameIsoSpeedControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toReference(IntType.uint32).lpVtbl ?? nullptr); + lpVtbl, value?.toReference(IntType.uint32).lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/devices/core/ivariablephotosequencecontroller.dart b/packages/windows_media/lib/src/devices/core/ivariablephotosequencecontroller.dart index 86bb4203..a227a441 100644 --- a/packages/windows_media/lib/src/devices/core/ivariablephotosequencecontroller.dart +++ b/packages/windows_media/lib/src/devices/core/ivariablephotosequencecontroller.dart @@ -37,17 +37,17 @@ class IVariablePhotoSequenceController extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -61,17 +61,17 @@ class IVariablePhotoSequenceController extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -85,17 +85,17 @@ class IVariablePhotoSequenceController extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -106,7 +106,7 @@ class IVariablePhotoSequenceController extends IInspectable { } set photosPerSecondLimit(double value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -114,7 +114,7 @@ class IVariablePhotoSequenceController extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Float value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -123,7 +123,7 @@ class IVariablePhotoSequenceController extends IInspectable { IMediaEncodingProperties? captureProperties) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -138,7 +138,7 @@ class IVariablePhotoSequenceController extends IInspectable { VTablePointer lpVtbl, VTablePointer captureProperties, Pointer value)>()( - ptr.ref.lpVtbl, captureProperties.lpVtbl, value); + lpVtbl, captureProperties.lpVtbl, value); if (FAILED(hr)) { free(value); @@ -156,7 +156,7 @@ class IVariablePhotoSequenceController extends IInspectable { MediaRatio? getCurrentFrameRate() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -166,7 +166,7 @@ class IVariablePhotoSequenceController extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -184,7 +184,7 @@ class IVariablePhotoSequenceController extends IInspectable { FrameControlCapabilities? get frameCapabilities { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -194,7 +194,7 @@ class IVariablePhotoSequenceController extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -212,7 +212,7 @@ class IVariablePhotoSequenceController extends IInspectable { IVector? get desiredFrameControllers { final items = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -222,7 +222,7 @@ class IVariablePhotoSequenceController extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer items)>()( - ptr.ref.lpVtbl, items); + lpVtbl, items); if (FAILED(hr)) { free(items); diff --git a/packages/windows_media/lib/src/devices/iadvancedphotocapturesettings.dart b/packages/windows_media/lib/src/devices/iadvancedphotocapturesettings.dart index d6a3edf1..4d47065b 100644 --- a/packages/windows_media/lib/src/devices/iadvancedphotocapturesettings.dart +++ b/packages/windows_media/lib/src/devices/iadvancedphotocapturesettings.dart @@ -34,17 +34,17 @@ class IAdvancedPhotoCaptureSettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +55,7 @@ class IAdvancedPhotoCaptureSettings extends IInspectable { } set mode(AdvancedPhotoMode value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -63,7 +63,7 @@ class IAdvancedPhotoCaptureSettings extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/devices/iadvancedphotocontrol.dart b/packages/windows_media/lib/src/devices/iadvancedphotocontrol.dart index c6c6f352..cfd07389 100644 --- a/packages/windows_media/lib/src/devices/iadvancedphotocontrol.dart +++ b/packages/windows_media/lib/src/devices/iadvancedphotocontrol.dart @@ -33,17 +33,17 @@ class IAdvancedPhotoControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class IAdvancedPhotoControl extends IInspectable { List? get supportedModes { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class IAdvancedPhotoControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -88,17 +88,17 @@ class IAdvancedPhotoControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -109,7 +109,7 @@ class IAdvancedPhotoControl extends IInspectable { } void configure(AdvancedPhotoCaptureSettings? settings) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -119,7 +119,7 @@ class IAdvancedPhotoControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer settings)>()( - ptr.ref.lpVtbl, settings.lpVtbl); + lpVtbl, settings.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller.dart b/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller.dart index 52c7b9f5..392c420c 100644 --- a/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller.dart +++ b/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller.dart @@ -29,7 +29,7 @@ class IAdvancedVideoCaptureDeviceController extends IInspectable { IID_IAdvancedVideoCaptureDeviceController); void setDeviceProperty(String propertyId, Object? propertyValue) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class IAdvancedVideoCaptureDeviceController extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int propertyId, - VTablePointer propertyValue)>()(ptr.ref.lpVtbl, + VTablePointer propertyValue)>()(lpVtbl, propertyId.toHString(), propertyValue?.boxValue().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); @@ -49,7 +49,7 @@ class IAdvancedVideoCaptureDeviceController extends IInspectable { final propertyValue = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -62,7 +62,7 @@ class IAdvancedVideoCaptureDeviceController extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int propertyId, Pointer propertyValue)>()( - ptr.ref.lpVtbl, propertyId.toHString(), propertyValue); + lpVtbl, propertyId.toHString(), propertyValue); if (FAILED(hr)) { free(propertyValue); diff --git a/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller10.dart b/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller10.dart index 4c4a5e39..366da4d8 100644 --- a/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller10.dart +++ b/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller10.dart @@ -34,7 +34,7 @@ class IAdvancedVideoCaptureDeviceController10 extends IInspectable { CameraOcclusionInfo? get cameraOcclusionInfo { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class IAdvancedVideoCaptureDeviceController10 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller11.dart b/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller11.dart index 2b0a333a..4263ccbe 100644 --- a/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller11.dart +++ b/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller11.dart @@ -37,7 +37,7 @@ class IAdvancedVideoCaptureDeviceController11 extends IInspectable { try { final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -51,7 +51,7 @@ class IAdvancedVideoCaptureDeviceController11 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int deviceId, int mode, Pointer result)>()( - ptr.ref.lpVtbl, deviceId.toHString(), mode.value, result); + lpVtbl, deviceId.toHString(), mode.value, result); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller2.dart b/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller2.dart index 87c5dca5..27c44b53 100644 --- a/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller2.dart +++ b/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller2.dart @@ -44,7 +44,7 @@ class IAdvancedVideoCaptureDeviceController2 extends IInspectable { LowLagPhotoSequenceControl? get lowLagPhotoSequence { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -54,7 +54,7 @@ class IAdvancedVideoCaptureDeviceController2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -72,7 +72,7 @@ class IAdvancedVideoCaptureDeviceController2 extends IInspectable { LowLagPhotoControl? get lowLagPhoto { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -82,7 +82,7 @@ class IAdvancedVideoCaptureDeviceController2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -100,7 +100,7 @@ class IAdvancedVideoCaptureDeviceController2 extends IInspectable { SceneModeControl? get sceneModeControl { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -110,7 +110,7 @@ class IAdvancedVideoCaptureDeviceController2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -128,7 +128,7 @@ class IAdvancedVideoCaptureDeviceController2 extends IInspectable { TorchControl? get torchControl { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -138,7 +138,7 @@ class IAdvancedVideoCaptureDeviceController2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -156,7 +156,7 @@ class IAdvancedVideoCaptureDeviceController2 extends IInspectable { FlashControl? get flashControl { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -166,7 +166,7 @@ class IAdvancedVideoCaptureDeviceController2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -184,7 +184,7 @@ class IAdvancedVideoCaptureDeviceController2 extends IInspectable { WhiteBalanceControl? get whiteBalanceControl { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -194,7 +194,7 @@ class IAdvancedVideoCaptureDeviceController2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -212,7 +212,7 @@ class IAdvancedVideoCaptureDeviceController2 extends IInspectable { ExposureControl? get exposureControl { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -222,7 +222,7 @@ class IAdvancedVideoCaptureDeviceController2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -240,7 +240,7 @@ class IAdvancedVideoCaptureDeviceController2 extends IInspectable { FocusControl? get focusControl { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -250,7 +250,7 @@ class IAdvancedVideoCaptureDeviceController2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -268,7 +268,7 @@ class IAdvancedVideoCaptureDeviceController2 extends IInspectable { ExposureCompensationControl? get exposureCompensationControl { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -278,7 +278,7 @@ class IAdvancedVideoCaptureDeviceController2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -296,7 +296,7 @@ class IAdvancedVideoCaptureDeviceController2 extends IInspectable { IsoSpeedControl? get isoSpeedControl { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -306,7 +306,7 @@ class IAdvancedVideoCaptureDeviceController2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -324,7 +324,7 @@ class IAdvancedVideoCaptureDeviceController2 extends IInspectable { RegionsOfInterestControl? get regionsOfInterestControl { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -334,7 +334,7 @@ class IAdvancedVideoCaptureDeviceController2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -353,17 +353,17 @@ class IAdvancedVideoCaptureDeviceController2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -374,7 +374,7 @@ class IAdvancedVideoCaptureDeviceController2 extends IInspectable { } set primaryUse(CaptureUse value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast< Pointer< @@ -382,7 +382,7 @@ class IAdvancedVideoCaptureDeviceController2 extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller3.dart b/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller3.dart index 55d23e72..a17a9236 100644 --- a/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller3.dart +++ b/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller3.dart @@ -35,7 +35,7 @@ class IAdvancedVideoCaptureDeviceController3 extends IInspectable { VariablePhotoSequenceController? get variablePhotoSequenceController { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IAdvancedVideoCaptureDeviceController3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -63,7 +63,7 @@ class IAdvancedVideoCaptureDeviceController3 extends IInspectable { PhotoConfirmationControl? get photoConfirmationControl { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -73,7 +73,7 @@ class IAdvancedVideoCaptureDeviceController3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -91,7 +91,7 @@ class IAdvancedVideoCaptureDeviceController3 extends IInspectable { ZoomControl? get zoomControl { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -101,7 +101,7 @@ class IAdvancedVideoCaptureDeviceController3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller4.dart b/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller4.dart index 06683d32..bad1dba6 100644 --- a/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller4.dart +++ b/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller4.dart @@ -37,7 +37,7 @@ class IAdvancedVideoCaptureDeviceController4 extends IInspectable { ExposurePriorityVideoControl? get exposurePriorityVideoControl { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -47,7 +47,7 @@ class IAdvancedVideoCaptureDeviceController4 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -66,17 +66,17 @@ class IAdvancedVideoCaptureDeviceController4 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -87,7 +87,7 @@ class IAdvancedVideoCaptureDeviceController4 extends IInspectable { } set desiredOptimization(MediaCaptureOptimization value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -95,7 +95,7 @@ class IAdvancedVideoCaptureDeviceController4 extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -103,7 +103,7 @@ class IAdvancedVideoCaptureDeviceController4 extends IInspectable { HdrVideoControl? get hdrVideoControl { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -113,7 +113,7 @@ class IAdvancedVideoCaptureDeviceController4 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -131,7 +131,7 @@ class IAdvancedVideoCaptureDeviceController4 extends IInspectable { OpticalImageStabilizationControl? get opticalImageStabilizationControl { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -141,7 +141,7 @@ class IAdvancedVideoCaptureDeviceController4 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -159,7 +159,7 @@ class IAdvancedVideoCaptureDeviceController4 extends IInspectable { AdvancedPhotoControl? get advancedPhotoControl { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -169,7 +169,7 @@ class IAdvancedVideoCaptureDeviceController4 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller5.dart b/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller5.dart index 59d9db3b..45f3b1c2 100644 --- a/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller5.dart +++ b/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller5.dart @@ -35,7 +35,7 @@ class IAdvancedVideoCaptureDeviceController5 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IAdvancedVideoCaptureDeviceController5 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -59,7 +59,7 @@ class IAdvancedVideoCaptureDeviceController5 extends IInspectable { String propertyId, int? maxPropertyValueSize) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -76,7 +76,7 @@ class IAdvancedVideoCaptureDeviceController5 extends IInspectable { int propertyId, VTablePointer maxPropertyValueSize, Pointer value)>()( - ptr.ref.lpVtbl, + lpVtbl, propertyId.toHString(), maxPropertyValueSize?.toReference(IntType.uint32).lpVtbl ?? nullptr, value); @@ -99,7 +99,7 @@ class IAdvancedVideoCaptureDeviceController5 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -113,7 +113,7 @@ class IAdvancedVideoCaptureDeviceController5 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int propertyId, VTablePointer propertyValue, Pointer value)>()( - ptr.ref.lpVtbl, + lpVtbl, propertyId.toHString(), propertyValue?.boxValue().lpVtbl ?? nullptr, value); @@ -131,7 +131,7 @@ class IAdvancedVideoCaptureDeviceController5 extends IInspectable { final value = calloc(); final extendedPropertyIdArray = extendedPropertyId.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -150,7 +150,7 @@ class IAdvancedVideoCaptureDeviceController5 extends IInspectable { Pointer extendedPropertyId, VTablePointer maxPropertyValueSize, Pointer value)>()( - ptr.ref.lpVtbl, + lpVtbl, extendedPropertyId.length, extendedPropertyIdArray, maxPropertyValueSize?.toReference(IntType.uint32).lpVtbl ?? nullptr, @@ -179,7 +179,7 @@ class IAdvancedVideoCaptureDeviceController5 extends IInspectable { final extendedPropertyIdArray = extendedPropertyId.toArray(); final propertyValueArray = propertyValue.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -200,7 +200,7 @@ class IAdvancedVideoCaptureDeviceController5 extends IInspectable { int propertyValueSize, Pointer propertyValue, Pointer value)>()( - ptr.ref.lpVtbl, + lpVtbl, extendedPropertyId.length, extendedPropertyIdArray, propertyValue.length, diff --git a/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller6.dart b/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller6.dart index fec9f424..0d73d2f3 100644 --- a/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller6.dart +++ b/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller6.dart @@ -33,7 +33,7 @@ class IAdvancedVideoCaptureDeviceController6 extends IInspectable { VideoTemporalDenoisingControl? get videoTemporalDenoisingControl { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IAdvancedVideoCaptureDeviceController6 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller7.dart b/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller7.dart index 4d879d3c..b356bfc4 100644 --- a/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller7.dart +++ b/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller7.dart @@ -33,7 +33,7 @@ class IAdvancedVideoCaptureDeviceController7 extends IInspectable { InfraredTorchControl? get infraredTorchControl { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IAdvancedVideoCaptureDeviceController7 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller8.dart b/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller8.dart index cbae9703..ae812428 100644 --- a/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller8.dart +++ b/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller8.dart @@ -33,7 +33,7 @@ class IAdvancedVideoCaptureDeviceController8 extends IInspectable { PanelBasedOptimizationControl? get panelBasedOptimizationControl { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IAdvancedVideoCaptureDeviceController8 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller9.dart b/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller9.dart index f9467e74..0670d91f 100644 --- a/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller9.dart +++ b/packages/windows_media/lib/src/devices/iadvancedvideocapturedevicecontroller9.dart @@ -33,7 +33,7 @@ class IAdvancedVideoCaptureDeviceController9 extends IInspectable { DigitalWindowControl? get digitalWindowControl { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IAdvancedVideoCaptureDeviceController9 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/devices/iaudiodevicecontroller.dart b/packages/windows_media/lib/src/devices/iaudiodevicecontroller.dart index 0f90c48d..f8a43bfe 100644 --- a/packages/windows_media/lib/src/devices/iaudiodevicecontroller.dart +++ b/packages/windows_media/lib/src/devices/iaudiodevicecontroller.dart @@ -32,7 +32,7 @@ class IAudioDeviceController extends IInspectable IAudioDeviceController.fromPtr, IID_IAudioDeviceController); set muted(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IAudioDeviceController extends IInspectable HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -49,17 +49,17 @@ class IAudioDeviceController extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -70,7 +70,7 @@ class IAudioDeviceController extends IInspectable } set volumePercent(double value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -78,7 +78,7 @@ class IAudioDeviceController extends IInspectable HRESULT Function(VTablePointer lpVtbl, Float value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -87,17 +87,17 @@ class IAudioDeviceController extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/devices/icameraocclusioninfo.dart b/packages/windows_media/lib/src/devices/icameraocclusioninfo.dart index d949856f..64fb8498 100644 --- a/packages/windows_media/lib/src/devices/icameraocclusioninfo.dart +++ b/packages/windows_media/lib/src/devices/icameraocclusioninfo.dart @@ -33,7 +33,7 @@ class ICameraOcclusionInfo extends IInspectable { CameraOcclusionState? getState() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class ICameraOcclusionInfo extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -62,18 +62,17 @@ class ICameraOcclusionInfo extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Int32 occlusionKind, Pointer result)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int occlusionKind, - Pointer result)>()( - ptr.ref.lpVtbl, occlusionKind.value, result); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Int32 occlusionKind, Pointer result)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int occlusionKind, + Pointer result)>()(lpVtbl, occlusionKind.value, result); if (FAILED(hr)) throwWindowsException(hr); @@ -87,18 +86,17 @@ class ICameraOcclusionInfo extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -110,7 +108,7 @@ class ICameraOcclusionInfo extends IInspectable { void remove_StateChanged(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -119,7 +117,7 @@ class ICameraOcclusionInfo extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/devices/icameraocclusionstate.dart b/packages/windows_media/lib/src/devices/icameraocclusionstate.dart index 9d6c5ae0..445bdf0f 100644 --- a/packages/windows_media/lib/src/devices/icameraocclusionstate.dart +++ b/packages/windows_media/lib/src/devices/icameraocclusionstate.dart @@ -32,17 +32,17 @@ class ICameraOcclusionState extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,18 +56,17 @@ class ICameraOcclusionState extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Int32 occlusionKind, Pointer result)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int occlusionKind, - Pointer result)>()( - ptr.ref.lpVtbl, occlusionKind.value, result); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Int32 occlusionKind, Pointer result)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int occlusionKind, + Pointer result)>()(lpVtbl, occlusionKind.value, result); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/devices/idigitalwindowbounds.dart b/packages/windows_media/lib/src/devices/idigitalwindowbounds.dart index 21b2569f..75115c41 100644 --- a/packages/windows_media/lib/src/devices/idigitalwindowbounds.dart +++ b/packages/windows_media/lib/src/devices/idigitalwindowbounds.dart @@ -30,7 +30,7 @@ class IDigitalWindowBounds extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IDigitalWindowBounds extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -52,7 +52,7 @@ class IDigitalWindowBounds extends IInspectable { set normalizedOriginTop(double value) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -61,7 +61,7 @@ class IDigitalWindowBounds extends IInspectable { VTablePointer lpVtbl, Double value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -70,7 +70,7 @@ class IDigitalWindowBounds extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -80,7 +80,7 @@ class IDigitalWindowBounds extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -92,7 +92,7 @@ class IDigitalWindowBounds extends IInspectable { set normalizedOriginLeft(double value) { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -101,7 +101,7 @@ class IDigitalWindowBounds extends IInspectable { VTablePointer lpVtbl, Double value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -110,7 +110,7 @@ class IDigitalWindowBounds extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -120,7 +120,7 @@ class IDigitalWindowBounds extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -132,7 +132,7 @@ class IDigitalWindowBounds extends IInspectable { set scale(double value) { final hr = - ptr.ref.vtable + vtable .elementAt(11) .cast< Pointer< @@ -141,7 +141,7 @@ class IDigitalWindowBounds extends IInspectable { VTablePointer lpVtbl, Double value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/devices/idigitalwindowcapability.dart b/packages/windows_media/lib/src/devices/idigitalwindowcapability.dart index e1bab5c4..9e6f9a87 100644 --- a/packages/windows_media/lib/src/devices/idigitalwindowcapability.dart +++ b/packages/windows_media/lib/src/devices/idigitalwindowcapability.dart @@ -30,17 +30,17 @@ class IDigitalWindowCapability extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,17 +54,17 @@ class IDigitalWindowCapability extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -78,7 +78,7 @@ class IDigitalWindowCapability extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -88,7 +88,7 @@ class IDigitalWindowCapability extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -102,7 +102,7 @@ class IDigitalWindowCapability extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -112,7 +112,7 @@ class IDigitalWindowCapability extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -126,7 +126,7 @@ class IDigitalWindowCapability extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -136,7 +136,7 @@ class IDigitalWindowCapability extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -150,7 +150,7 @@ class IDigitalWindowCapability extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -160,7 +160,7 @@ class IDigitalWindowCapability extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/devices/idigitalwindowcontrol.dart b/packages/windows_media/lib/src/devices/idigitalwindowcontrol.dart index bba27c01..a5f99fdb 100644 --- a/packages/windows_media/lib/src/devices/idigitalwindowcontrol.dart +++ b/packages/windows_media/lib/src/devices/idigitalwindowcontrol.dart @@ -34,17 +34,17 @@ class IDigitalWindowControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -59,20 +59,19 @@ class IDigitalWindowControl extends IInspectable { final value = calloc>(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - Pointer valueSize, - Pointer> value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer valueSize, - Pointer> value)>()( - ptr.ref.lpVtbl, valueSize, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, + Pointer valueSize, + Pointer> value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, Pointer valueSize, + Pointer> value)>()(lpVtbl, valueSize, value); if (FAILED(hr)) throwWindowsException(hr); @@ -88,17 +87,17 @@ class IDigitalWindowControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -111,7 +110,7 @@ class IDigitalWindowControl extends IInspectable { DigitalWindowBounds? getBounds() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -121,7 +120,7 @@ class IDigitalWindowControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -137,7 +136,7 @@ class IDigitalWindowControl extends IInspectable { } void configure(DigitalWindowMode digitalWindowMode) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -147,14 +146,14 @@ class IDigitalWindowControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int digitalWindowMode)>()( - ptr.ref.lpVtbl, digitalWindowMode.value); + lpVtbl, digitalWindowMode.value); if (FAILED(hr)) throwWindowsException(hr); } void configureWithBounds(DigitalWindowMode digitalWindowMode, DigitalWindowBounds? digitalWindowBounds) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -167,7 +166,7 @@ class IDigitalWindowControl extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int digitalWindowMode, VTablePointer digitalWindowBounds)>()( - ptr.ref.lpVtbl, digitalWindowMode.value, digitalWindowBounds.lpVtbl); + lpVtbl, digitalWindowMode.value, digitalWindowBounds.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -175,7 +174,7 @@ class IDigitalWindowControl extends IInspectable { List? get supportedCapabilities { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -185,7 +184,7 @@ class IDigitalWindowControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -206,18 +205,17 @@ class IDigitalWindowControl extends IInspectable { DigitalWindowCapability? getCapabilityForSize(int width, int height) { final result = calloc(); - final hr = ptr.ref.vtable - .elementAt(13) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 width, - Int32 height, Pointer result)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int width, int height, - Pointer result)>()( - ptr.ref.lpVtbl, width, height, result); + final hr = vtable + .elementAt(13) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 width, + Int32 height, Pointer result)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int width, int height, + Pointer result)>()(lpVtbl, width, height, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_media/lib/src/devices/iexposurecompensationcontrol.dart b/packages/windows_media/lib/src/devices/iexposurecompensationcontrol.dart index e5ca55be..a6458638 100644 --- a/packages/windows_media/lib/src/devices/iexposurecompensationcontrol.dart +++ b/packages/windows_media/lib/src/devices/iexposurecompensationcontrol.dart @@ -32,17 +32,17 @@ class IExposureCompensationControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,17 +56,17 @@ class IExposureCompensationControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -80,17 +80,17 @@ class IExposureCompensationControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -104,17 +104,17 @@ class IExposureCompensationControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -128,17 +128,17 @@ class IExposureCompensationControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -151,18 +151,17 @@ class IExposureCompensationControl extends IInspectable { Future setValueAsync(double value) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Float value, - Pointer asyncInfo)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, double value, - Pointer asyncInfo)>()( - ptr.ref.lpVtbl, value, asyncInfo); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Float value, + Pointer asyncInfo)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, double value, + Pointer asyncInfo)>()(lpVtbl, value, asyncInfo); if (FAILED(hr)) { free(asyncInfo); diff --git a/packages/windows_media/lib/src/devices/iexposurecontrol.dart b/packages/windows_media/lib/src/devices/iexposurecontrol.dart index b65740a1..0ea9cfa5 100644 --- a/packages/windows_media/lib/src/devices/iexposurecontrol.dart +++ b/packages/windows_media/lib/src/devices/iexposurecontrol.dart @@ -30,17 +30,17 @@ class IExposureControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,17 +54,17 @@ class IExposureControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -77,18 +77,17 @@ class IExposureControl extends IInspectable { Future setAutoAsync(bool value) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Bool value, - Pointer asyncInfo)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, bool value, - Pointer asyncInfo)>()( - ptr.ref.lpVtbl, value, asyncInfo); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Bool value, + Pointer asyncInfo)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, bool value, + Pointer asyncInfo)>()(lpVtbl, value, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -102,17 +101,17 @@ class IExposureControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -126,17 +125,17 @@ class IExposureControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -150,17 +149,17 @@ class IExposureControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -174,17 +173,17 @@ class IExposureControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(12) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(12) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -197,7 +196,7 @@ class IExposureControl extends IInspectable { Future setValueAsync(Duration shutterDuration) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -210,7 +209,7 @@ class IExposureControl extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int shutterDuration, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, shutterDuration.toWinRTDuration(), asyncInfo); + lpVtbl, shutterDuration.toWinRTDuration(), asyncInfo); if (FAILED(hr)) { free(asyncInfo); diff --git a/packages/windows_media/lib/src/devices/iexposurepriorityvideocontrol.dart b/packages/windows_media/lib/src/devices/iexposurepriorityvideocontrol.dart index 08b18661..6f19e4f2 100644 --- a/packages/windows_media/lib/src/devices/iexposurepriorityvideocontrol.dart +++ b/packages/windows_media/lib/src/devices/iexposurepriorityvideocontrol.dart @@ -32,17 +32,17 @@ class IExposurePriorityVideoControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,17 +56,17 @@ class IExposurePriorityVideoControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -77,7 +77,7 @@ class IExposurePriorityVideoControl extends IInspectable { } set enabled(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -85,7 +85,7 @@ class IExposurePriorityVideoControl extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/devices/iflashcontrol.dart b/packages/windows_media/lib/src/devices/iflashcontrol.dart index 1ab906d7..403a1f4a 100644 --- a/packages/windows_media/lib/src/devices/iflashcontrol.dart +++ b/packages/windows_media/lib/src/devices/iflashcontrol.dart @@ -30,17 +30,17 @@ class IFlashControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,17 +54,17 @@ class IFlashControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -78,17 +78,17 @@ class IFlashControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -102,17 +102,17 @@ class IFlashControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -123,7 +123,7 @@ class IFlashControl extends IInspectable { } set enabled(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -131,7 +131,7 @@ class IFlashControl extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -140,17 +140,17 @@ class IFlashControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -161,7 +161,7 @@ class IFlashControl extends IInspectable { } set auto(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -169,7 +169,7 @@ class IFlashControl extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -178,17 +178,17 @@ class IFlashControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(13) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(13) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -199,7 +199,7 @@ class IFlashControl extends IInspectable { } set redEyeReduction(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -207,7 +207,7 @@ class IFlashControl extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -216,17 +216,17 @@ class IFlashControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(15) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(15) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -237,7 +237,7 @@ class IFlashControl extends IInspectable { } set powerPercent(double value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -245,7 +245,7 @@ class IFlashControl extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Float value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/devices/iflashcontrol2.dart b/packages/windows_media/lib/src/devices/iflashcontrol2.dart index 0060163f..451186d1 100644 --- a/packages/windows_media/lib/src/devices/iflashcontrol2.dart +++ b/packages/windows_media/lib/src/devices/iflashcontrol2.dart @@ -30,17 +30,17 @@ class IFlashControl2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,17 +54,17 @@ class IFlashControl2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -75,7 +75,7 @@ class IFlashControl2 extends IInspectable { } set assistantLightEnabled(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -83,7 +83,7 @@ class IFlashControl2 extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/devices/ifocuscontrol.dart b/packages/windows_media/lib/src/devices/ifocuscontrol.dart index 13a8b2af..f206ca93 100644 --- a/packages/windows_media/lib/src/devices/ifocuscontrol.dart +++ b/packages/windows_media/lib/src/devices/ifocuscontrol.dart @@ -32,17 +32,17 @@ class IFocusControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +55,7 @@ class IFocusControl extends IInspectable { List? get supportedPresets { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -65,7 +65,7 @@ class IFocusControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -87,17 +87,17 @@ class IFocusControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -110,7 +110,7 @@ class IFocusControl extends IInspectable { Future setPresetAsync(FocusPreset preset) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -121,7 +121,7 @@ class IFocusControl extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int preset, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, preset.value, asyncInfo); + lpVtbl, preset.value, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -135,7 +135,7 @@ class IFocusControl extends IInspectable { FocusPreset preset, bool completeBeforeFocus) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -149,7 +149,7 @@ class IFocusControl extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int preset, bool completeBeforeFocus, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, preset.value, completeBeforeFocus, asyncInfo); + lpVtbl, preset.value, completeBeforeFocus, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -163,7 +163,7 @@ class IFocusControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -173,7 +173,7 @@ class IFocusControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -187,7 +187,7 @@ class IFocusControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -197,7 +197,7 @@ class IFocusControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -211,7 +211,7 @@ class IFocusControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -221,7 +221,7 @@ class IFocusControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -235,7 +235,7 @@ class IFocusControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -245,7 +245,7 @@ class IFocusControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -258,18 +258,17 @@ class IFocusControl extends IInspectable { Future setValueAsync(int focus) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable - .elementAt(15) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 focus, - Pointer asyncInfo)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int focus, - Pointer asyncInfo)>()( - ptr.ref.lpVtbl, focus, asyncInfo); + final hr = vtable + .elementAt(15) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 focus, + Pointer asyncInfo)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int focus, + Pointer asyncInfo)>()(lpVtbl, focus, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -282,7 +281,7 @@ class IFocusControl extends IInspectable { Future focusAsync() { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -292,7 +291,7 @@ class IFocusControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer asyncInfo)>()(ptr.ref.lpVtbl, asyncInfo); + Pointer asyncInfo)>()(lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); diff --git a/packages/windows_media/lib/src/devices/ifocuscontrol2.dart b/packages/windows_media/lib/src/devices/ifocuscontrol2.dart index 33491c8e..9c08efe9 100644 --- a/packages/windows_media/lib/src/devices/ifocuscontrol2.dart +++ b/packages/windows_media/lib/src/devices/ifocuscontrol2.dart @@ -36,17 +36,17 @@ class IFocusControl2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -60,17 +60,17 @@ class IFocusControl2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -83,7 +83,7 @@ class IFocusControl2 extends IInspectable { List? get supportedFocusModes { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -93,7 +93,7 @@ class IFocusControl2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -114,7 +114,7 @@ class IFocusControl2 extends IInspectable { List? get supportedFocusDistances { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -124,7 +124,7 @@ class IFocusControl2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -145,7 +145,7 @@ class IFocusControl2 extends IInspectable { List? get supportedFocusRanges { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -155,7 +155,7 @@ class IFocusControl2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -177,17 +177,17 @@ class IFocusControl2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -201,17 +201,17 @@ class IFocusControl2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(12) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(12) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -224,7 +224,7 @@ class IFocusControl2 extends IInspectable { Future unlockAsync() { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -234,7 +234,7 @@ class IFocusControl2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer asyncInfo)>()(ptr.ref.lpVtbl, asyncInfo); + Pointer asyncInfo)>()(lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -247,7 +247,7 @@ class IFocusControl2 extends IInspectable { Future lockAsync() { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -257,7 +257,7 @@ class IFocusControl2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer asyncInfo)>()(ptr.ref.lpVtbl, asyncInfo); + Pointer asyncInfo)>()(lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -268,7 +268,7 @@ class IFocusControl2 extends IInspectable { } void configure(FocusSettings? settings) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -278,7 +278,7 @@ class IFocusControl2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer settings)>()( - ptr.ref.lpVtbl, settings.lpVtbl); + lpVtbl, settings.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/devices/ifocussettings.dart b/packages/windows_media/lib/src/devices/ifocussettings.dart index 99f2b07d..45b8efc1 100644 --- a/packages/windows_media/lib/src/devices/ifocussettings.dart +++ b/packages/windows_media/lib/src/devices/ifocussettings.dart @@ -34,17 +34,17 @@ class IFocusSettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +55,7 @@ class IFocusSettings extends IInspectable { } set mode(FocusMode value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -63,7 +63,7 @@ class IFocusSettings extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -72,17 +72,17 @@ class IFocusSettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -93,7 +93,7 @@ class IFocusSettings extends IInspectable { } set autoFocusRange(AutoFocusRange value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -101,7 +101,7 @@ class IFocusSettings extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -109,7 +109,7 @@ class IFocusSettings extends IInspectable { int? get value { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -119,7 +119,7 @@ class IFocusSettings extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -137,7 +137,7 @@ class IFocusSettings extends IInspectable { } set value(int? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -147,7 +147,7 @@ class IFocusSettings extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toReference(IntType.uint32).lpVtbl ?? nullptr); + lpVtbl, value?.toReference(IntType.uint32).lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @@ -155,7 +155,7 @@ class IFocusSettings extends IInspectable { ManualFocusDistance? get distance { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -165,7 +165,7 @@ class IFocusSettings extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -184,7 +184,7 @@ class IFocusSettings extends IInspectable { } set distance(ManualFocusDistance? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -194,7 +194,7 @@ class IFocusSettings extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toReference().lpVtbl ?? nullptr); + lpVtbl, value?.toReference().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @@ -203,17 +203,17 @@ class IFocusSettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(14) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(14) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -224,7 +224,7 @@ class IFocusSettings extends IInspectable { } set waitForFocus(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -232,7 +232,7 @@ class IFocusSettings extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -241,17 +241,17 @@ class IFocusSettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(16) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(16) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -262,7 +262,7 @@ class IFocusSettings extends IInspectable { } set disableDriverFallback(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -270,7 +270,7 @@ class IFocusSettings extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/devices/ihdrvideocontrol.dart b/packages/windows_media/lib/src/devices/ihdrvideocontrol.dart index 1d1cc33b..75cf8106 100644 --- a/packages/windows_media/lib/src/devices/ihdrvideocontrol.dart +++ b/packages/windows_media/lib/src/devices/ihdrvideocontrol.dart @@ -32,17 +32,17 @@ class IHdrVideoControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +55,7 @@ class IHdrVideoControl extends IInspectable { List? get supportedModes { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -65,7 +65,7 @@ class IHdrVideoControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -87,17 +87,17 @@ class IHdrVideoControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -108,7 +108,7 @@ class IHdrVideoControl extends IInspectable { } set mode(HdrVideoMode value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -116,7 +116,7 @@ class IHdrVideoControl extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/devices/iinfraredtorchcontrol.dart b/packages/windows_media/lib/src/devices/iinfraredtorchcontrol.dart index 07a718c3..d4313fd5 100644 --- a/packages/windows_media/lib/src/devices/iinfraredtorchcontrol.dart +++ b/packages/windows_media/lib/src/devices/iinfraredtorchcontrol.dart @@ -32,17 +32,17 @@ class IInfraredTorchControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +55,7 @@ class IInfraredTorchControl extends IInspectable { List? get supportedModes { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -65,7 +65,7 @@ class IInfraredTorchControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -87,17 +87,17 @@ class IInfraredTorchControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -108,7 +108,7 @@ class IInfraredTorchControl extends IInspectable { } set currentMode(InfraredTorchMode value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -116,7 +116,7 @@ class IInfraredTorchControl extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -125,17 +125,17 @@ class IInfraredTorchControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -149,17 +149,17 @@ class IInfraredTorchControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -173,17 +173,17 @@ class IInfraredTorchControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(12) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(12) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -197,17 +197,17 @@ class IInfraredTorchControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(13) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(13) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -218,7 +218,7 @@ class IInfraredTorchControl extends IInspectable { } set power(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -226,7 +226,7 @@ class IInfraredTorchControl extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/devices/iisospeedcontrol.dart b/packages/windows_media/lib/src/devices/iisospeedcontrol.dart index 138bd9c5..18ef8255 100644 --- a/packages/windows_media/lib/src/devices/iisospeedcontrol.dart +++ b/packages/windows_media/lib/src/devices/iisospeedcontrol.dart @@ -32,17 +32,17 @@ class IIsoSpeedControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -57,7 +57,7 @@ class IIsoSpeedControl extends IInspectable { List? get supportedPresets { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -67,7 +67,7 @@ class IIsoSpeedControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -91,17 +91,17 @@ class IIsoSpeedControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -116,7 +116,7 @@ class IIsoSpeedControl extends IInspectable { Future setPresetAsync(IsoSpeedPreset preset) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -127,7 +127,7 @@ class IIsoSpeedControl extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int preset, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, preset.value, asyncInfo); + lpVtbl, preset.value, asyncInfo); if (FAILED(hr)) { free(asyncInfo); diff --git a/packages/windows_media/lib/src/devices/iisospeedcontrol2.dart b/packages/windows_media/lib/src/devices/iisospeedcontrol2.dart index 9d2e900c..4c845b7a 100644 --- a/packages/windows_media/lib/src/devices/iisospeedcontrol2.dart +++ b/packages/windows_media/lib/src/devices/iisospeedcontrol2.dart @@ -30,7 +30,7 @@ class IIsoSpeedControl2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IIsoSpeedControl2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IIsoSpeedControl2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IIsoSpeedControl2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -78,7 +78,7 @@ class IIsoSpeedControl2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -88,7 +88,7 @@ class IIsoSpeedControl2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -102,7 +102,7 @@ class IIsoSpeedControl2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -112,7 +112,7 @@ class IIsoSpeedControl2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -125,18 +125,17 @@ class IIsoSpeedControl2 extends IInspectable { Future setValueAsync(int isoSpeed) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 isoSpeed, - Pointer asyncInfo)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int isoSpeed, - Pointer asyncInfo)>()( - ptr.ref.lpVtbl, isoSpeed, asyncInfo); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 isoSpeed, + Pointer asyncInfo)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int isoSpeed, + Pointer asyncInfo)>()(lpVtbl, isoSpeed, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -150,17 +149,17 @@ class IIsoSpeedControl2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -173,7 +172,7 @@ class IIsoSpeedControl2 extends IInspectable { Future setAutoAsync() { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -183,7 +182,7 @@ class IIsoSpeedControl2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer asyncInfo)>()(ptr.ref.lpVtbl, asyncInfo); + Pointer asyncInfo)>()(lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); diff --git a/packages/windows_media/lib/src/devices/ilowlagphotocontrol.dart b/packages/windows_media/lib/src/devices/ilowlagphotocontrol.dart index e7055f4d..3d1107d4 100644 --- a/packages/windows_media/lib/src/devices/ilowlagphotocontrol.dart +++ b/packages/windows_media/lib/src/devices/ilowlagphotocontrol.dart @@ -34,7 +34,7 @@ class ILowLagPhotoControl extends IInspectable { IMediaEncodingProperties? captureProperties) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -49,7 +49,7 @@ class ILowLagPhotoControl extends IInspectable { VTablePointer lpVtbl, VTablePointer captureProperties, Pointer value)>()( - ptr.ref.lpVtbl, captureProperties.lpVtbl, value); + lpVtbl, captureProperties.lpVtbl, value); if (FAILED(hr)) { free(value); @@ -67,7 +67,7 @@ class ILowLagPhotoControl extends IInspectable { MediaRatio? getCurrentFrameRate() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -77,7 +77,7 @@ class ILowLagPhotoControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -96,17 +96,17 @@ class ILowLagPhotoControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -117,7 +117,7 @@ class ILowLagPhotoControl extends IInspectable { } set thumbnailEnabled(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -125,7 +125,7 @@ class ILowLagPhotoControl extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -134,17 +134,17 @@ class ILowLagPhotoControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -155,7 +155,7 @@ class ILowLagPhotoControl extends IInspectable { } set thumbnailFormat(MediaThumbnailFormat value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -163,7 +163,7 @@ class ILowLagPhotoControl extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -172,7 +172,7 @@ class ILowLagPhotoControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -182,7 +182,7 @@ class ILowLagPhotoControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -194,7 +194,7 @@ class ILowLagPhotoControl extends IInspectable { set desiredThumbnailSize(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(13) .cast< Pointer< @@ -203,7 +203,7 @@ class ILowLagPhotoControl extends IInspectable { VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -212,7 +212,7 @@ class ILowLagPhotoControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -222,7 +222,7 @@ class ILowLagPhotoControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/devices/ilowlagphotosequencecontrol.dart b/packages/windows_media/lib/src/devices/ilowlagphotosequencecontrol.dart index b9cd155e..4dc12fa8 100644 --- a/packages/windows_media/lib/src/devices/ilowlagphotosequencecontrol.dart +++ b/packages/windows_media/lib/src/devices/ilowlagphotosequencecontrol.dart @@ -36,17 +36,17 @@ class ILowLagPhotoSequenceControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -60,7 +60,7 @@ class ILowLagPhotoSequenceControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -70,7 +70,7 @@ class ILowLagPhotoSequenceControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -84,17 +84,17 @@ class ILowLagPhotoSequenceControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -108,7 +108,7 @@ class ILowLagPhotoSequenceControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -118,7 +118,7 @@ class ILowLagPhotoSequenceControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -130,7 +130,7 @@ class ILowLagPhotoSequenceControl extends IInspectable { set pastPhotoLimit(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -139,7 +139,7 @@ class ILowLagPhotoSequenceControl extends IInspectable { VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -148,17 +148,17 @@ class ILowLagPhotoSequenceControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -169,7 +169,7 @@ class ILowLagPhotoSequenceControl extends IInspectable { } set photosPerSecondLimit(double value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -177,7 +177,7 @@ class ILowLagPhotoSequenceControl extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Float value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -186,7 +186,7 @@ class ILowLagPhotoSequenceControl extends IInspectable { IMediaEncodingProperties? captureProperties) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -201,7 +201,7 @@ class ILowLagPhotoSequenceControl extends IInspectable { VTablePointer lpVtbl, VTablePointer captureProperties, Pointer value)>()( - ptr.ref.lpVtbl, captureProperties.lpVtbl, value); + lpVtbl, captureProperties.lpVtbl, value); if (FAILED(hr)) { free(value); @@ -219,7 +219,7 @@ class ILowLagPhotoSequenceControl extends IInspectable { MediaRatio? getCurrentFrameRate() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -229,7 +229,7 @@ class ILowLagPhotoSequenceControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -248,17 +248,17 @@ class ILowLagPhotoSequenceControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(15) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(15) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -269,7 +269,7 @@ class ILowLagPhotoSequenceControl extends IInspectable { } set thumbnailEnabled(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -277,7 +277,7 @@ class ILowLagPhotoSequenceControl extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -286,17 +286,17 @@ class ILowLagPhotoSequenceControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -307,7 +307,7 @@ class ILowLagPhotoSequenceControl extends IInspectable { } set thumbnailFormat(MediaThumbnailFormat value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast< Pointer< @@ -315,7 +315,7 @@ class ILowLagPhotoSequenceControl extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -324,7 +324,7 @@ class ILowLagPhotoSequenceControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(19) .cast< Pointer< @@ -334,7 +334,7 @@ class ILowLagPhotoSequenceControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -346,7 +346,7 @@ class ILowLagPhotoSequenceControl extends IInspectable { set desiredThumbnailSize(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(20) .cast< Pointer< @@ -355,7 +355,7 @@ class ILowLagPhotoSequenceControl extends IInspectable { VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -364,7 +364,7 @@ class ILowLagPhotoSequenceControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(21) .cast< Pointer< @@ -374,7 +374,7 @@ class ILowLagPhotoSequenceControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/devices/imediadevicecontrol.dart b/packages/windows_media/lib/src/devices/imediadevicecontrol.dart index 439b4122..91a244a9 100644 --- a/packages/windows_media/lib/src/devices/imediadevicecontrol.dart +++ b/packages/windows_media/lib/src/devices/imediadevicecontrol.dart @@ -31,7 +31,7 @@ class IMediaDeviceControl extends IInspectable { MediaDeviceControlCapabilities? get capabilities { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IMediaDeviceControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -61,7 +61,7 @@ class IMediaDeviceControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -71,7 +71,7 @@ class IMediaDeviceControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value, - Pointer succeeded)>()(ptr.ref.lpVtbl, value, succeeded); + Pointer succeeded)>()(lpVtbl, value, succeeded); if (FAILED(hr)) throwWindowsException(hr); @@ -86,7 +86,7 @@ class IMediaDeviceControl extends IInspectable { final succeeded = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -96,7 +96,7 @@ class IMediaDeviceControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, double value, - Pointer succeeded)>()(ptr.ref.lpVtbl, value, succeeded); + Pointer succeeded)>()(lpVtbl, value, succeeded); if (FAILED(hr)) throwWindowsException(hr); @@ -111,7 +111,7 @@ class IMediaDeviceControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -121,7 +121,7 @@ class IMediaDeviceControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value, - Pointer succeeded)>()(ptr.ref.lpVtbl, value, succeeded); + Pointer succeeded)>()(lpVtbl, value, succeeded); if (FAILED(hr)) throwWindowsException(hr); @@ -136,7 +136,7 @@ class IMediaDeviceControl extends IInspectable { final succeeded = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -146,7 +146,7 @@ class IMediaDeviceControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, bool value, - Pointer succeeded)>()(ptr.ref.lpVtbl, value, succeeded); + Pointer succeeded)>()(lpVtbl, value, succeeded); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/devices/imediadevicecontrolcapabilities.dart b/packages/windows_media/lib/src/devices/imediadevicecontrolcapabilities.dart index 8bfba253..275c59f5 100644 --- a/packages/windows_media/lib/src/devices/imediadevicecontrolcapabilities.dart +++ b/packages/windows_media/lib/src/devices/imediadevicecontrolcapabilities.dart @@ -32,17 +32,17 @@ class IMediaDeviceControlCapabilities extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class IMediaDeviceControlCapabilities extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class IMediaDeviceControlCapabilities extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -80,7 +80,7 @@ class IMediaDeviceControlCapabilities extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -90,7 +90,7 @@ class IMediaDeviceControlCapabilities extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -104,7 +104,7 @@ class IMediaDeviceControlCapabilities extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -114,7 +114,7 @@ class IMediaDeviceControlCapabilities extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -128,7 +128,7 @@ class IMediaDeviceControlCapabilities extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -138,7 +138,7 @@ class IMediaDeviceControlCapabilities extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -152,17 +152,17 @@ class IMediaDeviceControlCapabilities extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/devices/imediadevicecontroller.dart b/packages/windows_media/lib/src/devices/imediadevicecontroller.dart index 54cea85b..8c5ec1ca 100644 --- a/packages/windows_media/lib/src/devices/imediadevicecontroller.dart +++ b/packages/windows_media/lib/src/devices/imediadevicecontroller.dart @@ -34,7 +34,7 @@ class IMediaDeviceController extends IInspectable { final value = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -47,7 +47,7 @@ class IMediaDeviceController extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int mediaStreamType, Pointer value)>()( - ptr.ref.lpVtbl, mediaStreamType.value, value); + lpVtbl, mediaStreamType.value, value); if (FAILED(hr)) { free(value); @@ -65,7 +65,7 @@ class IMediaDeviceController extends IInspectable { final value = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -78,7 +78,7 @@ class IMediaDeviceController extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int mediaStreamType, Pointer value)>()( - ptr.ref.lpVtbl, mediaStreamType.value, value); + lpVtbl, mediaStreamType.value, value); if (FAILED(hr)) { free(value); @@ -97,7 +97,7 @@ class IMediaDeviceController extends IInspectable { IMediaEncodingProperties? mediaEncodingProperties) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -113,7 +113,7 @@ class IMediaDeviceController extends IInspectable { VTablePointer lpVtbl, int mediaStreamType, VTablePointer mediaEncodingProperties, - Pointer asyncInfo)>()(ptr.ref.lpVtbl, + Pointer asyncInfo)>()(lpVtbl, mediaStreamType.value, mediaEncodingProperties.lpVtbl, asyncInfo); if (FAILED(hr)) { diff --git a/packages/windows_media/lib/src/devices/iopticalimagestabilizationcontrol.dart b/packages/windows_media/lib/src/devices/iopticalimagestabilizationcontrol.dart index 72cdab7f..6777ca30 100644 --- a/packages/windows_media/lib/src/devices/iopticalimagestabilizationcontrol.dart +++ b/packages/windows_media/lib/src/devices/iopticalimagestabilizationcontrol.dart @@ -34,17 +34,17 @@ class IOpticalImageStabilizationControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -57,7 +57,7 @@ class IOpticalImageStabilizationControl extends IInspectable { List? get supportedModes { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -67,7 +67,7 @@ class IOpticalImageStabilizationControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -89,17 +89,17 @@ class IOpticalImageStabilizationControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -110,7 +110,7 @@ class IOpticalImageStabilizationControl extends IInspectable { } set mode(OpticalImageStabilizationMode value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -118,7 +118,7 @@ class IOpticalImageStabilizationControl extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/devices/ipanelbasedoptimizationcontrol.dart b/packages/windows_media/lib/src/devices/ipanelbasedoptimizationcontrol.dart index 9d23dd77..7cb8bebb 100644 --- a/packages/windows_media/lib/src/devices/ipanelbasedoptimizationcontrol.dart +++ b/packages/windows_media/lib/src/devices/ipanelbasedoptimizationcontrol.dart @@ -33,17 +33,17 @@ class IPanelBasedOptimizationControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -57,17 +57,17 @@ class IPanelBasedOptimizationControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -78,7 +78,7 @@ class IPanelBasedOptimizationControl extends IInspectable { } set panel(Panel value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -86,7 +86,7 @@ class IPanelBasedOptimizationControl extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/devices/iphotoconfirmationcontrol.dart b/packages/windows_media/lib/src/devices/iphotoconfirmationcontrol.dart index 0f030e0d..582dd228 100644 --- a/packages/windows_media/lib/src/devices/iphotoconfirmationcontrol.dart +++ b/packages/windows_media/lib/src/devices/iphotoconfirmationcontrol.dart @@ -32,7 +32,7 @@ class IPhotoConfirmationControl extends IInspectable { final pbSupported = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IPhotoConfirmationControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer pbSupported)>()(ptr.ref.lpVtbl, pbSupported); + Pointer pbSupported)>()(lpVtbl, pbSupported); if (FAILED(hr)) throwWindowsException(hr); @@ -56,17 +56,17 @@ class IPhotoConfirmationControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -77,7 +77,7 @@ class IPhotoConfirmationControl extends IInspectable { } set enabled(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -85,7 +85,7 @@ class IPhotoConfirmationControl extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -94,7 +94,7 @@ class IPhotoConfirmationControl extends IInspectable { final format = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -104,7 +104,7 @@ class IPhotoConfirmationControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer format)>()( - ptr.ref.lpVtbl, format); + lpVtbl, format); if (FAILED(hr)) throwWindowsException(hr); @@ -116,7 +116,7 @@ class IPhotoConfirmationControl extends IInspectable { set pixelFormat(MediaPixelFormat format) { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -125,7 +125,7 @@ class IPhotoConfirmationControl extends IInspectable { VTablePointer lpVtbl, Int32 format)>>>() .value .asFunction()( - ptr.ref.lpVtbl, format.value); + lpVtbl, format.value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/devices/iregionofinterest.dart b/packages/windows_media/lib/src/devices/iregionofinterest.dart index af91881b..397a02f9 100644 --- a/packages/windows_media/lib/src/devices/iregionofinterest.dart +++ b/packages/windows_media/lib/src/devices/iregionofinterest.dart @@ -30,17 +30,17 @@ class IRegionOfInterest extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -51,7 +51,7 @@ class IRegionOfInterest extends IInspectable { } set autoFocusEnabled(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -59,7 +59,7 @@ class IRegionOfInterest extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -68,17 +68,17 @@ class IRegionOfInterest extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -89,7 +89,7 @@ class IRegionOfInterest extends IInspectable { } set autoWhiteBalanceEnabled(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -97,7 +97,7 @@ class IRegionOfInterest extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -106,17 +106,17 @@ class IRegionOfInterest extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -127,7 +127,7 @@ class IRegionOfInterest extends IInspectable { } set autoExposureEnabled(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -135,7 +135,7 @@ class IRegionOfInterest extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -144,7 +144,7 @@ class IRegionOfInterest extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -154,7 +154,7 @@ class IRegionOfInterest extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -167,7 +167,7 @@ class IRegionOfInterest extends IInspectable { set bounds(Rect value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -176,7 +176,7 @@ class IRegionOfInterest extends IInspectable { VTablePointer lpVtbl, NativeRect value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); diff --git a/packages/windows_media/lib/src/devices/iregionofinterest2.dart b/packages/windows_media/lib/src/devices/iregionofinterest2.dart index 36dce77d..2cb11205 100644 --- a/packages/windows_media/lib/src/devices/iregionofinterest2.dart +++ b/packages/windows_media/lib/src/devices/iregionofinterest2.dart @@ -32,17 +32,17 @@ class IRegionOfInterest2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -53,7 +53,7 @@ class IRegionOfInterest2 extends IInspectable { } set type(RegionOfInterestType value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -61,7 +61,7 @@ class IRegionOfInterest2 extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -70,17 +70,17 @@ class IRegionOfInterest2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -91,7 +91,7 @@ class IRegionOfInterest2 extends IInspectable { } set boundsNormalized(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -99,7 +99,7 @@ class IRegionOfInterest2 extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -108,7 +108,7 @@ class IRegionOfInterest2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -118,7 +118,7 @@ class IRegionOfInterest2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -130,7 +130,7 @@ class IRegionOfInterest2 extends IInspectable { set weight(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(11) .cast< Pointer< @@ -139,7 +139,7 @@ class IRegionOfInterest2 extends IInspectable { VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/devices/iregionsofinterestcontrol.dart b/packages/windows_media/lib/src/devices/iregionsofinterestcontrol.dart index 94219944..3ba559c7 100644 --- a/packages/windows_media/lib/src/devices/iregionsofinterestcontrol.dart +++ b/packages/windows_media/lib/src/devices/iregionsofinterestcontrol.dart @@ -32,7 +32,7 @@ class IRegionsOfInterestControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IRegionsOfInterestControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +55,7 @@ class IRegionsOfInterestControl extends IInspectable { Future setRegionsAsync(IIterable? regions) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,7 +68,7 @@ class IRegionsOfInterestControl extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer regions, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, regions.lpVtbl, asyncInfo); + lpVtbl, regions.lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -82,7 +82,7 @@ class IRegionsOfInterestControl extends IInspectable { IIterable? regions, bool lockValues) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -96,7 +96,7 @@ class IRegionsOfInterestControl extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer regions, bool lockValues, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, regions.lpVtbl, lockValues, asyncInfo); + lpVtbl, regions.lpVtbl, lockValues, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -109,7 +109,7 @@ class IRegionsOfInterestControl extends IInspectable { Future clearRegionsAsync() { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -119,7 +119,7 @@ class IRegionsOfInterestControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer asyncInfo)>()(ptr.ref.lpVtbl, asyncInfo); + Pointer asyncInfo)>()(lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -133,17 +133,17 @@ class IRegionsOfInterestControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -157,17 +157,17 @@ class IRegionsOfInterestControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -181,17 +181,17 @@ class IRegionsOfInterestControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(12) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(12) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/devices/iscenemodecontrol.dart b/packages/windows_media/lib/src/devices/iscenemodecontrol.dart index 44caa153..5bfb207f 100644 --- a/packages/windows_media/lib/src/devices/iscenemodecontrol.dart +++ b/packages/windows_media/lib/src/devices/iscenemodecontrol.dart @@ -31,7 +31,7 @@ class ISceneModeControl extends IInspectable { List? get supportedModes { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class ISceneModeControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -63,17 +63,17 @@ class ISceneModeControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -86,7 +86,7 @@ class ISceneModeControl extends IInspectable { Future setValueAsync(CaptureSceneMode sceneMode) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -97,7 +97,7 @@ class ISceneModeControl extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int sceneMode, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, sceneMode.value, asyncInfo); + lpVtbl, sceneMode.value, asyncInfo); if (FAILED(hr)) { free(asyncInfo); diff --git a/packages/windows_media/lib/src/devices/itorchcontrol.dart b/packages/windows_media/lib/src/devices/itorchcontrol.dart index 839c57ff..9de2857e 100644 --- a/packages/windows_media/lib/src/devices/itorchcontrol.dart +++ b/packages/windows_media/lib/src/devices/itorchcontrol.dart @@ -30,17 +30,17 @@ class ITorchControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,17 +54,17 @@ class ITorchControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -78,17 +78,17 @@ class ITorchControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -99,7 +99,7 @@ class ITorchControl extends IInspectable { } set enabled(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -107,7 +107,7 @@ class ITorchControl extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -116,17 +116,17 @@ class ITorchControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -137,7 +137,7 @@ class ITorchControl extends IInspectable { } set powerPercent(double value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -145,7 +145,7 @@ class ITorchControl extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Float value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/devices/ivideodevicecontroller.dart b/packages/windows_media/lib/src/devices/ivideodevicecontroller.dart index 78e65e0e..633f584c 100644 --- a/packages/windows_media/lib/src/devices/ivideodevicecontroller.dart +++ b/packages/windows_media/lib/src/devices/ivideodevicecontroller.dart @@ -36,7 +36,7 @@ class IVideoDeviceController extends IInspectable MediaDeviceControl? get brightness { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -46,7 +46,7 @@ class IVideoDeviceController extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -64,7 +64,7 @@ class IVideoDeviceController extends IInspectable MediaDeviceControl? get contrast { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -74,7 +74,7 @@ class IVideoDeviceController extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -92,7 +92,7 @@ class IVideoDeviceController extends IInspectable MediaDeviceControl? get hue { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -102,7 +102,7 @@ class IVideoDeviceController extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -120,7 +120,7 @@ class IVideoDeviceController extends IInspectable MediaDeviceControl? get whiteBalance { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -130,7 +130,7 @@ class IVideoDeviceController extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -148,7 +148,7 @@ class IVideoDeviceController extends IInspectable MediaDeviceControl? get backlightCompensation { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -158,7 +158,7 @@ class IVideoDeviceController extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -176,7 +176,7 @@ class IVideoDeviceController extends IInspectable MediaDeviceControl? get pan { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -186,7 +186,7 @@ class IVideoDeviceController extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -204,7 +204,7 @@ class IVideoDeviceController extends IInspectable MediaDeviceControl? get tilt { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -214,7 +214,7 @@ class IVideoDeviceController extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -232,7 +232,7 @@ class IVideoDeviceController extends IInspectable MediaDeviceControl? get zoom { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -242,7 +242,7 @@ class IVideoDeviceController extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -260,7 +260,7 @@ class IVideoDeviceController extends IInspectable MediaDeviceControl? get roll { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -270,7 +270,7 @@ class IVideoDeviceController extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -288,7 +288,7 @@ class IVideoDeviceController extends IInspectable MediaDeviceControl? get exposure { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -298,7 +298,7 @@ class IVideoDeviceController extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -316,7 +316,7 @@ class IVideoDeviceController extends IInspectable MediaDeviceControl? get focus { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -326,7 +326,7 @@ class IVideoDeviceController extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -345,18 +345,17 @@ class IVideoDeviceController extends IInspectable final succeeded = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 value, - Pointer succeeded)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int value, - Pointer succeeded)>()( - ptr.ref.lpVtbl, value.value, succeeded); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 value, + Pointer succeeded)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int value, + Pointer succeeded)>()(lpVtbl, value.value, succeeded); if (FAILED(hr)) throwWindowsException(hr); @@ -371,7 +370,7 @@ class IVideoDeviceController extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast< Pointer< @@ -381,7 +380,7 @@ class IVideoDeviceController extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value, - Pointer succeeded)>()(ptr.ref.lpVtbl, value, succeeded); + Pointer succeeded)>()(lpVtbl, value, succeeded); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/devices/ivideodevicecontrollergetdevicepropertyresult.dart b/packages/windows_media/lib/src/devices/ivideodevicecontrollergetdevicepropertyresult.dart index e380f61d..494936a8 100644 --- a/packages/windows_media/lib/src/devices/ivideodevicecontrollergetdevicepropertyresult.dart +++ b/packages/windows_media/lib/src/devices/ivideodevicecontrollergetdevicepropertyresult.dart @@ -35,17 +35,17 @@ class IVideoDeviceControllerGetDevicePropertyResult extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -58,7 +58,7 @@ class IVideoDeviceControllerGetDevicePropertyResult extends IInspectable { Object? get value { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,7 +68,7 @@ class IVideoDeviceControllerGetDevicePropertyResult extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/devices/ivideotemporaldenoisingcontrol.dart b/packages/windows_media/lib/src/devices/ivideotemporaldenoisingcontrol.dart index 55c41cea..f175155d 100644 --- a/packages/windows_media/lib/src/devices/ivideotemporaldenoisingcontrol.dart +++ b/packages/windows_media/lib/src/devices/ivideotemporaldenoisingcontrol.dart @@ -34,17 +34,17 @@ class IVideoTemporalDenoisingControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -57,7 +57,7 @@ class IVideoTemporalDenoisingControl extends IInspectable { List? get supportedModes { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -67,7 +67,7 @@ class IVideoTemporalDenoisingControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -89,17 +89,17 @@ class IVideoTemporalDenoisingControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -110,7 +110,7 @@ class IVideoTemporalDenoisingControl extends IInspectable { } set mode(VideoTemporalDenoisingMode value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -118,7 +118,7 @@ class IVideoTemporalDenoisingControl extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/devices/iwhitebalancecontrol.dart b/packages/windows_media/lib/src/devices/iwhitebalancecontrol.dart index e005131e..5f09edfd 100644 --- a/packages/windows_media/lib/src/devices/iwhitebalancecontrol.dart +++ b/packages/windows_media/lib/src/devices/iwhitebalancecontrol.dart @@ -32,17 +32,17 @@ class IWhiteBalanceControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,17 +56,17 @@ class IWhiteBalanceControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -79,7 +79,7 @@ class IWhiteBalanceControl extends IInspectable { Future setPresetAsync(ColorTemperaturePreset preset) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -90,7 +90,7 @@ class IWhiteBalanceControl extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int preset, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, preset.value, asyncInfo); + lpVtbl, preset.value, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -104,7 +104,7 @@ class IWhiteBalanceControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -114,7 +114,7 @@ class IWhiteBalanceControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -128,7 +128,7 @@ class IWhiteBalanceControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -138,7 +138,7 @@ class IWhiteBalanceControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -152,7 +152,7 @@ class IWhiteBalanceControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -162,7 +162,7 @@ class IWhiteBalanceControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -176,7 +176,7 @@ class IWhiteBalanceControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -186,7 +186,7 @@ class IWhiteBalanceControl extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -200,7 +200,7 @@ class IWhiteBalanceControl extends IInspectable { final asyncInfo = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(13) .cast< Pointer< @@ -213,7 +213,7 @@ class IWhiteBalanceControl extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int temperature, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, temperature, asyncInfo); + lpVtbl, temperature, asyncInfo); if (FAILED(hr)) { free(asyncInfo); diff --git a/packages/windows_media/lib/src/devices/izoomcontrol.dart b/packages/windows_media/lib/src/devices/izoomcontrol.dart index c8a9a760..29857d80 100644 --- a/packages/windows_media/lib/src/devices/izoomcontrol.dart +++ b/packages/windows_media/lib/src/devices/izoomcontrol.dart @@ -30,17 +30,17 @@ class IZoomControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,17 +54,17 @@ class IZoomControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -78,17 +78,17 @@ class IZoomControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -102,17 +102,17 @@ class IZoomControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -126,17 +126,17 @@ class IZoomControl extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -147,7 +147,7 @@ class IZoomControl extends IInspectable { } set value(double value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -155,7 +155,7 @@ class IZoomControl extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Float value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/devices/izoomcontrol2.dart b/packages/windows_media/lib/src/devices/izoomcontrol2.dart index e3452d52..ce68a5fd 100644 --- a/packages/windows_media/lib/src/devices/izoomcontrol2.dart +++ b/packages/windows_media/lib/src/devices/izoomcontrol2.dart @@ -32,7 +32,7 @@ class IZoomControl2 extends IInspectable { List? get supportedModes { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IZoomControl2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -64,17 +64,17 @@ class IZoomControl2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -85,7 +85,7 @@ class IZoomControl2 extends IInspectable { } void configure(ZoomSettings? settings) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -95,7 +95,7 @@ class IZoomControl2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer settings)>()( - ptr.ref.lpVtbl, settings.lpVtbl); + lpVtbl, settings.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/devices/izoomsettings.dart b/packages/windows_media/lib/src/devices/izoomsettings.dart index d78d8c75..d0dd7f67 100644 --- a/packages/windows_media/lib/src/devices/izoomsettings.dart +++ b/packages/windows_media/lib/src/devices/izoomsettings.dart @@ -32,17 +32,17 @@ class IZoomSettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -53,7 +53,7 @@ class IZoomSettings extends IInspectable { } set mode(ZoomTransitionMode value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -61,7 +61,7 @@ class IZoomSettings extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -70,17 +70,17 @@ class IZoomSettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -91,7 +91,7 @@ class IZoomSettings extends IInspectable { } set value(double value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -99,7 +99,7 @@ class IZoomSettings extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Float value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/effects/iaudioeffectdefinition.dart b/packages/windows_media/lib/src/effects/iaudioeffectdefinition.dart index a3b9eb31..4e3e604e 100644 --- a/packages/windows_media/lib/src/effects/iaudioeffectdefinition.dart +++ b/packages/windows_media/lib/src/effects/iaudioeffectdefinition.dart @@ -32,7 +32,7 @@ class IAudioEffectDefinition extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IAudioEffectDefinition extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +55,7 @@ class IAudioEffectDefinition extends IInspectable { IPropertySet? get properties { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -65,7 +65,7 @@ class IAudioEffectDefinition extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/effects/ivideoeffectdefinition.dart b/packages/windows_media/lib/src/effects/ivideoeffectdefinition.dart index 4fd65e28..59ddda2f 100644 --- a/packages/windows_media/lib/src/effects/ivideoeffectdefinition.dart +++ b/packages/windows_media/lib/src/effects/ivideoeffectdefinition.dart @@ -32,7 +32,7 @@ class IVideoEffectDefinition extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IVideoEffectDefinition extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +55,7 @@ class IVideoEffectDefinition extends IInspectable { IPropertySet? get properties { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -65,7 +65,7 @@ class IVideoEffectDefinition extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/iaudiobuffer.dart b/packages/windows_media/lib/src/iaudiobuffer.dart index 9143bc79..72a5f4a1 100644 --- a/packages/windows_media/lib/src/iaudiobuffer.dart +++ b/packages/windows_media/lib/src/iaudiobuffer.dart @@ -30,7 +30,7 @@ class IAudioBuffer extends IInspectable implements IMemoryBuffer, IClosable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IAudioBuffer extends IInspectable implements IMemoryBuffer, IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IAudioBuffer extends IInspectable implements IMemoryBuffer, IClosable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IAudioBuffer extends IInspectable implements IMemoryBuffer, IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -76,7 +76,7 @@ class IAudioBuffer extends IInspectable implements IMemoryBuffer, IClosable { set length(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -85,7 +85,7 @@ class IAudioBuffer extends IInspectable implements IMemoryBuffer, IClosable { VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/iaudioframe.dart b/packages/windows_media/lib/src/iaudioframe.dart index 71dda5ac..74ea8a77 100644 --- a/packages/windows_media/lib/src/iaudioframe.dart +++ b/packages/windows_media/lib/src/iaudioframe.dart @@ -33,7 +33,7 @@ class IAudioFrame extends IInspectable implements IMediaFrame, IClosable { AudioBuffer? lockBuffer(AudioBufferAccessMode mode) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IAudioFrame extends IInspectable implements IMediaFrame, IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, int mode, - Pointer value)>()(ptr.ref.lpVtbl, mode.value, value); + Pointer value)>()(lpVtbl, mode.value, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/iaudioframefactory.dart b/packages/windows_media/lib/src/iaudioframefactory.dart index cf463c1c..68bc876f 100644 --- a/packages/windows_media/lib/src/iaudioframefactory.dart +++ b/packages/windows_media/lib/src/iaudioframefactory.dart @@ -31,7 +31,7 @@ class IAudioFrameFactory extends IInspectable { AudioFrame create(int capacity) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IAudioFrameFactory extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int capacity, - Pointer value)>()(ptr.ref.lpVtbl, capacity, value); + Pointer value)>()(lpVtbl, capacity, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/imediaextension.dart b/packages/windows_media/lib/src/imediaextension.dart index e5fd24d6..c00831a5 100644 --- a/packages/windows_media/lib/src/imediaextension.dart +++ b/packages/windows_media/lib/src/imediaextension.dart @@ -29,18 +29,17 @@ class IMediaExtension extends IInspectable { interface.cast(IMediaExtension.fromPtr, IID_IMediaExtension); void setProperties(IPropertySet? configuration) { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer configuration)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, VTablePointer configuration)>()( - ptr.ref.lpVtbl, configuration.lpVtbl); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, VTablePointer configuration)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + VTablePointer configuration)>()(lpVtbl, configuration.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_media/lib/src/imediaframe.dart b/packages/windows_media/lib/src/imediaframe.dart index 5feaa863..521c273b 100644 --- a/packages/windows_media/lib/src/imediaframe.dart +++ b/packages/windows_media/lib/src/imediaframe.dart @@ -30,7 +30,7 @@ class IMediaFrame extends IInspectable implements IClosable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IMediaFrame extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,17 +54,17 @@ class IMediaFrame extends IInspectable implements IClosable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -75,7 +75,7 @@ class IMediaFrame extends IInspectable implements IClosable { } set relativeTime(Duration? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -85,7 +85,7 @@ class IMediaFrame extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toReference().lpVtbl ?? nullptr); + lpVtbl, value?.toReference().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @@ -93,7 +93,7 @@ class IMediaFrame extends IInspectable implements IClosable { Duration? get relativeTime { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -103,7 +103,7 @@ class IMediaFrame extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -121,7 +121,7 @@ class IMediaFrame extends IInspectable implements IClosable { } set systemRelativeTime(Duration? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -131,7 +131,7 @@ class IMediaFrame extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toReference().lpVtbl ?? nullptr); + lpVtbl, value?.toReference().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @@ -139,7 +139,7 @@ class IMediaFrame extends IInspectable implements IClosable { Duration? get systemRelativeTime { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -149,7 +149,7 @@ class IMediaFrame extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -167,7 +167,7 @@ class IMediaFrame extends IInspectable implements IClosable { } set duration(Duration? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -177,7 +177,7 @@ class IMediaFrame extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toReference().lpVtbl ?? nullptr); + lpVtbl, value?.toReference().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @@ -185,7 +185,7 @@ class IMediaFrame extends IInspectable implements IClosable { Duration? get duration { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -195,7 +195,7 @@ class IMediaFrame extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -213,7 +213,7 @@ class IMediaFrame extends IInspectable implements IClosable { } set isDiscontinuous(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -221,7 +221,7 @@ class IMediaFrame extends IInspectable implements IClosable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -230,17 +230,17 @@ class IMediaFrame extends IInspectable implements IClosable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(15) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(15) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -253,7 +253,7 @@ class IMediaFrame extends IInspectable implements IClosable { IPropertySet? get extendedProperties { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -263,7 +263,7 @@ class IMediaFrame extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/ivideoframe.dart b/packages/windows_media/lib/src/ivideoframe.dart index aad32b53..769973e9 100644 --- a/packages/windows_media/lib/src/ivideoframe.dart +++ b/packages/windows_media/lib/src/ivideoframe.dart @@ -33,7 +33,7 @@ class IVideoFrame extends IInspectable implements IMediaFrame, IClosable { SoftwareBitmap? get softwareBitmap { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IVideoFrame extends IInspectable implements IMediaFrame, IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -61,7 +61,7 @@ class IVideoFrame extends IInspectable implements IMediaFrame, IClosable { Future copyToAsync(VideoFrame? frame) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -70,11 +70,8 @@ class IVideoFrame extends IInspectable implements IMediaFrame, IClosable { Pointer value)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer frame, - Pointer - value)>()(ptr.ref.lpVtbl, frame.lpVtbl, value); + int Function(VTablePointer lpVtbl, VTablePointer frame, + Pointer value)>()(lpVtbl, frame.lpVtbl, value); if (FAILED(hr)) { free(value); @@ -87,7 +84,7 @@ class IVideoFrame extends IInspectable implements IMediaFrame, IClosable { IDirect3DSurface? get direct3DSurface { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -97,7 +94,7 @@ class IVideoFrame extends IInspectable implements IMediaFrame, IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/ivideoframe2.dart b/packages/windows_media/lib/src/ivideoframe2.dart index 35935615..5e2143be 100644 --- a/packages/windows_media/lib/src/ivideoframe2.dart +++ b/packages/windows_media/lib/src/ivideoframe2.dart @@ -33,7 +33,7 @@ class IVideoFrame2 extends IInspectable { BitmapBounds? sourceBounds, BitmapBounds? destinationBounds) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -52,7 +52,7 @@ class IVideoFrame2 extends IInspectable { VTablePointer sourceBounds, VTablePointer destinationBounds, Pointer operation)>()( - ptr.ref.lpVtbl, + lpVtbl, frame.lpVtbl, sourceBounds?.toReference().lpVtbl ?? nullptr, destinationBounds?.toReference().lpVtbl ?? nullptr, diff --git a/packages/windows_media/lib/src/ivideoframefactory.dart b/packages/windows_media/lib/src/ivideoframefactory.dart index 12b55189..fe50d2dc 100644 --- a/packages/windows_media/lib/src/ivideoframefactory.dart +++ b/packages/windows_media/lib/src/ivideoframefactory.dart @@ -32,7 +32,7 @@ class IVideoFrameFactory extends IInspectable { VideoFrame create(BitmapPixelFormat format, int width, int height) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -47,7 +47,7 @@ class IVideoFrameFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int format, int width, int height, Pointer value)>()( - ptr.ref.lpVtbl, format.value, width, height, value); + lpVtbl, format.value, width, height, value); if (FAILED(hr)) { free(value); @@ -61,7 +61,7 @@ class IVideoFrameFactory extends IInspectable { BitmapPixelFormat format, int width, int height, BitmapAlphaMode alpha) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -77,7 +77,7 @@ class IVideoFrameFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int format, int width, int height, int alpha, Pointer value)>()( - ptr.ref.lpVtbl, format.value, width, height, alpha.value, value); + lpVtbl, format.value, width, height, alpha.value, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/ivideoframestatics.dart b/packages/windows_media/lib/src/ivideoframestatics.dart index d65b7033..794289ae 100644 --- a/packages/windows_media/lib/src/ivideoframestatics.dart +++ b/packages/windows_media/lib/src/ivideoframestatics.dart @@ -33,7 +33,7 @@ class IVideoFrameStatics extends IInspectable { DirectXPixelFormat format, int width, int height) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -48,7 +48,7 @@ class IVideoFrameStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int format, int width, int height, Pointer result)>()( - ptr.ref.lpVtbl, format.value, width, height, result); + lpVtbl, format.value, width, height, result); if (FAILED(hr)) { free(result); @@ -70,7 +70,7 @@ class IVideoFrameStatics extends IInspectable { IDirect3DDevice? device) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -91,7 +91,7 @@ class IVideoFrameStatics extends IInspectable { int height, VTablePointer device, Pointer result)>()( - ptr.ref.lpVtbl, format.value, width, height, device.lpVtbl, result); + lpVtbl, format.value, width, height, device.lpVtbl, result); if (FAILED(hr)) { free(result); @@ -109,21 +109,17 @@ class IVideoFrameStatics extends IInspectable { VideoFrame? createWithSoftwareBitmap(SoftwareBitmap? bitmap) { final result = calloc(); - final hr = - ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - VTablePointer bitmap, - Pointer result)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer bitmap, - Pointer result)>()( - ptr.ref.lpVtbl, bitmap.lpVtbl, result); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, VTablePointer bitmap, + Pointer result)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer bitmap, + Pointer result)>()(lpVtbl, bitmap.lpVtbl, result); if (FAILED(hr)) { free(result); @@ -141,21 +137,17 @@ class IVideoFrameStatics extends IInspectable { VideoFrame? createWithDirect3D11Surface(IDirect3DSurface? surface) { final result = calloc(); - final hr = - ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - VTablePointer surface, - Pointer result)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer surface, - Pointer result)>()( - ptr.ref.lpVtbl, surface.lpVtbl, result); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer surface, Pointer result)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer surface, + Pointer result)>()(lpVtbl, surface.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_media/lib/src/mediaproperties/iaudioencodingproperties.dart b/packages/windows_media/lib/src/mediaproperties/iaudioencodingproperties.dart index ffe69bbf..8d6bef82 100644 --- a/packages/windows_media/lib/src/mediaproperties/iaudioencodingproperties.dart +++ b/packages/windows_media/lib/src/mediaproperties/iaudioencodingproperties.dart @@ -32,7 +32,7 @@ class IAudioEncodingProperties extends IInspectable set bitrate(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IAudioEncodingProperties extends IInspectable VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -50,7 +50,7 @@ class IAudioEncodingProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -60,7 +60,7 @@ class IAudioEncodingProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -72,7 +72,7 @@ class IAudioEncodingProperties extends IInspectable set channelCount(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -81,7 +81,7 @@ class IAudioEncodingProperties extends IInspectable VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -90,7 +90,7 @@ class IAudioEncodingProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -100,7 +100,7 @@ class IAudioEncodingProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -112,7 +112,7 @@ class IAudioEncodingProperties extends IInspectable set sampleRate(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -121,7 +121,7 @@ class IAudioEncodingProperties extends IInspectable VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -130,7 +130,7 @@ class IAudioEncodingProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -140,7 +140,7 @@ class IAudioEncodingProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -152,7 +152,7 @@ class IAudioEncodingProperties extends IInspectable set bitsPerSample(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(12) .cast< Pointer< @@ -161,7 +161,7 @@ class IAudioEncodingProperties extends IInspectable VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -170,7 +170,7 @@ class IAudioEncodingProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -180,7 +180,7 @@ class IAudioEncodingProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/mediaproperties/iaudioencodingproperties2.dart b/packages/windows_media/lib/src/mediaproperties/iaudioencodingproperties2.dart index 027aafe5..d95d457a 100644 --- a/packages/windows_media/lib/src/mediaproperties/iaudioencodingproperties2.dart +++ b/packages/windows_media/lib/src/mediaproperties/iaudioencodingproperties2.dart @@ -30,17 +30,17 @@ class IAudioEncodingProperties2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/mediaproperties/iaudioencodingproperties3.dart b/packages/windows_media/lib/src/mediaproperties/iaudioencodingproperties3.dart index c3222dad..e42748a6 100644 --- a/packages/windows_media/lib/src/mediaproperties/iaudioencodingproperties3.dart +++ b/packages/windows_media/lib/src/mediaproperties/iaudioencodingproperties3.dart @@ -31,7 +31,7 @@ class IAudioEncodingProperties3 extends IInspectable { AudioEncodingProperties? copy() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IAudioEncodingProperties3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_media/lib/src/mediaproperties/iaudioencodingpropertiesstatics.dart b/packages/windows_media/lib/src/mediaproperties/iaudioencodingpropertiesstatics.dart index 4d3d6cd1..63b798c3 100644 --- a/packages/windows_media/lib/src/mediaproperties/iaudioencodingpropertiesstatics.dart +++ b/packages/windows_media/lib/src/mediaproperties/iaudioencodingpropertiesstatics.dart @@ -34,7 +34,7 @@ class IAudioEncodingPropertiesStatics extends IInspectable { int sampleRate, int channelCount, int bitrate) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -49,7 +49,7 @@ class IAudioEncodingPropertiesStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int sampleRate, int channelCount, int bitrate, Pointer value)>()( - ptr.ref.lpVtbl, sampleRate, channelCount, bitrate, value); + lpVtbl, sampleRate, channelCount, bitrate, value); if (FAILED(hr)) { free(value); @@ -68,7 +68,7 @@ class IAudioEncodingPropertiesStatics extends IInspectable { int sampleRate, int channelCount, int bitrate) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -83,7 +83,7 @@ class IAudioEncodingPropertiesStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int sampleRate, int channelCount, int bitrate, Pointer value)>()( - ptr.ref.lpVtbl, sampleRate, channelCount, bitrate, value); + lpVtbl, sampleRate, channelCount, bitrate, value); if (FAILED(hr)) { free(value); @@ -102,7 +102,7 @@ class IAudioEncodingPropertiesStatics extends IInspectable { int sampleRate, int channelCount, int bitrate) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -117,7 +117,7 @@ class IAudioEncodingPropertiesStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int sampleRate, int channelCount, int bitrate, Pointer value)>()( - ptr.ref.lpVtbl, sampleRate, channelCount, bitrate, value); + lpVtbl, sampleRate, channelCount, bitrate, value); if (FAILED(hr)) { free(value); @@ -136,7 +136,7 @@ class IAudioEncodingPropertiesStatics extends IInspectable { int sampleRate, int channelCount, int bitsPerSample) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -155,7 +155,7 @@ class IAudioEncodingPropertiesStatics extends IInspectable { int channelCount, int bitsPerSample, Pointer value)>()( - ptr.ref.lpVtbl, sampleRate, channelCount, bitsPerSample, value); + lpVtbl, sampleRate, channelCount, bitsPerSample, value); if (FAILED(hr)) { free(value); @@ -174,7 +174,7 @@ class IAudioEncodingPropertiesStatics extends IInspectable { int sampleRate, int channelCount, int bitrate) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -189,7 +189,7 @@ class IAudioEncodingPropertiesStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int sampleRate, int channelCount, int bitrate, Pointer value)>()( - ptr.ref.lpVtbl, sampleRate, channelCount, bitrate, value); + lpVtbl, sampleRate, channelCount, bitrate, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/mediaproperties/iaudioencodingpropertiesstatics2.dart b/packages/windows_media/lib/src/mediaproperties/iaudioencodingpropertiesstatics2.dart index 1409ac91..00c132f6 100644 --- a/packages/windows_media/lib/src/mediaproperties/iaudioencodingpropertiesstatics2.dart +++ b/packages/windows_media/lib/src/mediaproperties/iaudioencodingpropertiesstatics2.dart @@ -34,7 +34,7 @@ class IAudioEncodingPropertiesStatics2 extends IInspectable { int sampleRate, int channelCount, int bitsPerSample) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -53,7 +53,7 @@ class IAudioEncodingPropertiesStatics2 extends IInspectable { int channelCount, int bitsPerSample, Pointer value)>()( - ptr.ref.lpVtbl, sampleRate, channelCount, bitsPerSample, value); + lpVtbl, sampleRate, channelCount, bitsPerSample, value); if (FAILED(hr)) { free(value); @@ -72,7 +72,7 @@ class IAudioEncodingPropertiesStatics2 extends IInspectable { int sampleRate, int channelCount, int bitsPerSample) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -91,7 +91,7 @@ class IAudioEncodingPropertiesStatics2 extends IInspectable { int channelCount, int bitsPerSample, Pointer value)>()( - ptr.ref.lpVtbl, sampleRate, channelCount, bitsPerSample, value); + lpVtbl, sampleRate, channelCount, bitsPerSample, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/mediaproperties/iaudioencodingpropertieswithformatuserdata.dart b/packages/windows_media/lib/src/mediaproperties/iaudioencodingpropertieswithformatuserdata.dart index 61c6f7ca..effc8d62 100644 --- a/packages/windows_media/lib/src/mediaproperties/iaudioencodingpropertieswithformatuserdata.dart +++ b/packages/windows_media/lib/src/mediaproperties/iaudioencodingpropertieswithformatuserdata.dart @@ -32,18 +32,17 @@ class IAudioEncodingPropertiesWithFormatUserData extends IInspectable { void setFormatUserData(List value) { final valueArray = value.toArray(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 valueSize, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int valueSize, - Pointer value)>()( - ptr.ref.lpVtbl, value.length, valueArray); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 valueSize, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int valueSize, + Pointer value)>()(lpVtbl, value.length, valueArray); free(valueArray); @@ -55,20 +54,19 @@ class IAudioEncodingPropertiesWithFormatUserData extends IInspectable { final value = calloc>(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - Pointer valueSize, - Pointer> value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer valueSize, - Pointer> value)>()( - ptr.ref.lpVtbl, valueSize, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, + Pointer valueSize, + Pointer> value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, Pointer valueSize, + Pointer> value)>()(lpVtbl, valueSize, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/mediaproperties/icontainerencodingproperties2.dart b/packages/windows_media/lib/src/mediaproperties/icontainerencodingproperties2.dart index 494a20c3..50506e7b 100644 --- a/packages/windows_media/lib/src/mediaproperties/icontainerencodingproperties2.dart +++ b/packages/windows_media/lib/src/mediaproperties/icontainerencodingproperties2.dart @@ -33,7 +33,7 @@ class IContainerEncodingProperties2 extends IInspectable { ContainerEncodingProperties? copy() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IContainerEncodingProperties2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_media/lib/src/mediaproperties/iimageencodingproperties.dart b/packages/windows_media/lib/src/mediaproperties/iimageencodingproperties.dart index a23ff6ef..abeb0e31 100644 --- a/packages/windows_media/lib/src/mediaproperties/iimageencodingproperties.dart +++ b/packages/windows_media/lib/src/mediaproperties/iimageencodingproperties.dart @@ -32,7 +32,7 @@ class IImageEncodingProperties extends IInspectable set width(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IImageEncodingProperties extends IInspectable VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -50,7 +50,7 @@ class IImageEncodingProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -60,7 +60,7 @@ class IImageEncodingProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -72,7 +72,7 @@ class IImageEncodingProperties extends IInspectable set height(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -81,7 +81,7 @@ class IImageEncodingProperties extends IInspectable VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -90,7 +90,7 @@ class IImageEncodingProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -100,7 +100,7 @@ class IImageEncodingProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/mediaproperties/iimageencodingproperties2.dart b/packages/windows_media/lib/src/mediaproperties/iimageencodingproperties2.dart index 0632f7f1..d906d248 100644 --- a/packages/windows_media/lib/src/mediaproperties/iimageencodingproperties2.dart +++ b/packages/windows_media/lib/src/mediaproperties/iimageencodingproperties2.dart @@ -31,7 +31,7 @@ class IImageEncodingProperties2 extends IInspectable { ImageEncodingProperties? copy() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IImageEncodingProperties2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_media/lib/src/mediaproperties/iimageencodingpropertiesstatics.dart b/packages/windows_media/lib/src/mediaproperties/iimageencodingpropertiesstatics.dart index 9ca56616..a09bd559 100644 --- a/packages/windows_media/lib/src/mediaproperties/iimageencodingpropertiesstatics.dart +++ b/packages/windows_media/lib/src/mediaproperties/iimageencodingpropertiesstatics.dart @@ -33,7 +33,7 @@ class IImageEncodingPropertiesStatics extends IInspectable { ImageEncodingProperties? createJpeg() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IImageEncodingPropertiesStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -61,7 +61,7 @@ class IImageEncodingPropertiesStatics extends IInspectable { ImageEncodingProperties? createPng() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -71,7 +71,7 @@ class IImageEncodingPropertiesStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -89,7 +89,7 @@ class IImageEncodingPropertiesStatics extends IInspectable { ImageEncodingProperties? createJpegXR() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -99,7 +99,7 @@ class IImageEncodingPropertiesStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/mediaproperties/iimageencodingpropertiesstatics2.dart b/packages/windows_media/lib/src/mediaproperties/iimageencodingpropertiesstatics2.dart index 43679691..829d9c52 100644 --- a/packages/windows_media/lib/src/mediaproperties/iimageencodingpropertiesstatics2.dart +++ b/packages/windows_media/lib/src/mediaproperties/iimageencodingpropertiesstatics2.dart @@ -34,18 +34,17 @@ class IImageEncodingPropertiesStatics2 extends IInspectable { ImageEncodingProperties? createUncompressed(MediaPixelFormat format) { final value = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 format, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int format, - Pointer value)>()( - ptr.ref.lpVtbl, format.value, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 format, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int format, + Pointer value)>()(lpVtbl, format.value, value); if (FAILED(hr)) { free(value); @@ -63,7 +62,7 @@ class IImageEncodingPropertiesStatics2 extends IInspectable { ImageEncodingProperties? createBmp() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -73,7 +72,7 @@ class IImageEncodingPropertiesStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/mediaproperties/iimageencodingpropertiesstatics3.dart b/packages/windows_media/lib/src/mediaproperties/iimageencodingpropertiesstatics3.dart index d9e74ab4..e1998e36 100644 --- a/packages/windows_media/lib/src/mediaproperties/iimageencodingpropertiesstatics3.dart +++ b/packages/windows_media/lib/src/mediaproperties/iimageencodingpropertiesstatics3.dart @@ -33,7 +33,7 @@ class IImageEncodingPropertiesStatics3 extends IInspectable { ImageEncodingProperties? createHeif() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IImageEncodingPropertiesStatics3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_media/lib/src/mediaproperties/imediaencodingprofile.dart b/packages/windows_media/lib/src/mediaproperties/imediaencodingprofile.dart index 2b5d81af..7df2a60e 100644 --- a/packages/windows_media/lib/src/mediaproperties/imediaencodingprofile.dart +++ b/packages/windows_media/lib/src/mediaproperties/imediaencodingprofile.dart @@ -31,7 +31,7 @@ class IMediaEncodingProfile extends IInspectable { interface.cast(IMediaEncodingProfile.fromPtr, IID_IMediaEncodingProfile); set audio(AudioEncodingProperties? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IMediaEncodingProfile extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value.lpVtbl); + lpVtbl, value.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -49,7 +49,7 @@ class IMediaEncodingProfile extends IInspectable { AudioEncodingProperties? get audio { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -59,7 +59,7 @@ class IMediaEncodingProfile extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -75,7 +75,7 @@ class IMediaEncodingProfile extends IInspectable { } set video(VideoEncodingProperties? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -85,7 +85,7 @@ class IMediaEncodingProfile extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value.lpVtbl); + lpVtbl, value.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -93,7 +93,7 @@ class IMediaEncodingProfile extends IInspectable { VideoEncodingProperties? get video { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -103,7 +103,7 @@ class IMediaEncodingProfile extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -119,7 +119,7 @@ class IMediaEncodingProfile extends IInspectable { } set container(ContainerEncodingProperties? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -129,7 +129,7 @@ class IMediaEncodingProfile extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value.lpVtbl); + lpVtbl, value.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -137,7 +137,7 @@ class IMediaEncodingProfile extends IInspectable { ContainerEncodingProperties? get container { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -147,7 +147,7 @@ class IMediaEncodingProfile extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/mediaproperties/imediaencodingprofile2.dart b/packages/windows_media/lib/src/mediaproperties/imediaencodingprofile2.dart index c85984ae..746d4160 100644 --- a/packages/windows_media/lib/src/mediaproperties/imediaencodingprofile2.dart +++ b/packages/windows_media/lib/src/mediaproperties/imediaencodingprofile2.dart @@ -30,7 +30,7 @@ class IMediaEncodingProfile2 extends IInspectable { IMediaEncodingProfile2.fromPtr, IID_IMediaEncodingProfile2); void setAudioTracks(IIterable? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IMediaEncodingProfile2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value.lpVtbl); + lpVtbl, value.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -48,7 +48,7 @@ class IMediaEncodingProfile2 extends IInspectable { IVector getAudioTracks() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -58,7 +58,7 @@ class IMediaEncodingProfile2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -71,7 +71,7 @@ class IMediaEncodingProfile2 extends IInspectable { } void setVideoTracks(IIterable? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -81,7 +81,7 @@ class IMediaEncodingProfile2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value.lpVtbl); + lpVtbl, value.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -89,7 +89,7 @@ class IMediaEncodingProfile2 extends IInspectable { IVector getVideoTracks() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -99,7 +99,7 @@ class IMediaEncodingProfile2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/mediaproperties/imediaencodingprofile3.dart b/packages/windows_media/lib/src/mediaproperties/imediaencodingprofile3.dart index 99382033..9035ef5f 100644 --- a/packages/windows_media/lib/src/mediaproperties/imediaencodingprofile3.dart +++ b/packages/windows_media/lib/src/mediaproperties/imediaencodingprofile3.dart @@ -30,7 +30,7 @@ class IMediaEncodingProfile3 extends IInspectable { void setTimedMetadataTracks( IIterable? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IMediaEncodingProfile3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value.lpVtbl); + lpVtbl, value.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -48,7 +48,7 @@ class IMediaEncodingProfile3 extends IInspectable { IVector getTimedMetadataTracks() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -58,7 +58,7 @@ class IMediaEncodingProfile3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_media/lib/src/mediaproperties/imediaencodingprofilestatics.dart b/packages/windows_media/lib/src/mediaproperties/imediaencodingprofilestatics.dart index ab6e5ec2..a48adc19 100644 --- a/packages/windows_media/lib/src/mediaproperties/imediaencodingprofilestatics.dart +++ b/packages/windows_media/lib/src/mediaproperties/imediaencodingprofilestatics.dart @@ -36,18 +36,17 @@ class IMediaEncodingProfileStatics extends IInspectable { MediaEncodingProfile? createM4a(AudioEncodingQuality quality) { final value = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 quality, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int quality, - Pointer value)>()( - ptr.ref.lpVtbl, quality.value, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 quality, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int quality, + Pointer value)>()(lpVtbl, quality.value, value); if (FAILED(hr)) { free(value); @@ -65,18 +64,17 @@ class IMediaEncodingProfileStatics extends IInspectable { MediaEncodingProfile? createMp3(AudioEncodingQuality quality) { final value = calloc(); - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 quality, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int quality, - Pointer value)>()( - ptr.ref.lpVtbl, quality.value, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 quality, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int quality, + Pointer value)>()(lpVtbl, quality.value, value); if (FAILED(hr)) { free(value); @@ -94,18 +92,17 @@ class IMediaEncodingProfileStatics extends IInspectable { MediaEncodingProfile? createWma(AudioEncodingQuality quality) { final value = calloc(); - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 quality, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int quality, - Pointer value)>()( - ptr.ref.lpVtbl, quality.value, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 quality, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int quality, + Pointer value)>()(lpVtbl, quality.value, value); if (FAILED(hr)) { free(value); @@ -123,18 +120,17 @@ class IMediaEncodingProfileStatics extends IInspectable { MediaEncodingProfile? createMp4(VideoEncodingQuality quality) { final value = calloc(); - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 quality, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int quality, - Pointer value)>()( - ptr.ref.lpVtbl, quality.value, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 quality, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int quality, + Pointer value)>()(lpVtbl, quality.value, value); if (FAILED(hr)) { free(value); @@ -152,18 +148,17 @@ class IMediaEncodingProfileStatics extends IInspectable { MediaEncodingProfile? createWmv(VideoEncodingQuality quality) { final value = calloc(); - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 quality, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int quality, - Pointer value)>()( - ptr.ref.lpVtbl, quality.value, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 quality, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int quality, + Pointer value)>()(lpVtbl, quality.value, value); if (FAILED(hr)) { free(value); @@ -182,7 +177,7 @@ class IMediaEncodingProfileStatics extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(11) .cast< Pointer< @@ -195,7 +190,7 @@ class IMediaEncodingProfileStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer file, Pointer operation)>()( - ptr.ref.lpVtbl, file.lpVtbl, operation); + lpVtbl, file.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -213,7 +208,7 @@ class IMediaEncodingProfileStatics extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(12) .cast< Pointer< @@ -226,7 +221,7 @@ class IMediaEncodingProfileStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer stream, Pointer operation)>()( - ptr.ref.lpVtbl, stream.lpVtbl, operation); + lpVtbl, stream.lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_media/lib/src/mediaproperties/imediaencodingprofilestatics2.dart b/packages/windows_media/lib/src/mediaproperties/imediaencodingprofilestatics2.dart index 2e6b6a0d..a030f099 100644 --- a/packages/windows_media/lib/src/mediaproperties/imediaencodingprofilestatics2.dart +++ b/packages/windows_media/lib/src/mediaproperties/imediaencodingprofilestatics2.dart @@ -35,18 +35,17 @@ class IMediaEncodingProfileStatics2 extends IInspectable { MediaEncodingProfile? createWav(AudioEncodingQuality quality) { final value = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 quality, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int quality, - Pointer value)>()( - ptr.ref.lpVtbl, quality.value, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 quality, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int quality, + Pointer value)>()(lpVtbl, quality.value, value); if (FAILED(hr)) { free(value); @@ -64,18 +63,17 @@ class IMediaEncodingProfileStatics2 extends IInspectable { MediaEncodingProfile? createAvi(VideoEncodingQuality quality) { final value = calloc(); - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 quality, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int quality, - Pointer value)>()( - ptr.ref.lpVtbl, quality.value, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 quality, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int quality, + Pointer value)>()(lpVtbl, quality.value, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/mediaproperties/imediaencodingprofilestatics3.dart b/packages/windows_media/lib/src/mediaproperties/imediaencodingprofilestatics3.dart index b3a107cc..8f5fc391 100644 --- a/packages/windows_media/lib/src/mediaproperties/imediaencodingprofilestatics3.dart +++ b/packages/windows_media/lib/src/mediaproperties/imediaencodingprofilestatics3.dart @@ -35,18 +35,17 @@ class IMediaEncodingProfileStatics3 extends IInspectable { MediaEncodingProfile? createAlac(AudioEncodingQuality quality) { final value = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 quality, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int quality, - Pointer value)>()( - ptr.ref.lpVtbl, quality.value, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 quality, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int quality, + Pointer value)>()(lpVtbl, quality.value, value); if (FAILED(hr)) { free(value); @@ -64,18 +63,17 @@ class IMediaEncodingProfileStatics3 extends IInspectable { MediaEncodingProfile? createFlac(AudioEncodingQuality quality) { final value = calloc(); - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 quality, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int quality, - Pointer value)>()( - ptr.ref.lpVtbl, quality.value, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 quality, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int quality, + Pointer value)>()(lpVtbl, quality.value, value); if (FAILED(hr)) { free(value); @@ -93,18 +91,17 @@ class IMediaEncodingProfileStatics3 extends IInspectable { MediaEncodingProfile? createHevc(VideoEncodingQuality quality) { final value = calloc(); - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 quality, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int quality, - Pointer value)>()( - ptr.ref.lpVtbl, quality.value, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 quality, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int quality, + Pointer value)>()(lpVtbl, quality.value, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/mediaproperties/imediaencodingproperties.dart b/packages/windows_media/lib/src/mediaproperties/imediaencodingproperties.dart index af950bd7..1f141e76 100644 --- a/packages/windows_media/lib/src/mediaproperties/imediaencodingproperties.dart +++ b/packages/windows_media/lib/src/mediaproperties/imediaencodingproperties.dart @@ -32,7 +32,7 @@ class IMediaEncodingProperties extends IInspectable { MediaPropertySet? get properties { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IMediaEncodingProperties extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -61,7 +61,7 @@ class IMediaEncodingProperties extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -71,7 +71,7 @@ class IMediaEncodingProperties extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -83,7 +83,7 @@ class IMediaEncodingProperties extends IInspectable { set subtype(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -92,7 +92,7 @@ class IMediaEncodingProperties extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -101,7 +101,7 @@ class IMediaEncodingProperties extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -111,7 +111,7 @@ class IMediaEncodingProperties extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/mediaproperties/imediaratio.dart b/packages/windows_media/lib/src/mediaproperties/imediaratio.dart index e6ab7709..00616682 100644 --- a/packages/windows_media/lib/src/mediaproperties/imediaratio.dart +++ b/packages/windows_media/lib/src/mediaproperties/imediaratio.dart @@ -28,7 +28,7 @@ class IMediaRatio extends IInspectable { set numerator(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -37,7 +37,7 @@ class IMediaRatio extends IInspectable { VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -46,7 +46,7 @@ class IMediaRatio extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -56,7 +56,7 @@ class IMediaRatio extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -68,7 +68,7 @@ class IMediaRatio extends IInspectable { set denominator(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -77,7 +77,7 @@ class IMediaRatio extends IInspectable { VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -86,7 +86,7 @@ class IMediaRatio extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -96,7 +96,7 @@ class IMediaRatio extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/mediaproperties/itimedmetadataencodingproperties.dart b/packages/windows_media/lib/src/mediaproperties/itimedmetadataencodingproperties.dart index 997c8363..58bcf8c0 100644 --- a/packages/windows_media/lib/src/mediaproperties/itimedmetadataencodingproperties.dart +++ b/packages/windows_media/lib/src/mediaproperties/itimedmetadataencodingproperties.dart @@ -33,18 +33,17 @@ class ITimedMetadataEncodingProperties extends IInspectable { void setFormatUserData(List value) { final valueArray = value.toArray(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 valueSize, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int valueSize, - Pointer value)>()( - ptr.ref.lpVtbl, value.length, valueArray); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 valueSize, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int valueSize, + Pointer value)>()(lpVtbl, value.length, valueArray); free(valueArray); @@ -56,20 +55,19 @@ class ITimedMetadataEncodingProperties extends IInspectable { final value = calloc>(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - Pointer valueSize, - Pointer> value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer valueSize, - Pointer> value)>()( - ptr.ref.lpVtbl, valueSize, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, + Pointer valueSize, + Pointer> value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, Pointer valueSize, + Pointer> value)>()(lpVtbl, valueSize, value); if (FAILED(hr)) throwWindowsException(hr); @@ -83,7 +81,7 @@ class ITimedMetadataEncodingProperties extends IInspectable { TimedMetadataEncodingProperties? copy() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -93,7 +91,7 @@ class ITimedMetadataEncodingProperties extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_media/lib/src/mediaproperties/itimedmetadataencodingpropertiesstatics.dart b/packages/windows_media/lib/src/mediaproperties/itimedmetadataencodingpropertiesstatics.dart index 9606517f..a1dae611 100644 --- a/packages/windows_media/lib/src/mediaproperties/itimedmetadataencodingpropertiesstatics.dart +++ b/packages/windows_media/lib/src/mediaproperties/itimedmetadataencodingpropertiesstatics.dart @@ -34,7 +34,7 @@ class ITimedMetadataEncodingPropertiesStatics extends IInspectable { TimedMetadataEncodingProperties? createPgs() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class ITimedMetadataEncodingPropertiesStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -62,7 +62,7 @@ class ITimedMetadataEncodingPropertiesStatics extends IInspectable { TimedMetadataEncodingProperties? createSrt() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -72,7 +72,7 @@ class ITimedMetadataEncodingPropertiesStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -91,7 +91,7 @@ class ITimedMetadataEncodingPropertiesStatics extends IInspectable { final result = calloc(); final formatUserDataArray = formatUserData.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -108,7 +108,7 @@ class ITimedMetadataEncodingPropertiesStatics extends IInspectable { int formatUserDataSize, Pointer formatUserData, Pointer result)>()( - ptr.ref.lpVtbl, formatUserData.length, formatUserDataArray, result); + lpVtbl, formatUserData.length, formatUserDataArray, result); free(formatUserDataArray); @@ -129,7 +129,7 @@ class ITimedMetadataEncodingPropertiesStatics extends IInspectable { final result = calloc(); final formatUserDataArray = formatUserData.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -146,7 +146,7 @@ class ITimedMetadataEncodingPropertiesStatics extends IInspectable { int formatUserDataSize, Pointer formatUserData, Pointer result)>()( - ptr.ref.lpVtbl, formatUserData.length, formatUserDataArray, result); + lpVtbl, formatUserData.length, formatUserDataArray, result); free(formatUserDataArray); diff --git a/packages/windows_media/lib/src/mediaproperties/ivideoencodingproperties.dart b/packages/windows_media/lib/src/mediaproperties/ivideoencodingproperties.dart index e19ee79f..20e45cc5 100644 --- a/packages/windows_media/lib/src/mediaproperties/ivideoencodingproperties.dart +++ b/packages/windows_media/lib/src/mediaproperties/ivideoencodingproperties.dart @@ -33,7 +33,7 @@ class IVideoEncodingProperties extends IInspectable set bitrate(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IVideoEncodingProperties extends IInspectable VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -51,7 +51,7 @@ class IVideoEncodingProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -61,7 +61,7 @@ class IVideoEncodingProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -73,7 +73,7 @@ class IVideoEncodingProperties extends IInspectable set width(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -82,7 +82,7 @@ class IVideoEncodingProperties extends IInspectable VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -91,7 +91,7 @@ class IVideoEncodingProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -101,7 +101,7 @@ class IVideoEncodingProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -113,7 +113,7 @@ class IVideoEncodingProperties extends IInspectable set height(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -122,7 +122,7 @@ class IVideoEncodingProperties extends IInspectable VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -131,7 +131,7 @@ class IVideoEncodingProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -141,7 +141,7 @@ class IVideoEncodingProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -154,7 +154,7 @@ class IVideoEncodingProperties extends IInspectable MediaRatio? get frameRate { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -164,7 +164,7 @@ class IVideoEncodingProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -182,7 +182,7 @@ class IVideoEncodingProperties extends IInspectable MediaRatio? get pixelAspectRatio { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -192,7 +192,7 @@ class IVideoEncodingProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/mediaproperties/ivideoencodingproperties2.dart b/packages/windows_media/lib/src/mediaproperties/ivideoencodingproperties2.dart index 350140b0..cd490d0f 100644 --- a/packages/windows_media/lib/src/mediaproperties/ivideoencodingproperties2.dart +++ b/packages/windows_media/lib/src/mediaproperties/ivideoencodingproperties2.dart @@ -29,18 +29,17 @@ class IVideoEncodingProperties2 extends IInspectable { void setFormatUserData(List value) { final valueArray = value.toArray(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 valueSize, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int valueSize, - Pointer value)>()( - ptr.ref.lpVtbl, value.length, valueArray); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 valueSize, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int valueSize, + Pointer value)>()(lpVtbl, value.length, valueArray); free(valueArray); @@ -52,20 +51,19 @@ class IVideoEncodingProperties2 extends IInspectable { final value = calloc>(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - Pointer valueSize, - Pointer> value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer valueSize, - Pointer> value)>()( - ptr.ref.lpVtbl, valueSize, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, + Pointer valueSize, + Pointer> value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, Pointer valueSize, + Pointer> value)>()(lpVtbl, valueSize, value); if (FAILED(hr)) throwWindowsException(hr); @@ -77,7 +75,7 @@ class IVideoEncodingProperties2 extends IInspectable { } set profileId(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -85,7 +83,7 @@ class IVideoEncodingProperties2 extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -94,17 +92,17 @@ class IVideoEncodingProperties2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/mediaproperties/ivideoencodingproperties3.dart b/packages/windows_media/lib/src/mediaproperties/ivideoencodingproperties3.dart index 11956795..878c3058 100644 --- a/packages/windows_media/lib/src/mediaproperties/ivideoencodingproperties3.dart +++ b/packages/windows_media/lib/src/mediaproperties/ivideoencodingproperties3.dart @@ -32,17 +32,17 @@ class IVideoEncodingProperties3 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/mediaproperties/ivideoencodingproperties4.dart b/packages/windows_media/lib/src/mediaproperties/ivideoencodingproperties4.dart index f8516061..3fda96d1 100644 --- a/packages/windows_media/lib/src/mediaproperties/ivideoencodingproperties4.dart +++ b/packages/windows_media/lib/src/mediaproperties/ivideoencodingproperties4.dart @@ -32,17 +32,17 @@ class IVideoEncodingProperties4 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/mediaproperties/ivideoencodingproperties5.dart b/packages/windows_media/lib/src/mediaproperties/ivideoencodingproperties5.dart index 17ced346..e99d00d4 100644 --- a/packages/windows_media/lib/src/mediaproperties/ivideoencodingproperties5.dart +++ b/packages/windows_media/lib/src/mediaproperties/ivideoencodingproperties5.dart @@ -31,7 +31,7 @@ class IVideoEncodingProperties5 extends IInspectable { VideoEncodingProperties? copy() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IVideoEncodingProperties5 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_media/lib/src/mediaproperties/ivideoencodingpropertiesstatics.dart b/packages/windows_media/lib/src/mediaproperties/ivideoencodingpropertiesstatics.dart index 4a291eec..0666346a 100644 --- a/packages/windows_media/lib/src/mediaproperties/ivideoencodingpropertiesstatics.dart +++ b/packages/windows_media/lib/src/mediaproperties/ivideoencodingpropertiesstatics.dart @@ -33,7 +33,7 @@ class IVideoEncodingPropertiesStatics extends IInspectable { VideoEncodingProperties? createH264() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IVideoEncodingPropertiesStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -61,7 +61,7 @@ class IVideoEncodingPropertiesStatics extends IInspectable { VideoEncodingProperties? createMpeg2() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -71,7 +71,7 @@ class IVideoEncodingPropertiesStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -90,7 +90,7 @@ class IVideoEncodingPropertiesStatics extends IInspectable { String subtype, int width, int height) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -105,7 +105,7 @@ class IVideoEncodingPropertiesStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int subtype, int width, int height, Pointer value)>()( - ptr.ref.lpVtbl, subtype.toHString(), width, height, value); + lpVtbl, subtype.toHString(), width, height, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/mediaproperties/ivideoencodingpropertiesstatics2.dart b/packages/windows_media/lib/src/mediaproperties/ivideoencodingpropertiesstatics2.dart index f5f648c3..5b0d0fd1 100644 --- a/packages/windows_media/lib/src/mediaproperties/ivideoencodingpropertiesstatics2.dart +++ b/packages/windows_media/lib/src/mediaproperties/ivideoencodingpropertiesstatics2.dart @@ -33,7 +33,7 @@ class IVideoEncodingPropertiesStatics2 extends IInspectable { VideoEncodingProperties? createHevc() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IVideoEncodingPropertiesStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/ocr/iocrengine.dart b/packages/windows_media/lib/src/ocr/iocrengine.dart index 68cd2066..a8b6a1bc 100644 --- a/packages/windows_media/lib/src/ocr/iocrengine.dart +++ b/packages/windows_media/lib/src/ocr/iocrengine.dart @@ -33,21 +33,17 @@ class IOcrEngine extends IInspectable { Future recognizeAsync(SoftwareBitmap? bitmap) { final result = calloc(); - final hr = - ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - VTablePointer bitmap, - Pointer result)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer bitmap, - Pointer result)>()( - ptr.ref.lpVtbl, bitmap.lpVtbl, result); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, VTablePointer bitmap, + Pointer result)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer bitmap, + Pointer result)>()(lpVtbl, bitmap.lpVtbl, result); if (FAILED(hr)) { free(result); @@ -62,7 +58,7 @@ class IOcrEngine extends IInspectable { Language? get recognizerLanguage { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -72,7 +68,7 @@ class IOcrEngine extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_media/lib/src/ocr/iocrenginestatics.dart b/packages/windows_media/lib/src/ocr/iocrenginestatics.dart index 0424f527..4ba1665a 100644 --- a/packages/windows_media/lib/src/ocr/iocrenginestatics.dart +++ b/packages/windows_media/lib/src/ocr/iocrenginestatics.dart @@ -33,7 +33,7 @@ class IOcrEngineStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IOcrEngineStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class IOcrEngineStatics extends IInspectable { List? get availableRecognizerLanguages { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class IOcrEngineStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -88,18 +88,17 @@ class IOcrEngineStatics extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer language, Pointer result)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer language, - Pointer result)>()( - ptr.ref.lpVtbl, language.lpVtbl, result); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer language, Pointer result)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer language, + Pointer result)>()(lpVtbl, language.lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -112,21 +111,17 @@ class IOcrEngineStatics extends IInspectable { OcrEngine? tryCreateFromLanguage(Language? language) { final result = calloc(); - final hr = - ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - VTablePointer language, - Pointer result)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer language, - Pointer result)>()( - ptr.ref.lpVtbl, language.lpVtbl, result); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer language, Pointer result)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer language, + Pointer result)>()(lpVtbl, language.lpVtbl, result); if (FAILED(hr)) { free(result); @@ -144,7 +139,7 @@ class IOcrEngineStatics extends IInspectable { OcrEngine? tryCreateFromUserProfileLanguages() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -154,7 +149,7 @@ class IOcrEngineStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_media/lib/src/ocr/iocrline.dart b/packages/windows_media/lib/src/ocr/iocrline.dart index a3136744..24f883ef 100644 --- a/packages/windows_media/lib/src/ocr/iocrline.dart +++ b/packages/windows_media/lib/src/ocr/iocrline.dart @@ -31,7 +31,7 @@ class IOcrLine extends IInspectable { List? get words { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IOcrLine extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -63,7 +63,7 @@ class IOcrLine extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -73,7 +73,7 @@ class IOcrLine extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/ocr/iocrresult.dart b/packages/windows_media/lib/src/ocr/iocrresult.dart index 7209e383..7ff2a585 100644 --- a/packages/windows_media/lib/src/ocr/iocrresult.dart +++ b/packages/windows_media/lib/src/ocr/iocrresult.dart @@ -31,7 +31,7 @@ class IOcrResult extends IInspectable { List? get lines { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IOcrResult extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -62,7 +62,7 @@ class IOcrResult extends IInspectable { double? get textAngle { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -72,7 +72,7 @@ class IOcrResult extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -93,7 +93,7 @@ class IOcrResult extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -103,7 +103,7 @@ class IOcrResult extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_media/lib/src/ocr/iocrword.dart b/packages/windows_media/lib/src/ocr/iocrword.dart index 31af7b39..fa515495 100644 --- a/packages/windows_media/lib/src/ocr/iocrword.dart +++ b/packages/windows_media/lib/src/ocr/iocrword.dart @@ -30,7 +30,7 @@ class IOcrWord extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IOcrWord extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IOcrWord extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IOcrWord extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_networking/lib/src/connectivity/iattributednetworkusage.dart b/packages/windows_networking/lib/src/connectivity/iattributednetworkusage.dart index aca22980..768dc2b4 100644 --- a/packages/windows_networking/lib/src/connectivity/iattributednetworkusage.dart +++ b/packages/windows_networking/lib/src/connectivity/iattributednetworkusage.dart @@ -31,7 +31,7 @@ class IAttributedNetworkUsage extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IAttributedNetworkUsage extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +55,7 @@ class IAttributedNetworkUsage extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -65,7 +65,7 @@ class IAttributedNetworkUsage extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -79,7 +79,7 @@ class IAttributedNetworkUsage extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -89,7 +89,7 @@ class IAttributedNetworkUsage extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -103,7 +103,7 @@ class IAttributedNetworkUsage extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -113,7 +113,7 @@ class IAttributedNetworkUsage extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -126,7 +126,7 @@ class IAttributedNetworkUsage extends IInspectable { IRandomAccessStreamReference? get attributionThumbnail { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -136,7 +136,7 @@ class IAttributedNetworkUsage extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_networking/lib/src/connectivity/iconnectioncost.dart b/packages/windows_networking/lib/src/connectivity/iconnectioncost.dart index 9191bf7c..4af6df9e 100644 --- a/packages/windows_networking/lib/src/connectivity/iconnectioncost.dart +++ b/packages/windows_networking/lib/src/connectivity/iconnectioncost.dart @@ -32,17 +32,17 @@ class IConnectionCost extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,17 +56,17 @@ class IConnectionCost extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -80,17 +80,17 @@ class IConnectionCost extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -104,17 +104,17 @@ class IConnectionCost extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_networking/lib/src/connectivity/iconnectioncost2.dart b/packages/windows_networking/lib/src/connectivity/iconnectioncost2.dart index 253073cb..4ac3defb 100644 --- a/packages/windows_networking/lib/src/connectivity/iconnectioncost2.dart +++ b/packages/windows_networking/lib/src/connectivity/iconnectioncost2.dart @@ -30,17 +30,17 @@ class IConnectionCost2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_networking/lib/src/connectivity/iconnectionprofile.dart b/packages/windows_networking/lib/src/connectivity/iconnectionprofile.dart index ff65ef80..ce9183be 100644 --- a/packages/windows_networking/lib/src/connectivity/iconnectionprofile.dart +++ b/packages/windows_networking/lib/src/connectivity/iconnectionprofile.dart @@ -38,7 +38,7 @@ class IConnectionProfile extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -48,7 +48,7 @@ class IConnectionProfile extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -62,17 +62,17 @@ class IConnectionProfile extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -85,7 +85,7 @@ class IConnectionProfile extends IInspectable { List getNetworkNames() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -95,7 +95,7 @@ class IConnectionProfile extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -110,7 +110,7 @@ class IConnectionProfile extends IInspectable { ConnectionCost? getConnectionCost() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -120,7 +120,7 @@ class IConnectionProfile extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -138,7 +138,7 @@ class IConnectionProfile extends IInspectable { DataPlanStatus? getDataPlanStatus() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -148,7 +148,7 @@ class IConnectionProfile extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -166,7 +166,7 @@ class IConnectionProfile extends IInspectable { NetworkAdapter? get networkAdapter { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -176,7 +176,7 @@ class IConnectionProfile extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -196,7 +196,7 @@ class IConnectionProfile extends IInspectable { DataUsage? getLocalUsage(DateTime startTime, DateTime endTime) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -206,8 +206,8 @@ class IConnectionProfile extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int startTime, int endTime, - Pointer value)>()(ptr.ref.lpVtbl, - startTime.toWinRTDateTime(), endTime.toWinRTDateTime(), value); + Pointer value)>()( + lpVtbl, startTime.toWinRTDateTime(), endTime.toWinRTDateTime(), value); if (FAILED(hr)) { free(value); @@ -228,7 +228,7 @@ class IConnectionProfile extends IInspectable { DateTime startTime, DateTime endTime, RoamingStates states) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -243,7 +243,7 @@ class IConnectionProfile extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int startTime, int endTime, int states, Pointer value)>()( - ptr.ref.lpVtbl, + lpVtbl, startTime.toWinRTDateTime(), endTime.toWinRTDateTime(), states.value, @@ -265,7 +265,7 @@ class IConnectionProfile extends IInspectable { NetworkSecuritySettings? get networkSecuritySettings { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -275,7 +275,7 @@ class IConnectionProfile extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_networking/lib/src/connectivity/iconnectionprofile2.dart b/packages/windows_networking/lib/src/connectivity/iconnectionprofile2.dart index 367e07d5..beaa4da5 100644 --- a/packages/windows_networking/lib/src/connectivity/iconnectionprofile2.dart +++ b/packages/windows_networking/lib/src/connectivity/iconnectionprofile2.dart @@ -38,17 +38,17 @@ class IConnectionProfile2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -62,17 +62,17 @@ class IConnectionProfile2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -85,7 +85,7 @@ class IConnectionProfile2 extends IInspectable { WwanConnectionProfileDetails? get wwanConnectionProfileDetails { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -95,7 +95,7 @@ class IConnectionProfile2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -113,7 +113,7 @@ class IConnectionProfile2 extends IInspectable { WlanConnectionProfileDetails? get wlanConnectionProfileDetails { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -123,7 +123,7 @@ class IConnectionProfile2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -141,7 +141,7 @@ class IConnectionProfile2 extends IInspectable { Guid? get serviceProviderGuid { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -151,7 +151,7 @@ class IConnectionProfile2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -171,7 +171,7 @@ class IConnectionProfile2 extends IInspectable { int? getSignalBars() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -181,7 +181,7 @@ class IConnectionProfile2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -202,17 +202,17 @@ class IConnectionProfile2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(12) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(12) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -230,7 +230,7 @@ class IConnectionProfile2 extends IInspectable { final value = calloc(); final statesNativeStructPtr = states.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -251,7 +251,7 @@ class IConnectionProfile2 extends IInspectable { int granularity, NativeNetworkUsageStates states, Pointer value)>()( - ptr.ref.lpVtbl, + lpVtbl, startTime.toWinRTDateTime(), endTime.toWinRTDateTime(), granularity.value, @@ -278,7 +278,7 @@ class IConnectionProfile2 extends IInspectable { final value = calloc(); final statesNativeStructPtr = states.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -297,7 +297,7 @@ class IConnectionProfile2 extends IInspectable { int endTime, NativeNetworkUsageStates states, Pointer value)>()( - ptr.ref.lpVtbl, + lpVtbl, startTime.toWinRTDateTime(), endTime.toWinRTDateTime(), statesNativeStructPtr.ref, diff --git a/packages/windows_networking/lib/src/connectivity/iconnectionprofile3.dart b/packages/windows_networking/lib/src/connectivity/iconnectionprofile3.dart index f435609b..6b46ffca 100644 --- a/packages/windows_networking/lib/src/connectivity/iconnectionprofile3.dart +++ b/packages/windows_networking/lib/src/connectivity/iconnectionprofile3.dart @@ -34,7 +34,7 @@ class IConnectionProfile3 extends IInspectable { final value = calloc(); final statesNativeStructPtr = states.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -53,7 +53,7 @@ class IConnectionProfile3 extends IInspectable { int endTime, NativeNetworkUsageStates states, Pointer value)>()( - ptr.ref.lpVtbl, + lpVtbl, startTime.toWinRTDateTime(), endTime.toWinRTDateTime(), statesNativeStructPtr.ref, diff --git a/packages/windows_networking/lib/src/connectivity/iconnectionprofile4.dart b/packages/windows_networking/lib/src/connectivity/iconnectionprofile4.dart index f69ceab2..42e04140 100644 --- a/packages/windows_networking/lib/src/connectivity/iconnectionprofile4.dart +++ b/packages/windows_networking/lib/src/connectivity/iconnectionprofile4.dart @@ -34,7 +34,7 @@ class IConnectionProfile4 extends IInspectable { final value = calloc(); final statesNativeStructPtr = states.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -53,7 +53,7 @@ class IConnectionProfile4 extends IInspectable { int endTime, NativeNetworkUsageStates states, Pointer value)>()( - ptr.ref.lpVtbl, + lpVtbl, startTime.toWinRTDateTime(), endTime.toWinRTDateTime(), statesNativeStructPtr.ref, diff --git a/packages/windows_networking/lib/src/connectivity/iconnectionprofile5.dart b/packages/windows_networking/lib/src/connectivity/iconnectionprofile5.dart index 3493d1f3..1f93003d 100644 --- a/packages/windows_networking/lib/src/connectivity/iconnectionprofile5.dart +++ b/packages/windows_networking/lib/src/connectivity/iconnectionprofile5.dart @@ -32,17 +32,17 @@ class IConnectionProfile5 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +55,7 @@ class IConnectionProfile5 extends IInspectable { Future tryDeleteAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -65,7 +65,7 @@ class IConnectionProfile5 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_networking/lib/src/connectivity/iconnectionprofile6.dart b/packages/windows_networking/lib/src/connectivity/iconnectionprofile6.dart index 05097e3d..06eaea3d 100644 --- a/packages/windows_networking/lib/src/connectivity/iconnectionprofile6.dart +++ b/packages/windows_networking/lib/src/connectivity/iconnectionprofile6.dart @@ -32,7 +32,7 @@ class IConnectionProfile6 extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IConnectionProfile6 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int kind, - Pointer result)>()(ptr.ref.lpVtbl, kind.value, result); + Pointer result)>()(lpVtbl, kind.value, result); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_networking/lib/src/connectivity/iconnectionprofilefilter.dart b/packages/windows_networking/lib/src/connectivity/iconnectionprofilefilter.dart index 21cede4c..c12f3c44 100644 --- a/packages/windows_networking/lib/src/connectivity/iconnectionprofilefilter.dart +++ b/packages/windows_networking/lib/src/connectivity/iconnectionprofilefilter.dart @@ -29,7 +29,7 @@ class IConnectionProfileFilter extends IInspectable { .cast(IConnectionProfileFilter.fromPtr, IID_IConnectionProfileFilter); set isConnected(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -37,7 +37,7 @@ class IConnectionProfileFilter extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -46,17 +46,17 @@ class IConnectionProfileFilter extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -67,7 +67,7 @@ class IConnectionProfileFilter extends IInspectable { } set isWwanConnectionProfile(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -75,7 +75,7 @@ class IConnectionProfileFilter extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -84,17 +84,17 @@ class IConnectionProfileFilter extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -105,7 +105,7 @@ class IConnectionProfileFilter extends IInspectable { } set isWlanConnectionProfile(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -113,7 +113,7 @@ class IConnectionProfileFilter extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -122,17 +122,17 @@ class IConnectionProfileFilter extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -143,7 +143,7 @@ class IConnectionProfileFilter extends IInspectable { } set networkCostType(NetworkCostType value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -151,7 +151,7 @@ class IConnectionProfileFilter extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -160,17 +160,17 @@ class IConnectionProfileFilter extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(13) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(13) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -181,7 +181,7 @@ class IConnectionProfileFilter extends IInspectable { } set serviceProviderGuid(Guid? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -191,7 +191,7 @@ class IConnectionProfileFilter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toReference().lpVtbl ?? nullptr); + lpVtbl, value?.toReference().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @@ -199,7 +199,7 @@ class IConnectionProfileFilter extends IInspectable { Guid? get serviceProviderGuid { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -209,7 +209,7 @@ class IConnectionProfileFilter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_networking/lib/src/connectivity/iconnectionprofilefilter2.dart b/packages/windows_networking/lib/src/connectivity/iconnectionprofilefilter2.dart index 7574142d..1997690f 100644 --- a/packages/windows_networking/lib/src/connectivity/iconnectionprofilefilter2.dart +++ b/packages/windows_networking/lib/src/connectivity/iconnectionprofilefilter2.dart @@ -28,7 +28,7 @@ class IConnectionProfileFilter2 extends IInspectable { .cast(IConnectionProfileFilter2.fromPtr, IID_IConnectionProfileFilter2); set isRoaming(bool? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -38,7 +38,7 @@ class IConnectionProfileFilter2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toReference().lpVtbl ?? nullptr); + lpVtbl, value?.toReference().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @@ -46,7 +46,7 @@ class IConnectionProfileFilter2 extends IInspectable { bool? get isRoaming { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -56,7 +56,7 @@ class IConnectionProfileFilter2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -74,7 +74,7 @@ class IConnectionProfileFilter2 extends IInspectable { } set isOverDataLimit(bool? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -84,7 +84,7 @@ class IConnectionProfileFilter2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toReference().lpVtbl ?? nullptr); + lpVtbl, value?.toReference().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @@ -92,7 +92,7 @@ class IConnectionProfileFilter2 extends IInspectable { bool? get isOverDataLimit { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -102,7 +102,7 @@ class IConnectionProfileFilter2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -120,7 +120,7 @@ class IConnectionProfileFilter2 extends IInspectable { } set isBackgroundDataUsageRestricted(bool? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -130,7 +130,7 @@ class IConnectionProfileFilter2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toReference().lpVtbl ?? nullptr); + lpVtbl, value?.toReference().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @@ -138,7 +138,7 @@ class IConnectionProfileFilter2 extends IInspectable { bool? get isBackgroundDataUsageRestricted { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -148,7 +148,7 @@ class IConnectionProfileFilter2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -168,7 +168,7 @@ class IConnectionProfileFilter2 extends IInspectable { IBuffer? get rawData { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -178,7 +178,7 @@ class IConnectionProfileFilter2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_networking/lib/src/connectivity/iconnectionprofilefilter3.dart b/packages/windows_networking/lib/src/connectivity/iconnectionprofilefilter3.dart index 894c7a94..b654fb33 100644 --- a/packages/windows_networking/lib/src/connectivity/iconnectionprofilefilter3.dart +++ b/packages/windows_networking/lib/src/connectivity/iconnectionprofilefilter3.dart @@ -27,7 +27,7 @@ class IConnectionProfileFilter3 extends IInspectable { .cast(IConnectionProfileFilter3.fromPtr, IID_IConnectionProfileFilter3); set purposeGuid(Guid? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -37,7 +37,7 @@ class IConnectionProfileFilter3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toReference().lpVtbl ?? nullptr); + lpVtbl, value?.toReference().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @@ -45,7 +45,7 @@ class IConnectionProfileFilter3 extends IInspectable { Guid? get purposeGuid { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -55,7 +55,7 @@ class IConnectionProfileFilter3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_networking/lib/src/connectivity/iconnectivityinterval.dart b/packages/windows_networking/lib/src/connectivity/iconnectivityinterval.dart index e5b2b1d0..617169c9 100644 --- a/packages/windows_networking/lib/src/connectivity/iconnectivityinterval.dart +++ b/packages/windows_networking/lib/src/connectivity/iconnectivityinterval.dart @@ -30,7 +30,7 @@ class IConnectivityInterval extends IInspectable { final startTime = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IConnectivityInterval extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer startTime)>()(ptr.ref.lpVtbl, startTime); + Pointer startTime)>()(lpVtbl, startTime); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IConnectivityInterval extends IInspectable { final duration = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IConnectivityInterval extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer duration)>()(ptr.ref.lpVtbl, duration); + Pointer duration)>()(lpVtbl, duration); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_networking/lib/src/connectivity/idataplanstatus.dart b/packages/windows_networking/lib/src/connectivity/idataplanstatus.dart index c4c99849..b3a5d6a8 100644 --- a/packages/windows_networking/lib/src/connectivity/idataplanstatus.dart +++ b/packages/windows_networking/lib/src/connectivity/idataplanstatus.dart @@ -31,7 +31,7 @@ class IDataPlanStatus extends IInspectable { DataPlanUsage? get dataPlanUsage { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IDataPlanStatus extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -59,7 +59,7 @@ class IDataPlanStatus extends IInspectable { int? get dataLimitInMegabytes { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -69,7 +69,7 @@ class IDataPlanStatus extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -89,7 +89,7 @@ class IDataPlanStatus extends IInspectable { int? get inboundBitsPerSecond { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -99,7 +99,7 @@ class IDataPlanStatus extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -119,7 +119,7 @@ class IDataPlanStatus extends IInspectable { int? get outboundBitsPerSecond { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -129,7 +129,7 @@ class IDataPlanStatus extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -149,7 +149,7 @@ class IDataPlanStatus extends IInspectable { DateTime? get nextBillingCycle { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -159,7 +159,7 @@ class IDataPlanStatus extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -179,7 +179,7 @@ class IDataPlanStatus extends IInspectable { int? get maxTransferSizeInMegabytes { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -189,7 +189,7 @@ class IDataPlanStatus extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_networking/lib/src/connectivity/idataplanusage.dart b/packages/windows_networking/lib/src/connectivity/idataplanusage.dart index a1834cd9..24467af4 100644 --- a/packages/windows_networking/lib/src/connectivity/idataplanusage.dart +++ b/packages/windows_networking/lib/src/connectivity/idataplanusage.dart @@ -30,7 +30,7 @@ class IDataPlanUsage extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IDataPlanUsage extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,17 +54,17 @@ class IDataPlanUsage extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_networking/lib/src/connectivity/idatausage.dart b/packages/windows_networking/lib/src/connectivity/idatausage.dart index ad9972dd..6092a612 100644 --- a/packages/windows_networking/lib/src/connectivity/idatausage.dart +++ b/packages/windows_networking/lib/src/connectivity/idatausage.dart @@ -34,7 +34,7 @@ class IDataUsage extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class IDataUsage extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -60,7 +60,7 @@ class IDataUsage extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -70,7 +70,7 @@ class IDataUsage extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_networking/lib/src/connectivity/iipinformation.dart b/packages/windows_networking/lib/src/connectivity/iipinformation.dart index 57a85343..261220de 100644 --- a/packages/windows_networking/lib/src/connectivity/iipinformation.dart +++ b/packages/windows_networking/lib/src/connectivity/iipinformation.dart @@ -31,7 +31,7 @@ class IIPInformation extends IInspectable { NetworkAdapter? get networkAdapter { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IIPInformation extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -59,7 +59,7 @@ class IIPInformation extends IInspectable { int? get prefixLength { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -69,7 +69,7 @@ class IIPInformation extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_networking/lib/src/connectivity/ilanidentifier.dart b/packages/windows_networking/lib/src/connectivity/ilanidentifier.dart index 078ef5a5..25559a73 100644 --- a/packages/windows_networking/lib/src/connectivity/ilanidentifier.dart +++ b/packages/windows_networking/lib/src/connectivity/ilanidentifier.dart @@ -31,7 +31,7 @@ class ILanIdentifier extends IInspectable { LanIdentifierData? get infrastructureId { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class ILanIdentifier extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -59,7 +59,7 @@ class ILanIdentifier extends IInspectable { LanIdentifierData? get portId { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -69,7 +69,7 @@ class ILanIdentifier extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -88,17 +88,17 @@ class ILanIdentifier extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_networking/lib/src/connectivity/ilanidentifierdata.dart b/packages/windows_networking/lib/src/connectivity/ilanidentifierdata.dart index 266c5f1d..f492562b 100644 --- a/packages/windows_networking/lib/src/connectivity/ilanidentifierdata.dart +++ b/packages/windows_networking/lib/src/connectivity/ilanidentifierdata.dart @@ -30,7 +30,7 @@ class ILanIdentifierData extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class ILanIdentifierData extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -53,7 +53,7 @@ class ILanIdentifierData extends IInspectable { List? get value { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -63,7 +63,7 @@ class ILanIdentifierData extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_networking/lib/src/connectivity/inetworkadapter.dart b/packages/windows_networking/lib/src/connectivity/inetworkadapter.dart index 09fd955e..9c451877 100644 --- a/packages/windows_networking/lib/src/connectivity/inetworkadapter.dart +++ b/packages/windows_networking/lib/src/connectivity/inetworkadapter.dart @@ -33,7 +33,7 @@ class INetworkAdapter extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class INetworkAdapter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -57,7 +57,7 @@ class INetworkAdapter extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -67,7 +67,7 @@ class INetworkAdapter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -81,7 +81,7 @@ class INetworkAdapter extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -91,7 +91,7 @@ class INetworkAdapter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -104,7 +104,7 @@ class INetworkAdapter extends IInspectable { NetworkItem? get networkItem { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -114,7 +114,7 @@ class INetworkAdapter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -133,17 +133,17 @@ class INetworkAdapter extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -156,7 +156,7 @@ class INetworkAdapter extends IInspectable { Future getConnectedProfileAsync() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -166,7 +166,7 @@ class INetworkAdapter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_networking/lib/src/connectivity/inetworkinformationstatics.dart b/packages/windows_networking/lib/src/connectivity/inetworkinformationstatics.dart index eb3071b2..5d07c7bc 100644 --- a/packages/windows_networking/lib/src/connectivity/inetworkinformationstatics.dart +++ b/packages/windows_networking/lib/src/connectivity/inetworkinformationstatics.dart @@ -36,7 +36,7 @@ class INetworkInformationStatics extends IInspectable { List getConnectionProfiles() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -46,7 +46,7 @@ class INetworkInformationStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -62,7 +62,7 @@ class INetworkInformationStatics extends IInspectable { ConnectionProfile? getInternetConnectionProfile() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -72,7 +72,7 @@ class INetworkInformationStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -90,7 +90,7 @@ class INetworkInformationStatics extends IInspectable { List getLanIdentifiers() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -100,7 +100,7 @@ class INetworkInformationStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -116,7 +116,7 @@ class INetworkInformationStatics extends IInspectable { List getHostNames() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -126,7 +126,7 @@ class INetworkInformationStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -142,7 +142,7 @@ class INetworkInformationStatics extends IInspectable { Future getProxyConfigurationAsync(Uri? uri) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -153,7 +153,7 @@ class INetworkInformationStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer uri, Pointer value)>()( - ptr.ref.lpVtbl, uri?.toWinRTUri().lpVtbl ?? nullptr, value); + lpVtbl, uri?.toWinRTUri().lpVtbl ?? nullptr, value); if (FAILED(hr)) { free(value); @@ -170,7 +170,7 @@ class INetworkInformationStatics extends IInspectable { HostNameSortOptions sortOptions) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -187,7 +187,7 @@ class INetworkInformationStatics extends IInspectable { VTablePointer destinationList, int sortOptions, Pointer value)>()( - ptr.ref.lpVtbl, destinationList.lpVtbl, sortOptions.value, value); + lpVtbl, destinationList.lpVtbl, sortOptions.value, value); if (FAILED(hr)) { free(value); @@ -204,7 +204,7 @@ class INetworkInformationStatics extends IInspectable { final eventCookie = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -219,7 +219,7 @@ class INetworkInformationStatics extends IInspectable { VTablePointer lpVtbl, VTablePointer networkStatusHandler, Pointer eventCookie)>()( - ptr.ref.lpVtbl, networkStatusHandler.ref.lpVtbl, eventCookie); + lpVtbl, networkStatusHandler.ref.lpVtbl, eventCookie); if (FAILED(hr)) throwWindowsException(hr); @@ -230,7 +230,7 @@ class INetworkInformationStatics extends IInspectable { } void remove_NetworkStatusChanged(int eventCookie) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -239,7 +239,7 @@ class INetworkInformationStatics extends IInspectable { VTablePointer lpVtbl, IntPtr eventCookie)>>>() .value .asFunction()( - ptr.ref.lpVtbl, eventCookie); + lpVtbl, eventCookie); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_networking/lib/src/connectivity/inetworkinformationstatics2.dart b/packages/windows_networking/lib/src/connectivity/inetworkinformationstatics2.dart index b6da8940..f23923cb 100644 --- a/packages/windows_networking/lib/src/connectivity/inetworkinformationstatics2.dart +++ b/packages/windows_networking/lib/src/connectivity/inetworkinformationstatics2.dart @@ -35,7 +35,7 @@ class INetworkInformationStatics2 extends IInspectable { ConnectionProfileFilter? pProfileFilter) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -48,7 +48,7 @@ class INetworkInformationStatics2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer pProfileFilter, Pointer value)>()( - ptr.ref.lpVtbl, pProfileFilter.lpVtbl, value); + lpVtbl, pProfileFilter.lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_networking/lib/src/connectivity/inetworkitem.dart b/packages/windows_networking/lib/src/connectivity/inetworkitem.dart index be0cf196..393d3c91 100644 --- a/packages/windows_networking/lib/src/connectivity/inetworkitem.dart +++ b/packages/windows_networking/lib/src/connectivity/inetworkitem.dart @@ -32,17 +32,17 @@ class INetworkItem extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class INetworkItem extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class INetworkItem extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_networking/lib/src/connectivity/inetworksecuritysettings.dart b/packages/windows_networking/lib/src/connectivity/inetworksecuritysettings.dart index a1ecec0a..ebf44f9e 100644 --- a/packages/windows_networking/lib/src/connectivity/inetworksecuritysettings.dart +++ b/packages/windows_networking/lib/src/connectivity/inetworksecuritysettings.dart @@ -33,17 +33,17 @@ class INetworkSecuritySettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -57,17 +57,17 @@ class INetworkSecuritySettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_networking/lib/src/connectivity/inetworkusage.dart b/packages/windows_networking/lib/src/connectivity/inetworkusage.dart index edd40629..5f9e2cac 100644 --- a/packages/windows_networking/lib/src/connectivity/inetworkusage.dart +++ b/packages/windows_networking/lib/src/connectivity/inetworkusage.dart @@ -30,7 +30,7 @@ class INetworkUsage extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class INetworkUsage extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class INetworkUsage extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class INetworkUsage extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -78,7 +78,7 @@ class INetworkUsage extends IInspectable { final duration = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -88,7 +88,7 @@ class INetworkUsage extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer duration)>()(ptr.ref.lpVtbl, duration); + Pointer duration)>()(lpVtbl, duration); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_networking/lib/src/connectivity/iprovidernetworkusage.dart b/packages/windows_networking/lib/src/connectivity/iprovidernetworkusage.dart index 2ca556af..faca4d33 100644 --- a/packages/windows_networking/lib/src/connectivity/iprovidernetworkusage.dart +++ b/packages/windows_networking/lib/src/connectivity/iprovidernetworkusage.dart @@ -30,7 +30,7 @@ class IProviderNetworkUsage extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IProviderNetworkUsage extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IProviderNetworkUsage extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IProviderNetworkUsage extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -78,7 +78,7 @@ class IProviderNetworkUsage extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -88,7 +88,7 @@ class IProviderNetworkUsage extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_networking/lib/src/connectivity/iproxyconfiguration.dart b/packages/windows_networking/lib/src/connectivity/iproxyconfiguration.dart index 4b0172d8..494ac7a5 100644 --- a/packages/windows_networking/lib/src/connectivity/iproxyconfiguration.dart +++ b/packages/windows_networking/lib/src/connectivity/iproxyconfiguration.dart @@ -29,7 +29,7 @@ class IProxyConfiguration extends IInspectable { List? get proxyUris { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class IProxyConfiguration extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -60,17 +60,17 @@ class IProxyConfiguration extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_networking/lib/src/connectivity/iwlanconnectionprofiledetails.dart b/packages/windows_networking/lib/src/connectivity/iwlanconnectionprofiledetails.dart index c3d1b836..cd05c9be 100644 --- a/packages/windows_networking/lib/src/connectivity/iwlanconnectionprofiledetails.dart +++ b/packages/windows_networking/lib/src/connectivity/iwlanconnectionprofiledetails.dart @@ -32,7 +32,7 @@ class IWlanConnectionProfileDetails extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IWlanConnectionProfileDetails extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_networking/lib/src/connectivity/iwwanconnectionprofiledetails.dart b/packages/windows_networking/lib/src/connectivity/iwwanconnectionprofiledetails.dart index 153e8856..4323fa61 100644 --- a/packages/windows_networking/lib/src/connectivity/iwwanconnectionprofiledetails.dart +++ b/packages/windows_networking/lib/src/connectivity/iwwanconnectionprofiledetails.dart @@ -35,7 +35,7 @@ class IWwanConnectionProfileDetails extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IWwanConnectionProfileDetails extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -59,7 +59,7 @@ class IWwanConnectionProfileDetails extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -69,7 +69,7 @@ class IWwanConnectionProfileDetails extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -83,17 +83,17 @@ class IWwanConnectionProfileDetails extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -107,7 +107,7 @@ class IWwanConnectionProfileDetails extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -117,7 +117,7 @@ class IWwanConnectionProfileDetails extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_networking/lib/src/connectivity/iwwanconnectionprofiledetails2.dart b/packages/windows_networking/lib/src/connectivity/iwwanconnectionprofiledetails2.dart index d171d1ac..d34bf26f 100644 --- a/packages/windows_networking/lib/src/connectivity/iwwanconnectionprofiledetails2.dart +++ b/packages/windows_networking/lib/src/connectivity/iwwanconnectionprofiledetails2.dart @@ -34,17 +34,17 @@ class IWwanConnectionProfileDetails2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -57,7 +57,7 @@ class IWwanConnectionProfileDetails2 extends IInspectable { List? get purposeGuids { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -67,7 +67,7 @@ class IWwanConnectionProfileDetails2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_networking/lib/src/iendpointpair.dart b/packages/windows_networking/lib/src/iendpointpair.dart index b3ec8c61..c7ced6bb 100644 --- a/packages/windows_networking/lib/src/iendpointpair.dart +++ b/packages/windows_networking/lib/src/iendpointpair.dart @@ -31,7 +31,7 @@ class IEndpointPair extends IInspectable { HostName? get localHostName { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IEndpointPair extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -57,7 +57,7 @@ class IEndpointPair extends IInspectable { } set localHostName(HostName? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -67,7 +67,7 @@ class IEndpointPair extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value.lpVtbl); + lpVtbl, value.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -76,7 +76,7 @@ class IEndpointPair extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -86,7 +86,7 @@ class IEndpointPair extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -98,7 +98,7 @@ class IEndpointPair extends IInspectable { set localServiceName(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -107,7 +107,7 @@ class IEndpointPair extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -115,7 +115,7 @@ class IEndpointPair extends IInspectable { HostName? get remoteHostName { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -125,7 +125,7 @@ class IEndpointPair extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -141,7 +141,7 @@ class IEndpointPair extends IInspectable { } set remoteHostName(HostName? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -151,7 +151,7 @@ class IEndpointPair extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value.lpVtbl); + lpVtbl, value.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -160,7 +160,7 @@ class IEndpointPair extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -170,7 +170,7 @@ class IEndpointPair extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -182,7 +182,7 @@ class IEndpointPair extends IInspectable { set remoteServiceName(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(13) .cast< Pointer< @@ -191,7 +191,7 @@ class IEndpointPair extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_networking/lib/src/iendpointpairfactory.dart b/packages/windows_networking/lib/src/iendpointpairfactory.dart index 94e3c2a2..32af1f8f 100644 --- a/packages/windows_networking/lib/src/iendpointpairfactory.dart +++ b/packages/windows_networking/lib/src/iendpointpairfactory.dart @@ -36,7 +36,7 @@ class IEndpointPairFactory extends IInspectable { String remoteServiceName) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -57,7 +57,7 @@ class IEndpointPairFactory extends IInspectable { VTablePointer remoteHostName, int remoteServiceName, Pointer value)>()( - ptr.ref.lpVtbl, + lpVtbl, localHostName.lpVtbl, localServiceName.toHString(), remoteHostName.lpVtbl, diff --git a/packages/windows_networking/lib/src/ihostname.dart b/packages/windows_networking/lib/src/ihostname.dart index c64f4fc4..9d44dfdd 100644 --- a/packages/windows_networking/lib/src/ihostname.dart +++ b/packages/windows_networking/lib/src/ihostname.dart @@ -33,7 +33,7 @@ class IHostName extends IInspectable { IPInformation? get ipInformation { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IHostName extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -62,7 +62,7 @@ class IHostName extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -72,7 +72,7 @@ class IHostName extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -86,7 +86,7 @@ class IHostName extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -96,7 +96,7 @@ class IHostName extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -110,7 +110,7 @@ class IHostName extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -120,7 +120,7 @@ class IHostName extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -134,17 +134,17 @@ class IHostName extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -158,21 +158,17 @@ class IHostName extends IInspectable { final isEqual = calloc(); try { - final hr = - ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - VTablePointer hostName, - Pointer isEqual)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer hostName, - Pointer isEqual)>()( - ptr.ref.lpVtbl, hostName.lpVtbl, isEqual); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer hostName, Pointer isEqual)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer hostName, + Pointer isEqual)>()(lpVtbl, hostName.lpVtbl, isEqual); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_networking/lib/src/ihostnamefactory.dart b/packages/windows_networking/lib/src/ihostnamefactory.dart index 9bef6a74..376f4cf0 100644 --- a/packages/windows_networking/lib/src/ihostnamefactory.dart +++ b/packages/windows_networking/lib/src/ihostnamefactory.dart @@ -31,7 +31,7 @@ class IHostNameFactory extends IInspectable { HostName createHostName(String hostName) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IHostNameFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int hostName, Pointer value)>()( - ptr.ref.lpVtbl, hostName.toHString(), value); + lpVtbl, hostName.toHString(), value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_networking/lib/src/ihostnamestatics.dart b/packages/windows_networking/lib/src/ihostnamestatics.dart index 656bdd9f..2b848cd1 100644 --- a/packages/windows_networking/lib/src/ihostnamestatics.dart +++ b/packages/windows_networking/lib/src/ihostnamestatics.dart @@ -30,7 +30,7 @@ class IHostNameStatics extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IHostNameStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int value1, int value2, Pointer result)>()( - ptr.ref.lpVtbl, value1.toHString(), value2.toHString(), result); + lpVtbl, value1.toHString(), value2.toHString(), result); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringaccesspointconfiguration.dart b/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringaccesspointconfiguration.dart index af29b8dd..a18ddc8b 100644 --- a/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringaccesspointconfiguration.dart +++ b/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringaccesspointconfiguration.dart @@ -33,7 +33,7 @@ class INetworkOperatorTetheringAccessPointConfiguration extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class INetworkOperatorTetheringAccessPointConfiguration extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +55,7 @@ class INetworkOperatorTetheringAccessPointConfiguration extends IInspectable { set ssid(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class INetworkOperatorTetheringAccessPointConfiguration extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -73,7 +73,7 @@ class INetworkOperatorTetheringAccessPointConfiguration extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -83,7 +83,7 @@ class INetworkOperatorTetheringAccessPointConfiguration extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -95,7 +95,7 @@ class INetworkOperatorTetheringAccessPointConfiguration extends IInspectable { set passphrase(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -104,7 +104,7 @@ class INetworkOperatorTetheringAccessPointConfiguration extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringaccesspointconfiguration2.dart b/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringaccesspointconfiguration2.dart index 5806d2bd..7409797d 100644 --- a/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringaccesspointconfiguration2.dart +++ b/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringaccesspointconfiguration2.dart @@ -35,7 +35,7 @@ class INetworkOperatorTetheringAccessPointConfiguration2 extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class INetworkOperatorTetheringAccessPointConfiguration2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int band, - Pointer result)>()(ptr.ref.lpVtbl, band.value, result); + Pointer result)>()(lpVtbl, band.value, result); if (FAILED(hr)) throwWindowsException(hr); @@ -58,18 +58,17 @@ class INetworkOperatorTetheringAccessPointConfiguration2 extends IInspectable { Future isBandSupportedAsync(TetheringWiFiBand band) { final operation = calloc(); - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 band, - Pointer operation)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int band, - Pointer operation)>()( - ptr.ref.lpVtbl, band.value, operation); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 band, + Pointer operation)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int band, + Pointer operation)>()(lpVtbl, band.value, operation); if (FAILED(hr)) { free(operation); @@ -84,17 +83,17 @@ class INetworkOperatorTetheringAccessPointConfiguration2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -105,7 +104,7 @@ class INetworkOperatorTetheringAccessPointConfiguration2 extends IInspectable { } set band(TetheringWiFiBand value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -113,7 +112,7 @@ class INetworkOperatorTetheringAccessPointConfiguration2 extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringclient.dart b/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringclient.dart index b05c3c45..e774d7d2 100644 --- a/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringclient.dart +++ b/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringclient.dart @@ -34,7 +34,7 @@ class INetworkOperatorTetheringClient extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class INetworkOperatorTetheringClient extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -57,7 +57,7 @@ class INetworkOperatorTetheringClient extends IInspectable { List? get hostNames { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -67,7 +67,7 @@ class INetworkOperatorTetheringClient extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringclientmanager.dart b/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringclientmanager.dart index 85b5a2e9..d26ec384 100644 --- a/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringclientmanager.dart +++ b/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringclientmanager.dart @@ -33,7 +33,7 @@ class INetworkOperatorTetheringClientManager extends IInspectable { List getTetheringClients() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class INetworkOperatorTetheringClientManager extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringmanager.dart b/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringmanager.dart index 356a3242..f67f0d3c 100644 --- a/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringmanager.dart +++ b/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringmanager.dart @@ -36,7 +36,7 @@ class INetworkOperatorTetheringManager extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -46,7 +46,7 @@ class INetworkOperatorTetheringManager extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -60,7 +60,7 @@ class INetworkOperatorTetheringManager extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -70,7 +70,7 @@ class INetworkOperatorTetheringManager extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -84,17 +84,17 @@ class INetworkOperatorTetheringManager extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -108,18 +108,17 @@ class INetworkOperatorTetheringManager extends IInspectable { getCurrentAccessPointConfiguration() { final configuration = calloc(); - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer configuration)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, Pointer configuration)>()( - ptr.ref.lpVtbl, configuration); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer configuration)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer configuration)>()(lpVtbl, configuration); if (FAILED(hr)) { free(configuration); @@ -139,7 +138,7 @@ class INetworkOperatorTetheringManager extends IInspectable { NetworkOperatorTetheringAccessPointConfiguration? configuration) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -152,7 +151,7 @@ class INetworkOperatorTetheringManager extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer configuration, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, configuration.lpVtbl, asyncInfo); + lpVtbl, configuration.lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -165,7 +164,7 @@ class INetworkOperatorTetheringManager extends IInspectable { Future startTetheringAsync() { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -175,7 +174,7 @@ class INetworkOperatorTetheringManager extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer asyncInfo)>()(ptr.ref.lpVtbl, asyncInfo); + Pointer asyncInfo)>()(lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -192,7 +191,7 @@ class INetworkOperatorTetheringManager extends IInspectable { Future stopTetheringAsync() { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -202,7 +201,7 @@ class INetworkOperatorTetheringManager extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer asyncInfo)>()(ptr.ref.lpVtbl, asyncInfo); + Pointer asyncInfo)>()(lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); diff --git a/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringmanagerstatics.dart b/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringmanagerstatics.dart index 6f5868d4..6beac742 100644 --- a/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringmanagerstatics.dart +++ b/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringmanagerstatics.dart @@ -37,7 +37,7 @@ class INetworkOperatorTetheringManagerStatics extends IInspectable { try { final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -50,7 +50,7 @@ class INetworkOperatorTetheringManagerStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int networkAccountId, Pointer value)>()( - ptr.ref.lpVtbl, networkAccountId.toHString(), value); + lpVtbl, networkAccountId.toHString(), value); if (FAILED(hr)) throwWindowsException(hr); @@ -64,7 +64,7 @@ class INetworkOperatorTetheringManagerStatics extends IInspectable { String networkAccountId) { final ppManager = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -77,7 +77,7 @@ class INetworkOperatorTetheringManagerStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int networkAccountId, Pointer ppManager)>()( - ptr.ref.lpVtbl, networkAccountId.toHString(), ppManager); + lpVtbl, networkAccountId.toHString(), ppManager); if (FAILED(hr)) { free(ppManager); diff --git a/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringmanagerstatics2.dart b/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringmanagerstatics2.dart index e6a7da2a..fc99e20c 100644 --- a/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringmanagerstatics2.dart +++ b/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringmanagerstatics2.dart @@ -38,18 +38,17 @@ class INetworkOperatorTetheringManagerStatics2 extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer profile, Pointer result)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer profile, - Pointer result)>()( - ptr.ref.lpVtbl, profile.lpVtbl, result); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer profile, Pointer result)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer profile, + Pointer result)>()(lpVtbl, profile.lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -63,7 +62,7 @@ class INetworkOperatorTetheringManagerStatics2 extends IInspectable { ConnectionProfile? profile) { final ppManager = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -76,7 +75,7 @@ class INetworkOperatorTetheringManagerStatics2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer profile, Pointer ppManager)>()( - ptr.ref.lpVtbl, profile.lpVtbl, ppManager); + lpVtbl, profile.lpVtbl, ppManager); if (FAILED(hr)) { free(ppManager); diff --git a/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringmanagerstatics3.dart b/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringmanagerstatics3.dart index 65d4048b..5bc74597 100644 --- a/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringmanagerstatics3.dart +++ b/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringmanagerstatics3.dart @@ -37,7 +37,7 @@ class INetworkOperatorTetheringManagerStatics3 extends IInspectable { ConnectionProfile? profile, NetworkAdapter? adapter) { final ppManager = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -51,7 +51,7 @@ class INetworkOperatorTetheringManagerStatics3 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer profile, VTablePointer adapter, Pointer ppManager)>()( - ptr.ref.lpVtbl, profile.lpVtbl, adapter.lpVtbl, ppManager); + lpVtbl, profile.lpVtbl, adapter.lpVtbl, ppManager); if (FAILED(hr)) { free(ppManager); diff --git a/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringmanagerstatics4.dart b/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringmanagerstatics4.dart index 4e1282c9..8d09be55 100644 --- a/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringmanagerstatics4.dart +++ b/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringmanagerstatics4.dart @@ -33,7 +33,7 @@ class INetworkOperatorTetheringManagerStatics4 extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class INetworkOperatorTetheringManagerStatics4 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -54,11 +54,11 @@ class INetworkOperatorTetheringManagerStatics4 extends IInspectable { } void enableNoConnectionsTimeout() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -66,7 +66,7 @@ class INetworkOperatorTetheringManagerStatics4 extends IInspectable { Future enableNoConnectionsTimeoutAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -76,7 +76,7 @@ class INetworkOperatorTetheringManagerStatics4 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -87,11 +87,11 @@ class INetworkOperatorTetheringManagerStatics4 extends IInspectable { } void disableNoConnectionsTimeout() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -99,7 +99,7 @@ class INetworkOperatorTetheringManagerStatics4 extends IInspectable { Future disableNoConnectionsTimeoutAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -109,7 +109,7 @@ class INetworkOperatorTetheringManagerStatics4 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringoperationresult.dart b/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringoperationresult.dart index 555bc623..05c5e223 100644 --- a/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringoperationresult.dart +++ b/packages/windows_networking/lib/src/networkoperators/inetworkoperatortetheringoperationresult.dart @@ -35,17 +35,17 @@ class INetworkOperatorTetheringOperationResult extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -59,7 +59,7 @@ class INetworkOperatorTetheringOperationResult extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -69,7 +69,7 @@ class INetworkOperatorTetheringOperationResult extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_perception/lib/src/spatial/ispatialcoordinatesystem.dart b/packages/windows_perception/lib/src/spatial/ispatialcoordinatesystem.dart index 7f472327..1054d76b 100644 --- a/packages/windows_perception/lib/src/spatial/ispatialcoordinatesystem.dart +++ b/packages/windows_perception/lib/src/spatial/ispatialcoordinatesystem.dart @@ -31,7 +31,7 @@ class ISpatialCoordinateSystem extends IInspectable { Matrix4x4? tryGetTransformTo(SpatialCoordinateSystem? target) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,11 +40,8 @@ class ISpatialCoordinateSystem extends IInspectable { Pointer value)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer target, - Pointer - value)>()(ptr.ref.lpVtbl, target.lpVtbl, value); + int Function(VTablePointer lpVtbl, VTablePointer target, + Pointer value)>()(lpVtbl, target.lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_security/lib/src/authentication/web/core/ifindallaccountsresult.dart b/packages/windows_security/lib/src/authentication/web/core/ifindallaccountsresult.dart index 77c497a7..754fe493 100644 --- a/packages/windows_security/lib/src/authentication/web/core/ifindallaccountsresult.dart +++ b/packages/windows_security/lib/src/authentication/web/core/ifindallaccountsresult.dart @@ -33,7 +33,7 @@ class IFindAllAccountsResult extends IInspectable { List? get accounts { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IFindAllAccountsResult extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -65,17 +65,17 @@ class IFindAllAccountsResult extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -88,7 +88,7 @@ class IFindAllAccountsResult extends IInspectable { WebProviderError? get providerError { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -98,7 +98,7 @@ class IFindAllAccountsResult extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_security/lib/src/authentication/web/core/iwebaccountmonitor.dart b/packages/windows_security/lib/src/authentication/web/core/iwebaccountmonitor.dart index e3fc458e..3595645a 100644 --- a/packages/windows_security/lib/src/authentication/web/core/iwebaccountmonitor.dart +++ b/packages/windows_security/lib/src/authentication/web/core/iwebaccountmonitor.dart @@ -32,18 +32,17 @@ class IWebAccountMonitor extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +54,7 @@ class IWebAccountMonitor extends IInspectable { void remove_Updated(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -64,7 +63,7 @@ class IWebAccountMonitor extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -73,18 +72,17 @@ class IWebAccountMonitor extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -96,7 +94,7 @@ class IWebAccountMonitor extends IInspectable { void remove_Removed(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -105,7 +103,7 @@ class IWebAccountMonitor extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -114,18 +112,17 @@ class IWebAccountMonitor extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -137,7 +134,7 @@ class IWebAccountMonitor extends IInspectable { void remove_DefaultSignInAccountChanged(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(11) .cast< Pointer< @@ -146,7 +143,7 @@ class IWebAccountMonitor extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_security/lib/src/authentication/web/core/iwebaccountmonitor2.dart b/packages/windows_security/lib/src/authentication/web/core/iwebaccountmonitor2.dart index 34172dfd..d59eb6ba 100644 --- a/packages/windows_security/lib/src/authentication/web/core/iwebaccountmonitor2.dart +++ b/packages/windows_security/lib/src/authentication/web/core/iwebaccountmonitor2.dart @@ -32,18 +32,17 @@ class IWebAccountMonitor2 extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +54,7 @@ class IWebAccountMonitor2 extends IInspectable { void remove_AccountPictureUpdated(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -64,7 +63,7 @@ class IWebAccountMonitor2 extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_security/lib/src/authentication/web/core/iwebauthenticationcoremanagerstatics.dart b/packages/windows_security/lib/src/authentication/web/core/iwebauthenticationcoremanagerstatics.dart index d65e9c21..e6da0332 100644 --- a/packages/windows_security/lib/src/authentication/web/core/iwebauthenticationcoremanagerstatics.dart +++ b/packages/windows_security/lib/src/authentication/web/core/iwebauthenticationcoremanagerstatics.dart @@ -37,7 +37,7 @@ class IWebAuthenticationCoreManagerStatics extends IInspectable { WebTokenRequest? request) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -50,7 +50,7 @@ class IWebAuthenticationCoreManagerStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer request, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, request.lpVtbl, asyncInfo); + lpVtbl, request.lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -67,7 +67,7 @@ class IWebAuthenticationCoreManagerStatics extends IInspectable { WebTokenRequest? request, WebAccount? webAccount) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -81,7 +81,7 @@ class IWebAuthenticationCoreManagerStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer request, VTablePointer webAccount, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, request.lpVtbl, webAccount.lpVtbl, asyncInfo); + lpVtbl, request.lpVtbl, webAccount.lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -97,7 +97,7 @@ class IWebAuthenticationCoreManagerStatics extends IInspectable { Future requestTokenAsync(WebTokenRequest? request) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -110,7 +110,7 @@ class IWebAuthenticationCoreManagerStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer request, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, request.lpVtbl, asyncInfo); + lpVtbl, request.lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -127,7 +127,7 @@ class IWebAuthenticationCoreManagerStatics extends IInspectable { WebTokenRequest? request, WebAccount? webAccount) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -141,7 +141,7 @@ class IWebAuthenticationCoreManagerStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer request, VTablePointer webAccount, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, request.lpVtbl, webAccount.lpVtbl, asyncInfo); + lpVtbl, request.lpVtbl, webAccount.lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -158,7 +158,7 @@ class IWebAuthenticationCoreManagerStatics extends IInspectable { WebAccountProvider? provider, String webAccountId) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -172,7 +172,7 @@ class IWebAuthenticationCoreManagerStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer provider, int webAccountId, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, provider.lpVtbl, webAccountId.toHString(), asyncInfo); + lpVtbl, provider.lpVtbl, webAccountId.toHString(), asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -188,7 +188,7 @@ class IWebAuthenticationCoreManagerStatics extends IInspectable { String webAccountProviderId) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -201,7 +201,7 @@ class IWebAuthenticationCoreManagerStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int webAccountProviderId, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, webAccountProviderId.toHString(), asyncInfo); + lpVtbl, webAccountProviderId.toHString(), asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -218,7 +218,7 @@ class IWebAuthenticationCoreManagerStatics extends IInspectable { String webAccountProviderId, String authority) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -231,11 +231,8 @@ class IWebAuthenticationCoreManagerStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int webAccountProviderId, - int authority, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, - webAccountProviderId.toHString(), - authority.toHString(), - asyncInfo); + int authority, Pointer asyncInfo)>()(lpVtbl, + webAccountProviderId.toHString(), authority.toHString(), asyncInfo); if (FAILED(hr)) { free(asyncInfo); diff --git a/packages/windows_security/lib/src/authentication/web/core/iwebauthenticationcoremanagerstatics2.dart b/packages/windows_security/lib/src/authentication/web/core/iwebauthenticationcoremanagerstatics2.dart index 088c606c..11a9d4e8 100644 --- a/packages/windows_security/lib/src/authentication/web/core/iwebauthenticationcoremanagerstatics2.dart +++ b/packages/windows_security/lib/src/authentication/web/core/iwebauthenticationcoremanagerstatics2.dart @@ -40,7 +40,7 @@ class IWebAuthenticationCoreManagerStatics2 extends IInspectable String webAccountProviderId, String authority, User? user) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -59,7 +59,7 @@ class IWebAuthenticationCoreManagerStatics2 extends IInspectable int authority, VTablePointer user, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, + lpVtbl, webAccountProviderId.toHString(), authority.toHString(), user.lpVtbl, diff --git a/packages/windows_security/lib/src/authentication/web/core/iwebauthenticationcoremanagerstatics3.dart b/packages/windows_security/lib/src/authentication/web/core/iwebauthenticationcoremanagerstatics3.dart index e941b2f2..92275889 100644 --- a/packages/windows_security/lib/src/authentication/web/core/iwebauthenticationcoremanagerstatics3.dart +++ b/packages/windows_security/lib/src/authentication/web/core/iwebauthenticationcoremanagerstatics3.dart @@ -40,7 +40,7 @@ class IWebAuthenticationCoreManagerStatics3 extends IInspectable IIterable? webAccounts) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -53,7 +53,7 @@ class IWebAuthenticationCoreManagerStatics3 extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, VTablePointer webAccounts, Pointer result)>()( - ptr.ref.lpVtbl, webAccounts.lpVtbl, result); + lpVtbl, webAccounts.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_security/lib/src/authentication/web/core/iwebauthenticationcoremanagerstatics4.dart b/packages/windows_security/lib/src/authentication/web/core/iwebauthenticationcoremanagerstatics4.dart index 122ea3bb..2c918950 100644 --- a/packages/windows_security/lib/src/authentication/web/core/iwebauthenticationcoremanagerstatics4.dart +++ b/packages/windows_security/lib/src/authentication/web/core/iwebauthenticationcoremanagerstatics4.dart @@ -41,7 +41,7 @@ class IWebAuthenticationCoreManagerStatics4 extends IInspectable WebAccountProvider? provider) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -54,7 +54,7 @@ class IWebAuthenticationCoreManagerStatics4 extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, VTablePointer provider, Pointer operation)>()( - ptr.ref.lpVtbl, provider.lpVtbl, operation); + lpVtbl, provider.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -71,7 +71,7 @@ class IWebAuthenticationCoreManagerStatics4 extends IInspectable WebAccountProvider? provider, String clientId) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -85,7 +85,7 @@ class IWebAuthenticationCoreManagerStatics4 extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, VTablePointer provider, int clientId, Pointer operation)>()( - ptr.ref.lpVtbl, provider.lpVtbl, clientId.toHString(), operation); + lpVtbl, provider.lpVtbl, clientId.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -102,7 +102,7 @@ class IWebAuthenticationCoreManagerStatics4 extends IInspectable String webAccountProviderId) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -115,7 +115,7 @@ class IWebAuthenticationCoreManagerStatics4 extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, int webAccountProviderId, Pointer operation)>()( - ptr.ref.lpVtbl, webAccountProviderId.toHString(), operation); + lpVtbl, webAccountProviderId.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -132,7 +132,7 @@ class IWebAuthenticationCoreManagerStatics4 extends IInspectable String webAccountProviderId, String authority) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -145,11 +145,8 @@ class IWebAuthenticationCoreManagerStatics4 extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, int webAccountProviderId, - int authority, Pointer operation)>()( - ptr.ref.lpVtbl, - webAccountProviderId.toHString(), - authority.toHString(), - operation); + int authority, Pointer operation)>()(lpVtbl, + webAccountProviderId.toHString(), authority.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -167,7 +164,7 @@ class IWebAuthenticationCoreManagerStatics4 extends IInspectable String webAccountProviderId, String authority, User? user) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -186,7 +183,7 @@ class IWebAuthenticationCoreManagerStatics4 extends IInspectable int authority, VTablePointer user, Pointer operation)>()( - ptr.ref.lpVtbl, + lpVtbl, webAccountProviderId.toHString(), authority.toHString(), user.lpVtbl, diff --git a/packages/windows_security/lib/src/authentication/web/core/iwebprovidererror.dart b/packages/windows_security/lib/src/authentication/web/core/iwebprovidererror.dart index ecf6a75b..d8615f35 100644 --- a/packages/windows_security/lib/src/authentication/web/core/iwebprovidererror.dart +++ b/packages/windows_security/lib/src/authentication/web/core/iwebprovidererror.dart @@ -30,7 +30,7 @@ class IWebProviderError extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IWebProviderError extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IWebProviderError extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IWebProviderError extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -77,7 +77,7 @@ class IWebProviderError extends IInspectable { IMap? get properties { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -87,7 +87,7 @@ class IWebProviderError extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_security/lib/src/authentication/web/core/iwebprovidererrorfactory.dart b/packages/windows_security/lib/src/authentication/web/core/iwebprovidererrorfactory.dart index 1b999154..7763a911 100644 --- a/packages/windows_security/lib/src/authentication/web/core/iwebprovidererrorfactory.dart +++ b/packages/windows_security/lib/src/authentication/web/core/iwebprovidererrorfactory.dart @@ -31,7 +31,7 @@ class IWebProviderErrorFactory extends IInspectable { WebProviderError create(int errorCode, String errorMessage) { final webProviderError = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IWebProviderErrorFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int errorCode, int errorMessage, Pointer webProviderError)>()( - ptr.ref.lpVtbl, errorCode, errorMessage.toHString(), webProviderError); + lpVtbl, errorCode, errorMessage.toHString(), webProviderError); if (FAILED(hr)) { free(webProviderError); diff --git a/packages/windows_security/lib/src/authentication/web/core/iwebtokenrequest.dart b/packages/windows_security/lib/src/authentication/web/core/iwebtokenrequest.dart index 5c36c7c9..5cf43f23 100644 --- a/packages/windows_security/lib/src/authentication/web/core/iwebtokenrequest.dart +++ b/packages/windows_security/lib/src/authentication/web/core/iwebtokenrequest.dart @@ -32,7 +32,7 @@ class IWebTokenRequest extends IInspectable { WebAccountProvider? get webAccountProvider { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IWebTokenRequest extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -61,7 +61,7 @@ class IWebTokenRequest extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -71,7 +71,7 @@ class IWebTokenRequest extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -85,7 +85,7 @@ class IWebTokenRequest extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -95,7 +95,7 @@ class IWebTokenRequest extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -109,17 +109,17 @@ class IWebTokenRequest extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -132,7 +132,7 @@ class IWebTokenRequest extends IInspectable { IMap? get properties { final requestProperties = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -143,7 +143,7 @@ class IWebTokenRequest extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, Pointer requestProperties)>()( - ptr.ref.lpVtbl, requestProperties); + lpVtbl, requestProperties); if (FAILED(hr)) { free(requestProperties); diff --git a/packages/windows_security/lib/src/authentication/web/core/iwebtokenrequest2.dart b/packages/windows_security/lib/src/authentication/web/core/iwebtokenrequest2.dart index 8052c50b..6bf7aaf1 100644 --- a/packages/windows_security/lib/src/authentication/web/core/iwebtokenrequest2.dart +++ b/packages/windows_security/lib/src/authentication/web/core/iwebtokenrequest2.dart @@ -29,7 +29,7 @@ class IWebTokenRequest2 extends IInspectable { IMap? get appProperties { final requestProperties = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IWebTokenRequest2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, Pointer requestProperties)>()( - ptr.ref.lpVtbl, requestProperties); + lpVtbl, requestProperties); if (FAILED(hr)) { free(requestProperties); diff --git a/packages/windows_security/lib/src/authentication/web/core/iwebtokenrequest3.dart b/packages/windows_security/lib/src/authentication/web/core/iwebtokenrequest3.dart index 17e1032f..c71c0182 100644 --- a/packages/windows_security/lib/src/authentication/web/core/iwebtokenrequest3.dart +++ b/packages/windows_security/lib/src/authentication/web/core/iwebtokenrequest3.dart @@ -30,7 +30,7 @@ class IWebTokenRequest3 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IWebTokenRequest3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -52,7 +52,7 @@ class IWebTokenRequest3 extends IInspectable { set correlationId(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -61,7 +61,7 @@ class IWebTokenRequest3 extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_security/lib/src/authentication/web/core/iwebtokenrequestfactory.dart b/packages/windows_security/lib/src/authentication/web/core/iwebtokenrequestfactory.dart index f6af5e83..2b5026e3 100644 --- a/packages/windows_security/lib/src/authentication/web/core/iwebtokenrequestfactory.dart +++ b/packages/windows_security/lib/src/authentication/web/core/iwebtokenrequestfactory.dart @@ -34,7 +34,7 @@ class IWebTokenRequestFactory extends IInspectable { WebAccountProvider? provider, String scope, String clientId) { final webTokenRequest = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -53,7 +53,7 @@ class IWebTokenRequestFactory extends IInspectable { int scope, int clientId, Pointer webTokenRequest)>()( - ptr.ref.lpVtbl, + lpVtbl, provider.lpVtbl, scope.toHString(), clientId.toHString(), @@ -71,7 +71,7 @@ class IWebTokenRequestFactory extends IInspectable { String scope, String clientId, WebTokenRequestPromptType promptType) { final webTokenRequest = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -92,7 +92,7 @@ class IWebTokenRequestFactory extends IInspectable { int clientId, int promptType, Pointer webTokenRequest)>()( - ptr.ref.lpVtbl, + lpVtbl, provider.lpVtbl, scope.toHString(), clientId.toHString(), @@ -110,7 +110,7 @@ class IWebTokenRequestFactory extends IInspectable { WebTokenRequest createWithProvider(WebAccountProvider? provider) { final webTokenRequest = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -123,7 +123,7 @@ class IWebTokenRequestFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer provider, Pointer webTokenRequest)>()( - ptr.ref.lpVtbl, provider.lpVtbl, webTokenRequest); + lpVtbl, provider.lpVtbl, webTokenRequest); if (FAILED(hr)) { free(webTokenRequest); @@ -136,7 +136,7 @@ class IWebTokenRequestFactory extends IInspectable { WebTokenRequest createWithScope(WebAccountProvider? provider, String scope) { final webTokenRequest = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -150,7 +150,7 @@ class IWebTokenRequestFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer provider, int scope, Pointer webTokenRequest)>()( - ptr.ref.lpVtbl, provider.lpVtbl, scope.toHString(), webTokenRequest); + lpVtbl, provider.lpVtbl, scope.toHString(), webTokenRequest); if (FAILED(hr)) { free(webTokenRequest); diff --git a/packages/windows_security/lib/src/authentication/web/core/iwebtokenrequestresult.dart b/packages/windows_security/lib/src/authentication/web/core/iwebtokenrequestresult.dart index fa09e6dc..caabfbd3 100644 --- a/packages/windows_security/lib/src/authentication/web/core/iwebtokenrequestresult.dart +++ b/packages/windows_security/lib/src/authentication/web/core/iwebtokenrequestresult.dart @@ -33,7 +33,7 @@ class IWebTokenRequestResult extends IInspectable { List? get responseData { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IWebTokenRequestResult extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -65,17 +65,17 @@ class IWebTokenRequestResult extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -88,7 +88,7 @@ class IWebTokenRequestResult extends IInspectable { WebProviderError? get responseError { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -98,7 +98,7 @@ class IWebTokenRequestResult extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -116,7 +116,7 @@ class IWebTokenRequestResult extends IInspectable { Future invalidateCacheAsync() { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -126,7 +126,7 @@ class IWebTokenRequestResult extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer asyncInfo)>()(ptr.ref.lpVtbl, asyncInfo); + Pointer asyncInfo)>()(lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); diff --git a/packages/windows_security/lib/src/authentication/web/core/iwebtokenresponse.dart b/packages/windows_security/lib/src/authentication/web/core/iwebtokenresponse.dart index 84843455..1a83a196 100644 --- a/packages/windows_security/lib/src/authentication/web/core/iwebtokenresponse.dart +++ b/packages/windows_security/lib/src/authentication/web/core/iwebtokenresponse.dart @@ -33,7 +33,7 @@ class IWebTokenResponse extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IWebTokenResponse extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class IWebTokenResponse extends IInspectable { WebProviderError? get providerError { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class IWebTokenResponse extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -84,7 +84,7 @@ class IWebTokenResponse extends IInspectable { WebAccount? get webAccount { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -94,7 +94,7 @@ class IWebTokenResponse extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -112,7 +112,7 @@ class IWebTokenResponse extends IInspectable { IMap? get properties { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -122,7 +122,7 @@ class IWebTokenResponse extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_security/lib/src/authentication/web/core/iwebtokenresponsefactory.dart b/packages/windows_security/lib/src/authentication/web/core/iwebtokenresponsefactory.dart index 085ffb4a..d9613f35 100644 --- a/packages/windows_security/lib/src/authentication/web/core/iwebtokenresponsefactory.dart +++ b/packages/windows_security/lib/src/authentication/web/core/iwebtokenresponsefactory.dart @@ -33,7 +33,7 @@ class IWebTokenResponseFactory extends IInspectable { WebTokenResponse createWithToken(String token) { final webTokenResponse = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class IWebTokenResponseFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int token, Pointer webTokenResponse)>()( - ptr.ref.lpVtbl, token.toHString(), webTokenResponse); + lpVtbl, token.toHString(), webTokenResponse); if (FAILED(hr)) { free(webTokenResponse); @@ -58,7 +58,7 @@ class IWebTokenResponseFactory extends IInspectable { String token, WebAccount? webAccount) { final webTokenResponse = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -75,7 +75,7 @@ class IWebTokenResponseFactory extends IInspectable { int token, VTablePointer webAccount, Pointer webTokenResponse)>()( - ptr.ref.lpVtbl, token.toHString(), webAccount.lpVtbl, webTokenResponse); + lpVtbl, token.toHString(), webAccount.lpVtbl, webTokenResponse); if (FAILED(hr)) { free(webTokenResponse); @@ -89,7 +89,7 @@ class IWebTokenResponseFactory extends IInspectable { String token, WebAccount? webAccount, WebProviderError? error) { final webTokenResponse = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -107,7 +107,7 @@ class IWebTokenResponseFactory extends IInspectable { int token, VTablePointer webAccount, VTablePointer error, - Pointer webTokenResponse)>()(ptr.ref.lpVtbl, + Pointer webTokenResponse)>()(lpVtbl, token.toHString(), webAccount.lpVtbl, error.lpVtbl, webTokenResponse); if (FAILED(hr)) { diff --git a/packages/windows_security/lib/src/credentials/icredentialfactory.dart b/packages/windows_security/lib/src/credentials/icredentialfactory.dart index 3b22781b..289ed3ae 100644 --- a/packages/windows_security/lib/src/credentials/icredentialfactory.dart +++ b/packages/windows_security/lib/src/credentials/icredentialfactory.dart @@ -32,7 +32,7 @@ class ICredentialFactory extends IInspectable { String resource, String userName, String password) { final credential = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -47,7 +47,7 @@ class ICredentialFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int resource, int userName, int password, Pointer credential)>()( - ptr.ref.lpVtbl, + lpVtbl, resource.toHString(), userName.toHString(), password.toHString(), diff --git a/packages/windows_security/lib/src/credentials/ipasswordcredential.dart b/packages/windows_security/lib/src/credentials/ipasswordcredential.dart index c8ffc852..0d0c8171 100644 --- a/packages/windows_security/lib/src/credentials/ipasswordcredential.dart +++ b/packages/windows_security/lib/src/credentials/ipasswordcredential.dart @@ -30,7 +30,7 @@ class IPasswordCredential extends IInspectable { final resource = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IPasswordCredential extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer resource)>()(ptr.ref.lpVtbl, resource); + Pointer resource)>()(lpVtbl, resource); if (FAILED(hr)) throwWindowsException(hr); @@ -52,7 +52,7 @@ class IPasswordCredential extends IInspectable { set resource(String resource) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -61,7 +61,7 @@ class IPasswordCredential extends IInspectable { VTablePointer lpVtbl, IntPtr resource)>>>() .value .asFunction()( - ptr.ref.lpVtbl, resource.toHString()); + lpVtbl, resource.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -70,7 +70,7 @@ class IPasswordCredential extends IInspectable { final userName = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -80,7 +80,7 @@ class IPasswordCredential extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer userName)>()(ptr.ref.lpVtbl, userName); + Pointer userName)>()(lpVtbl, userName); if (FAILED(hr)) throwWindowsException(hr); @@ -92,7 +92,7 @@ class IPasswordCredential extends IInspectable { set userName(String userName) { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -101,7 +101,7 @@ class IPasswordCredential extends IInspectable { VTablePointer lpVtbl, IntPtr userName)>>>() .value .asFunction()( - ptr.ref.lpVtbl, userName.toHString()); + lpVtbl, userName.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -110,7 +110,7 @@ class IPasswordCredential extends IInspectable { final password = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -120,7 +120,7 @@ class IPasswordCredential extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer password)>()(ptr.ref.lpVtbl, password); + Pointer password)>()(lpVtbl, password); if (FAILED(hr)) throwWindowsException(hr); @@ -132,7 +132,7 @@ class IPasswordCredential extends IInspectable { set password(String password) { final hr = - ptr.ref.vtable + vtable .elementAt(11) .cast< Pointer< @@ -141,17 +141,17 @@ class IPasswordCredential extends IInspectable { VTablePointer lpVtbl, IntPtr password)>>>() .value .asFunction()( - ptr.ref.lpVtbl, password.toHString()); + lpVtbl, password.toHString()); if (FAILED(hr)) throwWindowsException(hr); } void retrievePassword() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -159,7 +159,7 @@ class IPasswordCredential extends IInspectable { IPropertySet? get properties { final props = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -169,7 +169,7 @@ class IPasswordCredential extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer props)>()( - ptr.ref.lpVtbl, props); + lpVtbl, props); if (FAILED(hr)) { free(props); diff --git a/packages/windows_security/lib/src/credentials/iwebaccount.dart b/packages/windows_security/lib/src/credentials/iwebaccount.dart index bcb6d5c6..356e004b 100644 --- a/packages/windows_security/lib/src/credentials/iwebaccount.dart +++ b/packages/windows_security/lib/src/credentials/iwebaccount.dart @@ -32,7 +32,7 @@ class IWebAccount extends IInspectable { WebAccountProvider? get webAccountProvider { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IWebAccount extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -61,7 +61,7 @@ class IWebAccount extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -71,7 +71,7 @@ class IWebAccount extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -85,17 +85,17 @@ class IWebAccount extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_security/lib/src/credentials/iwebaccount2.dart b/packages/windows_security/lib/src/credentials/iwebaccount2.dart index 1f961cda..648d27c1 100644 --- a/packages/windows_security/lib/src/credentials/iwebaccount2.dart +++ b/packages/windows_security/lib/src/credentials/iwebaccount2.dart @@ -36,7 +36,7 @@ class IWebAccount2 extends IInspectable implements IWebAccount { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -46,7 +46,7 @@ class IWebAccount2 extends IInspectable implements IWebAccount { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -59,7 +59,7 @@ class IWebAccount2 extends IInspectable implements IWebAccount { Map? get properties { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -69,7 +69,7 @@ class IWebAccount2 extends IInspectable implements IWebAccount { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -91,7 +91,7 @@ class IWebAccount2 extends IInspectable implements IWebAccount { final asyncInfo = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -104,7 +104,7 @@ class IWebAccount2 extends IInspectable implements IWebAccount { .asFunction< int Function(VTablePointer lpVtbl, int desizedSize, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, desizedSize.value, asyncInfo); + lpVtbl, desizedSize.value, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -120,7 +120,7 @@ class IWebAccount2 extends IInspectable implements IWebAccount { Future signOutAsync() { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -130,7 +130,7 @@ class IWebAccount2 extends IInspectable implements IWebAccount { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer asyncInfo)>()(ptr.ref.lpVtbl, asyncInfo); + Pointer asyncInfo)>()(lpVtbl, asyncInfo); if (FAILED(hr)) { free(asyncInfo); @@ -143,7 +143,7 @@ class IWebAccount2 extends IInspectable implements IWebAccount { Future signOutWithClientIdAsync(String clientId) { final asyncInfo = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -154,7 +154,7 @@ class IWebAccount2 extends IInspectable implements IWebAccount { .asFunction< int Function(VTablePointer lpVtbl, int clientId, Pointer asyncInfo)>()( - ptr.ref.lpVtbl, clientId.toHString(), asyncInfo); + lpVtbl, clientId.toHString(), asyncInfo); if (FAILED(hr)) { free(asyncInfo); diff --git a/packages/windows_security/lib/src/credentials/iwebaccountfactory.dart b/packages/windows_security/lib/src/credentials/iwebaccountfactory.dart index f699a492..cc3d875c 100644 --- a/packages/windows_security/lib/src/credentials/iwebaccountfactory.dart +++ b/packages/windows_security/lib/src/credentials/iwebaccountfactory.dart @@ -34,7 +34,7 @@ class IWebAccountFactory extends IInspectable { String userName, WebAccountState state) { final instance = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -52,7 +52,7 @@ class IWebAccountFactory extends IInspectable { VTablePointer webAccountProvider, int userName, int state, - Pointer instance)>()(ptr.ref.lpVtbl, + Pointer instance)>()(lpVtbl, webAccountProvider.lpVtbl, userName.toHString(), state.value, instance); if (FAILED(hr)) { diff --git a/packages/windows_security/lib/src/credentials/iwebaccountprovider.dart b/packages/windows_security/lib/src/credentials/iwebaccountprovider.dart index 1760fca0..9bb56aab 100644 --- a/packages/windows_security/lib/src/credentials/iwebaccountprovider.dart +++ b/packages/windows_security/lib/src/credentials/iwebaccountprovider.dart @@ -30,7 +30,7 @@ class IWebAccountProvider extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IWebAccountProvider extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IWebAccountProvider extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IWebAccountProvider extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -79,7 +79,7 @@ class IWebAccountProvider extends IInspectable { Uri? get iconUri { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -89,7 +89,7 @@ class IWebAccountProvider extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_security/lib/src/credentials/iwebaccountprovider2.dart b/packages/windows_security/lib/src/credentials/iwebaccountprovider2.dart index 3f1c2003..c6d34d9b 100644 --- a/packages/windows_security/lib/src/credentials/iwebaccountprovider2.dart +++ b/packages/windows_security/lib/src/credentials/iwebaccountprovider2.dart @@ -32,7 +32,7 @@ class IWebAccountProvider2 extends IInspectable implements IWebAccountProvider { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IWebAccountProvider2 extends IInspectable implements IWebAccountProvider { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class IWebAccountProvider2 extends IInspectable implements IWebAccountProvider { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class IWebAccountProvider2 extends IInspectable implements IWebAccountProvider { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_security/lib/src/credentials/iwebaccountprovider3.dart b/packages/windows_security/lib/src/credentials/iwebaccountprovider3.dart index db2f283e..5a698434 100644 --- a/packages/windows_security/lib/src/credentials/iwebaccountprovider3.dart +++ b/packages/windows_security/lib/src/credentials/iwebaccountprovider3.dart @@ -34,17 +34,17 @@ class IWebAccountProvider3 extends IInspectable User? get user { final user = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer user)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer user)>()( - ptr.ref.lpVtbl, user); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer user)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer user)>()(lpVtbl, user); if (FAILED(hr)) { free(user); diff --git a/packages/windows_security/lib/src/credentials/iwebaccountprovider4.dart b/packages/windows_security/lib/src/credentials/iwebaccountprovider4.dart index 98d6b115..81596b68 100644 --- a/packages/windows_security/lib/src/credentials/iwebaccountprovider4.dart +++ b/packages/windows_security/lib/src/credentials/iwebaccountprovider4.dart @@ -30,17 +30,17 @@ class IWebAccountProvider4 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_security/lib/src/credentials/iwebaccountproviderfactory.dart b/packages/windows_security/lib/src/credentials/iwebaccountproviderfactory.dart index bb69a8a8..76861f8c 100644 --- a/packages/windows_security/lib/src/credentials/iwebaccountproviderfactory.dart +++ b/packages/windows_security/lib/src/credentials/iwebaccountproviderfactory.dart @@ -32,7 +32,7 @@ class IWebAccountProviderFactory extends IInspectable { String id, String displayName, Uri? iconUri) { final instance = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -47,7 +47,7 @@ class IWebAccountProviderFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int id, int displayName, VTablePointer iconUri, Pointer instance)>()( - ptr.ref.lpVtbl, + lpVtbl, id.toHString(), displayName.toHString(), iconUri?.toWinRTUri().lpVtbl ?? nullptr, diff --git a/packages/windows_storage/lib/src/fileproperties/ibasicproperties.dart b/packages/windows_storage/lib/src/fileproperties/ibasicproperties.dart index 44efb915..7481b55c 100644 --- a/packages/windows_storage/lib/src/fileproperties/ibasicproperties.dart +++ b/packages/windows_storage/lib/src/fileproperties/ibasicproperties.dart @@ -30,7 +30,7 @@ class IBasicProperties extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IBasicProperties extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,17 +54,17 @@ class IBasicProperties extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -78,17 +78,17 @@ class IBasicProperties extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_storage/lib/src/fileproperties/idocumentproperties.dart b/packages/windows_storage/lib/src/fileproperties/idocumentproperties.dart index 480f359c..5f573b59 100644 --- a/packages/windows_storage/lib/src/fileproperties/idocumentproperties.dart +++ b/packages/windows_storage/lib/src/fileproperties/idocumentproperties.dart @@ -32,7 +32,7 @@ class IDocumentProperties extends IInspectable IVector? get author { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IDocumentProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -62,7 +62,7 @@ class IDocumentProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -72,7 +72,7 @@ class IDocumentProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -84,7 +84,7 @@ class IDocumentProperties extends IInspectable set title(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -93,7 +93,7 @@ class IDocumentProperties extends IInspectable VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -101,7 +101,7 @@ class IDocumentProperties extends IInspectable IVector? get keywords { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -111,7 +111,7 @@ class IDocumentProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -131,7 +131,7 @@ class IDocumentProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -141,7 +141,7 @@ class IDocumentProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -153,7 +153,7 @@ class IDocumentProperties extends IInspectable set comment(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(11) .cast< Pointer< @@ -162,7 +162,7 @@ class IDocumentProperties extends IInspectable VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_storage/lib/src/fileproperties/iimageproperties.dart b/packages/windows_storage/lib/src/fileproperties/iimageproperties.dart index 4de43272..43951587 100644 --- a/packages/windows_storage/lib/src/fileproperties/iimageproperties.dart +++ b/packages/windows_storage/lib/src/fileproperties/iimageproperties.dart @@ -34,7 +34,7 @@ class IImageProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class IImageProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class IImageProperties extends IInspectable set rating(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -65,7 +65,7 @@ class IImageProperties extends IInspectable VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -73,7 +73,7 @@ class IImageProperties extends IInspectable IVector? get keywords { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -83,7 +83,7 @@ class IImageProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -103,17 +103,17 @@ class IImageProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -124,7 +124,7 @@ class IImageProperties extends IInspectable } set dateTaken(DateTime value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -132,7 +132,7 @@ class IImageProperties extends IInspectable HRESULT Function(VTablePointer lpVtbl, Int64 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toWinRTDateTime()); + lpVtbl, value.toWinRTDateTime()); if (FAILED(hr)) throwWindowsException(hr); } @@ -141,7 +141,7 @@ class IImageProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -151,7 +151,7 @@ class IImageProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -165,7 +165,7 @@ class IImageProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -175,7 +175,7 @@ class IImageProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -189,7 +189,7 @@ class IImageProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -199,7 +199,7 @@ class IImageProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -211,7 +211,7 @@ class IImageProperties extends IInspectable set title(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(14) .cast< Pointer< @@ -220,7 +220,7 @@ class IImageProperties extends IInspectable VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -228,7 +228,7 @@ class IImageProperties extends IInspectable double? get latitude { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -238,7 +238,7 @@ class IImageProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -258,7 +258,7 @@ class IImageProperties extends IInspectable double? get longitude { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -268,7 +268,7 @@ class IImageProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -289,7 +289,7 @@ class IImageProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -299,7 +299,7 @@ class IImageProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -311,7 +311,7 @@ class IImageProperties extends IInspectable set cameraManufacturer(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(18) .cast< Pointer< @@ -320,7 +320,7 @@ class IImageProperties extends IInspectable VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -329,7 +329,7 @@ class IImageProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(19) .cast< Pointer< @@ -339,7 +339,7 @@ class IImageProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -351,7 +351,7 @@ class IImageProperties extends IInspectable set cameraModel(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(20) .cast< Pointer< @@ -360,7 +360,7 @@ class IImageProperties extends IInspectable VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -369,17 +369,17 @@ class IImageProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(21) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(21) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -392,7 +392,7 @@ class IImageProperties extends IInspectable List? get peopleNames { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(22) .cast< Pointer< @@ -402,7 +402,7 @@ class IImageProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_storage/lib/src/fileproperties/imusicproperties.dart b/packages/windows_storage/lib/src/fileproperties/imusicproperties.dart index d2d3dd3f..5963446c 100644 --- a/packages/windows_storage/lib/src/fileproperties/imusicproperties.dart +++ b/packages/windows_storage/lib/src/fileproperties/imusicproperties.dart @@ -33,7 +33,7 @@ class IMusicProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IMusicProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +55,7 @@ class IMusicProperties extends IInspectable set album(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IMusicProperties extends IInspectable VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -73,7 +73,7 @@ class IMusicProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -83,7 +83,7 @@ class IMusicProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -95,7 +95,7 @@ class IMusicProperties extends IInspectable set artist(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -104,7 +104,7 @@ class IMusicProperties extends IInspectable VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -112,7 +112,7 @@ class IMusicProperties extends IInspectable IVector? get genre { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -122,7 +122,7 @@ class IMusicProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -142,7 +142,7 @@ class IMusicProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -152,7 +152,7 @@ class IMusicProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -164,7 +164,7 @@ class IMusicProperties extends IInspectable set trackNumber(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(12) .cast< Pointer< @@ -173,7 +173,7 @@ class IMusicProperties extends IInspectable VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -182,7 +182,7 @@ class IMusicProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -192,7 +192,7 @@ class IMusicProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -204,7 +204,7 @@ class IMusicProperties extends IInspectable set title(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(14) .cast< Pointer< @@ -213,7 +213,7 @@ class IMusicProperties extends IInspectable VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -222,7 +222,7 @@ class IMusicProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -232,7 +232,7 @@ class IMusicProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -244,7 +244,7 @@ class IMusicProperties extends IInspectable set rating(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(16) .cast< Pointer< @@ -253,7 +253,7 @@ class IMusicProperties extends IInspectable VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -262,17 +262,17 @@ class IMusicProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -286,7 +286,7 @@ class IMusicProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast< Pointer< @@ -296,7 +296,7 @@ class IMusicProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -310,7 +310,7 @@ class IMusicProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(19) .cast< Pointer< @@ -320,7 +320,7 @@ class IMusicProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -332,7 +332,7 @@ class IMusicProperties extends IInspectable set albumArtist(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(20) .cast< Pointer< @@ -341,7 +341,7 @@ class IMusicProperties extends IInspectable VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -349,7 +349,7 @@ class IMusicProperties extends IInspectable IVector? get composers { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(21) .cast< Pointer< @@ -359,7 +359,7 @@ class IMusicProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -378,7 +378,7 @@ class IMusicProperties extends IInspectable IVector? get conductors { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(22) .cast< Pointer< @@ -388,7 +388,7 @@ class IMusicProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -408,7 +408,7 @@ class IMusicProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(23) .cast< Pointer< @@ -418,7 +418,7 @@ class IMusicProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -430,7 +430,7 @@ class IMusicProperties extends IInspectable set subtitle(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(24) .cast< Pointer< @@ -439,7 +439,7 @@ class IMusicProperties extends IInspectable VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -447,7 +447,7 @@ class IMusicProperties extends IInspectable IVector? get producers { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(25) .cast< Pointer< @@ -457,7 +457,7 @@ class IMusicProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -477,7 +477,7 @@ class IMusicProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(26) .cast< Pointer< @@ -487,7 +487,7 @@ class IMusicProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -499,7 +499,7 @@ class IMusicProperties extends IInspectable set publisher(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(27) .cast< Pointer< @@ -508,7 +508,7 @@ class IMusicProperties extends IInspectable VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -516,7 +516,7 @@ class IMusicProperties extends IInspectable IVector? get writers { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(28) .cast< Pointer< @@ -526,7 +526,7 @@ class IMusicProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -546,7 +546,7 @@ class IMusicProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(29) .cast< Pointer< @@ -556,7 +556,7 @@ class IMusicProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -568,7 +568,7 @@ class IMusicProperties extends IInspectable set year(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(30) .cast< Pointer< @@ -577,7 +577,7 @@ class IMusicProperties extends IInspectable VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_storage/lib/src/fileproperties/istorageitemcontentproperties.dart b/packages/windows_storage/lib/src/fileproperties/istorageitemcontentproperties.dart index c8f0269a..229c2571 100644 --- a/packages/windows_storage/lib/src/fileproperties/istorageitemcontentproperties.dart +++ b/packages/windows_storage/lib/src/fileproperties/istorageitemcontentproperties.dart @@ -38,7 +38,7 @@ class IStorageItemContentProperties extends IInspectable Future getMusicPropertiesAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -48,7 +48,7 @@ class IStorageItemContentProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -63,7 +63,7 @@ class IStorageItemContentProperties extends IInspectable Future getVideoPropertiesAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -73,7 +73,7 @@ class IStorageItemContentProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -88,7 +88,7 @@ class IStorageItemContentProperties extends IInspectable Future getImagePropertiesAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -98,7 +98,7 @@ class IStorageItemContentProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -113,7 +113,7 @@ class IStorageItemContentProperties extends IInspectable Future getDocumentPropertiesAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -123,7 +123,7 @@ class IStorageItemContentProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/fileproperties/istorageitemextraproperties.dart b/packages/windows_storage/lib/src/fileproperties/istorageitemextraproperties.dart index 2c5b5128..53f8f1f6 100644 --- a/packages/windows_storage/lib/src/fileproperties/istorageitemextraproperties.dart +++ b/packages/windows_storage/lib/src/fileproperties/istorageitemextraproperties.dart @@ -32,7 +32,7 @@ class IStorageItemExtraProperties extends IInspectable { IIterable? propertiesToRetrieve) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -47,7 +47,7 @@ class IStorageItemExtraProperties extends IInspectable { VTablePointer lpVtbl, VTablePointer propertiesToRetrieve, Pointer operation)>()( - ptr.ref.lpVtbl, propertiesToRetrieve.lpVtbl, operation); + lpVtbl, propertiesToRetrieve.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -65,7 +65,7 @@ class IStorageItemExtraProperties extends IInspectable { IIterable>? propertiesToSave) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -80,7 +80,7 @@ class IStorageItemExtraProperties extends IInspectable { VTablePointer lpVtbl, VTablePointer propertiesToSave, Pointer operation)>()( - ptr.ref.lpVtbl, propertiesToSave.lpVtbl, operation); + lpVtbl, propertiesToSave.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -93,7 +93,7 @@ class IStorageItemExtraProperties extends IInspectable { Future savePropertiesAsyncOverloadDefault() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -103,7 +103,7 @@ class IStorageItemExtraProperties extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/fileproperties/ithumbnailproperties.dart b/packages/windows_storage/lib/src/fileproperties/ithumbnailproperties.dart index 15d741d6..6be7af9f 100644 --- a/packages/windows_storage/lib/src/fileproperties/ithumbnailproperties.dart +++ b/packages/windows_storage/lib/src/fileproperties/ithumbnailproperties.dart @@ -32,7 +32,7 @@ class IThumbnailProperties extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IThumbnailProperties extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class IThumbnailProperties extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class IThumbnailProperties extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -80,17 +80,17 @@ class IThumbnailProperties extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -104,17 +104,17 @@ class IThumbnailProperties extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_storage/lib/src/fileproperties/ivideoproperties.dart b/packages/windows_storage/lib/src/fileproperties/ivideoproperties.dart index 39f3c643..cb7fce61 100644 --- a/packages/windows_storage/lib/src/fileproperties/ivideoproperties.dart +++ b/packages/windows_storage/lib/src/fileproperties/ivideoproperties.dart @@ -34,7 +34,7 @@ class IVideoProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class IVideoProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class IVideoProperties extends IInspectable set rating(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -65,7 +65,7 @@ class IVideoProperties extends IInspectable VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -73,7 +73,7 @@ class IVideoProperties extends IInspectable IVector? get keywords { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -83,7 +83,7 @@ class IVideoProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -103,7 +103,7 @@ class IVideoProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -113,7 +113,7 @@ class IVideoProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -127,7 +127,7 @@ class IVideoProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -137,7 +137,7 @@ class IVideoProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -151,17 +151,17 @@ class IVideoProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -174,7 +174,7 @@ class IVideoProperties extends IInspectable double? get latitude { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -184,7 +184,7 @@ class IVideoProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -204,7 +204,7 @@ class IVideoProperties extends IInspectable double? get longitude { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -214,7 +214,7 @@ class IVideoProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -235,7 +235,7 @@ class IVideoProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -245,7 +245,7 @@ class IVideoProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -257,7 +257,7 @@ class IVideoProperties extends IInspectable set title(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(15) .cast< Pointer< @@ -266,7 +266,7 @@ class IVideoProperties extends IInspectable VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -275,7 +275,7 @@ class IVideoProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -285,7 +285,7 @@ class IVideoProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -297,7 +297,7 @@ class IVideoProperties extends IInspectable set subtitle(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(17) .cast< Pointer< @@ -306,7 +306,7 @@ class IVideoProperties extends IInspectable VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -314,7 +314,7 @@ class IVideoProperties extends IInspectable IVector? get producers { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast< Pointer< @@ -324,7 +324,7 @@ class IVideoProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -344,7 +344,7 @@ class IVideoProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(19) .cast< Pointer< @@ -354,7 +354,7 @@ class IVideoProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -366,7 +366,7 @@ class IVideoProperties extends IInspectable set publisher(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(20) .cast< Pointer< @@ -375,7 +375,7 @@ class IVideoProperties extends IInspectable VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -383,7 +383,7 @@ class IVideoProperties extends IInspectable IVector? get writers { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(21) .cast< Pointer< @@ -393,7 +393,7 @@ class IVideoProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -413,7 +413,7 @@ class IVideoProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(22) .cast< Pointer< @@ -423,7 +423,7 @@ class IVideoProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -435,7 +435,7 @@ class IVideoProperties extends IInspectable set year(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(23) .cast< Pointer< @@ -444,7 +444,7 @@ class IVideoProperties extends IInspectable VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -453,7 +453,7 @@ class IVideoProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(24) .cast< Pointer< @@ -463,7 +463,7 @@ class IVideoProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -476,7 +476,7 @@ class IVideoProperties extends IInspectable IVector? get directors { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(25) .cast< Pointer< @@ -486,7 +486,7 @@ class IVideoProperties extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -506,17 +506,17 @@ class IVideoProperties extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(26) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(26) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_storage/lib/src/iapplicationdata.dart b/packages/windows_storage/lib/src/iapplicationdata.dart index 2789a5ae..bfe6d367 100644 --- a/packages/windows_storage/lib/src/iapplicationdata.dart +++ b/packages/windows_storage/lib/src/iapplicationdata.dart @@ -35,7 +35,7 @@ class IApplicationData extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IApplicationData extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -58,7 +58,7 @@ class IApplicationData extends IInspectable { Future setVersionAsync(int desiredVersion, Pointer handler) { final setVersionOperation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -74,8 +74,8 @@ class IApplicationData extends IInspectable { VTablePointer lpVtbl, int desiredVersion, VTablePointer handler, - Pointer setVersionOperation)>()(ptr.ref.lpVtbl, - desiredVersion, handler.ref.lpVtbl, setVersionOperation); + Pointer setVersionOperation)>()( + lpVtbl, desiredVersion, handler.ref.lpVtbl, setVersionOperation); if (FAILED(hr)) { free(setVersionOperation); @@ -88,18 +88,17 @@ class IApplicationData extends IInspectable { Future clearAllAsync() { final clearOperation = calloc(); - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer clearOperation)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, Pointer clearOperation)>()( - ptr.ref.lpVtbl, clearOperation); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer clearOperation)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer clearOperation)>()(lpVtbl, clearOperation); if (FAILED(hr)) { free(clearOperation); @@ -112,7 +111,7 @@ class IApplicationData extends IInspectable { Future clearAsync(ApplicationDataLocality locality) { final clearOperation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -123,7 +122,7 @@ class IApplicationData extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int locality, Pointer clearOperation)>()( - ptr.ref.lpVtbl, locality.value, clearOperation); + lpVtbl, locality.value, clearOperation); if (FAILED(hr)) { free(clearOperation); @@ -136,7 +135,7 @@ class IApplicationData extends IInspectable { ApplicationDataContainer? get localSettings { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -146,7 +145,7 @@ class IApplicationData extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -164,7 +163,7 @@ class IApplicationData extends IInspectable { ApplicationDataContainer? get roamingSettings { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -174,7 +173,7 @@ class IApplicationData extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -192,7 +191,7 @@ class IApplicationData extends IInspectable { StorageFolder? get localFolder { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -202,7 +201,7 @@ class IApplicationData extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -220,7 +219,7 @@ class IApplicationData extends IInspectable { StorageFolder? get roamingFolder { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -230,7 +229,7 @@ class IApplicationData extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -248,7 +247,7 @@ class IApplicationData extends IInspectable { StorageFolder? get temporaryFolder { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -258,7 +257,7 @@ class IApplicationData extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -277,18 +276,17 @@ class IApplicationData extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(15) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(15) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -300,7 +298,7 @@ class IApplicationData extends IInspectable { void remove_DataChanged(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(16) .cast< Pointer< @@ -309,17 +307,17 @@ class IApplicationData extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } void signalDataChanged() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -328,7 +326,7 @@ class IApplicationData extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast< Pointer< @@ -338,7 +336,7 @@ class IApplicationData extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_storage/lib/src/iapplicationdata2.dart b/packages/windows_storage/lib/src/iapplicationdata2.dart index d1657a18..dacd8645 100644 --- a/packages/windows_storage/lib/src/iapplicationdata2.dart +++ b/packages/windows_storage/lib/src/iapplicationdata2.dart @@ -31,7 +31,7 @@ class IApplicationData2 extends IInspectable { StorageFolder? get localCacheFolder { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IApplicationData2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_storage/lib/src/iapplicationdata3.dart b/packages/windows_storage/lib/src/iapplicationdata3.dart index 63b25a35..8a901562 100644 --- a/packages/windows_storage/lib/src/iapplicationdata3.dart +++ b/packages/windows_storage/lib/src/iapplicationdata3.dart @@ -31,7 +31,7 @@ class IApplicationData3 extends IInspectable { StorageFolder? getPublisherCacheFolder(String folderName) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class IApplicationData3 extends IInspectable { VTablePointer lpVtbl, int folderName, Pointer - value)>()(ptr.ref.lpVtbl, folderName.toHString(), value); + value)>()(lpVtbl, folderName.toHString(), value); if (FAILED(hr)) { free(value); @@ -63,7 +63,7 @@ class IApplicationData3 extends IInspectable { final clearOperation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -76,7 +76,7 @@ class IApplicationData3 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int folderName, Pointer clearOperation)>()( - ptr.ref.lpVtbl, folderName.toHString(), clearOperation); + lpVtbl, folderName.toHString(), clearOperation); if (FAILED(hr)) { free(clearOperation); @@ -89,7 +89,7 @@ class IApplicationData3 extends IInspectable { StorageFolder? get sharedLocalFolder { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -99,7 +99,7 @@ class IApplicationData3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_storage/lib/src/iapplicationdatacontainer.dart b/packages/windows_storage/lib/src/iapplicationdatacontainer.dart index 0838f2a5..74d81905 100644 --- a/packages/windows_storage/lib/src/iapplicationdatacontainer.dart +++ b/packages/windows_storage/lib/src/iapplicationdatacontainer.dart @@ -34,7 +34,7 @@ class IApplicationDataContainer extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class IApplicationDataContainer extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -58,17 +58,17 @@ class IApplicationDataContainer extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -81,7 +81,7 @@ class IApplicationDataContainer extends IInspectable { IPropertySet? get values { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -91,7 +91,7 @@ class IApplicationDataContainer extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -109,7 +109,7 @@ class IApplicationDataContainer extends IInspectable { Map? get containers { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -119,7 +119,7 @@ class IApplicationDataContainer extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -142,7 +142,7 @@ class IApplicationDataContainer extends IInspectable { final container = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -156,7 +156,7 @@ class IApplicationDataContainer extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int name, int disposition, Pointer container)>()( - ptr.ref.lpVtbl, name.toHString(), disposition.value, container); + lpVtbl, name.toHString(), disposition.value, container); if (FAILED(hr)) { free(container); @@ -172,7 +172,7 @@ class IApplicationDataContainer extends IInspectable { } void deleteContainer(String name) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -180,7 +180,7 @@ class IApplicationDataContainer extends IInspectable { HRESULT Function(VTablePointer lpVtbl, IntPtr name)>>>() .value .asFunction()( - ptr.ref.lpVtbl, name.toHString()); + lpVtbl, name.toHString()); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_storage/lib/src/iapplicationdatastatics.dart b/packages/windows_storage/lib/src/iapplicationdatastatics.dart index 1d9d0eb1..40491a09 100644 --- a/packages/windows_storage/lib/src/iapplicationdatastatics.dart +++ b/packages/windows_storage/lib/src/iapplicationdatastatics.dart @@ -31,7 +31,7 @@ class IApplicationDataStatics extends IInspectable { ApplicationData? get current { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IApplicationDataStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_storage/lib/src/iapplicationdatastatics2.dart b/packages/windows_storage/lib/src/iapplicationdatastatics2.dart index 7b36b1f4..6a6f638a 100644 --- a/packages/windows_storage/lib/src/iapplicationdatastatics2.dart +++ b/packages/windows_storage/lib/src/iapplicationdatastatics2.dart @@ -33,7 +33,7 @@ class IApplicationDataStatics2 extends IInspectable { final getForUserOperation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -46,7 +46,7 @@ class IApplicationDataStatics2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer user, Pointer getForUserOperation)>()( - ptr.ref.lpVtbl, user.lpVtbl, getForUserOperation); + lpVtbl, user.lpVtbl, getForUserOperation); if (FAILED(hr)) { free(getForUserOperation); diff --git a/packages/windows_storage/lib/src/idownloadsfolderstatics.dart b/packages/windows_storage/lib/src/idownloadsfolderstatics.dart index 49fff0f2..d8e75304 100644 --- a/packages/windows_storage/lib/src/idownloadsfolderstatics.dart +++ b/packages/windows_storage/lib/src/idownloadsfolderstatics.dart @@ -34,7 +34,7 @@ class IDownloadsFolderStatics extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -47,7 +47,7 @@ class IDownloadsFolderStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int desiredName, Pointer operation)>()( - ptr.ref.lpVtbl, desiredName.toHString(), operation); + lpVtbl, desiredName.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -63,7 +63,7 @@ class IDownloadsFolderStatics extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -76,7 +76,7 @@ class IDownloadsFolderStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int desiredName, Pointer operation)>()( - ptr.ref.lpVtbl, desiredName.toHString(), operation); + lpVtbl, desiredName.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -93,7 +93,7 @@ class IDownloadsFolderStatics extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -107,7 +107,7 @@ class IDownloadsFolderStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int desiredName, int option, Pointer operation)>()( - ptr.ref.lpVtbl, desiredName.toHString(), option.value, operation); + lpVtbl, desiredName.toHString(), option.value, operation); if (FAILED(hr)) { free(operation); @@ -124,7 +124,7 @@ class IDownloadsFolderStatics extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -138,7 +138,7 @@ class IDownloadsFolderStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int desiredName, int option, Pointer operation)>()( - ptr.ref.lpVtbl, desiredName.toHString(), option.value, operation); + lpVtbl, desiredName.toHString(), option.value, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/idownloadsfolderstatics2.dart b/packages/windows_storage/lib/src/idownloadsfolderstatics2.dart index e601a05d..2562168f 100644 --- a/packages/windows_storage/lib/src/idownloadsfolderstatics2.dart +++ b/packages/windows_storage/lib/src/idownloadsfolderstatics2.dart @@ -35,7 +35,7 @@ class IDownloadsFolderStatics2 extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -49,7 +49,7 @@ class IDownloadsFolderStatics2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer user, int desiredName, Pointer operation)>()( - ptr.ref.lpVtbl, user.lpVtbl, desiredName.toHString(), operation); + lpVtbl, user.lpVtbl, desiredName.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -66,7 +66,7 @@ class IDownloadsFolderStatics2 extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -80,7 +80,7 @@ class IDownloadsFolderStatics2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer user, int desiredName, Pointer operation)>()( - ptr.ref.lpVtbl, user.lpVtbl, desiredName.toHString(), operation); + lpVtbl, user.lpVtbl, desiredName.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -96,7 +96,7 @@ class IDownloadsFolderStatics2 extends IInspectable { User? user, String desiredName, CreationCollisionOption option) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -114,8 +114,8 @@ class IDownloadsFolderStatics2 extends IInspectable { VTablePointer user, int desiredName, int option, - Pointer operation)>()(ptr.ref.lpVtbl, - user.lpVtbl, desiredName.toHString(), option.value, operation); + Pointer operation)>()( + lpVtbl, user.lpVtbl, desiredName.toHString(), option.value, operation); if (FAILED(hr)) { free(operation); @@ -131,7 +131,7 @@ class IDownloadsFolderStatics2 extends IInspectable { User? user, String desiredName, CreationCollisionOption option) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -149,8 +149,8 @@ class IDownloadsFolderStatics2 extends IInspectable { VTablePointer user, int desiredName, int option, - Pointer operation)>()(ptr.ref.lpVtbl, - user.lpVtbl, desiredName.toHString(), option.value, operation); + Pointer operation)>()( + lpVtbl, user.lpVtbl, desiredName.toHString(), option.value, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/ifileiostatics.dart b/packages/windows_storage/lib/src/ifileiostatics.dart index dba395a1..032672f4 100644 --- a/packages/windows_storage/lib/src/ifileiostatics.dart +++ b/packages/windows_storage/lib/src/ifileiostatics.dart @@ -34,7 +34,7 @@ class IFileIOStatics extends IInspectable { final textOperation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -47,7 +47,7 @@ class IFileIOStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer file, Pointer textOperation)>()( - ptr.ref.lpVtbl, file.lpVtbl, textOperation); + lpVtbl, file.lpVtbl, textOperation); if (FAILED(hr)) { free(textOperation); @@ -63,7 +63,7 @@ class IFileIOStatics extends IInspectable { final textOperation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -77,7 +77,7 @@ class IFileIOStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer file, int encoding, Pointer textOperation)>()( - ptr.ref.lpVtbl, file.lpVtbl, encoding.value, textOperation); + lpVtbl, file.lpVtbl, encoding.value, textOperation); if (FAILED(hr)) { free(textOperation); @@ -92,7 +92,7 @@ class IFileIOStatics extends IInspectable { final textOperation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -106,7 +106,7 @@ class IFileIOStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer file, int contents, Pointer textOperation)>()( - ptr.ref.lpVtbl, file.lpVtbl, contents.toHString(), textOperation); + lpVtbl, file.lpVtbl, contents.toHString(), textOperation); if (FAILED(hr)) { free(textOperation); @@ -120,7 +120,7 @@ class IFileIOStatics extends IInspectable { IStorageFile? file, String contents, UnicodeEncoding encoding) { final textOperation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -138,8 +138,8 @@ class IFileIOStatics extends IInspectable { VTablePointer file, int contents, int encoding, - Pointer textOperation)>()(ptr.ref.lpVtbl, - file.lpVtbl, contents.toHString(), encoding.value, textOperation); + Pointer textOperation)>()(lpVtbl, file.lpVtbl, + contents.toHString(), encoding.value, textOperation); if (FAILED(hr)) { free(textOperation); @@ -153,7 +153,7 @@ class IFileIOStatics extends IInspectable { final textOperation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -167,7 +167,7 @@ class IFileIOStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer file, int contents, Pointer textOperation)>()( - ptr.ref.lpVtbl, file.lpVtbl, contents.toHString(), textOperation); + lpVtbl, file.lpVtbl, contents.toHString(), textOperation); if (FAILED(hr)) { free(textOperation); @@ -181,7 +181,7 @@ class IFileIOStatics extends IInspectable { IStorageFile? file, String contents, UnicodeEncoding encoding) { final textOperation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -199,8 +199,8 @@ class IFileIOStatics extends IInspectable { VTablePointer file, int contents, int encoding, - Pointer textOperation)>()(ptr.ref.lpVtbl, - file.lpVtbl, contents.toHString(), encoding.value, textOperation); + Pointer textOperation)>()(lpVtbl, file.lpVtbl, + contents.toHString(), encoding.value, textOperation); if (FAILED(hr)) { free(textOperation); @@ -214,7 +214,7 @@ class IFileIOStatics extends IInspectable { final linesOperation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(12) .cast< Pointer< @@ -227,7 +227,7 @@ class IFileIOStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer file, Pointer linesOperation)>()( - ptr.ref.lpVtbl, file.lpVtbl, linesOperation); + lpVtbl, file.lpVtbl, linesOperation); if (FAILED(hr)) { free(linesOperation); @@ -246,7 +246,7 @@ class IFileIOStatics extends IInspectable { final linesOperation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(13) .cast< Pointer< @@ -260,7 +260,7 @@ class IFileIOStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer file, int encoding, Pointer linesOperation)>()( - ptr.ref.lpVtbl, file.lpVtbl, encoding.value, linesOperation); + lpVtbl, file.lpVtbl, encoding.value, linesOperation); if (FAILED(hr)) { free(linesOperation); @@ -278,7 +278,7 @@ class IFileIOStatics extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(14) .cast< Pointer< @@ -292,7 +292,7 @@ class IFileIOStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer file, VTablePointer lines, Pointer operation)>()( - ptr.ref.lpVtbl, file.lpVtbl, lines.lpVtbl, operation); + lpVtbl, file.lpVtbl, lines.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -306,7 +306,7 @@ class IFileIOStatics extends IInspectable { IStorageFile? file, IIterable? lines, UnicodeEncoding encoding) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -325,7 +325,7 @@ class IFileIOStatics extends IInspectable { VTablePointer lines, int encoding, Pointer operation)>()( - ptr.ref.lpVtbl, file.lpVtbl, lines.lpVtbl, encoding.value, operation); + lpVtbl, file.lpVtbl, lines.lpVtbl, encoding.value, operation); if (FAILED(hr)) { free(operation); @@ -339,7 +339,7 @@ class IFileIOStatics extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(16) .cast< Pointer< @@ -353,7 +353,7 @@ class IFileIOStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer file, VTablePointer lines, Pointer operation)>()( - ptr.ref.lpVtbl, file.lpVtbl, lines.lpVtbl, operation); + lpVtbl, file.lpVtbl, lines.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -367,7 +367,7 @@ class IFileIOStatics extends IInspectable { IStorageFile? file, IIterable? lines, UnicodeEncoding encoding) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -386,7 +386,7 @@ class IFileIOStatics extends IInspectable { VTablePointer lines, int encoding, Pointer operation)>()( - ptr.ref.lpVtbl, file.lpVtbl, lines.lpVtbl, encoding.value, operation); + lpVtbl, file.lpVtbl, lines.lpVtbl, encoding.value, operation); if (FAILED(hr)) { free(operation); @@ -400,7 +400,7 @@ class IFileIOStatics extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(18) .cast< Pointer< @@ -413,7 +413,7 @@ class IFileIOStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer file, Pointer operation)>()( - ptr.ref.lpVtbl, file.lpVtbl, operation); + lpVtbl, file.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -429,7 +429,7 @@ class IFileIOStatics extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(19) .cast< Pointer< @@ -443,7 +443,7 @@ class IFileIOStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer file, VTablePointer buffer, Pointer operation)>()( - ptr.ref.lpVtbl, file.lpVtbl, buffer.lpVtbl, operation); + lpVtbl, file.lpVtbl, buffer.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -457,7 +457,7 @@ class IFileIOStatics extends IInspectable { final operation = calloc(); final bufferArray = buffer.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(20) .cast< Pointer< @@ -476,7 +476,7 @@ class IFileIOStatics extends IInspectable { int bufferSize, Pointer buffer, Pointer operation)>()( - ptr.ref.lpVtbl, file.lpVtbl, buffer.length, bufferArray, operation); + lpVtbl, file.lpVtbl, buffer.length, bufferArray, operation); free(bufferArray); diff --git a/packages/windows_storage/lib/src/iknownfolderscamerarollstatics.dart b/packages/windows_storage/lib/src/iknownfolderscamerarollstatics.dart index 8ceb68b6..fbd0ba00 100644 --- a/packages/windows_storage/lib/src/iknownfolderscamerarollstatics.dart +++ b/packages/windows_storage/lib/src/iknownfolderscamerarollstatics.dart @@ -33,7 +33,7 @@ class IKnownFoldersCameraRollStatics extends IInspectable { StorageFolder? get cameraRoll { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IKnownFoldersCameraRollStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_storage/lib/src/iknownfoldersplaylistsstatics.dart b/packages/windows_storage/lib/src/iknownfoldersplaylistsstatics.dart index a26d6b05..4d1514dc 100644 --- a/packages/windows_storage/lib/src/iknownfoldersplaylistsstatics.dart +++ b/packages/windows_storage/lib/src/iknownfoldersplaylistsstatics.dart @@ -33,7 +33,7 @@ class IKnownFoldersPlaylistsStatics extends IInspectable { StorageFolder? get playlists { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IKnownFoldersPlaylistsStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_storage/lib/src/iknownfolderssavedpicturesstatics.dart b/packages/windows_storage/lib/src/iknownfolderssavedpicturesstatics.dart index d877dac6..c2d11931 100644 --- a/packages/windows_storage/lib/src/iknownfolderssavedpicturesstatics.dart +++ b/packages/windows_storage/lib/src/iknownfolderssavedpicturesstatics.dart @@ -33,7 +33,7 @@ class IKnownFoldersSavedPicturesStatics extends IInspectable { StorageFolder? get savedPictures { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IKnownFoldersSavedPicturesStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_storage/lib/src/iknownfoldersstatics.dart b/packages/windows_storage/lib/src/iknownfoldersstatics.dart index 569bdb17..67ebe415 100644 --- a/packages/windows_storage/lib/src/iknownfoldersstatics.dart +++ b/packages/windows_storage/lib/src/iknownfoldersstatics.dart @@ -31,7 +31,7 @@ class IKnownFoldersStatics extends IInspectable { StorageFolder? get musicLibrary { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IKnownFoldersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -59,7 +59,7 @@ class IKnownFoldersStatics extends IInspectable { StorageFolder? get picturesLibrary { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -69,7 +69,7 @@ class IKnownFoldersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -87,7 +87,7 @@ class IKnownFoldersStatics extends IInspectable { StorageFolder? get videosLibrary { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -97,7 +97,7 @@ class IKnownFoldersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -115,7 +115,7 @@ class IKnownFoldersStatics extends IInspectable { StorageFolder? get documentsLibrary { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -125,7 +125,7 @@ class IKnownFoldersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -143,7 +143,7 @@ class IKnownFoldersStatics extends IInspectable { StorageFolder? get homeGroup { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -153,7 +153,7 @@ class IKnownFoldersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -171,7 +171,7 @@ class IKnownFoldersStatics extends IInspectable { StorageFolder? get removableDevices { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -181,7 +181,7 @@ class IKnownFoldersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -199,7 +199,7 @@ class IKnownFoldersStatics extends IInspectable { StorageFolder? get mediaServerDevices { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -209,7 +209,7 @@ class IKnownFoldersStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_storage/lib/src/iknownfoldersstatics2.dart b/packages/windows_storage/lib/src/iknownfoldersstatics2.dart index d1522fe5..c097621a 100644 --- a/packages/windows_storage/lib/src/iknownfoldersstatics2.dart +++ b/packages/windows_storage/lib/src/iknownfoldersstatics2.dart @@ -31,7 +31,7 @@ class IKnownFoldersStatics2 extends IInspectable { StorageFolder? get objects3D { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IKnownFoldersStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -59,7 +59,7 @@ class IKnownFoldersStatics2 extends IInspectable { StorageFolder? get appCaptures { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -69,7 +69,7 @@ class IKnownFoldersStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -87,7 +87,7 @@ class IKnownFoldersStatics2 extends IInspectable { StorageFolder? get recordedCalls { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -97,7 +97,7 @@ class IKnownFoldersStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_storage/lib/src/iknownfoldersstatics3.dart b/packages/windows_storage/lib/src/iknownfoldersstatics3.dart index 7180bbdf..21a7764a 100644 --- a/packages/windows_storage/lib/src/iknownfoldersstatics3.dart +++ b/packages/windows_storage/lib/src/iknownfoldersstatics3.dart @@ -35,7 +35,7 @@ class IKnownFoldersStatics3 extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -49,7 +49,7 @@ class IKnownFoldersStatics3 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer user, int folderId, Pointer operation)>()( - ptr.ref.lpVtbl, user.lpVtbl, folderId.value, operation); + lpVtbl, user.lpVtbl, folderId.value, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/iknownfoldersstatics4.dart b/packages/windows_storage/lib/src/iknownfoldersstatics4.dart index 6329b341..7a275f63 100644 --- a/packages/windows_storage/lib/src/iknownfoldersstatics4.dart +++ b/packages/windows_storage/lib/src/iknownfoldersstatics4.dart @@ -34,7 +34,7 @@ class IKnownFoldersStatics4 extends IInspectable { Future requestAccessAsync(KnownFolderId folderId) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IKnownFoldersStatics4 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int folderId, Pointer operation)>()( - ptr.ref.lpVtbl, folderId.value, operation); + lpVtbl, folderId.value, operation); if (FAILED(hr)) { free(operation); @@ -63,7 +63,7 @@ class IKnownFoldersStatics4 extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -77,7 +77,7 @@ class IKnownFoldersStatics4 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer user, int folderId, Pointer operation)>()( - ptr.ref.lpVtbl, user.lpVtbl, folderId.value, operation); + lpVtbl, user.lpVtbl, folderId.value, operation); if (FAILED(hr)) { free(operation); @@ -93,7 +93,7 @@ class IKnownFoldersStatics4 extends IInspectable { Future getFolderAsync(KnownFolderId folderId) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -104,7 +104,7 @@ class IKnownFoldersStatics4 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int folderId, Pointer operation)>()( - ptr.ref.lpVtbl, folderId.value, operation); + lpVtbl, folderId.value, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/istoragefile.dart b/packages/windows_storage/lib/src/istoragefile.dart index d5b62f79..1f8021e9 100644 --- a/packages/windows_storage/lib/src/istoragefile.dart +++ b/packages/windows_storage/lib/src/istoragefile.dart @@ -50,7 +50,7 @@ class IStorageFile extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -60,7 +60,7 @@ class IStorageFile extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -74,7 +74,7 @@ class IStorageFile extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -84,7 +84,7 @@ class IStorageFile extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -97,7 +97,7 @@ class IStorageFile extends IInspectable Future openAsync(FileAccessMode accessMode) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -108,7 +108,7 @@ class IStorageFile extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, int accessMode, Pointer operation)>()( - ptr.ref.lpVtbl, accessMode.value, operation); + lpVtbl, accessMode.value, operation); if (FAILED(hr)) { free(operation); @@ -124,7 +124,7 @@ class IStorageFile extends IInspectable Future openTransactedWriteAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -134,7 +134,7 @@ class IStorageFile extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -151,7 +151,7 @@ class IStorageFile extends IInspectable IStorageFolder? destinationFolder) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -166,7 +166,7 @@ class IStorageFile extends IInspectable VTablePointer lpVtbl, VTablePointer destinationFolder, Pointer operation)>()( - ptr.ref.lpVtbl, destinationFolder.lpVtbl, operation); + lpVtbl, destinationFolder.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -182,7 +182,7 @@ class IStorageFile extends IInspectable IStorageFolder? destinationFolder, String desiredNewName) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -198,7 +198,7 @@ class IStorageFile extends IInspectable VTablePointer lpVtbl, VTablePointer destinationFolder, int desiredNewName, - Pointer operation)>()(ptr.ref.lpVtbl, + Pointer operation)>()(lpVtbl, destinationFolder.lpVtbl, desiredNewName.toHString(), operation); if (FAILED(hr)) { @@ -215,7 +215,7 @@ class IStorageFile extends IInspectable String desiredNewName, NameCollisionOption option) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -234,7 +234,7 @@ class IStorageFile extends IInspectable int desiredNewName, int option, Pointer operation)>()( - ptr.ref.lpVtbl, + lpVtbl, destinationFolder.lpVtbl, desiredNewName.toHString(), option.value, @@ -253,7 +253,7 @@ class IStorageFile extends IInspectable Future copyAndReplaceAsync(IStorageFile? fileToReplace) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -266,7 +266,7 @@ class IStorageFile extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, VTablePointer fileToReplace, Pointer operation)>()( - ptr.ref.lpVtbl, fileToReplace.lpVtbl, operation); + lpVtbl, fileToReplace.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -280,7 +280,7 @@ class IStorageFile extends IInspectable IStorageFolder? destinationFolder) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -295,7 +295,7 @@ class IStorageFile extends IInspectable VTablePointer lpVtbl, VTablePointer destinationFolder, Pointer operation)>()( - ptr.ref.lpVtbl, destinationFolder.lpVtbl, operation); + lpVtbl, destinationFolder.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -309,7 +309,7 @@ class IStorageFile extends IInspectable IStorageFolder? destinationFolder, String desiredNewName) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -325,7 +325,7 @@ class IStorageFile extends IInspectable VTablePointer lpVtbl, VTablePointer destinationFolder, int desiredNewName, - Pointer operation)>()(ptr.ref.lpVtbl, + Pointer operation)>()(lpVtbl, destinationFolder.lpVtbl, desiredNewName.toHString(), operation); if (FAILED(hr)) { @@ -340,7 +340,7 @@ class IStorageFile extends IInspectable String desiredNewName, NameCollisionOption option) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -359,7 +359,7 @@ class IStorageFile extends IInspectable int desiredNewName, int option, Pointer operation)>()( - ptr.ref.lpVtbl, + lpVtbl, destinationFolder.lpVtbl, desiredNewName.toHString(), option.value, @@ -376,7 +376,7 @@ class IStorageFile extends IInspectable Future moveAndReplaceAsync(IStorageFile? fileToReplace) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -389,7 +389,7 @@ class IStorageFile extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, VTablePointer fileToReplace, Pointer operation)>()( - ptr.ref.lpVtbl, fileToReplace.lpVtbl, operation); + lpVtbl, fileToReplace.lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/istoragefile2.dart b/packages/windows_storage/lib/src/istoragefile2.dart index 0b3f3bc7..085116f1 100644 --- a/packages/windows_storage/lib/src/istoragefile2.dart +++ b/packages/windows_storage/lib/src/istoragefile2.dart @@ -35,7 +35,7 @@ class IStorageFile2 extends IInspectable { FileAccessMode accessMode, StorageOpenOptions options) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -46,7 +46,7 @@ class IStorageFile2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int accessMode, int options, Pointer operation)>()( - ptr.ref.lpVtbl, accessMode.value, options.value, operation); + lpVtbl, accessMode.value, options.value, operation); if (FAILED(hr)) { free(operation); @@ -63,7 +63,7 @@ class IStorageFile2 extends IInspectable { StorageOpenOptions options) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -74,7 +74,7 @@ class IStorageFile2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int options, Pointer operation)>()( - ptr.ref.lpVtbl, options.value, operation); + lpVtbl, options.value, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/istoragefilepropertieswithavailability.dart b/packages/windows_storage/lib/src/istoragefilepropertieswithavailability.dart index dd1ffe9f..3b6d2144 100644 --- a/packages/windows_storage/lib/src/istoragefilepropertieswithavailability.dart +++ b/packages/windows_storage/lib/src/istoragefilepropertieswithavailability.dart @@ -32,17 +32,17 @@ class IStorageFilePropertiesWithAvailability extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_storage/lib/src/istoragefilestatics.dart b/packages/windows_storage/lib/src/istoragefilestatics.dart index 83add067..f6755117 100644 --- a/packages/windows_storage/lib/src/istoragefilestatics.dart +++ b/packages/windows_storage/lib/src/istoragefilestatics.dart @@ -33,7 +33,7 @@ class IStorageFileStatics extends IInspectable { Future getFileFromPathAsync(String path) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class IStorageFileStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int path, Pointer operation)>()( - ptr.ref.lpVtbl, path.toHString(), operation); + lpVtbl, path.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -60,7 +60,7 @@ class IStorageFileStatics extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -73,7 +73,7 @@ class IStorageFileStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer uri, Pointer operation)>()( - ptr.ref.lpVtbl, uri?.toWinRTUri().lpVtbl ?? nullptr, operation); + lpVtbl, uri?.toWinRTUri().lpVtbl ?? nullptr, operation); if (FAILED(hr)) { free(operation); @@ -91,7 +91,7 @@ class IStorageFileStatics extends IInspectable { IRandomAccessStreamReference? thumbnail) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -110,7 +110,7 @@ class IStorageFileStatics extends IInspectable { VTablePointer dataRequested, VTablePointer thumbnail, Pointer operation)>()( - ptr.ref.lpVtbl, + lpVtbl, displayNameWithExtension.toHString(), dataRequested.ref.lpVtbl, thumbnail.lpVtbl, @@ -132,7 +132,7 @@ class IStorageFileStatics extends IInspectable { IRandomAccessStreamReference? thumbnail) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -151,7 +151,7 @@ class IStorageFileStatics extends IInspectable { VTablePointer dataRequested, VTablePointer thumbnail, Pointer operation)>()( - ptr.ref.lpVtbl, + lpVtbl, fileToReplace.lpVtbl, dataRequested.ref.lpVtbl, thumbnail.lpVtbl, @@ -173,7 +173,7 @@ class IStorageFileStatics extends IInspectable { IRandomAccessStreamReference? thumbnail) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -192,7 +192,7 @@ class IStorageFileStatics extends IInspectable { VTablePointer uri, VTablePointer thumbnail, Pointer operation)>()( - ptr.ref.lpVtbl, + lpVtbl, displayNameWithExtension.toHString(), uri?.toWinRTUri().lpVtbl ?? nullptr, thumbnail.lpVtbl, @@ -214,7 +214,7 @@ class IStorageFileStatics extends IInspectable { IRandomAccessStreamReference? thumbnail) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -233,7 +233,7 @@ class IStorageFileStatics extends IInspectable { VTablePointer uri, VTablePointer thumbnail, Pointer operation)>()( - ptr.ref.lpVtbl, + lpVtbl, fileToReplace.lpVtbl, uri?.toWinRTUri().lpVtbl ?? nullptr, thumbnail.lpVtbl, diff --git a/packages/windows_storage/lib/src/istoragefilestatics2.dart b/packages/windows_storage/lib/src/istoragefilestatics2.dart index ea018e66..27abaeb6 100644 --- a/packages/windows_storage/lib/src/istoragefilestatics2.dart +++ b/packages/windows_storage/lib/src/istoragefilestatics2.dart @@ -33,7 +33,7 @@ class IStorageFileStatics2 extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -47,7 +47,7 @@ class IStorageFileStatics2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer user, int path, Pointer operation)>()( - ptr.ref.lpVtbl, user.lpVtbl, path.toHString(), operation); + lpVtbl, user.lpVtbl, path.toHString(), operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/istoragefolder.dart b/packages/windows_storage/lib/src/istoragefolder.dart index 62319855..ae29d28d 100644 --- a/packages/windows_storage/lib/src/istoragefolder.dart +++ b/packages/windows_storage/lib/src/istoragefolder.dart @@ -41,7 +41,7 @@ class IStorageFolder extends IInspectable implements IStorageItem { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -54,7 +54,7 @@ class IStorageFolder extends IInspectable implements IStorageItem { .asFunction< int Function(VTablePointer lpVtbl, int desiredName, Pointer operation)>()( - ptr.ref.lpVtbl, desiredName.toHString(), operation); + lpVtbl, desiredName.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -71,7 +71,7 @@ class IStorageFolder extends IInspectable implements IStorageItem { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -85,7 +85,7 @@ class IStorageFolder extends IInspectable implements IStorageItem { .asFunction< int Function(VTablePointer lpVtbl, int desiredName, int options, Pointer operation)>()( - ptr.ref.lpVtbl, desiredName.toHString(), options.value, operation); + lpVtbl, desiredName.toHString(), options.value, operation); if (FAILED(hr)) { free(operation); @@ -102,7 +102,7 @@ class IStorageFolder extends IInspectable implements IStorageItem { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -115,7 +115,7 @@ class IStorageFolder extends IInspectable implements IStorageItem { .asFunction< int Function(VTablePointer lpVtbl, int desiredName, Pointer operation)>()( - ptr.ref.lpVtbl, desiredName.toHString(), operation); + lpVtbl, desiredName.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -132,7 +132,7 @@ class IStorageFolder extends IInspectable implements IStorageItem { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -146,7 +146,7 @@ class IStorageFolder extends IInspectable implements IStorageItem { .asFunction< int Function(VTablePointer lpVtbl, int desiredName, int options, Pointer operation)>()( - ptr.ref.lpVtbl, desiredName.toHString(), options.value, operation); + lpVtbl, desiredName.toHString(), options.value, operation); if (FAILED(hr)) { free(operation); @@ -161,7 +161,7 @@ class IStorageFolder extends IInspectable implements IStorageItem { Future getFileAsync(String name) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -172,7 +172,7 @@ class IStorageFolder extends IInspectable implements IStorageItem { .asFunction< int Function(VTablePointer lpVtbl, int name, Pointer operation)>()( - ptr.ref.lpVtbl, name.toHString(), operation); + lpVtbl, name.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -187,7 +187,7 @@ class IStorageFolder extends IInspectable implements IStorageItem { Future getFolderAsync(String name) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -198,7 +198,7 @@ class IStorageFolder extends IInspectable implements IStorageItem { .asFunction< int Function(VTablePointer lpVtbl, int name, Pointer operation)>()( - ptr.ref.lpVtbl, name.toHString(), operation); + lpVtbl, name.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -213,7 +213,7 @@ class IStorageFolder extends IInspectable implements IStorageItem { Future getItemAsync(String name) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -224,7 +224,7 @@ class IStorageFolder extends IInspectable implements IStorageItem { .asFunction< int Function(VTablePointer lpVtbl, int name, Pointer operation)>()( - ptr.ref.lpVtbl, name.toHString(), operation); + lpVtbl, name.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -240,7 +240,7 @@ class IStorageFolder extends IInspectable implements IStorageItem { getFilesAsyncOverloadDefaultOptionsStartAndCount() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -250,7 +250,7 @@ class IStorageFolder extends IInspectable implements IStorageItem { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -269,7 +269,7 @@ class IStorageFolder extends IInspectable implements IStorageItem { getFoldersAsyncOverloadDefaultOptionsStartAndCount() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -279,7 +279,7 @@ class IStorageFolder extends IInspectable implements IStorageItem { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -297,7 +297,7 @@ class IStorageFolder extends IInspectable implements IStorageItem { Future> getItemsAsyncOverloadDefaultStartAndCount() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -307,7 +307,7 @@ class IStorageFolder extends IInspectable implements IStorageItem { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/istoragefolder2.dart b/packages/windows_storage/lib/src/istoragefolder2.dart index fcc8e9de..f3114a35 100644 --- a/packages/windows_storage/lib/src/istoragefolder2.dart +++ b/packages/windows_storage/lib/src/istoragefolder2.dart @@ -31,7 +31,7 @@ class IStorageFolder2 extends IInspectable { Future tryGetItemAsync(String name) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IStorageFolder2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int name, Pointer operation)>()( - ptr.ref.lpVtbl, name.toHString(), operation); + lpVtbl, name.toHString(), operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/istoragefolder3.dart b/packages/windows_storage/lib/src/istoragefolder3.dart index 16e3ac3c..46534d1e 100644 --- a/packages/windows_storage/lib/src/istoragefolder3.dart +++ b/packages/windows_storage/lib/src/istoragefolder3.dart @@ -31,7 +31,7 @@ class IStorageFolder3 extends IInspectable { StorageLibraryChangeTracker? tryGetChangeTracker() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IStorageFolder3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_storage/lib/src/istoragefolderstatics.dart b/packages/windows_storage/lib/src/istoragefolderstatics.dart index d9e99a64..d1c78dc6 100644 --- a/packages/windows_storage/lib/src/istoragefolderstatics.dart +++ b/packages/windows_storage/lib/src/istoragefolderstatics.dart @@ -31,7 +31,7 @@ class IStorageFolderStatics extends IInspectable { Future getFolderFromPathAsync(String path) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IStorageFolderStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int path, Pointer operation)>()( - ptr.ref.lpVtbl, path.toHString(), operation); + lpVtbl, path.toHString(), operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/istoragefolderstatics2.dart b/packages/windows_storage/lib/src/istoragefolderstatics2.dart index 53712e7e..ef0f252b 100644 --- a/packages/windows_storage/lib/src/istoragefolderstatics2.dart +++ b/packages/windows_storage/lib/src/istoragefolderstatics2.dart @@ -34,7 +34,7 @@ class IStorageFolderStatics2 extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -48,7 +48,7 @@ class IStorageFolderStatics2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer user, int path, Pointer operation)>()( - ptr.ref.lpVtbl, user.lpVtbl, path.toHString(), operation); + lpVtbl, user.lpVtbl, path.toHString(), operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/istorageitem.dart b/packages/windows_storage/lib/src/istorageitem.dart index b3397396..9da19fea 100644 --- a/packages/windows_storage/lib/src/istorageitem.dart +++ b/packages/windows_storage/lib/src/istorageitem.dart @@ -36,7 +36,7 @@ class IStorageItem extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -49,7 +49,7 @@ class IStorageItem extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int desiredName, Pointer operation)>()( - ptr.ref.lpVtbl, desiredName.toHString(), operation); + lpVtbl, desiredName.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -63,7 +63,7 @@ class IStorageItem extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -77,7 +77,7 @@ class IStorageItem extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int desiredName, int option, Pointer operation)>()( - ptr.ref.lpVtbl, desiredName.toHString(), option.value, operation); + lpVtbl, desiredName.toHString(), option.value, operation); if (FAILED(hr)) { free(operation); @@ -90,7 +90,7 @@ class IStorageItem extends IInspectable { Future deleteAsyncOverloadDefaultOptions() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -100,7 +100,7 @@ class IStorageItem extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -113,7 +113,7 @@ class IStorageItem extends IInspectable { Future deleteAsync(StorageDeleteOption option) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -124,7 +124,7 @@ class IStorageItem extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int option, Pointer operation)>()( - ptr.ref.lpVtbl, option.value, operation); + lpVtbl, option.value, operation); if (FAILED(hr)) { free(operation); @@ -137,7 +137,7 @@ class IStorageItem extends IInspectable { Future getBasicPropertiesAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -147,7 +147,7 @@ class IStorageItem extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -163,7 +163,7 @@ class IStorageItem extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -173,7 +173,7 @@ class IStorageItem extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -187,7 +187,7 @@ class IStorageItem extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -197,7 +197,7 @@ class IStorageItem extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -211,7 +211,7 @@ class IStorageItem extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -221,7 +221,7 @@ class IStorageItem extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -235,17 +235,17 @@ class IStorageItem extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(14) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(14) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -259,7 +259,7 @@ class IStorageItem extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -269,7 +269,7 @@ class IStorageItem extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int type, - Pointer value)>()(ptr.ref.lpVtbl, type.value, value); + Pointer value)>()(lpVtbl, type.value, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_storage/lib/src/istorageitem2.dart b/packages/windows_storage/lib/src/istorageitem2.dart index 10f00d03..8c44765d 100644 --- a/packages/windows_storage/lib/src/istorageitem2.dart +++ b/packages/windows_storage/lib/src/istorageitem2.dart @@ -37,7 +37,7 @@ class IStorageItem2 extends IInspectable implements IStorageItem { Future getParentAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -47,7 +47,7 @@ class IStorageItem2 extends IInspectable implements IStorageItem { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -63,7 +63,7 @@ class IStorageItem2 extends IInspectable implements IStorageItem { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -73,7 +73,7 @@ class IStorageItem2 extends IInspectable implements IStorageItem { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer item, - Pointer value)>()(ptr.ref.lpVtbl, item.lpVtbl, value); + Pointer value)>()(lpVtbl, item.lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_storage/lib/src/istorageitemproperties.dart b/packages/windows_storage/lib/src/istorageitemproperties.dart index c1736c0e..884e6b94 100644 --- a/packages/windows_storage/lib/src/istorageitemproperties.dart +++ b/packages/windows_storage/lib/src/istorageitemproperties.dart @@ -35,18 +35,17 @@ class IStorageItemProperties extends IInspectable { getThumbnailAsyncOverloadDefaultSizeDefaultOptions(ThumbnailMode mode) { final operation = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 mode, - Pointer operation)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int mode, - Pointer operation)>()( - ptr.ref.lpVtbl, mode.value, operation); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 mode, + Pointer operation)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int mode, + Pointer operation)>()(lpVtbl, mode.value, operation); if (FAILED(hr)) { free(operation); @@ -64,7 +63,7 @@ class IStorageItemProperties extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -78,7 +77,7 @@ class IStorageItemProperties extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int mode, int requestedSize, Pointer operation)>()( - ptr.ref.lpVtbl, mode.value, requestedSize, operation); + lpVtbl, mode.value, requestedSize, operation); if (FAILED(hr)) { free(operation); @@ -95,7 +94,7 @@ class IStorageItemProperties extends IInspectable { ThumbnailMode mode, int requestedSize, ThumbnailOptions options) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -110,7 +109,7 @@ class IStorageItemProperties extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int mode, int requestedSize, int options, Pointer operation)>()( - ptr.ref.lpVtbl, mode.value, requestedSize, options.value, operation); + lpVtbl, mode.value, requestedSize, options.value, operation); if (FAILED(hr)) { free(operation); @@ -127,7 +126,7 @@ class IStorageItemProperties extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -137,7 +136,7 @@ class IStorageItemProperties extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -151,7 +150,7 @@ class IStorageItemProperties extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -161,7 +160,7 @@ class IStorageItemProperties extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -175,7 +174,7 @@ class IStorageItemProperties extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -185,7 +184,7 @@ class IStorageItemProperties extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -198,7 +197,7 @@ class IStorageItemProperties extends IInspectable { StorageItemContentProperties? get properties { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -208,7 +207,7 @@ class IStorageItemProperties extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_storage/lib/src/istorageitemproperties2.dart b/packages/windows_storage/lib/src/istorageitemproperties2.dart index d7dce5bf..7cf27da6 100644 --- a/packages/windows_storage/lib/src/istorageitemproperties2.dart +++ b/packages/windows_storage/lib/src/istorageitemproperties2.dart @@ -38,18 +38,17 @@ class IStorageItemProperties2 extends IInspectable ThumbnailMode mode) { final operation = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 mode, - Pointer operation)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int mode, - Pointer operation)>()( - ptr.ref.lpVtbl, mode.value, operation); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 mode, + Pointer operation)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int mode, + Pointer operation)>()(lpVtbl, mode.value, operation); if (FAILED(hr)) { free(operation); @@ -68,7 +67,7 @@ class IStorageItemProperties2 extends IInspectable final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -82,7 +81,7 @@ class IStorageItemProperties2 extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, int mode, int requestedSize, Pointer operation)>()( - ptr.ref.lpVtbl, mode.value, requestedSize, operation); + lpVtbl, mode.value, requestedSize, operation); if (FAILED(hr)) { free(operation); @@ -99,7 +98,7 @@ class IStorageItemProperties2 extends IInspectable ThumbnailMode mode, int requestedSize, ThumbnailOptions options) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -114,7 +113,7 @@ class IStorageItemProperties2 extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, int mode, int requestedSize, int options, Pointer operation)>()( - ptr.ref.lpVtbl, mode.value, requestedSize, options.value, operation); + lpVtbl, mode.value, requestedSize, options.value, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/istorageitempropertieswithprovider.dart b/packages/windows_storage/lib/src/istorageitempropertieswithprovider.dart index 9f3a1ecf..8cdf1a0f 100644 --- a/packages/windows_storage/lib/src/istorageitempropertieswithprovider.dart +++ b/packages/windows_storage/lib/src/istorageitempropertieswithprovider.dart @@ -39,7 +39,7 @@ class IStorageItemPropertiesWithProvider extends IInspectable StorageProvider? get provider { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -49,7 +49,7 @@ class IStorageItemPropertiesWithProvider extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_storage/lib/src/istoragelibrarychange.dart b/packages/windows_storage/lib/src/istoragelibrarychange.dart index 17e6aa66..f3c6cd5c 100644 --- a/packages/windows_storage/lib/src/istoragelibrarychange.dart +++ b/packages/windows_storage/lib/src/istoragelibrarychange.dart @@ -34,17 +34,17 @@ class IStorageLibraryChange extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -58,7 +58,7 @@ class IStorageLibraryChange extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,7 +68,7 @@ class IStorageLibraryChange extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -82,7 +82,7 @@ class IStorageLibraryChange extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -92,7 +92,7 @@ class IStorageLibraryChange extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -106,7 +106,7 @@ class IStorageLibraryChange extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -116,7 +116,7 @@ class IStorageLibraryChange extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int type, - Pointer value)>()(ptr.ref.lpVtbl, type.value, value); + Pointer value)>()(lpVtbl, type.value, value); if (FAILED(hr)) throwWindowsException(hr); @@ -129,7 +129,7 @@ class IStorageLibraryChange extends IInspectable { Future getStorageItemAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -139,7 +139,7 @@ class IStorageLibraryChange extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/istoragelibrarychangereader.dart b/packages/windows_storage/lib/src/istoragelibrarychangereader.dart index 5d82650d..94aa31b5 100644 --- a/packages/windows_storage/lib/src/istoragelibrarychangereader.dart +++ b/packages/windows_storage/lib/src/istoragelibrarychangereader.dart @@ -33,7 +33,7 @@ class IStorageLibraryChangeReader extends IInspectable { Future> readBatchAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IStorageLibraryChangeReader extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -61,7 +61,7 @@ class IStorageLibraryChangeReader extends IInspectable { Future acceptChangesAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -71,7 +71,7 @@ class IStorageLibraryChangeReader extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/istoragelibrarychangereader2.dart b/packages/windows_storage/lib/src/istoragelibrarychangereader2.dart index 92c04d93..ac74e35c 100644 --- a/packages/windows_storage/lib/src/istoragelibrarychangereader2.dart +++ b/packages/windows_storage/lib/src/istoragelibrarychangereader2.dart @@ -32,7 +32,7 @@ class IStorageLibraryChangeReader2 extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IStorageLibraryChangeReader2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_storage/lib/src/istoragelibrarychangetracker.dart b/packages/windows_storage/lib/src/istoragelibrarychangetracker.dart index 29f9783c..f9e355fc 100644 --- a/packages/windows_storage/lib/src/istoragelibrarychangetracker.dart +++ b/packages/windows_storage/lib/src/istoragelibrarychangetracker.dart @@ -33,7 +33,7 @@ class IStorageLibraryChangeTracker extends IInspectable { StorageLibraryChangeReader? getChangeReader() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IStorageLibraryChangeTracker extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -59,21 +59,21 @@ class IStorageLibraryChangeTracker extends IInspectable { } void enable() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } void reset() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_storage/lib/src/istoragelibrarychangetracker2.dart b/packages/windows_storage/lib/src/istoragelibrarychangetracker2.dart index 0a56d2ae..8e6d5f66 100644 --- a/packages/windows_storage/lib/src/istoragelibrarychangetracker2.dart +++ b/packages/windows_storage/lib/src/istoragelibrarychangetracker2.dart @@ -31,7 +31,7 @@ class IStorageLibraryChangeTracker2 extends IInspectable { IID_IStorageLibraryChangeTracker2); void enableWithOptions(StorageLibraryChangeTrackerOptions? options) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,17 +41,17 @@ class IStorageLibraryChangeTracker2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer options)>()( - ptr.ref.lpVtbl, options.lpVtbl); + lpVtbl, options.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } void disable() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_storage/lib/src/istoragelibrarychangetrackeroptions.dart b/packages/windows_storage/lib/src/istoragelibrarychangetrackeroptions.dart index c0d0b828..bce90db4 100644 --- a/packages/windows_storage/lib/src/istoragelibrarychangetrackeroptions.dart +++ b/packages/windows_storage/lib/src/istoragelibrarychangetrackeroptions.dart @@ -32,17 +32,17 @@ class IStorageLibraryChangeTrackerOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -53,7 +53,7 @@ class IStorageLibraryChangeTrackerOptions extends IInspectable { } set trackChangeDetails(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -61,7 +61,7 @@ class IStorageLibraryChangeTrackerOptions extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_storage/lib/src/istorageprovider.dart b/packages/windows_storage/lib/src/istorageprovider.dart index b0d0ed46..79bb856f 100644 --- a/packages/windows_storage/lib/src/istorageprovider.dart +++ b/packages/windows_storage/lib/src/istorageprovider.dart @@ -30,7 +30,7 @@ class IStorageProvider extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IStorageProvider extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IStorageProvider extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IStorageProvider extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_storage/lib/src/istorageprovider2.dart b/packages/windows_storage/lib/src/istorageprovider2.dart index e9a0f210..72816093 100644 --- a/packages/windows_storage/lib/src/istorageprovider2.dart +++ b/packages/windows_storage/lib/src/istorageprovider2.dart @@ -32,7 +32,7 @@ class IStorageProvider2 extends IInspectable implements IStorageProvider { String propertyCanonicalName) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IStorageProvider2 extends IInspectable implements IStorageProvider { .asFunction< int Function(VTablePointer lpVtbl, int propertyCanonicalName, Pointer operation)>()( - ptr.ref.lpVtbl, propertyCanonicalName.toHString(), operation); + lpVtbl, propertyCanonicalName.toHString(), operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/istoragestreamtransaction.dart b/packages/windows_storage/lib/src/istoragestreamtransaction.dart index ca9a7ed3..f6c23669 100644 --- a/packages/windows_storage/lib/src/istoragestreamtransaction.dart +++ b/packages/windows_storage/lib/src/istoragestreamtransaction.dart @@ -31,7 +31,7 @@ class IStorageStreamTransaction extends IInspectable implements IClosable { IRandomAccessStream? get stream { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IStorageStreamTransaction extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -59,7 +59,7 @@ class IStorageStreamTransaction extends IInspectable implements IClosable { Future commitAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -69,7 +69,7 @@ class IStorageStreamTransaction extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/iuserdatapaths.dart b/packages/windows_storage/lib/src/iuserdatapaths.dart index e0135389..e1418e13 100644 --- a/packages/windows_storage/lib/src/iuserdatapaths.dart +++ b/packages/windows_storage/lib/src/iuserdatapaths.dart @@ -30,7 +30,7 @@ class IUserDataPaths extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IUserDataPaths extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IUserDataPaths extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IUserDataPaths extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -78,7 +78,7 @@ class IUserDataPaths extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -88,7 +88,7 @@ class IUserDataPaths extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -102,7 +102,7 @@ class IUserDataPaths extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -112,7 +112,7 @@ class IUserDataPaths extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -126,7 +126,7 @@ class IUserDataPaths extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -136,7 +136,7 @@ class IUserDataPaths extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -150,7 +150,7 @@ class IUserDataPaths extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -160,7 +160,7 @@ class IUserDataPaths extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -174,7 +174,7 @@ class IUserDataPaths extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -184,7 +184,7 @@ class IUserDataPaths extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -198,7 +198,7 @@ class IUserDataPaths extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -208,7 +208,7 @@ class IUserDataPaths extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -222,7 +222,7 @@ class IUserDataPaths extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -232,7 +232,7 @@ class IUserDataPaths extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -246,7 +246,7 @@ class IUserDataPaths extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -256,7 +256,7 @@ class IUserDataPaths extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -270,7 +270,7 @@ class IUserDataPaths extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -280,7 +280,7 @@ class IUserDataPaths extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -294,7 +294,7 @@ class IUserDataPaths extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -304,7 +304,7 @@ class IUserDataPaths extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -318,7 +318,7 @@ class IUserDataPaths extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast< Pointer< @@ -328,7 +328,7 @@ class IUserDataPaths extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -342,7 +342,7 @@ class IUserDataPaths extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(19) .cast< Pointer< @@ -352,7 +352,7 @@ class IUserDataPaths extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -366,7 +366,7 @@ class IUserDataPaths extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(20) .cast< Pointer< @@ -376,7 +376,7 @@ class IUserDataPaths extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -390,7 +390,7 @@ class IUserDataPaths extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(21) .cast< Pointer< @@ -400,7 +400,7 @@ class IUserDataPaths extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -414,7 +414,7 @@ class IUserDataPaths extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(22) .cast< Pointer< @@ -424,7 +424,7 @@ class IUserDataPaths extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -438,7 +438,7 @@ class IUserDataPaths extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(23) .cast< Pointer< @@ -448,7 +448,7 @@ class IUserDataPaths extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -462,7 +462,7 @@ class IUserDataPaths extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(24) .cast< Pointer< @@ -472,7 +472,7 @@ class IUserDataPaths extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_storage/lib/src/iuserdatapathsstatics.dart b/packages/windows_storage/lib/src/iuserdatapathsstatics.dart index 73f1dca5..c6269311 100644 --- a/packages/windows_storage/lib/src/iuserdatapathsstatics.dart +++ b/packages/windows_storage/lib/src/iuserdatapathsstatics.dart @@ -32,7 +32,7 @@ class IUserDataPathsStatics extends IInspectable { UserDataPaths? getForUser(User? user) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,11 +41,8 @@ class IUserDataPathsStatics extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer user, - Pointer - result)>()(ptr.ref.lpVtbl, user.lpVtbl, result); + int Function(VTablePointer lpVtbl, VTablePointer user, + Pointer result)>()(lpVtbl, user.lpVtbl, result); if (FAILED(hr)) { free(result); @@ -63,7 +60,7 @@ class IUserDataPathsStatics extends IInspectable { UserDataPaths? getDefault() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -73,7 +70,7 @@ class IUserDataPathsStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_storage/lib/src/pickers/ifileopenpicker.dart b/packages/windows_storage/lib/src/pickers/ifileopenpicker.dart index bfd91fc7..68a1eb15 100644 --- a/packages/windows_storage/lib/src/pickers/ifileopenpicker.dart +++ b/packages/windows_storage/lib/src/pickers/ifileopenpicker.dart @@ -34,17 +34,17 @@ class IFileOpenPicker extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +55,7 @@ class IFileOpenPicker extends IInspectable { } set viewMode(PickerViewMode value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -63,7 +63,7 @@ class IFileOpenPicker extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -72,7 +72,7 @@ class IFileOpenPicker extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -82,7 +82,7 @@ class IFileOpenPicker extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -94,7 +94,7 @@ class IFileOpenPicker extends IInspectable { set settingsIdentifier(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -103,7 +103,7 @@ class IFileOpenPicker extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -112,17 +112,17 @@ class IFileOpenPicker extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -133,7 +133,7 @@ class IFileOpenPicker extends IInspectable { } set suggestedStartLocation(PickerLocationId value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -141,7 +141,7 @@ class IFileOpenPicker extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -150,7 +150,7 @@ class IFileOpenPicker extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -160,7 +160,7 @@ class IFileOpenPicker extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -172,7 +172,7 @@ class IFileOpenPicker extends IInspectable { set commitButtonText(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(13) .cast< Pointer< @@ -181,7 +181,7 @@ class IFileOpenPicker extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -189,7 +189,7 @@ class IFileOpenPicker extends IInspectable { IVector? get fileTypeFilter { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -199,7 +199,7 @@ class IFileOpenPicker extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -218,7 +218,7 @@ class IFileOpenPicker extends IInspectable { Future pickSingleFileAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -228,7 +228,7 @@ class IFileOpenPicker extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -243,7 +243,7 @@ class IFileOpenPicker extends IInspectable { Future> pickMultipleFilesAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -253,7 +253,7 @@ class IFileOpenPicker extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/pickers/ifileopenpicker3.dart b/packages/windows_storage/lib/src/pickers/ifileopenpicker3.dart index b1a6f19c..6d27461a 100644 --- a/packages/windows_storage/lib/src/pickers/ifileopenpicker3.dart +++ b/packages/windows_storage/lib/src/pickers/ifileopenpicker3.dart @@ -30,7 +30,7 @@ class IFileOpenPicker3 extends IInspectable { User? get user { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IFileOpenPicker3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_storage/lib/src/pickers/ifileopenpickerstatics2.dart b/packages/windows_storage/lib/src/pickers/ifileopenpickerstatics2.dart index 3575acc0..f028765b 100644 --- a/packages/windows_storage/lib/src/pickers/ifileopenpickerstatics2.dart +++ b/packages/windows_storage/lib/src/pickers/ifileopenpickerstatics2.dart @@ -32,7 +32,7 @@ class IFileOpenPickerStatics2 extends IInspectable { FileOpenPicker? createForUser(User? user) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,11 +41,8 @@ class IFileOpenPickerStatics2 extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer user, - Pointer - result)>()(ptr.ref.lpVtbl, user.lpVtbl, result); + int Function(VTablePointer lpVtbl, VTablePointer user, + Pointer result)>()(lpVtbl, user.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_storage/lib/src/pickers/ifilesavepicker.dart b/packages/windows_storage/lib/src/pickers/ifilesavepicker.dart index c9867d7d..297cbcec 100644 --- a/packages/windows_storage/lib/src/pickers/ifilesavepicker.dart +++ b/packages/windows_storage/lib/src/pickers/ifilesavepicker.dart @@ -33,7 +33,7 @@ class IFileSavePicker extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IFileSavePicker extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +55,7 @@ class IFileSavePicker extends IInspectable { set settingsIdentifier(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IFileSavePicker extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -73,17 +73,17 @@ class IFileSavePicker extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -94,7 +94,7 @@ class IFileSavePicker extends IInspectable { } set suggestedStartLocation(PickerLocationId value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -102,7 +102,7 @@ class IFileSavePicker extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -111,7 +111,7 @@ class IFileSavePicker extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -121,7 +121,7 @@ class IFileSavePicker extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -133,7 +133,7 @@ class IFileSavePicker extends IInspectable { set commitButtonText(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(11) .cast< Pointer< @@ -142,7 +142,7 @@ class IFileSavePicker extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -150,7 +150,7 @@ class IFileSavePicker extends IInspectable { IMap>? get fileTypeChoices { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -160,7 +160,7 @@ class IFileSavePicker extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -182,7 +182,7 @@ class IFileSavePicker extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -192,7 +192,7 @@ class IFileSavePicker extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -204,7 +204,7 @@ class IFileSavePicker extends IInspectable { set defaultFileExtension(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(14) .cast< Pointer< @@ -213,7 +213,7 @@ class IFileSavePicker extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -221,7 +221,7 @@ class IFileSavePicker extends IInspectable { StorageFile? get suggestedSaveFile { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -231,7 +231,7 @@ class IFileSavePicker extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -247,7 +247,7 @@ class IFileSavePicker extends IInspectable { } set suggestedSaveFile(StorageFile? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -257,7 +257,7 @@ class IFileSavePicker extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value.lpVtbl); + lpVtbl, value.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -266,7 +266,7 @@ class IFileSavePicker extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -276,7 +276,7 @@ class IFileSavePicker extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -288,7 +288,7 @@ class IFileSavePicker extends IInspectable { set suggestedFileName(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(18) .cast< Pointer< @@ -297,7 +297,7 @@ class IFileSavePicker extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -305,7 +305,7 @@ class IFileSavePicker extends IInspectable { Future pickSaveFileAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(19) .cast< Pointer< @@ -315,7 +315,7 @@ class IFileSavePicker extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/pickers/ifilesavepicker2.dart b/packages/windows_storage/lib/src/pickers/ifilesavepicker2.dart index 77b5aa93..7caad863 100644 --- a/packages/windows_storage/lib/src/pickers/ifilesavepicker2.dart +++ b/packages/windows_storage/lib/src/pickers/ifilesavepicker2.dart @@ -29,7 +29,7 @@ class IFileSavePicker2 extends IInspectable { ValueSet? get continuationData { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class IFileSavePicker2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -56,11 +56,11 @@ class IFileSavePicker2 extends IInspectable { @Deprecated("Instead, use PickSaveFileAsync") void pickSaveFileAndContinue() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_storage/lib/src/pickers/ifilesavepicker3.dart b/packages/windows_storage/lib/src/pickers/ifilesavepicker3.dart index 708d85d7..0f4fc22b 100644 --- a/packages/windows_storage/lib/src/pickers/ifilesavepicker3.dart +++ b/packages/windows_storage/lib/src/pickers/ifilesavepicker3.dart @@ -30,7 +30,7 @@ class IFileSavePicker3 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IFileSavePicker3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -52,7 +52,7 @@ class IFileSavePicker3 extends IInspectable { set enterpriseId(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -61,7 +61,7 @@ class IFileSavePicker3 extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_storage/lib/src/pickers/ifilesavepicker4.dart b/packages/windows_storage/lib/src/pickers/ifilesavepicker4.dart index dcf3aa3b..0ff467f7 100644 --- a/packages/windows_storage/lib/src/pickers/ifilesavepicker4.dart +++ b/packages/windows_storage/lib/src/pickers/ifilesavepicker4.dart @@ -30,7 +30,7 @@ class IFileSavePicker4 extends IInspectable { User? get user { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IFileSavePicker4 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_storage/lib/src/pickers/ifilesavepickerstatics.dart b/packages/windows_storage/lib/src/pickers/ifilesavepickerstatics.dart index 0db337fe..c4ce43e0 100644 --- a/packages/windows_storage/lib/src/pickers/ifilesavepickerstatics.dart +++ b/packages/windows_storage/lib/src/pickers/ifilesavepickerstatics.dart @@ -32,7 +32,7 @@ class IFileSavePickerStatics extends IInspectable { FileSavePicker? createForUser(User? user) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,11 +41,8 @@ class IFileSavePickerStatics extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer user, - Pointer - result)>()(ptr.ref.lpVtbl, user.lpVtbl, result); + int Function(VTablePointer lpVtbl, VTablePointer user, + Pointer result)>()(lpVtbl, user.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_storage/lib/src/pickers/ifolderpicker.dart b/packages/windows_storage/lib/src/pickers/ifolderpicker.dart index 9e1663a3..c7e3db87 100644 --- a/packages/windows_storage/lib/src/pickers/ifolderpicker.dart +++ b/packages/windows_storage/lib/src/pickers/ifolderpicker.dart @@ -34,17 +34,17 @@ class IFolderPicker extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +55,7 @@ class IFolderPicker extends IInspectable { } set viewMode(PickerViewMode value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -63,7 +63,7 @@ class IFolderPicker extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -72,7 +72,7 @@ class IFolderPicker extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -82,7 +82,7 @@ class IFolderPicker extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -94,7 +94,7 @@ class IFolderPicker extends IInspectable { set settingsIdentifier(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -103,7 +103,7 @@ class IFolderPicker extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -112,17 +112,17 @@ class IFolderPicker extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -133,7 +133,7 @@ class IFolderPicker extends IInspectable { } set suggestedStartLocation(PickerLocationId value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -141,7 +141,7 @@ class IFolderPicker extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -150,7 +150,7 @@ class IFolderPicker extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -160,7 +160,7 @@ class IFolderPicker extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -172,7 +172,7 @@ class IFolderPicker extends IInspectable { set commitButtonText(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(13) .cast< Pointer< @@ -181,7 +181,7 @@ class IFolderPicker extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -189,7 +189,7 @@ class IFolderPicker extends IInspectable { IVector? get fileTypeFilter { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -199,7 +199,7 @@ class IFolderPicker extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -218,7 +218,7 @@ class IFolderPicker extends IInspectable { Future pickSingleFolderAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -228,7 +228,7 @@ class IFolderPicker extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/pickers/ifolderpicker2.dart b/packages/windows_storage/lib/src/pickers/ifolderpicker2.dart index 1b117501..63f18619 100644 --- a/packages/windows_storage/lib/src/pickers/ifolderpicker2.dart +++ b/packages/windows_storage/lib/src/pickers/ifolderpicker2.dart @@ -29,7 +29,7 @@ class IFolderPicker2 extends IInspectable { ValueSet? get continuationData { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class IFolderPicker2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -56,11 +56,11 @@ class IFolderPicker2 extends IInspectable { @Deprecated("Instead, use PickSingleFolderAsync") void pickFolderAndContinue() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_storage/lib/src/pickers/ifolderpicker3.dart b/packages/windows_storage/lib/src/pickers/ifolderpicker3.dart index 538e7168..79502af5 100644 --- a/packages/windows_storage/lib/src/pickers/ifolderpicker3.dart +++ b/packages/windows_storage/lib/src/pickers/ifolderpicker3.dart @@ -30,7 +30,7 @@ class IFolderPicker3 extends IInspectable { User? get user { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IFolderPicker3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_storage/lib/src/pickers/ifolderpickerstatics.dart b/packages/windows_storage/lib/src/pickers/ifolderpickerstatics.dart index 6b9855f8..5eb45811 100644 --- a/packages/windows_storage/lib/src/pickers/ifolderpickerstatics.dart +++ b/packages/windows_storage/lib/src/pickers/ifolderpickerstatics.dart @@ -32,7 +32,7 @@ class IFolderPickerStatics extends IInspectable { FolderPicker? createForUser(User? user) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,11 +41,8 @@ class IFolderPickerStatics extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer user, - Pointer - result)>()(ptr.ref.lpVtbl, user.lpVtbl, result); + int Function(VTablePointer lpVtbl, VTablePointer user, + Pointer result)>()(lpVtbl, user.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_storage/lib/src/search/iqueryoptions.dart b/packages/windows_storage/lib/src/search/iqueryoptions.dart index 375fc162..6e5d6cfd 100644 --- a/packages/windows_storage/lib/src/search/iqueryoptions.dart +++ b/packages/windows_storage/lib/src/search/iqueryoptions.dart @@ -37,7 +37,7 @@ class IQueryOptions extends IInspectable { IVector? get fileTypeFilter { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -47,7 +47,7 @@ class IQueryOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -67,17 +67,17 @@ class IQueryOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -88,7 +88,7 @@ class IQueryOptions extends IInspectable { } set folderDepth(FolderDepth value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -96,7 +96,7 @@ class IQueryOptions extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -105,7 +105,7 @@ class IQueryOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -115,7 +115,7 @@ class IQueryOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -127,7 +127,7 @@ class IQueryOptions extends IInspectable { set applicationSearchFilter(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -136,7 +136,7 @@ class IQueryOptions extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -145,7 +145,7 @@ class IQueryOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -155,7 +155,7 @@ class IQueryOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -167,7 +167,7 @@ class IQueryOptions extends IInspectable { set userSearchFilter(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(12) .cast< Pointer< @@ -176,7 +176,7 @@ class IQueryOptions extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -185,7 +185,7 @@ class IQueryOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -195,7 +195,7 @@ class IQueryOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -207,7 +207,7 @@ class IQueryOptions extends IInspectable { set language(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(14) .cast< Pointer< @@ -216,7 +216,7 @@ class IQueryOptions extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -225,17 +225,17 @@ class IQueryOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(15) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(15) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -246,7 +246,7 @@ class IQueryOptions extends IInspectable { } set indexerOption(IndexerOption value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -254,7 +254,7 @@ class IQueryOptions extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -262,7 +262,7 @@ class IQueryOptions extends IInspectable { IVector? get sortOrder { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -272,7 +272,7 @@ class IQueryOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -292,7 +292,7 @@ class IQueryOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast< Pointer< @@ -302,7 +302,7 @@ class IQueryOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -316,17 +316,17 @@ class IQueryOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(19) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(19) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -340,7 +340,7 @@ class IQueryOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(20) .cast< Pointer< @@ -350,7 +350,7 @@ class IQueryOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -362,7 +362,7 @@ class IQueryOptions extends IInspectable { void loadFromString(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(21) .cast< Pointer< @@ -371,14 +371,14 @@ class IQueryOptions extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } void setThumbnailPrefetch( ThumbnailMode mode, int requestedSize, ThumbnailOptions options) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(22) .cast< Pointer< @@ -389,14 +389,14 @@ class IQueryOptions extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int mode, int requestedSize, int options)>()( - ptr.ref.lpVtbl, mode.value, requestedSize, options.value); + lpVtbl, mode.value, requestedSize, options.value); if (FAILED(hr)) throwWindowsException(hr); } void setPropertyPrefetch(PropertyPrefetchOptions options, IIterable? propertiesToRetrieve) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(23) .cast< Pointer< @@ -407,7 +407,7 @@ class IQueryOptions extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int options, VTablePointer propertiesToRetrieve)>()( - ptr.ref.lpVtbl, options.value, propertiesToRetrieve.lpVtbl); + lpVtbl, options.value, propertiesToRetrieve.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_storage/lib/src/search/iqueryoptionsfactory.dart b/packages/windows_storage/lib/src/search/iqueryoptionsfactory.dart index d1b64eb2..9f4bc037 100644 --- a/packages/windows_storage/lib/src/search/iqueryoptionsfactory.dart +++ b/packages/windows_storage/lib/src/search/iqueryoptionsfactory.dart @@ -34,7 +34,7 @@ class IQueryOptionsFactory extends IInspectable { CommonFileQuery query, IIterable? fileTypeFilter) { final queryOptions = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -51,7 +51,7 @@ class IQueryOptionsFactory extends IInspectable { int query, VTablePointer fileTypeFilter, Pointer queryOptions)>()( - ptr.ref.lpVtbl, query.value, fileTypeFilter.lpVtbl, queryOptions); + lpVtbl, query.value, fileTypeFilter.lpVtbl, queryOptions); if (FAILED(hr)) { free(queryOptions); @@ -64,7 +64,7 @@ class IQueryOptionsFactory extends IInspectable { QueryOptions createCommonFolderQuery(CommonFolderQuery query) { final queryOptions = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -75,7 +75,7 @@ class IQueryOptionsFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int query, Pointer queryOptions)>()( - ptr.ref.lpVtbl, query.value, queryOptions); + lpVtbl, query.value, queryOptions); if (FAILED(hr)) { free(queryOptions); diff --git a/packages/windows_storage/lib/src/search/iqueryoptionswithproviderfilter.dart b/packages/windows_storage/lib/src/search/iqueryoptionswithproviderfilter.dart index 1a9ca2a6..20ea5abb 100644 --- a/packages/windows_storage/lib/src/search/iqueryoptionswithproviderfilter.dart +++ b/packages/windows_storage/lib/src/search/iqueryoptionswithproviderfilter.dart @@ -31,7 +31,7 @@ class IQueryOptionsWithProviderFilter extends IInspectable { IVector? get storageProviderIdFilter { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IQueryOptionsWithProviderFilter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_storage/lib/src/search/istoragefilequeryresult.dart b/packages/windows_storage/lib/src/search/istoragefilequeryresult.dart index 5f289488..00042452 100644 --- a/packages/windows_storage/lib/src/search/istoragefilequeryresult.dart +++ b/packages/windows_storage/lib/src/search/istoragefilequeryresult.dart @@ -36,7 +36,7 @@ class IStorageFileQueryResult extends IInspectable int startIndex, int maxNumberOfItems) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -50,7 +50,7 @@ class IStorageFileQueryResult extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, int startIndex, int maxNumberOfItems, Pointer operation)>()( - ptr.ref.lpVtbl, startIndex, maxNumberOfItems, operation); + lpVtbl, startIndex, maxNumberOfItems, operation); if (FAILED(hr)) { free(operation); @@ -68,7 +68,7 @@ class IStorageFileQueryResult extends IInspectable Future> getFilesAsyncDefaultStartAndCount() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -78,7 +78,7 @@ class IStorageFileQueryResult extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/search/istoragefilequeryresult2.dart b/packages/windows_storage/lib/src/search/istoragefilequeryresult2.dart index f87d1703..910dbe3f 100644 --- a/packages/windows_storage/lib/src/search/istoragefilequeryresult2.dart +++ b/packages/windows_storage/lib/src/search/istoragefilequeryresult2.dart @@ -37,7 +37,7 @@ class IStorageFileQueryResult2 extends IInspectable StorageFile? file) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -46,11 +46,8 @@ class IStorageFileQueryResult2 extends IInspectable Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer file, - Pointer - result)>()(ptr.ref.lpVtbl, file.lpVtbl, result); + int Function(VTablePointer lpVtbl, VTablePointer file, + Pointer result)>()(lpVtbl, file.lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_storage/lib/src/search/istoragefolderqueryoperations.dart b/packages/windows_storage/lib/src/search/istoragefolderqueryoperations.dart index 7854a0ea..dcd255aa 100644 --- a/packages/windows_storage/lib/src/search/istoragefolderqueryoperations.dart +++ b/packages/windows_storage/lib/src/search/istoragefolderqueryoperations.dart @@ -42,7 +42,7 @@ class IStorageFolderQueryOperations extends IInspectable { Future getIndexedStateAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -52,7 +52,7 @@ class IStorageFolderQueryOperations extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -67,7 +67,7 @@ class IStorageFolderQueryOperations extends IInspectable { StorageFileQueryResult? createFileQueryOverloadDefault() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -77,7 +77,7 @@ class IStorageFolderQueryOperations extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -95,18 +95,17 @@ class IStorageFolderQueryOperations extends IInspectable { StorageFileQueryResult? createFileQuery(CommonFileQuery query) { final value = calloc(); - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 query, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int query, - Pointer value)>()( - ptr.ref.lpVtbl, query.value, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 query, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int query, + Pointer value)>()(lpVtbl, query.value, value); if (FAILED(hr)) { free(value); @@ -125,7 +124,7 @@ class IStorageFolderQueryOperations extends IInspectable { QueryOptions? queryOptions) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -138,7 +137,7 @@ class IStorageFolderQueryOperations extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer queryOptions, Pointer value)>()( - ptr.ref.lpVtbl, queryOptions.lpVtbl, value); + lpVtbl, queryOptions.lpVtbl, value); if (FAILED(hr)) { free(value); @@ -156,7 +155,7 @@ class IStorageFolderQueryOperations extends IInspectable { StorageFolderQueryResult? createFolderQueryOverloadDefault() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -166,7 +165,7 @@ class IStorageFolderQueryOperations extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -184,18 +183,17 @@ class IStorageFolderQueryOperations extends IInspectable { StorageFolderQueryResult? createFolderQuery(CommonFolderQuery query) { final value = calloc(); - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 query, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int query, - Pointer value)>()( - ptr.ref.lpVtbl, query.value, value); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 query, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int query, + Pointer value)>()(lpVtbl, query.value, value); if (FAILED(hr)) { free(value); @@ -214,7 +212,7 @@ class IStorageFolderQueryOperations extends IInspectable { QueryOptions? queryOptions) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -227,7 +225,7 @@ class IStorageFolderQueryOperations extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer queryOptions, Pointer value)>()( - ptr.ref.lpVtbl, queryOptions.lpVtbl, value); + lpVtbl, queryOptions.lpVtbl, value); if (FAILED(hr)) { free(value); @@ -245,7 +243,7 @@ class IStorageFolderQueryOperations extends IInspectable { StorageItemQueryResult? createItemQuery() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -255,7 +253,7 @@ class IStorageFolderQueryOperations extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -274,7 +272,7 @@ class IStorageFolderQueryOperations extends IInspectable { QueryOptions? queryOptions) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -287,7 +285,7 @@ class IStorageFolderQueryOperations extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer queryOptions, Pointer value)>()( - ptr.ref.lpVtbl, queryOptions.lpVtbl, value); + lpVtbl, queryOptions.lpVtbl, value); if (FAILED(hr)) { free(value); @@ -306,7 +304,7 @@ class IStorageFolderQueryOperations extends IInspectable { CommonFileQuery query, int startIndex, int maxItemsToRetrieve) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -321,7 +319,7 @@ class IStorageFolderQueryOperations extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int query, int startIndex, int maxItemsToRetrieve, Pointer operation)>()( - ptr.ref.lpVtbl, query.value, startIndex, maxItemsToRetrieve, operation); + lpVtbl, query.value, startIndex, maxItemsToRetrieve, operation); if (FAILED(hr)) { free(operation); @@ -340,7 +338,7 @@ class IStorageFolderQueryOperations extends IInspectable { CommonFileQuery query) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -351,7 +349,7 @@ class IStorageFolderQueryOperations extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int query, Pointer operation)>()( - ptr.ref.lpVtbl, query.value, operation); + lpVtbl, query.value, operation); if (FAILED(hr)) { free(operation); @@ -370,7 +368,7 @@ class IStorageFolderQueryOperations extends IInspectable { CommonFolderQuery query, int startIndex, int maxItemsToRetrieve) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -385,7 +383,7 @@ class IStorageFolderQueryOperations extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int query, int startIndex, int maxItemsToRetrieve, Pointer operation)>()( - ptr.ref.lpVtbl, query.value, startIndex, maxItemsToRetrieve, operation); + lpVtbl, query.value, startIndex, maxItemsToRetrieve, operation); if (FAILED(hr)) { free(operation); @@ -404,7 +402,7 @@ class IStorageFolderQueryOperations extends IInspectable { CommonFolderQuery query) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast< Pointer< @@ -415,7 +413,7 @@ class IStorageFolderQueryOperations extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int query, Pointer operation)>()( - ptr.ref.lpVtbl, query.value, operation); + lpVtbl, query.value, operation); if (FAILED(hr)) { free(operation); @@ -434,7 +432,7 @@ class IStorageFolderQueryOperations extends IInspectable { int startIndex, int maxItemsToRetrieve) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(19) .cast< Pointer< @@ -448,7 +446,7 @@ class IStorageFolderQueryOperations extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int startIndex, int maxItemsToRetrieve, Pointer operation)>()( - ptr.ref.lpVtbl, startIndex, maxItemsToRetrieve, operation); + lpVtbl, startIndex, maxItemsToRetrieve, operation); if (FAILED(hr)) { free(operation); @@ -467,21 +465,17 @@ class IStorageFolderQueryOperations extends IInspectable { final value = calloc(); try { - final hr = - ptr.ref.vtable - .elementAt(20) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - VTablePointer queryOptions, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - VTablePointer queryOptions, Pointer value)>()( - ptr.ref.lpVtbl, queryOptions.lpVtbl, value); + final hr = vtable + .elementAt(20) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer queryOptions, Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer queryOptions, + Pointer value)>()(lpVtbl, queryOptions.lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -495,7 +489,7 @@ class IStorageFolderQueryOperations extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(21) .cast< Pointer< @@ -505,7 +499,7 @@ class IStorageFolderQueryOperations extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int query, - Pointer value)>()(ptr.ref.lpVtbl, query.value, value); + Pointer value)>()(lpVtbl, query.value, value); if (FAILED(hr)) throwWindowsException(hr); @@ -519,7 +513,7 @@ class IStorageFolderQueryOperations extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(22) .cast< Pointer< @@ -529,7 +523,7 @@ class IStorageFolderQueryOperations extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int query, - Pointer value)>()(ptr.ref.lpVtbl, query.value, value); + Pointer value)>()(lpVtbl, query.value, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_storage/lib/src/search/istoragefolderqueryresult.dart b/packages/windows_storage/lib/src/search/istoragefolderqueryresult.dart index f13acb3d..b4602fd9 100644 --- a/packages/windows_storage/lib/src/search/istoragefolderqueryresult.dart +++ b/packages/windows_storage/lib/src/search/istoragefolderqueryresult.dart @@ -35,7 +35,7 @@ class IStorageFolderQueryResult extends IInspectable int startIndex, int maxNumberOfItems) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -49,7 +49,7 @@ class IStorageFolderQueryResult extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, int startIndex, int maxNumberOfItems, Pointer operation)>()( - ptr.ref.lpVtbl, startIndex, maxNumberOfItems, operation); + lpVtbl, startIndex, maxNumberOfItems, operation); if (FAILED(hr)) { free(operation); @@ -67,7 +67,7 @@ class IStorageFolderQueryResult extends IInspectable Future> getFoldersAsyncDefaultStartAndCount() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -77,7 +77,7 @@ class IStorageFolderQueryResult extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/search/istorageitemqueryresult.dart b/packages/windows_storage/lib/src/search/istorageitemqueryresult.dart index f8530b69..d5eef108 100644 --- a/packages/windows_storage/lib/src/search/istorageitemqueryresult.dart +++ b/packages/windows_storage/lib/src/search/istorageitemqueryresult.dart @@ -36,7 +36,7 @@ class IStorageItemQueryResult extends IInspectable int startIndex, int maxNumberOfItems) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -50,7 +50,7 @@ class IStorageItemQueryResult extends IInspectable .asFunction< int Function(VTablePointer lpVtbl, int startIndex, int maxNumberOfItems, Pointer operation)>()( - ptr.ref.lpVtbl, startIndex, maxNumberOfItems, operation); + lpVtbl, startIndex, maxNumberOfItems, operation); if (FAILED(hr)) { free(operation); @@ -68,7 +68,7 @@ class IStorageItemQueryResult extends IInspectable Future> getItemsAsyncDefaultStartAndCount() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -78,7 +78,7 @@ class IStorageItemQueryResult extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/search/istoragequeryresultbase.dart b/packages/windows_storage/lib/src/search/istoragequeryresultbase.dart index 6a1c6026..489f20e0 100644 --- a/packages/windows_storage/lib/src/search/istoragequeryresultbase.dart +++ b/packages/windows_storage/lib/src/search/istoragequeryresultbase.dart @@ -32,7 +32,7 @@ class IStorageQueryResultBase extends IInspectable { Future getItemCountAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IStorageQueryResultBase extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -57,7 +57,7 @@ class IStorageQueryResultBase extends IInspectable { StorageFolder? get folder { final container = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -67,7 +67,7 @@ class IStorageQueryResultBase extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer container)>()(ptr.ref.lpVtbl, container); + Pointer container)>()(lpVtbl, container); if (FAILED(hr)) { free(container); @@ -86,7 +86,7 @@ class IStorageQueryResultBase extends IInspectable { final eventCookie = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -99,7 +99,7 @@ class IStorageQueryResultBase extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer handler, Pointer eventCookie)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, eventCookie); + lpVtbl, handler.ref.lpVtbl, eventCookie); if (FAILED(hr)) throwWindowsException(hr); @@ -110,7 +110,7 @@ class IStorageQueryResultBase extends IInspectable { } void remove_ContentsChanged(int eventCookie) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -119,7 +119,7 @@ class IStorageQueryResultBase extends IInspectable { VTablePointer lpVtbl, IntPtr eventCookie)>>>() .value .asFunction()( - ptr.ref.lpVtbl, eventCookie); + lpVtbl, eventCookie); if (FAILED(hr)) throwWindowsException(hr); } @@ -128,7 +128,7 @@ class IStorageQueryResultBase extends IInspectable { final eventCookie = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -143,7 +143,7 @@ class IStorageQueryResultBase extends IInspectable { VTablePointer lpVtbl, VTablePointer changedHandler, Pointer eventCookie)>()( - ptr.ref.lpVtbl, changedHandler.ref.lpVtbl, eventCookie); + lpVtbl, changedHandler.ref.lpVtbl, eventCookie); if (FAILED(hr)) throwWindowsException(hr); @@ -154,7 +154,7 @@ class IStorageQueryResultBase extends IInspectable { } void remove_OptionsChanged(int eventCookie) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -163,7 +163,7 @@ class IStorageQueryResultBase extends IInspectable { VTablePointer lpVtbl, IntPtr eventCookie)>>>() .value .asFunction()( - ptr.ref.lpVtbl, eventCookie); + lpVtbl, eventCookie); if (FAILED(hr)) throwWindowsException(hr); } @@ -172,7 +172,7 @@ class IStorageQueryResultBase extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(12) .cast< Pointer< @@ -185,7 +185,7 @@ class IStorageQueryResultBase extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value, Pointer operation)>()( - ptr.ref.lpVtbl, value?.boxValue().lpVtbl ?? nullptr, operation); + lpVtbl, value?.boxValue().lpVtbl ?? nullptr, operation); if (FAILED(hr)) { free(operation); @@ -200,7 +200,7 @@ class IStorageQueryResultBase extends IInspectable { QueryOptions? getCurrentQueryOptions() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -210,7 +210,7 @@ class IStorageQueryResultBase extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -226,7 +226,7 @@ class IStorageQueryResultBase extends IInspectable { } void applyNewQueryOptions(QueryOptions? newQueryOptions) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -237,7 +237,7 @@ class IStorageQueryResultBase extends IInspectable { .asFunction< int Function( VTablePointer lpVtbl, VTablePointer newQueryOptions)>()( - ptr.ref.lpVtbl, newQueryOptions.lpVtbl); + lpVtbl, newQueryOptions.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_storage/lib/src/streams/ibuffer.dart b/packages/windows_storage/lib/src/streams/ibuffer.dart index 65d29513..adea465c 100644 --- a/packages/windows_storage/lib/src/streams/ibuffer.dart +++ b/packages/windows_storage/lib/src/streams/ibuffer.dart @@ -30,7 +30,7 @@ class IBuffer extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IBuffer extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IBuffer extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IBuffer extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -76,7 +76,7 @@ class IBuffer extends IInspectable { set length(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -85,7 +85,7 @@ class IBuffer extends IInspectable { VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_storage/lib/src/streams/ibufferfactory.dart b/packages/windows_storage/lib/src/streams/ibufferfactory.dart index 018b0c17..8db0d953 100644 --- a/packages/windows_storage/lib/src/streams/ibufferfactory.dart +++ b/packages/windows_storage/lib/src/streams/ibufferfactory.dart @@ -31,7 +31,7 @@ class IBufferFactory extends IInspectable { Buffer create(int capacity) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IBufferFactory extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int capacity, - Pointer value)>()(ptr.ref.lpVtbl, capacity, value); + Pointer value)>()(lpVtbl, capacity, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_storage/lib/src/streams/ibufferstatics.dart b/packages/windows_storage/lib/src/streams/ibufferstatics.dart index 4923957c..bbd29883 100644 --- a/packages/windows_storage/lib/src/streams/ibufferstatics.dart +++ b/packages/windows_storage/lib/src/streams/ibufferstatics.dart @@ -32,7 +32,7 @@ class IBufferStatics extends IInspectable { Buffer? createCopyFromMemoryBuffer(IMemoryBuffer? input) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,11 +41,8 @@ class IBufferStatics extends IInspectable { Pointer value)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer input, - Pointer - value)>()(ptr.ref.lpVtbl, input.lpVtbl, value); + int Function(VTablePointer lpVtbl, VTablePointer input, + Pointer value)>()(lpVtbl, input.lpVtbl, value); if (FAILED(hr)) { free(value); @@ -63,7 +60,7 @@ class IBufferStatics extends IInspectable { MemoryBuffer? createMemoryBufferOverIBuffer(IBuffer? input) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -72,11 +69,8 @@ class IBufferStatics extends IInspectable { Pointer value)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer input, - Pointer - value)>()(ptr.ref.lpVtbl, input.lpVtbl, value); + int Function(VTablePointer lpVtbl, VTablePointer input, + Pointer value)>()(lpVtbl, input.lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_storage/lib/src/streams/icontenttypeprovider.dart b/packages/windows_storage/lib/src/streams/icontenttypeprovider.dart index 93169a38..6ed3b3a4 100644 --- a/packages/windows_storage/lib/src/streams/icontenttypeprovider.dart +++ b/packages/windows_storage/lib/src/streams/icontenttypeprovider.dart @@ -30,7 +30,7 @@ class IContentTypeProvider extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IContentTypeProvider extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_storage/lib/src/streams/idatareader.dart b/packages/windows_storage/lib/src/streams/idatareader.dart index ba620a20..134a15a4 100644 --- a/packages/windows_storage/lib/src/streams/idatareader.dart +++ b/packages/windows_storage/lib/src/streams/idatareader.dart @@ -37,7 +37,7 @@ class IDataReader extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -47,7 +47,7 @@ class IDataReader extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -61,17 +61,17 @@ class IDataReader extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -82,7 +82,7 @@ class IDataReader extends IInspectable { } set unicodeEncoding(UnicodeEncoding value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -90,7 +90,7 @@ class IDataReader extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -99,17 +99,17 @@ class IDataReader extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -120,7 +120,7 @@ class IDataReader extends IInspectable { } set byteOrder(ByteOrder value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -128,7 +128,7 @@ class IDataReader extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -137,7 +137,7 @@ class IDataReader extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -147,7 +147,7 @@ class IDataReader extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -159,7 +159,7 @@ class IDataReader extends IInspectable { set inputStreamOptions(InputStreamOptions value) { final hr = - ptr.ref.vtable + vtable .elementAt(12) .cast< Pointer< @@ -168,7 +168,7 @@ class IDataReader extends IInspectable { VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -177,17 +177,17 @@ class IDataReader extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(13) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(13) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -201,7 +201,7 @@ class IDataReader extends IInspectable { final value = calloc(valueSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -211,7 +211,7 @@ class IDataReader extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int valueSize, - Pointer value)>()(ptr.ref.lpVtbl, valueSize, value); + Pointer value)>()(lpVtbl, valueSize, value); if (FAILED(hr)) throwWindowsException(hr); @@ -224,7 +224,7 @@ class IDataReader extends IInspectable { IBuffer? readBuffer(int length) { final buffer = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -234,7 +234,7 @@ class IDataReader extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int length, - Pointer buffer)>()(ptr.ref.lpVtbl, length, buffer); + Pointer buffer)>()(lpVtbl, length, buffer); if (FAILED(hr)) { free(buffer); @@ -253,17 +253,17 @@ class IDataReader extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(16) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(16) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -277,17 +277,17 @@ class IDataReader extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -301,17 +301,17 @@ class IDataReader extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(18) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(18) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -325,17 +325,17 @@ class IDataReader extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(19) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(19) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -349,17 +349,17 @@ class IDataReader extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(20) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(20) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -373,7 +373,7 @@ class IDataReader extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(21) .cast< Pointer< @@ -383,7 +383,7 @@ class IDataReader extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -397,7 +397,7 @@ class IDataReader extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(22) .cast< Pointer< @@ -407,7 +407,7 @@ class IDataReader extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -421,7 +421,7 @@ class IDataReader extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(23) .cast< Pointer< @@ -431,7 +431,7 @@ class IDataReader extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -445,17 +445,17 @@ class IDataReader extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(24) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(24) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -469,7 +469,7 @@ class IDataReader extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(25) .cast< Pointer< @@ -479,7 +479,7 @@ class IDataReader extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -493,18 +493,17 @@ class IDataReader extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(26) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Uint32 codeUnitCount, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int codeUnitCount, - Pointer value)>()( - ptr.ref.lpVtbl, codeUnitCount, value); + final hr = vtable + .elementAt(26) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Uint32 codeUnitCount, Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int codeUnitCount, + Pointer value)>()(lpVtbl, codeUnitCount, value); if (FAILED(hr)) throwWindowsException(hr); @@ -518,17 +517,17 @@ class IDataReader extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(27) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(27) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -542,17 +541,17 @@ class IDataReader extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(28) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(28) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -565,18 +564,17 @@ class IDataReader extends IInspectable { Future loadAsync(int count) { final operation = calloc(); - final hr = ptr.ref.vtable - .elementAt(29) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 count, - Pointer operation)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int count, - Pointer operation)>()( - ptr.ref.lpVtbl, count, operation); + final hr = vtable + .elementAt(29) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 count, + Pointer operation)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int count, + Pointer operation)>()(lpVtbl, count, operation); if (FAILED(hr)) { free(operation); @@ -591,7 +589,7 @@ class IDataReader extends IInspectable { IBuffer? detachBuffer() { final buffer = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(30) .cast< Pointer< @@ -601,7 +599,7 @@ class IDataReader extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer buffer)>()(ptr.ref.lpVtbl, buffer); + Pointer buffer)>()(lpVtbl, buffer); if (FAILED(hr)) { free(buffer); @@ -619,7 +617,7 @@ class IDataReader extends IInspectable { IInputStream? detachStream() { final stream = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(31) .cast< Pointer< @@ -629,7 +627,7 @@ class IDataReader extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer stream)>()(ptr.ref.lpVtbl, stream); + Pointer stream)>()(lpVtbl, stream); if (FAILED(hr)) { free(stream); diff --git a/packages/windows_storage/lib/src/streams/idatareaderfactory.dart b/packages/windows_storage/lib/src/streams/idatareaderfactory.dart index c33c0c31..194f123c 100644 --- a/packages/windows_storage/lib/src/streams/idatareaderfactory.dart +++ b/packages/windows_storage/lib/src/streams/idatareaderfactory.dart @@ -32,7 +32,7 @@ class IDataReaderFactory extends IInspectable { DataReader createDataReader(IInputStream? inputStream) { final dataReader = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IDataReaderFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer inputStream, Pointer dataReader)>()( - ptr.ref.lpVtbl, inputStream.lpVtbl, dataReader); + lpVtbl, inputStream.lpVtbl, dataReader); if (FAILED(hr)) { free(dataReader); diff --git a/packages/windows_storage/lib/src/streams/idatareaderstatics.dart b/packages/windows_storage/lib/src/streams/idatareaderstatics.dart index 615b367c..d0b38e7f 100644 --- a/packages/windows_storage/lib/src/streams/idatareaderstatics.dart +++ b/packages/windows_storage/lib/src/streams/idatareaderstatics.dart @@ -33,7 +33,7 @@ class IDataReaderStatics extends IInspectable { final dataReader = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -46,7 +46,7 @@ class IDataReaderStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer buffer, Pointer dataReader)>()( - ptr.ref.lpVtbl, buffer.lpVtbl, dataReader); + lpVtbl, buffer.lpVtbl, dataReader); if (FAILED(hr)) { free(dataReader); diff --git a/packages/windows_storage/lib/src/streams/idatawriter.dart b/packages/windows_storage/lib/src/streams/idatawriter.dart index 32494c3a..dc234be2 100644 --- a/packages/windows_storage/lib/src/streams/idatawriter.dart +++ b/packages/windows_storage/lib/src/streams/idatawriter.dart @@ -36,7 +36,7 @@ class IDataWriter extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -46,7 +46,7 @@ class IDataWriter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -60,17 +60,17 @@ class IDataWriter extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -81,7 +81,7 @@ class IDataWriter extends IInspectable { } set unicodeEncoding(UnicodeEncoding value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -89,7 +89,7 @@ class IDataWriter extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -98,17 +98,17 @@ class IDataWriter extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -119,7 +119,7 @@ class IDataWriter extends IInspectable { } set byteOrder(ByteOrder value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -127,13 +127,13 @@ class IDataWriter extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } void writeByte(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -141,7 +141,7 @@ class IDataWriter extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Uint8 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -149,18 +149,17 @@ class IDataWriter extends IInspectable { void writeBytes(List value) { final valueArray = value.toArray(); - final hr = ptr.ref.vtable - .elementAt(12) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 valueSize, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int valueSize, - Pointer value)>()( - ptr.ref.lpVtbl, value.length, valueArray); + final hr = vtable + .elementAt(12) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 valueSize, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int valueSize, + Pointer value)>()(lpVtbl, value.length, valueArray); free(valueArray); @@ -168,7 +167,7 @@ class IDataWriter extends IInspectable { } void writeBuffer(IBuffer? buffer) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -178,13 +177,13 @@ class IDataWriter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer buffer)>()( - ptr.ref.lpVtbl, buffer.lpVtbl); + lpVtbl, buffer.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } void writeBufferRange(IBuffer? buffer, int start, int count) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -194,13 +193,13 @@ class IDataWriter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer buffer, int start, - int count)>()(ptr.ref.lpVtbl, buffer.lpVtbl, start, count); + int count)>()(lpVtbl, buffer.lpVtbl, start, count); if (FAILED(hr)) throwWindowsException(hr); } void writeBoolean(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -208,7 +207,7 @@ class IDataWriter extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -216,7 +215,7 @@ class IDataWriter extends IInspectable { void writeGuid(Guid value) { final valueNativeStructPtr = value.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -224,7 +223,7 @@ class IDataWriter extends IInspectable { HRESULT Function(VTablePointer lpVtbl, GUID value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -232,7 +231,7 @@ class IDataWriter extends IInspectable { } void writeInt16(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -240,13 +239,13 @@ class IDataWriter extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int16 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } void writeInt32(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast< Pointer< @@ -254,13 +253,13 @@ class IDataWriter extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } void writeInt64(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(19) .cast< Pointer< @@ -268,14 +267,14 @@ class IDataWriter extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int64 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } void writeUInt16(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(20) .cast< Pointer< @@ -284,14 +283,14 @@ class IDataWriter extends IInspectable { VTablePointer lpVtbl, Uint16 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } void writeUInt32(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(21) .cast< Pointer< @@ -300,14 +299,14 @@ class IDataWriter extends IInspectable { VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } void writeUInt64(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(22) .cast< Pointer< @@ -316,13 +315,13 @@ class IDataWriter extends IInspectable { VTablePointer lpVtbl, Uint64 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } void writeSingle(double value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(23) .cast< Pointer< @@ -330,14 +329,14 @@ class IDataWriter extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Float value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } void writeDouble(double value) { final hr = - ptr.ref.vtable + vtable .elementAt(24) .cast< Pointer< @@ -346,13 +345,13 @@ class IDataWriter extends IInspectable { VTablePointer lpVtbl, Double value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } void writeDateTime(DateTime value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(25) .cast< Pointer< @@ -360,13 +359,13 @@ class IDataWriter extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int64 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toWinRTDateTime()); + lpVtbl, value.toWinRTDateTime()); if (FAILED(hr)) throwWindowsException(hr); } void writeTimeSpan(Duration value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(26) .cast< Pointer< @@ -374,7 +373,7 @@ class IDataWriter extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int64 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toWinRTDuration()); + lpVtbl, value.toWinRTDuration()); if (FAILED(hr)) throwWindowsException(hr); } @@ -383,7 +382,7 @@ class IDataWriter extends IInspectable { final codeUnitCount = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(27) .cast< Pointer< @@ -394,7 +393,7 @@ class IDataWriter extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer codeUnitCount)>()( - ptr.ref.lpVtbl, value.toHString(), codeUnitCount); + lpVtbl, value.toHString(), codeUnitCount); if (FAILED(hr)) throwWindowsException(hr); @@ -408,7 +407,7 @@ class IDataWriter extends IInspectable { final codeUnitCount = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(28) .cast< Pointer< @@ -419,7 +418,7 @@ class IDataWriter extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer codeUnitCount)>()( - ptr.ref.lpVtbl, value.toHString(), codeUnitCount); + lpVtbl, value.toHString(), codeUnitCount); if (FAILED(hr)) throwWindowsException(hr); @@ -432,7 +431,7 @@ class IDataWriter extends IInspectable { Future storeAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(29) .cast< Pointer< @@ -442,7 +441,7 @@ class IDataWriter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -457,7 +456,7 @@ class IDataWriter extends IInspectable { Future flushAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(30) .cast< Pointer< @@ -467,7 +466,7 @@ class IDataWriter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -481,7 +480,7 @@ class IDataWriter extends IInspectable { IBuffer? detachBuffer() { final buffer = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(31) .cast< Pointer< @@ -491,7 +490,7 @@ class IDataWriter extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer buffer)>()(ptr.ref.lpVtbl, buffer); + Pointer buffer)>()(lpVtbl, buffer); if (FAILED(hr)) { free(buffer); @@ -509,18 +508,17 @@ class IDataWriter extends IInspectable { IOutputStream? detachStream() { final outputStream = calloc(); - final hr = ptr.ref.vtable - .elementAt(32) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer outputStream)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, Pointer outputStream)>()( - ptr.ref.lpVtbl, outputStream); + final hr = vtable + .elementAt(32) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer outputStream)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer outputStream)>()(lpVtbl, outputStream); if (FAILED(hr)) { free(outputStream); diff --git a/packages/windows_storage/lib/src/streams/idatawriterfactory.dart b/packages/windows_storage/lib/src/streams/idatawriterfactory.dart index 320f7f74..9991e97c 100644 --- a/packages/windows_storage/lib/src/streams/idatawriterfactory.dart +++ b/packages/windows_storage/lib/src/streams/idatawriterfactory.dart @@ -32,7 +32,7 @@ class IDataWriterFactory extends IInspectable { DataWriter createDataWriter(IOutputStream? outputStream) { final dataWriter = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IDataWriterFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer outputStream, Pointer dataWriter)>()( - ptr.ref.lpVtbl, outputStream.lpVtbl, dataWriter); + lpVtbl, outputStream.lpVtbl, dataWriter); if (FAILED(hr)) { free(dataWriter); diff --git a/packages/windows_storage/lib/src/streams/ifilerandomaccessstreamstatics.dart b/packages/windows_storage/lib/src/streams/ifilerandomaccessstreamstatics.dart index 6c4c3f1d..f3c10cec 100644 --- a/packages/windows_storage/lib/src/streams/ifilerandomaccessstreamstatics.dart +++ b/packages/windows_storage/lib/src/streams/ifilerandomaccessstreamstatics.dart @@ -39,7 +39,7 @@ class IFileRandomAccessStreamStatics extends IInspectable { String filePath, FileAccessMode accessMode) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -50,7 +50,7 @@ class IFileRandomAccessStreamStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int filePath, int accessMode, Pointer operation)>()( - ptr.ref.lpVtbl, filePath.toHString(), accessMode.value, operation); + lpVtbl, filePath.toHString(), accessMode.value, operation); if (FAILED(hr)) { free(operation); @@ -70,7 +70,7 @@ class IFileRandomAccessStreamStatics extends IInspectable { FileOpenDisposition openDisposition) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -91,7 +91,7 @@ class IFileRandomAccessStreamStatics extends IInspectable { int sharingOptions, int openDisposition, Pointer operation)>()( - ptr.ref.lpVtbl, + lpVtbl, filePath.toHString(), accessMode.value, sharingOptions.value, @@ -112,7 +112,7 @@ class IFileRandomAccessStreamStatics extends IInspectable { Future openTransactedWriteAsync(String filePath) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -123,7 +123,7 @@ class IFileRandomAccessStreamStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int filePath, Pointer operation)>()( - ptr.ref.lpVtbl, filePath.toHString(), operation); + lpVtbl, filePath.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -142,7 +142,7 @@ class IFileRandomAccessStreamStatics extends IInspectable { FileOpenDisposition openDisposition) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -161,7 +161,7 @@ class IFileRandomAccessStreamStatics extends IInspectable { int openOptions, int openDisposition, Pointer operation)>()( - ptr.ref.lpVtbl, + lpVtbl, filePath.toHString(), openOptions.value, openDisposition.value, @@ -182,7 +182,7 @@ class IFileRandomAccessStreamStatics extends IInspectable { User? user, String filePath, FileAccessMode accessMode) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -200,8 +200,8 @@ class IFileRandomAccessStreamStatics extends IInspectable { VTablePointer user, int filePath, int accessMode, - Pointer operation)>()(ptr.ref.lpVtbl, - user.lpVtbl, filePath.toHString(), accessMode.value, operation); + Pointer operation)>()( + lpVtbl, user.lpVtbl, filePath.toHString(), accessMode.value, operation); if (FAILED(hr)) { free(operation); @@ -222,7 +222,7 @@ class IFileRandomAccessStreamStatics extends IInspectable { FileOpenDisposition openDisposition) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -245,7 +245,7 @@ class IFileRandomAccessStreamStatics extends IInspectable { int sharingOptions, int openDisposition, Pointer operation)>()( - ptr.ref.lpVtbl, + lpVtbl, user.lpVtbl, filePath.toHString(), accessMode.value, @@ -269,7 +269,7 @@ class IFileRandomAccessStreamStatics extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(12) .cast< Pointer< @@ -283,7 +283,7 @@ class IFileRandomAccessStreamStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer user, int filePath, Pointer operation)>()( - ptr.ref.lpVtbl, user.lpVtbl, filePath.toHString(), operation); + lpVtbl, user.lpVtbl, filePath.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -303,7 +303,7 @@ class IFileRandomAccessStreamStatics extends IInspectable { FileOpenDisposition openDisposition) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -324,7 +324,7 @@ class IFileRandomAccessStreamStatics extends IInspectable { int openOptions, int openDisposition, Pointer operation)>()( - ptr.ref.lpVtbl, + lpVtbl, user.lpVtbl, filePath.toHString(), openOptions.value, diff --git a/packages/windows_storage/lib/src/streams/iinputstream.dart b/packages/windows_storage/lib/src/streams/iinputstream.dart index d47a769a..1309fb31 100644 --- a/packages/windows_storage/lib/src/streams/iinputstream.dart +++ b/packages/windows_storage/lib/src/streams/iinputstream.dart @@ -33,7 +33,7 @@ class IInputStream extends IInspectable implements IClosable { IBuffer? buffer, int count, InputStreamOptions options) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -48,7 +48,7 @@ class IInputStream extends IInspectable implements IClosable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer buffer, int count, int options, Pointer operation)>()( - ptr.ref.lpVtbl, buffer.lpVtbl, count, options.value, operation); + lpVtbl, buffer.lpVtbl, count, options.value, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/streams/iinputstreamreference.dart b/packages/windows_storage/lib/src/streams/iinputstreamreference.dart index d2673ef7..24686efa 100644 --- a/packages/windows_storage/lib/src/streams/iinputstreamreference.dart +++ b/packages/windows_storage/lib/src/streams/iinputstreamreference.dart @@ -31,7 +31,7 @@ class IInputStreamReference extends IInspectable { Future openSequentialReadAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IInputStreamReference extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/streams/ioutputstream.dart b/packages/windows_storage/lib/src/streams/ioutputstream.dart index 37103618..3584485e 100644 --- a/packages/windows_storage/lib/src/streams/ioutputstream.dart +++ b/packages/windows_storage/lib/src/streams/ioutputstream.dart @@ -32,7 +32,7 @@ class IOutputStream extends IInspectable implements IClosable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IOutputStream extends IInspectable implements IClosable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer buffer, Pointer operation)>()( - ptr.ref.lpVtbl, buffer.lpVtbl, operation); + lpVtbl, buffer.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -58,7 +58,7 @@ class IOutputStream extends IInspectable implements IClosable { Future flushAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,7 +68,7 @@ class IOutputStream extends IInspectable implements IClosable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/streams/ipropertysetserializer.dart b/packages/windows_storage/lib/src/streams/ipropertysetserializer.dart index f63922e8..f7614a19 100644 --- a/packages/windows_storage/lib/src/streams/ipropertysetserializer.dart +++ b/packages/windows_storage/lib/src/streams/ipropertysetserializer.dart @@ -32,7 +32,7 @@ class IPropertySetSerializer extends IInspectable { IBuffer? serialize(IPropertySet? propertySet) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IPropertySetSerializer extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer propertySet, Pointer result)>()( - ptr.ref.lpVtbl, propertySet.lpVtbl, result); + lpVtbl, propertySet.lpVtbl, result); if (FAILED(hr)) { free(result); @@ -62,7 +62,7 @@ class IPropertySetSerializer extends IInspectable { void deserialize(IPropertySet? propertySet, IBuffer? buffer) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -75,7 +75,7 @@ class IPropertySetSerializer extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer propertySet, VTablePointer buffer)>()( - ptr.ref.lpVtbl, propertySet.lpVtbl, buffer.lpVtbl); + lpVtbl, propertySet.lpVtbl, buffer.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_storage/lib/src/streams/irandomaccessstream.dart b/packages/windows_storage/lib/src/streams/irandomaccessstream.dart index 26f6eb5d..a00c1ea0 100644 --- a/packages/windows_storage/lib/src/streams/irandomaccessstream.dart +++ b/packages/windows_storage/lib/src/streams/irandomaccessstream.dart @@ -37,7 +37,7 @@ class IRandomAccessStream extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -47,7 +47,7 @@ class IRandomAccessStream extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -59,7 +59,7 @@ class IRandomAccessStream extends IInspectable set size(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -68,7 +68,7 @@ class IRandomAccessStream extends IInspectable VTablePointer lpVtbl, Uint64 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -76,7 +76,7 @@ class IRandomAccessStream extends IInspectable IInputStream? getInputStreamAt(int position) { final stream = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -86,7 +86,7 @@ class IRandomAccessStream extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, int position, - Pointer stream)>()(ptr.ref.lpVtbl, position, stream); + Pointer stream)>()(lpVtbl, position, stream); if (FAILED(hr)) { free(stream); @@ -104,7 +104,7 @@ class IRandomAccessStream extends IInspectable IOutputStream? getOutputStreamAt(int position) { final stream = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -114,7 +114,7 @@ class IRandomAccessStream extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, int position, - Pointer stream)>()(ptr.ref.lpVtbl, position, stream); + Pointer stream)>()(lpVtbl, position, stream); if (FAILED(hr)) { free(stream); @@ -133,7 +133,7 @@ class IRandomAccessStream extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -143,7 +143,7 @@ class IRandomAccessStream extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -155,7 +155,7 @@ class IRandomAccessStream extends IInspectable void seek(int position) { final hr = - ptr.ref.vtable + vtable .elementAt(11) .cast< Pointer< @@ -164,7 +164,7 @@ class IRandomAccessStream extends IInspectable VTablePointer lpVtbl, Uint64 position)>>>() .value .asFunction()( - ptr.ref.lpVtbl, position); + lpVtbl, position); if (FAILED(hr)) throwWindowsException(hr); } @@ -172,7 +172,7 @@ class IRandomAccessStream extends IInspectable IRandomAccessStream? cloneStream() { final stream = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -182,7 +182,7 @@ class IRandomAccessStream extends IInspectable .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer stream)>()(ptr.ref.lpVtbl, stream); + Pointer stream)>()(lpVtbl, stream); if (FAILED(hr)) { free(stream); @@ -201,17 +201,17 @@ class IRandomAccessStream extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(13) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(13) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -225,17 +225,17 @@ class IRandomAccessStream extends IInspectable final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(14) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(14) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_storage/lib/src/streams/irandomaccessstreamreference.dart b/packages/windows_storage/lib/src/streams/irandomaccessstreamreference.dart index e4dd5b8d..ce18310e 100644 --- a/packages/windows_storage/lib/src/streams/irandomaccessstreamreference.dart +++ b/packages/windows_storage/lib/src/streams/irandomaccessstreamreference.dart @@ -33,7 +33,7 @@ class IRandomAccessStreamReference extends IInspectable { Future openReadAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IRandomAccessStreamReference extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_storage/lib/src/streams/irandomaccessstreamreferencestatics.dart b/packages/windows_storage/lib/src/streams/irandomaccessstreamreferencestatics.dart index af0c15d6..49767dc7 100644 --- a/packages/windows_storage/lib/src/streams/irandomaccessstreamreferencestatics.dart +++ b/packages/windows_storage/lib/src/streams/irandomaccessstreamreferencestatics.dart @@ -36,7 +36,7 @@ class IRandomAccessStreamReferenceStatics extends IInspectable { final streamReference = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -49,7 +49,7 @@ class IRandomAccessStreamReferenceStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer file, Pointer streamReference)>()( - ptr.ref.lpVtbl, file.lpVtbl, streamReference); + lpVtbl, file.lpVtbl, streamReference); if (FAILED(hr)) { free(streamReference); @@ -68,7 +68,7 @@ class IRandomAccessStreamReferenceStatics extends IInspectable { final streamReference = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -80,8 +80,8 @@ class IRandomAccessStreamReferenceStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer uri, - Pointer streamReference)>()(ptr.ref.lpVtbl, - uri?.toWinRTUri().lpVtbl ?? nullptr, streamReference); + Pointer streamReference)>()( + lpVtbl, uri?.toWinRTUri().lpVtbl ?? nullptr, streamReference); if (FAILED(hr)) { free(streamReference); @@ -100,7 +100,7 @@ class IRandomAccessStreamReferenceStatics extends IInspectable { final streamReference = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -113,7 +113,7 @@ class IRandomAccessStreamReferenceStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer stream, Pointer streamReference)>()( - ptr.ref.lpVtbl, stream.lpVtbl, streamReference); + lpVtbl, stream.lpVtbl, streamReference); if (FAILED(hr)) { free(streamReference); diff --git a/packages/windows_storage/lib/src/streams/irandomaccessstreamstatics.dart b/packages/windows_storage/lib/src/streams/irandomaccessstreamstatics.dart index 2a692237..fc57e5fc 100644 --- a/packages/windows_storage/lib/src/streams/irandomaccessstreamstatics.dart +++ b/packages/windows_storage/lib/src/streams/irandomaccessstreamstatics.dart @@ -33,7 +33,7 @@ class IRandomAccessStreamStatics extends IInspectable { IInputStream? source, IOutputStream? destination) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -47,7 +47,7 @@ class IRandomAccessStreamStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer source, VTablePointer destination, Pointer operation)>()( - ptr.ref.lpVtbl, source.lpVtbl, destination.lpVtbl, operation); + lpVtbl, source.lpVtbl, destination.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -61,7 +61,7 @@ class IRandomAccessStreamStatics extends IInspectable { IInputStream? source, IOutputStream? destination, int bytesToCopy) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -79,8 +79,8 @@ class IRandomAccessStreamStatics extends IInspectable { VTablePointer source, VTablePointer destination, int bytesToCopy, - Pointer operation)>()(ptr.ref.lpVtbl, - source.lpVtbl, destination.lpVtbl, bytesToCopy, operation); + Pointer operation)>()( + lpVtbl, source.lpVtbl, destination.lpVtbl, bytesToCopy, operation); if (FAILED(hr)) { free(operation); @@ -94,7 +94,7 @@ class IRandomAccessStreamStatics extends IInspectable { IInputStream? source, IOutputStream? destination) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -108,7 +108,7 @@ class IRandomAccessStreamStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer source, VTablePointer destination, Pointer operation)>()( - ptr.ref.lpVtbl, source.lpVtbl, destination.lpVtbl, operation); + lpVtbl, source.lpVtbl, destination.lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_system/lib/src/ifolderlauncheroptions.dart b/packages/windows_system/lib/src/ifolderlauncheroptions.dart index 599b0186..6678d0b1 100644 --- a/packages/windows_system/lib/src/ifolderlauncheroptions.dart +++ b/packages/windows_system/lib/src/ifolderlauncheroptions.dart @@ -30,7 +30,7 @@ class IFolderLauncherOptions extends IInspectable { IVector? get itemsToSelect { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IFolderLauncherOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_system/lib/src/iknownuserpropertiesstatics.dart b/packages/windows_system/lib/src/iknownuserpropertiesstatics.dart index 8add620e..0b1b445f 100644 --- a/packages/windows_system/lib/src/iknownuserpropertiesstatics.dart +++ b/packages/windows_system/lib/src/iknownuserpropertiesstatics.dart @@ -32,7 +32,7 @@ class IKnownUserPropertiesStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IKnownUserPropertiesStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,7 +56,7 @@ class IKnownUserPropertiesStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class IKnownUserPropertiesStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -80,7 +80,7 @@ class IKnownUserPropertiesStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -90,7 +90,7 @@ class IKnownUserPropertiesStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -104,7 +104,7 @@ class IKnownUserPropertiesStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -114,7 +114,7 @@ class IKnownUserPropertiesStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -128,7 +128,7 @@ class IKnownUserPropertiesStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -138,7 +138,7 @@ class IKnownUserPropertiesStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -152,7 +152,7 @@ class IKnownUserPropertiesStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -162,7 +162,7 @@ class IKnownUserPropertiesStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -176,7 +176,7 @@ class IKnownUserPropertiesStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -186,7 +186,7 @@ class IKnownUserPropertiesStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -200,7 +200,7 @@ class IKnownUserPropertiesStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -210,7 +210,7 @@ class IKnownUserPropertiesStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -224,7 +224,7 @@ class IKnownUserPropertiesStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -234,7 +234,7 @@ class IKnownUserPropertiesStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_system/lib/src/iknownuserpropertiesstatics2.dart b/packages/windows_system/lib/src/iknownuserpropertiesstatics2.dart index e3c96c6c..05f9dbb8 100644 --- a/packages/windows_system/lib/src/iknownuserpropertiesstatics2.dart +++ b/packages/windows_system/lib/src/iknownuserpropertiesstatics2.dart @@ -32,7 +32,7 @@ class IKnownUserPropertiesStatics2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IKnownUserPropertiesStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_system/lib/src/ilauncheroptions.dart b/packages/windows_system/lib/src/ilauncheroptions.dart index 1276e6f7..c5b3ea0f 100644 --- a/packages/windows_system/lib/src/ilauncheroptions.dart +++ b/packages/windows_system/lib/src/ilauncheroptions.dart @@ -32,17 +32,17 @@ class ILauncherOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -53,7 +53,7 @@ class ILauncherOptions extends IInspectable { } set treatAsUntrusted(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -61,7 +61,7 @@ class ILauncherOptions extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -70,17 +70,17 @@ class ILauncherOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -91,7 +91,7 @@ class ILauncherOptions extends IInspectable { } set displayApplicationPicker(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -99,7 +99,7 @@ class ILauncherOptions extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -107,7 +107,7 @@ class ILauncherOptions extends IInspectable { LauncherUIOptions? get ui { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -117,7 +117,7 @@ class ILauncherOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -136,7 +136,7 @@ class ILauncherOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -146,7 +146,7 @@ class ILauncherOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -158,7 +158,7 @@ class ILauncherOptions extends IInspectable { set preferredApplicationPackageFamilyName(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(12) .cast< Pointer< @@ -167,7 +167,7 @@ class ILauncherOptions extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -176,7 +176,7 @@ class ILauncherOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -186,7 +186,7 @@ class ILauncherOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -198,7 +198,7 @@ class ILauncherOptions extends IInspectable { set preferredApplicationDisplayName(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(14) .cast< Pointer< @@ -207,7 +207,7 @@ class ILauncherOptions extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -215,7 +215,7 @@ class ILauncherOptions extends IInspectable { Uri? get fallbackUri { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -225,7 +225,7 @@ class ILauncherOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -241,7 +241,7 @@ class ILauncherOptions extends IInspectable { } set fallbackUri(Uri? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -251,7 +251,7 @@ class ILauncherOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toWinRTUri().lpVtbl ?? nullptr); + lpVtbl, value?.toWinRTUri().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @@ -260,7 +260,7 @@ class ILauncherOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -270,7 +270,7 @@ class ILauncherOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -282,7 +282,7 @@ class ILauncherOptions extends IInspectable { set contentType(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(18) .cast< Pointer< @@ -291,7 +291,7 @@ class ILauncherOptions extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_system/lib/src/ilauncheroptions2.dart b/packages/windows_system/lib/src/ilauncheroptions2.dart index 1f7056c0..553b65f1 100644 --- a/packages/windows_system/lib/src/ilauncheroptions2.dart +++ b/packages/windows_system/lib/src/ilauncheroptions2.dart @@ -31,7 +31,7 @@ class ILauncherOptions2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class ILauncherOptions2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -53,7 +53,7 @@ class ILauncherOptions2 extends IInspectable { set targetApplicationPackageFamilyName(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -62,7 +62,7 @@ class ILauncherOptions2 extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -70,7 +70,7 @@ class ILauncherOptions2 extends IInspectable { StorageFileQueryResult? get neighboringFilesQuery { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -80,7 +80,7 @@ class ILauncherOptions2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -96,7 +96,7 @@ class ILauncherOptions2 extends IInspectable { } set neighboringFilesQuery(StorageFileQueryResult? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -106,7 +106,7 @@ class ILauncherOptions2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value.lpVtbl); + lpVtbl, value.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_system/lib/src/ilauncheroptions3.dart b/packages/windows_system/lib/src/ilauncheroptions3.dart index 5f9d739a..a052cd16 100644 --- a/packages/windows_system/lib/src/ilauncheroptions3.dart +++ b/packages/windows_system/lib/src/ilauncheroptions3.dart @@ -30,17 +30,17 @@ class ILauncherOptions3 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -51,7 +51,7 @@ class ILauncherOptions3 extends IInspectable { } set ignoreAppUriHandlers(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -59,7 +59,7 @@ class ILauncherOptions3 extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_system/lib/src/ilauncheroptions4.dart b/packages/windows_system/lib/src/ilauncheroptions4.dart index eaad92d5..01593d54 100644 --- a/packages/windows_system/lib/src/ilauncheroptions4.dart +++ b/packages/windows_system/lib/src/ilauncheroptions4.dart @@ -30,17 +30,17 @@ class ILauncherOptions4 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -51,7 +51,7 @@ class ILauncherOptions4 extends IInspectable { } set limitPickerToCurrentAppAndAppUriHandlers(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -59,7 +59,7 @@ class ILauncherOptions4 extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_system/lib/src/ilauncherstatics.dart b/packages/windows_system/lib/src/ilauncherstatics.dart index 56d1dd09..39e7fed2 100644 --- a/packages/windows_system/lib/src/ilauncherstatics.dart +++ b/packages/windows_system/lib/src/ilauncherstatics.dart @@ -33,7 +33,7 @@ class ILauncherStatics extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -46,7 +46,7 @@ class ILauncherStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer file, Pointer operation)>()( - ptr.ref.lpVtbl, file.lpVtbl, operation); + lpVtbl, file.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -61,7 +61,7 @@ class ILauncherStatics extends IInspectable { IStorageFile? file, LauncherOptions? options) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -75,7 +75,7 @@ class ILauncherStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer file, VTablePointer options, Pointer operation)>()( - ptr.ref.lpVtbl, file.lpVtbl, options.lpVtbl, operation); + lpVtbl, file.lpVtbl, options.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -90,7 +90,7 @@ class ILauncherStatics extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -103,7 +103,7 @@ class ILauncherStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer uri, Pointer operation)>()( - ptr.ref.lpVtbl, uri?.toWinRTUri().lpVtbl ?? nullptr, operation); + lpVtbl, uri?.toWinRTUri().lpVtbl ?? nullptr, operation); if (FAILED(hr)) { free(operation); @@ -117,7 +117,7 @@ class ILauncherStatics extends IInspectable { Future launchUriWithOptionsAsync(Uri? uri, LauncherOptions? options) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -131,10 +131,7 @@ class ILauncherStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer uri, VTablePointer options, Pointer operation)>()( - ptr.ref.lpVtbl, - uri?.toWinRTUri().lpVtbl ?? nullptr, - options.lpVtbl, - operation); + lpVtbl, uri?.toWinRTUri().lpVtbl ?? nullptr, options.lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_system/lib/src/ilauncherstatics2.dart b/packages/windows_system/lib/src/ilauncherstatics2.dart index 64c4b9dc..33af2027 100644 --- a/packages/windows_system/lib/src/ilauncherstatics2.dart +++ b/packages/windows_system/lib/src/ilauncherstatics2.dart @@ -37,7 +37,7 @@ class ILauncherStatics2 extends IInspectable { Uri? uri, LauncherOptions? options) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -51,10 +51,7 @@ class ILauncherStatics2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer uri, VTablePointer options, Pointer operation)>()( - ptr.ref.lpVtbl, - uri?.toWinRTUri().lpVtbl ?? nullptr, - options.lpVtbl, - operation); + lpVtbl, uri?.toWinRTUri().lpVtbl ?? nullptr, options.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -70,7 +67,7 @@ class ILauncherStatics2 extends IInspectable { Uri? uri, LauncherOptions? options, ValueSet? inputData) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -89,7 +86,7 @@ class ILauncherStatics2 extends IInspectable { VTablePointer options, VTablePointer inputData, Pointer operation)>()( - ptr.ref.lpVtbl, + lpVtbl, uri?.toWinRTUri().lpVtbl ?? nullptr, options.lpVtbl, inputData.lpVtbl, @@ -109,7 +106,7 @@ class ILauncherStatics2 extends IInspectable { Uri? uri, LauncherOptions? options, ValueSet? inputData) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -128,7 +125,7 @@ class ILauncherStatics2 extends IInspectable { VTablePointer options, VTablePointer inputData, Pointer operation)>()( - ptr.ref.lpVtbl, + lpVtbl, uri?.toWinRTUri().lpVtbl ?? nullptr, options.lpVtbl, inputData.lpVtbl, @@ -147,7 +144,7 @@ class ILauncherStatics2 extends IInspectable { Uri? uri, LaunchQuerySupportType launchQuerySupportType) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -164,7 +161,7 @@ class ILauncherStatics2 extends IInspectable { VTablePointer uri, int launchQuerySupportType, Pointer operation)>()( - ptr.ref.lpVtbl, + lpVtbl, uri?.toWinRTUri().lpVtbl ?? nullptr, launchQuerySupportType.value, operation); @@ -186,7 +183,7 @@ class ILauncherStatics2 extends IInspectable { String packageFamilyName) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -205,7 +202,7 @@ class ILauncherStatics2 extends IInspectable { int launchQuerySupportType, int packageFamilyName, Pointer operation)>()( - ptr.ref.lpVtbl, + lpVtbl, uri?.toWinRTUri().lpVtbl ?? nullptr, launchQuerySupportType.value, packageFamilyName.toHString(), @@ -226,7 +223,7 @@ class ILauncherStatics2 extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(11) .cast< Pointer< @@ -239,7 +236,7 @@ class ILauncherStatics2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer file, Pointer operation)>()( - ptr.ref.lpVtbl, file.lpVtbl, operation); + lpVtbl, file.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -256,7 +253,7 @@ class ILauncherStatics2 extends IInspectable { StorageFile? file, String packageFamilyName) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -270,7 +267,7 @@ class ILauncherStatics2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer file, int packageFamilyName, Pointer operation)>()( - ptr.ref.lpVtbl, file.lpVtbl, packageFamilyName.toHString(), operation); + lpVtbl, file.lpVtbl, packageFamilyName.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -286,7 +283,7 @@ class ILauncherStatics2 extends IInspectable { Future> findUriSchemeHandlersAsync(String scheme) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -297,7 +294,7 @@ class ILauncherStatics2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int scheme, Pointer operation)>()( - ptr.ref.lpVtbl, scheme.toHString(), operation); + lpVtbl, scheme.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -316,7 +313,7 @@ class ILauncherStatics2 extends IInspectable { String scheme, LaunchQuerySupportType launchQuerySupportType) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -332,8 +329,8 @@ class ILauncherStatics2 extends IInspectable { VTablePointer lpVtbl, int scheme, int launchQuerySupportType, - Pointer operation)>()(ptr.ref.lpVtbl, - scheme.toHString(), launchQuerySupportType.value, operation); + Pointer operation)>()( + lpVtbl, scheme.toHString(), launchQuerySupportType.value, operation); if (FAILED(hr)) { free(operation); @@ -351,7 +348,7 @@ class ILauncherStatics2 extends IInspectable { Future> findFileHandlersAsync(String extension) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -362,7 +359,7 @@ class ILauncherStatics2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int extension, Pointer operation)>()( - ptr.ref.lpVtbl, extension.toHString(), operation); + lpVtbl, extension.toHString(), operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_system/lib/src/ilauncherstatics3.dart b/packages/windows_system/lib/src/ilauncherstatics3.dart index a17dece2..d9875f08 100644 --- a/packages/windows_system/lib/src/ilauncherstatics3.dart +++ b/packages/windows_system/lib/src/ilauncherstatics3.dart @@ -33,7 +33,7 @@ class ILauncherStatics3 extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -46,7 +46,7 @@ class ILauncherStatics3 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer folder, Pointer operation)>()( - ptr.ref.lpVtbl, folder.lpVtbl, operation); + lpVtbl, folder.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -61,7 +61,7 @@ class ILauncherStatics3 extends IInspectable { IStorageFolder? folder, FolderLauncherOptions? options) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -75,7 +75,7 @@ class ILauncherStatics3 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer folder, VTablePointer options, Pointer operation)>()( - ptr.ref.lpVtbl, folder.lpVtbl, options.lpVtbl, operation); + lpVtbl, folder.lpVtbl, options.lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_system/lib/src/ilauncherstatics4.dart b/packages/windows_system/lib/src/ilauncherstatics4.dart index 2b19b9e3..3bcc9a7d 100644 --- a/packages/windows_system/lib/src/ilauncherstatics4.dart +++ b/packages/windows_system/lib/src/ilauncherstatics4.dart @@ -37,7 +37,7 @@ class ILauncherStatics4 extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -50,7 +50,7 @@ class ILauncherStatics4 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer uri, Pointer operation)>()( - ptr.ref.lpVtbl, uri?.toWinRTUri().lpVtbl ?? nullptr, operation); + lpVtbl, uri?.toWinRTUri().lpVtbl ?? nullptr, operation); if (FAILED(hr)) { free(operation); @@ -67,7 +67,7 @@ class ILauncherStatics4 extends IInspectable { Uri? uri, String packageFamilyName) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -81,7 +81,7 @@ class ILauncherStatics4 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer uri, int packageFamilyName, Pointer operation)>()( - ptr.ref.lpVtbl, + lpVtbl, uri?.toWinRTUri().lpVtbl ?? nullptr, packageFamilyName.toHString(), operation); @@ -101,7 +101,7 @@ class ILauncherStatics4 extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -114,7 +114,7 @@ class ILauncherStatics4 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer uri, Pointer operation)>()( - ptr.ref.lpVtbl, uri?.toWinRTUri().lpVtbl ?? nullptr, operation); + lpVtbl, uri?.toWinRTUri().lpVtbl ?? nullptr, operation); if (FAILED(hr)) { free(operation); @@ -133,7 +133,7 @@ class ILauncherStatics4 extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -147,7 +147,7 @@ class ILauncherStatics4 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer user, VTablePointer uri, Pointer operation)>()( - ptr.ref.lpVtbl, + lpVtbl, user.lpVtbl, uri?.toWinRTUri().lpVtbl ?? nullptr, operation); @@ -166,7 +166,7 @@ class ILauncherStatics4 extends IInspectable { User? user, Uri? uri, LauncherOptions? options) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -184,12 +184,8 @@ class ILauncherStatics4 extends IInspectable { VTablePointer user, VTablePointer uri, VTablePointer options, - Pointer operation)>()( - ptr.ref.lpVtbl, - user.lpVtbl, - uri?.toWinRTUri().lpVtbl ?? nullptr, - options.lpVtbl, - operation); + Pointer operation)>()(lpVtbl, user.lpVtbl, + uri?.toWinRTUri().lpVtbl ?? nullptr, options.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -205,7 +201,7 @@ class ILauncherStatics4 extends IInspectable { User? user, Uri? uri, LauncherOptions? options, ValueSet? inputData) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -226,7 +222,7 @@ class ILauncherStatics4 extends IInspectable { VTablePointer options, VTablePointer inputData, Pointer operation)>()( - ptr.ref.lpVtbl, + lpVtbl, user.lpVtbl, uri?.toWinRTUri().lpVtbl ?? nullptr, options.lpVtbl, @@ -247,7 +243,7 @@ class ILauncherStatics4 extends IInspectable { User? user, Uri? uri, LauncherOptions? options) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -265,12 +261,8 @@ class ILauncherStatics4 extends IInspectable { VTablePointer user, VTablePointer uri, VTablePointer options, - Pointer operation)>()( - ptr.ref.lpVtbl, - user.lpVtbl, - uri?.toWinRTUri().lpVtbl ?? nullptr, - options.lpVtbl, - operation); + Pointer operation)>()(lpVtbl, user.lpVtbl, + uri?.toWinRTUri().lpVtbl ?? nullptr, options.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -286,7 +278,7 @@ class ILauncherStatics4 extends IInspectable { User? user, Uri? uri, LauncherOptions? options, ValueSet? inputData) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -307,7 +299,7 @@ class ILauncherStatics4 extends IInspectable { VTablePointer options, VTablePointer inputData, Pointer operation)>()( - ptr.ref.lpVtbl, + lpVtbl, user.lpVtbl, uri?.toWinRTUri().lpVtbl ?? nullptr, options.lpVtbl, diff --git a/packages/windows_system/lib/src/ilauncherstatics5.dart b/packages/windows_system/lib/src/ilauncherstatics5.dart index 2cc84f5d..22fa145a 100644 --- a/packages/windows_system/lib/src/ilauncherstatics5.dart +++ b/packages/windows_system/lib/src/ilauncherstatics5.dart @@ -32,7 +32,7 @@ class ILauncherStatics5 extends IInspectable { Future launchFolderPathAsync(String path) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class ILauncherStatics5 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int path, Pointer operation)>()( - ptr.ref.lpVtbl, path.toHString(), operation); + lpVtbl, path.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -58,7 +58,7 @@ class ILauncherStatics5 extends IInspectable { String path, FolderLauncherOptions? options) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -72,7 +72,7 @@ class ILauncherStatics5 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int path, VTablePointer options, Pointer operation)>()( - ptr.ref.lpVtbl, path.toHString(), options.lpVtbl, operation); + lpVtbl, path.toHString(), options.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -87,7 +87,7 @@ class ILauncherStatics5 extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -101,7 +101,7 @@ class ILauncherStatics5 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer user, int path, Pointer operation)>()( - ptr.ref.lpVtbl, user.lpVtbl, path.toHString(), operation); + lpVtbl, user.lpVtbl, path.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -116,7 +116,7 @@ class ILauncherStatics5 extends IInspectable { User? user, String path, FolderLauncherOptions? options) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -131,11 +131,7 @@ class ILauncherStatics5 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer user, int path, VTablePointer options, Pointer operation)>()( - ptr.ref.lpVtbl, - user.lpVtbl, - path.toHString(), - options.lpVtbl, - operation); + lpVtbl, user.lpVtbl, path.toHString(), options.lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_system/lib/src/ilauncheruioptions.dart b/packages/windows_system/lib/src/ilauncheruioptions.dart index 82146376..dd36483a 100644 --- a/packages/windows_system/lib/src/ilauncheruioptions.dart +++ b/packages/windows_system/lib/src/ilauncheruioptions.dart @@ -30,7 +30,7 @@ class ILauncherUIOptions extends IInspectable { Point? get invocationPoint { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class ILauncherUIOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -58,7 +58,7 @@ class ILauncherUIOptions extends IInspectable { } set invocationPoint(Point? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,7 +68,7 @@ class ILauncherUIOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toReference().lpVtbl ?? nullptr); + lpVtbl, value?.toReference().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @@ -76,7 +76,7 @@ class ILauncherUIOptions extends IInspectable { Rect? get selectionRect { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -86,7 +86,7 @@ class ILauncherUIOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -104,7 +104,7 @@ class ILauncherUIOptions extends IInspectable { } set selectionRect(Rect? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -114,7 +114,7 @@ class ILauncherUIOptions extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toReference().lpVtbl ?? nullptr); + lpVtbl, value?.toReference().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @@ -123,17 +123,17 @@ class ILauncherUIOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -144,7 +144,7 @@ class ILauncherUIOptions extends IInspectable { } set preferredPlacement(Placement value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -152,7 +152,7 @@ class ILauncherUIOptions extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_system/lib/src/ilauncherviewoptions.dart b/packages/windows_system/lib/src/ilauncherviewoptions.dart index ffae1b05..d379ac2b 100644 --- a/packages/windows_system/lib/src/ilauncherviewoptions.dart +++ b/packages/windows_system/lib/src/ilauncherviewoptions.dart @@ -31,17 +31,17 @@ class ILauncherViewOptions extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -52,7 +52,7 @@ class ILauncherViewOptions extends IInspectable { } set desiredRemainingView(ViewSizePreference value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -60,7 +60,7 @@ class ILauncherViewOptions extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_system/lib/src/ilaunchuriresult.dart b/packages/windows_system/lib/src/ilaunchuriresult.dart index 5e84df00..8e8fa0ea 100644 --- a/packages/windows_system/lib/src/ilaunchuriresult.dart +++ b/packages/windows_system/lib/src/ilaunchuriresult.dart @@ -32,17 +32,17 @@ class ILaunchUriResult extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +55,7 @@ class ILaunchUriResult extends IInspectable { ValueSet? get result { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -65,7 +65,7 @@ class ILaunchUriResult extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_system/lib/src/iuser.dart b/packages/windows_system/lib/src/iuser.dart index 17fcbf8f..d1f8f318 100644 --- a/packages/windows_system/lib/src/iuser.dart +++ b/packages/windows_system/lib/src/iuser.dart @@ -35,7 +35,7 @@ class IUser extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IUser extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -59,17 +59,17 @@ class IUser extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -83,17 +83,17 @@ class IUser extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -106,7 +106,7 @@ class IUser extends IInspectable { Future getPropertyAsync(String value) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -117,7 +117,7 @@ class IUser extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer operation)>()( - ptr.ref.lpVtbl, value.toHString(), operation); + lpVtbl, value.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -132,7 +132,7 @@ class IUser extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -145,7 +145,7 @@ class IUser extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer values, Pointer operation)>()( - ptr.ref.lpVtbl, values.lpVtbl, operation); + lpVtbl, values.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -162,7 +162,7 @@ class IUser extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(11) .cast< Pointer< @@ -175,7 +175,7 @@ class IUser extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int desiredSize, Pointer operation)>()( - ptr.ref.lpVtbl, desiredSize.value, operation); + lpVtbl, desiredSize.value, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_system/lib/src/iuser2.dart b/packages/windows_system/lib/src/iuser2.dart index d99a0789..e64152f4 100644 --- a/packages/windows_system/lib/src/iuser2.dart +++ b/packages/windows_system/lib/src/iuser2.dart @@ -34,7 +34,7 @@ class IUser2 extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -47,7 +47,7 @@ class IUser2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int consentGroup, Pointer operation)>()( - ptr.ref.lpVtbl, consentGroup.value, operation); + lpVtbl, consentGroup.value, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_system/lib/src/iuserstatics.dart b/packages/windows_system/lib/src/iuserstatics.dart index d5f39516..860ebb77 100644 --- a/packages/windows_system/lib/src/iuserstatics.dart +++ b/packages/windows_system/lib/src/iuserstatics.dart @@ -34,7 +34,7 @@ class IUserStatics extends IInspectable { UserWatcher? createWatcher() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class IUserStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -62,7 +62,7 @@ class IUserStatics extends IInspectable { Future> findAllAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -72,7 +72,7 @@ class IUserStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -92,18 +92,17 @@ class IUserStatics extends IInspectable { Future> findAllAsyncByType(UserType type) { final operation = calloc(); - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 type, - Pointer operation)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int type, - Pointer operation)>()( - ptr.ref.lpVtbl, type.value, operation); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 type, + Pointer operation)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int type, + Pointer operation)>()(lpVtbl, type.value, operation); if (FAILED(hr)) { free(operation); @@ -124,7 +123,7 @@ class IUserStatics extends IInspectable { UserType type, UserAuthenticationStatus status) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -135,7 +134,7 @@ class IUserStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int type, int status, Pointer operation)>()( - ptr.ref.lpVtbl, type.value, status.value, operation); + lpVtbl, type.value, status.value, operation); if (FAILED(hr)) { free(operation); @@ -154,7 +153,7 @@ class IUserStatics extends IInspectable { final result = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -167,7 +166,7 @@ class IUserStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int nonRoamableId, Pointer result)>()( - ptr.ref.lpVtbl, nonRoamableId.toHString(), result); + lpVtbl, nonRoamableId.toHString(), result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_system/lib/src/iuserstatics2.dart b/packages/windows_system/lib/src/iuserstatics2.dart index 142807ea..d4fffd97 100644 --- a/packages/windows_system/lib/src/iuserstatics2.dart +++ b/packages/windows_system/lib/src/iuserstatics2.dart @@ -31,7 +31,7 @@ class IUserStatics2 extends IInspectable { User? getDefault() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IUserStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_system/lib/src/iuserwatcher.dart b/packages/windows_system/lib/src/iuserwatcher.dart index 1e81e9e3..3a2cc79e 100644 --- a/packages/windows_system/lib/src/iuserwatcher.dart +++ b/packages/windows_system/lib/src/iuserwatcher.dart @@ -33,17 +33,17 @@ class IUserWatcher extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,21 +54,21 @@ class IUserWatcher extends IInspectable { } void start() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } void stop() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -77,18 +77,17 @@ class IUserWatcher extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -100,7 +99,7 @@ class IUserWatcher extends IInspectable { void remove_Added(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -109,7 +108,7 @@ class IUserWatcher extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -118,18 +117,17 @@ class IUserWatcher extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -141,7 +139,7 @@ class IUserWatcher extends IInspectable { void remove_Removed(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(12) .cast< Pointer< @@ -150,7 +148,7 @@ class IUserWatcher extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -159,18 +157,17 @@ class IUserWatcher extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(13) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(13) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -182,7 +179,7 @@ class IUserWatcher extends IInspectable { void remove_Updated(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(14) .cast< Pointer< @@ -191,7 +188,7 @@ class IUserWatcher extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -200,18 +197,17 @@ class IUserWatcher extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(15) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(15) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -223,7 +219,7 @@ class IUserWatcher extends IInspectable { void remove_AuthenticationStatusChanged(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(16) .cast< Pointer< @@ -232,7 +228,7 @@ class IUserWatcher extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -241,18 +237,17 @@ class IUserWatcher extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -264,7 +259,7 @@ class IUserWatcher extends IInspectable { void remove_AuthenticationStatusChanging(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(18) .cast< Pointer< @@ -273,7 +268,7 @@ class IUserWatcher extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -282,18 +277,17 @@ class IUserWatcher extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(19) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(19) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -305,7 +299,7 @@ class IUserWatcher extends IInspectable { void remove_EnumerationCompleted(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(20) .cast< Pointer< @@ -314,7 +308,7 @@ class IUserWatcher extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -323,18 +317,17 @@ class IUserWatcher extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(21) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(21) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -346,7 +339,7 @@ class IUserWatcher extends IInspectable { void remove_Stopped(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(22) .cast< Pointer< @@ -355,7 +348,7 @@ class IUserWatcher extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_system/lib/src/power/ipowermanagerstatics.dart b/packages/windows_system/lib/src/power/ipowermanagerstatics.dart index 30682793..adf79ed1 100644 --- a/packages/windows_system/lib/src/power/ipowermanagerstatics.dart +++ b/packages/windows_system/lib/src/power/ipowermanagerstatics.dart @@ -34,17 +34,17 @@ class IPowerManagerStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -58,18 +58,17 @@ class IPowerManagerStatics extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -81,7 +80,7 @@ class IPowerManagerStatics extends IInspectable { void remove_EnergySaverStatusChanged(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -90,7 +89,7 @@ class IPowerManagerStatics extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -99,17 +98,17 @@ class IPowerManagerStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -123,18 +122,17 @@ class IPowerManagerStatics extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -146,7 +144,7 @@ class IPowerManagerStatics extends IInspectable { void remove_BatteryStatusChanged(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(11) .cast< Pointer< @@ -155,7 +153,7 @@ class IPowerManagerStatics extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -164,17 +162,17 @@ class IPowerManagerStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(12) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(12) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -188,18 +186,17 @@ class IPowerManagerStatics extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(13) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(13) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -211,7 +208,7 @@ class IPowerManagerStatics extends IInspectable { void remove_PowerSupplyStatusChanged(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(14) .cast< Pointer< @@ -220,7 +217,7 @@ class IPowerManagerStatics extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -229,17 +226,17 @@ class IPowerManagerStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(15) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(15) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -253,18 +250,17 @@ class IPowerManagerStatics extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(16) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(16) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -276,7 +272,7 @@ class IPowerManagerStatics extends IInspectable { void remove_RemainingChargePercentChanged(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(17) .cast< Pointer< @@ -285,7 +281,7 @@ class IPowerManagerStatics extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -294,17 +290,17 @@ class IPowerManagerStatics extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(18) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(18) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -318,18 +314,17 @@ class IPowerManagerStatics extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(19) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(19) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -341,7 +336,7 @@ class IPowerManagerStatics extends IInspectable { void remove_RemainingDischargeTimeChanged(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(20) .cast< Pointer< @@ -350,7 +345,7 @@ class IPowerManagerStatics extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ui/lib/src/notifications/inotificationdata.dart b/packages/windows_ui/lib/src/notifications/inotificationdata.dart index 1158520e..71ce91cd 100644 --- a/packages/windows_ui/lib/src/notifications/inotificationdata.dart +++ b/packages/windows_ui/lib/src/notifications/inotificationdata.dart @@ -29,7 +29,7 @@ class INotificationData extends IInspectable { IMap? get values { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class INotificationData extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -59,7 +59,7 @@ class INotificationData extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -69,7 +69,7 @@ class INotificationData extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -81,7 +81,7 @@ class INotificationData extends IInspectable { set sequenceNumber(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -90,7 +90,7 @@ class INotificationData extends IInspectable { VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ui/lib/src/notifications/inotificationdatafactory.dart b/packages/windows_ui/lib/src/notifications/inotificationdatafactory.dart index feec9fd3..e3b371c0 100644 --- a/packages/windows_ui/lib/src/notifications/inotificationdatafactory.dart +++ b/packages/windows_ui/lib/src/notifications/inotificationdatafactory.dart @@ -33,7 +33,7 @@ class INotificationDataFactory extends IInspectable { int sequenceNumber) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -47,7 +47,7 @@ class INotificationDataFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer initialValues, int sequenceNumber, Pointer value)>()( - ptr.ref.lpVtbl, initialValues.lpVtbl, sequenceNumber, value); + lpVtbl, initialValues.lpVtbl, sequenceNumber, value); if (FAILED(hr)) { free(value); @@ -61,7 +61,7 @@ class INotificationDataFactory extends IInspectable { IIterable>? initialValues) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -74,7 +74,7 @@ class INotificationDataFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer initialValues, Pointer value)>()( - ptr.ref.lpVtbl, initialValues.lpVtbl, value); + lpVtbl, initialValues.lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_ui/lib/src/notifications/ischeduledtoastnotification.dart b/packages/windows_ui/lib/src/notifications/ischeduledtoastnotification.dart index 7433c48f..fd16a79c 100644 --- a/packages/windows_ui/lib/src/notifications/ischeduledtoastnotification.dart +++ b/packages/windows_ui/lib/src/notifications/ischeduledtoastnotification.dart @@ -32,7 +32,7 @@ class IScheduledToastNotification extends IInspectable { XmlDocument? get content { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IScheduledToastNotification extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -61,17 +61,17 @@ class IScheduledToastNotification extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -84,7 +84,7 @@ class IScheduledToastNotification extends IInspectable { Duration? get snoozeInterval { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -94,7 +94,7 @@ class IScheduledToastNotification extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -115,7 +115,7 @@ class IScheduledToastNotification extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -125,7 +125,7 @@ class IScheduledToastNotification extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -137,7 +137,7 @@ class IScheduledToastNotification extends IInspectable { set id(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -146,7 +146,7 @@ class IScheduledToastNotification extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -155,7 +155,7 @@ class IScheduledToastNotification extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -165,7 +165,7 @@ class IScheduledToastNotification extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_ui/lib/src/notifications/ischeduledtoastnotification2.dart b/packages/windows_ui/lib/src/notifications/ischeduledtoastnotification2.dart index 66af6641..3603a690 100644 --- a/packages/windows_ui/lib/src/notifications/ischeduledtoastnotification2.dart +++ b/packages/windows_ui/lib/src/notifications/ischeduledtoastnotification2.dart @@ -30,7 +30,7 @@ class IScheduledToastNotification2 extends IInspectable { set tag(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class IScheduledToastNotification2 extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -48,7 +48,7 @@ class IScheduledToastNotification2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -58,7 +58,7 @@ class IScheduledToastNotification2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -70,7 +70,7 @@ class IScheduledToastNotification2 extends IInspectable { set group(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -79,7 +79,7 @@ class IScheduledToastNotification2 extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -88,7 +88,7 @@ class IScheduledToastNotification2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -98,7 +98,7 @@ class IScheduledToastNotification2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -109,7 +109,7 @@ class IScheduledToastNotification2 extends IInspectable { } set suppressPopup(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -117,7 +117,7 @@ class IScheduledToastNotification2 extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -126,17 +126,17 @@ class IScheduledToastNotification2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_ui/lib/src/notifications/ischeduledtoastnotification3.dart b/packages/windows_ui/lib/src/notifications/ischeduledtoastnotification3.dart index 62bad263..bfdb4c51 100644 --- a/packages/windows_ui/lib/src/notifications/ischeduledtoastnotification3.dart +++ b/packages/windows_ui/lib/src/notifications/ischeduledtoastnotification3.dart @@ -34,17 +34,17 @@ class IScheduledToastNotification3 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +55,7 @@ class IScheduledToastNotification3 extends IInspectable { } set notificationMirroring(NotificationMirroring value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -63,7 +63,7 @@ class IScheduledToastNotification3 extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -72,7 +72,7 @@ class IScheduledToastNotification3 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -82,7 +82,7 @@ class IScheduledToastNotification3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -94,7 +94,7 @@ class IScheduledToastNotification3 extends IInspectable { set remoteId(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -103,7 +103,7 @@ class IScheduledToastNotification3 extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ui/lib/src/notifications/ischeduledtoastnotification4.dart b/packages/windows_ui/lib/src/notifications/ischeduledtoastnotification4.dart index b45ba977..47b05d43 100644 --- a/packages/windows_ui/lib/src/notifications/ischeduledtoastnotification4.dart +++ b/packages/windows_ui/lib/src/notifications/ischeduledtoastnotification4.dart @@ -31,7 +31,7 @@ class IScheduledToastNotification4 extends IInspectable { DateTime? get expirationTime { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IScheduledToastNotification4 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -59,7 +59,7 @@ class IScheduledToastNotification4 extends IInspectable { } set expirationTime(DateTime? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -69,7 +69,7 @@ class IScheduledToastNotification4 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toReference().lpVtbl ?? nullptr); + lpVtbl, value?.toReference().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ui/lib/src/notifications/ischeduledtoastnotificationfactory.dart b/packages/windows_ui/lib/src/notifications/ischeduledtoastnotificationfactory.dart index 4962ca3a..fa4046d6 100644 --- a/packages/windows_ui/lib/src/notifications/ischeduledtoastnotificationfactory.dart +++ b/packages/windows_ui/lib/src/notifications/ischeduledtoastnotificationfactory.dart @@ -35,7 +35,7 @@ class IScheduledToastNotificationFactory extends IInspectable { XmlDocument? content, DateTime deliveryTime) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -49,7 +49,7 @@ class IScheduledToastNotificationFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer content, int deliveryTime, Pointer value)>()( - ptr.ref.lpVtbl, content.lpVtbl, deliveryTime.toWinRTDateTime(), value); + lpVtbl, content.lpVtbl, deliveryTime.toWinRTDateTime(), value); if (FAILED(hr)) { free(value); @@ -66,7 +66,7 @@ class IScheduledToastNotificationFactory extends IInspectable { int maximumSnoozeCount) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -87,7 +87,7 @@ class IScheduledToastNotificationFactory extends IInspectable { int snoozeInterval, int maximumSnoozeCount, Pointer value)>()( - ptr.ref.lpVtbl, + lpVtbl, content.lpVtbl, deliveryTime.toWinRTDateTime(), snoozeInterval.toWinRTDuration(), diff --git a/packages/windows_ui/lib/src/notifications/itoastcollection.dart b/packages/windows_ui/lib/src/notifications/itoastcollection.dart index 607b8eef..5a579c67 100644 --- a/packages/windows_ui/lib/src/notifications/itoastcollection.dart +++ b/packages/windows_ui/lib/src/notifications/itoastcollection.dart @@ -30,7 +30,7 @@ class IToastCollection extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IToastCollection extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IToastCollection extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IToastCollection extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -76,7 +76,7 @@ class IToastCollection extends IInspectable { set displayName(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -85,7 +85,7 @@ class IToastCollection extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -94,7 +94,7 @@ class IToastCollection extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -104,7 +104,7 @@ class IToastCollection extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -116,7 +116,7 @@ class IToastCollection extends IInspectable { set launchArgs(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -125,7 +125,7 @@ class IToastCollection extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -133,7 +133,7 @@ class IToastCollection extends IInspectable { Uri? get icon { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -143,7 +143,7 @@ class IToastCollection extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -159,7 +159,7 @@ class IToastCollection extends IInspectable { } set icon(Uri? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -169,7 +169,7 @@ class IToastCollection extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toWinRTUri().lpVtbl ?? nullptr); + lpVtbl, value?.toWinRTUri().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ui/lib/src/notifications/itoastcollectionfactory.dart b/packages/windows_ui/lib/src/notifications/itoastcollectionfactory.dart index c47e5348..336ccce5 100644 --- a/packages/windows_ui/lib/src/notifications/itoastcollectionfactory.dart +++ b/packages/windows_ui/lib/src/notifications/itoastcollectionfactory.dart @@ -32,7 +32,7 @@ class IToastCollectionFactory extends IInspectable { String launchArgs, Uri? iconUri) { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -53,7 +53,7 @@ class IToastCollectionFactory extends IInspectable { int launchArgs, VTablePointer iconUri, Pointer value)>()( - ptr.ref.lpVtbl, + lpVtbl, collectionId.toHString(), displayName.toHString(), launchArgs.toHString(), diff --git a/packages/windows_ui/lib/src/notifications/itoastcollectionmanager.dart b/packages/windows_ui/lib/src/notifications/itoastcollectionmanager.dart index e5cfd255..ef98645a 100644 --- a/packages/windows_ui/lib/src/notifications/itoastcollectionmanager.dart +++ b/packages/windows_ui/lib/src/notifications/itoastcollectionmanager.dart @@ -32,7 +32,7 @@ class IToastCollectionManager extends IInspectable { Future saveToastCollectionAsync(ToastCollection? collection) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IToastCollectionManager extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer collection, Pointer operation)>()( - ptr.ref.lpVtbl, collection.lpVtbl, operation); + lpVtbl, collection.lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -58,7 +58,7 @@ class IToastCollectionManager extends IInspectable { Future> findAllToastCollectionsAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,7 +68,7 @@ class IToastCollectionManager extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -87,7 +87,7 @@ class IToastCollectionManager extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -100,7 +100,7 @@ class IToastCollectionManager extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int collectionId, Pointer operation)>()( - ptr.ref.lpVtbl, collectionId.toHString(), operation); + lpVtbl, collectionId.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -116,7 +116,7 @@ class IToastCollectionManager extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -129,7 +129,7 @@ class IToastCollectionManager extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int collectionId, Pointer operation)>()( - ptr.ref.lpVtbl, collectionId.toHString(), operation); + lpVtbl, collectionId.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -142,7 +142,7 @@ class IToastCollectionManager extends IInspectable { Future removeAllToastCollectionsAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -152,7 +152,7 @@ class IToastCollectionManager extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); @@ -165,7 +165,7 @@ class IToastCollectionManager extends IInspectable { User? get user { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -175,7 +175,7 @@ class IToastCollectionManager extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -194,7 +194,7 @@ class IToastCollectionManager extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -204,7 +204,7 @@ class IToastCollectionManager extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_ui/lib/src/notifications/itoastnotification.dart b/packages/windows_ui/lib/src/notifications/itoastnotification.dart index 8f541c10..c6e1c8b4 100644 --- a/packages/windows_ui/lib/src/notifications/itoastnotification.dart +++ b/packages/windows_ui/lib/src/notifications/itoastnotification.dart @@ -32,7 +32,7 @@ class IToastNotification extends IInspectable { XmlDocument? get content { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IToastNotification extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -58,7 +58,7 @@ class IToastNotification extends IInspectable { } set expirationTime(DateTime? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,7 +68,7 @@ class IToastNotification extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toReference().lpVtbl ?? nullptr); + lpVtbl, value?.toReference().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @@ -76,7 +76,7 @@ class IToastNotification extends IInspectable { DateTime? get expirationTime { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -86,7 +86,7 @@ class IToastNotification extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -107,18 +107,17 @@ class IToastNotification extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -130,7 +129,7 @@ class IToastNotification extends IInspectable { void remove_Dismissed(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -139,7 +138,7 @@ class IToastNotification extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -148,18 +147,17 @@ class IToastNotification extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -171,7 +169,7 @@ class IToastNotification extends IInspectable { void remove_Activated(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(12) .cast< Pointer< @@ -180,7 +178,7 @@ class IToastNotification extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -189,18 +187,17 @@ class IToastNotification extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(13) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(13) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -212,7 +209,7 @@ class IToastNotification extends IInspectable { void remove_Failed(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(14) .cast< Pointer< @@ -221,7 +218,7 @@ class IToastNotification extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ui/lib/src/notifications/itoastnotification2.dart b/packages/windows_ui/lib/src/notifications/itoastnotification2.dart index 65b36f2e..1593aca4 100644 --- a/packages/windows_ui/lib/src/notifications/itoastnotification2.dart +++ b/packages/windows_ui/lib/src/notifications/itoastnotification2.dart @@ -28,7 +28,7 @@ class IToastNotification2 extends IInspectable { set tag(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -37,7 +37,7 @@ class IToastNotification2 extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -46,7 +46,7 @@ class IToastNotification2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -56,7 +56,7 @@ class IToastNotification2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -68,7 +68,7 @@ class IToastNotification2 extends IInspectable { set group(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -77,7 +77,7 @@ class IToastNotification2 extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -86,7 +86,7 @@ class IToastNotification2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -96,7 +96,7 @@ class IToastNotification2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -107,7 +107,7 @@ class IToastNotification2 extends IInspectable { } set suppressPopup(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -115,7 +115,7 @@ class IToastNotification2 extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -124,17 +124,17 @@ class IToastNotification2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_ui/lib/src/notifications/itoastnotification3.dart b/packages/windows_ui/lib/src/notifications/itoastnotification3.dart index 6a99353b..ffb340cc 100644 --- a/packages/windows_ui/lib/src/notifications/itoastnotification3.dart +++ b/packages/windows_ui/lib/src/notifications/itoastnotification3.dart @@ -32,17 +32,17 @@ class IToastNotification3 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -53,7 +53,7 @@ class IToastNotification3 extends IInspectable { } set notificationMirroring(NotificationMirroring value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -61,7 +61,7 @@ class IToastNotification3 extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } @@ -70,7 +70,7 @@ class IToastNotification3 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -80,7 +80,7 @@ class IToastNotification3 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -92,7 +92,7 @@ class IToastNotification3 extends IInspectable { set remoteId(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -101,7 +101,7 @@ class IToastNotification3 extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ui/lib/src/notifications/itoastnotification4.dart b/packages/windows_ui/lib/src/notifications/itoastnotification4.dart index 33b32904..f122ce11 100644 --- a/packages/windows_ui/lib/src/notifications/itoastnotification4.dart +++ b/packages/windows_ui/lib/src/notifications/itoastnotification4.dart @@ -32,7 +32,7 @@ class IToastNotification4 extends IInspectable { NotificationData? get data { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IToastNotification4 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -58,7 +58,7 @@ class IToastNotification4 extends IInspectable { } set data(NotificationData? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,7 +68,7 @@ class IToastNotification4 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value.lpVtbl); + lpVtbl, value.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -77,17 +77,17 @@ class IToastNotification4 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -98,7 +98,7 @@ class IToastNotification4 extends IInspectable { } set priority(ToastNotificationPriority value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -106,7 +106,7 @@ class IToastNotification4 extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ui/lib/src/notifications/itoastnotification6.dart b/packages/windows_ui/lib/src/notifications/itoastnotification6.dart index 41aa5eeb..6b5a72b6 100644 --- a/packages/windows_ui/lib/src/notifications/itoastnotification6.dart +++ b/packages/windows_ui/lib/src/notifications/itoastnotification6.dart @@ -30,17 +30,17 @@ class IToastNotification6 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -51,7 +51,7 @@ class IToastNotification6 extends IInspectable { } set expiresOnReboot(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -59,7 +59,7 @@ class IToastNotification6 extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ui/lib/src/notifications/itoastnotificationfactory.dart b/packages/windows_ui/lib/src/notifications/itoastnotificationfactory.dart index 3f8d5ed7..90a1c6af 100644 --- a/packages/windows_ui/lib/src/notifications/itoastnotificationfactory.dart +++ b/packages/windows_ui/lib/src/notifications/itoastnotificationfactory.dart @@ -32,21 +32,17 @@ class IToastNotificationFactory extends IInspectable { ToastNotification createToastNotification(XmlDocument? content) { final value = calloc(); - final hr = - ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - VTablePointer content, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer content, - Pointer value)>()( - ptr.ref.lpVtbl, content.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer content, Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer content, + Pointer value)>()(lpVtbl, content.lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_ui/lib/src/notifications/itoastnotificationhistory.dart b/packages/windows_ui/lib/src/notifications/itoastnotificationhistory.dart index 8af20f82..c3597670 100644 --- a/packages/windows_ui/lib/src/notifications/itoastnotificationhistory.dart +++ b/packages/windows_ui/lib/src/notifications/itoastnotificationhistory.dart @@ -28,7 +28,7 @@ class IToastNotificationHistory extends IInspectable { void removeGroup(String group) { final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -37,13 +37,13 @@ class IToastNotificationHistory extends IInspectable { VTablePointer lpVtbl, IntPtr group)>>>() .value .asFunction()( - ptr.ref.lpVtbl, group.toHString()); + lpVtbl, group.toHString()); if (FAILED(hr)) throwWindowsException(hr); } void removeGroupWithId(String group, String applicationId) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -54,13 +54,13 @@ class IToastNotificationHistory extends IInspectable { .asFunction< int Function( VTablePointer lpVtbl, int group, int applicationId)>()( - ptr.ref.lpVtbl, group.toHString(), applicationId.toHString()); + lpVtbl, group.toHString(), applicationId.toHString()); if (FAILED(hr)) throwWindowsException(hr); } void removeGroupedTagWithId(String tag, String group, String applicationId) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -70,14 +70,14 @@ class IToastNotificationHistory extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int tag, int group, - int applicationId)>()(ptr.ref.lpVtbl, tag.toHString(), - group.toHString(), applicationId.toHString()); + int applicationId)>()( + lpVtbl, tag.toHString(), group.toHString(), applicationId.toHString()); if (FAILED(hr)) throwWindowsException(hr); } void removeGroupedTag(String tag, String group) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -87,13 +87,13 @@ class IToastNotificationHistory extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int tag, int group)>()( - ptr.ref.lpVtbl, tag.toHString(), group.toHString()); + lpVtbl, tag.toHString(), group.toHString()); if (FAILED(hr)) throwWindowsException(hr); } void remove(String tag) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -101,23 +101,23 @@ class IToastNotificationHistory extends IInspectable { HRESULT Function(VTablePointer lpVtbl, IntPtr tag)>>>() .value .asFunction()( - ptr.ref.lpVtbl, tag.toHString()); + lpVtbl, tag.toHString()); if (FAILED(hr)) throwWindowsException(hr); } void clear() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } void clearWithId(String applicationId) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -127,7 +127,7 @@ class IToastNotificationHistory extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int applicationId)>()( - ptr.ref.lpVtbl, applicationId.toHString()); + lpVtbl, applicationId.toHString()); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ui/lib/src/notifications/itoastnotificationhistory2.dart b/packages/windows_ui/lib/src/notifications/itoastnotificationhistory2.dart index 313dec6b..2a37eba4 100644 --- a/packages/windows_ui/lib/src/notifications/itoastnotificationhistory2.dart +++ b/packages/windows_ui/lib/src/notifications/itoastnotificationhistory2.dart @@ -31,7 +31,7 @@ class IToastNotificationHistory2 extends IInspectable { List getHistory() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -41,7 +41,7 @@ class IToastNotificationHistory2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -58,7 +58,7 @@ class IToastNotificationHistory2 extends IInspectable { final result = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -71,7 +71,7 @@ class IToastNotificationHistory2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int applicationId, Pointer result)>()( - ptr.ref.lpVtbl, applicationId.toHString(), result); + lpVtbl, applicationId.toHString(), result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerforuser.dart b/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerforuser.dart index 7a26ab52..5989e01f 100644 --- a/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerforuser.dart +++ b/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerforuser.dart @@ -35,7 +35,7 @@ class IToastNotificationManagerForUser extends IInspectable { ToastNotifier? createToastNotifier() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IToastNotificationManagerForUser extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -64,7 +64,7 @@ class IToastNotificationManagerForUser extends IInspectable { final result = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -77,7 +77,7 @@ class IToastNotificationManagerForUser extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int applicationId, Pointer result)>()( - ptr.ref.lpVtbl, applicationId.toHString(), result); + lpVtbl, applicationId.toHString(), result); if (FAILED(hr)) { free(result); @@ -95,7 +95,7 @@ class IToastNotificationManagerForUser extends IInspectable { ToastNotificationHistory? get history { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -105,7 +105,7 @@ class IToastNotificationManagerForUser extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -123,7 +123,7 @@ class IToastNotificationManagerForUser extends IInspectable { User? get user { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -133,7 +133,7 @@ class IToastNotificationManagerForUser extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerforuser2.dart b/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerforuser2.dart index 3a49d990..45253e8b 100644 --- a/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerforuser2.dart +++ b/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerforuser2.dart @@ -37,7 +37,7 @@ class IToastNotificationManagerForUser2 extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -50,7 +50,7 @@ class IToastNotificationManagerForUser2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int collectionId, Pointer operation)>()( - ptr.ref.lpVtbl, collectionId.toHString(), operation); + lpVtbl, collectionId.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -67,7 +67,7 @@ class IToastNotificationManagerForUser2 extends IInspectable { final operation = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -80,7 +80,7 @@ class IToastNotificationManagerForUser2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int collectionId, Pointer operation)>()( - ptr.ref.lpVtbl, collectionId.toHString(), operation); + lpVtbl, collectionId.toHString(), operation); if (FAILED(hr)) { free(operation); @@ -96,7 +96,7 @@ class IToastNotificationManagerForUser2 extends IInspectable { ToastCollectionManager? getToastCollectionManager() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -106,7 +106,7 @@ class IToastNotificationManagerForUser2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -124,7 +124,7 @@ class IToastNotificationManagerForUser2 extends IInspectable { ToastCollectionManager? getToastCollectionManagerWithAppId(String appId) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -135,7 +135,7 @@ class IToastNotificationManagerForUser2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int appId, Pointer result)>()( - ptr.ref.lpVtbl, appId.toHString(), result); + lpVtbl, appId.toHString(), result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerforuser3.dart b/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerforuser3.dart index 01f5e015..e2ada0fa 100644 --- a/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerforuser3.dart +++ b/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerforuser3.dart @@ -35,17 +35,17 @@ class IToastNotificationManagerForUser3 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -59,18 +59,17 @@ class IToastNotificationManagerForUser3 extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -82,7 +81,7 @@ class IToastNotificationManagerForUser3 extends IInspectable { void remove_NotificationModeChanged(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -91,7 +90,7 @@ class IToastNotificationManagerForUser3 extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerstatics.dart b/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerstatics.dart index 5ecd0d11..9f66c045 100644 --- a/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerstatics.dart +++ b/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerstatics.dart @@ -35,7 +35,7 @@ class IToastNotificationManagerStatics extends IInspectable { ToastNotifier? createToastNotifier() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -45,7 +45,7 @@ class IToastNotificationManagerStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -64,7 +64,7 @@ class IToastNotificationManagerStatics extends IInspectable { final result = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -77,7 +77,7 @@ class IToastNotificationManagerStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int applicationId, Pointer result)>()( - ptr.ref.lpVtbl, applicationId.toHString(), result); + lpVtbl, applicationId.toHString(), result); if (FAILED(hr)) { free(result); @@ -95,18 +95,17 @@ class IToastNotificationManagerStatics extends IInspectable { XmlDocument? getTemplateContent(ToastTemplateType type) { final result = calloc(); - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 type, - Pointer result)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int type, - Pointer result)>()( - ptr.ref.lpVtbl, type.value, result); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 type, + Pointer result)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int type, + Pointer result)>()(lpVtbl, type.value, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerstatics2.dart b/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerstatics2.dart index ca3af78b..998cf250 100644 --- a/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerstatics2.dart +++ b/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerstatics2.dart @@ -33,7 +33,7 @@ class IToastNotificationManagerStatics2 extends IInspectable { ToastNotificationHistory? get history { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IToastNotificationManagerStatics2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerstatics4.dart b/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerstatics4.dart index d814d9af..ce3a49de 100644 --- a/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerstatics4.dart +++ b/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerstatics4.dart @@ -35,7 +35,7 @@ class IToastNotificationManagerStatics4 extends IInspectable { ToastNotificationManagerForUser? getForUser(User? user) { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,11 +44,8 @@ class IToastNotificationManagerStatics4 extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - VTablePointer user, - Pointer - result)>()(ptr.ref.lpVtbl, user.lpVtbl, result); + int Function(VTablePointer lpVtbl, VTablePointer user, + Pointer result)>()(lpVtbl, user.lpVtbl, result); if (FAILED(hr)) { free(result); @@ -64,7 +61,7 @@ class IToastNotificationManagerStatics4 extends IInspectable { } void configureNotificationMirroring(NotificationMirroring value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -72,7 +69,7 @@ class IToastNotificationManagerStatics4 extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerstatics5.dart b/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerstatics5.dart index 3ddc0896..0d3c043d 100644 --- a/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerstatics5.dart +++ b/packages/windows_ui/lib/src/notifications/itoastnotificationmanagerstatics5.dart @@ -33,7 +33,7 @@ class IToastNotificationManagerStatics5 extends IInspectable { ToastNotificationManagerForUser? getDefault() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IToastNotificationManagerStatics5 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ui/lib/src/notifications/itoastnotifier.dart b/packages/windows_ui/lib/src/notifications/itoastnotifier.dart index 0901c542..a6587ff5 100644 --- a/packages/windows_ui/lib/src/notifications/itoastnotifier.dart +++ b/packages/windows_ui/lib/src/notifications/itoastnotifier.dart @@ -31,35 +31,33 @@ class IToastNotifier extends IInspectable { interface.cast(IToastNotifier.fromPtr, IID_IToastNotifier); void show(ToastNotification? notification) { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer notification)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, VTablePointer notification)>()( - ptr.ref.lpVtbl, notification.lpVtbl); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, VTablePointer notification)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + VTablePointer notification)>()(lpVtbl, notification.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } void hide(ToastNotification? notification) { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer notification)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, VTablePointer notification)>()( - ptr.ref.lpVtbl, notification.lpVtbl); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, VTablePointer notification)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + VTablePointer notification)>()(lpVtbl, notification.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -68,17 +66,17 @@ class IToastNotifier extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -89,35 +87,33 @@ class IToastNotifier extends IInspectable { } void addToSchedule(ScheduledToastNotification? scheduledToast) { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer scheduledToast)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, VTablePointer scheduledToast)>()( - ptr.ref.lpVtbl, scheduledToast.lpVtbl); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, VTablePointer scheduledToast)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + VTablePointer scheduledToast)>()(lpVtbl, scheduledToast.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } void removeFromSchedule(ScheduledToastNotification? scheduledToast) { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer scheduledToast)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, VTablePointer scheduledToast)>()( - ptr.ref.lpVtbl, scheduledToast.lpVtbl); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, VTablePointer scheduledToast)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + VTablePointer scheduledToast)>()(lpVtbl, scheduledToast.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -125,7 +121,7 @@ class IToastNotifier extends IInspectable { List getScheduledToastNotifications() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -135,7 +131,7 @@ class IToastNotifier extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); diff --git a/packages/windows_ui/lib/src/notifications/itoastnotifier2.dart b/packages/windows_ui/lib/src/notifications/itoastnotifier2.dart index c687f387..3161c461 100644 --- a/packages/windows_ui/lib/src/notifications/itoastnotifier2.dart +++ b/packages/windows_ui/lib/src/notifications/itoastnotifier2.dart @@ -35,7 +35,7 @@ class IToastNotifier2 extends IInspectable { try { final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -50,11 +50,7 @@ class IToastNotifier2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer data, int tag, int group, Pointer result)>()( - ptr.ref.lpVtbl, - data.lpVtbl, - tag.toHString(), - group.toHString(), - result); + lpVtbl, data.lpVtbl, tag.toHString(), group.toHString(), result); if (FAILED(hr)) throwWindowsException(hr); @@ -69,7 +65,7 @@ class IToastNotifier2 extends IInspectable { try { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -83,7 +79,7 @@ class IToastNotifier2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer data, int tag, Pointer result)>()( - ptr.ref.lpVtbl, data.lpVtbl, tag.toHString(), result); + lpVtbl, data.lpVtbl, tag.toHString(), result); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_ui/lib/src/notifications/itoastnotifier3.dart b/packages/windows_ui/lib/src/notifications/itoastnotifier3.dart index 57dca050..82524209 100644 --- a/packages/windows_ui/lib/src/notifications/itoastnotifier3.dart +++ b/packages/windows_ui/lib/src/notifications/itoastnotifier3.dart @@ -32,18 +32,17 @@ class IToastNotifier3 extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +54,7 @@ class IToastNotifier3 extends IInspectable { void remove_ScheduledToastNotificationShowing(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -64,7 +63,7 @@ class IToastNotifier3 extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ui/lib/src/popups/imessagedialog.dart b/packages/windows_ui/lib/src/popups/imessagedialog.dart index b20ac00b..035cfbb9 100644 --- a/packages/windows_ui/lib/src/popups/imessagedialog.dart +++ b/packages/windows_ui/lib/src/popups/imessagedialog.dart @@ -33,7 +33,7 @@ class IMessageDialog extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IMessageDialog extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +55,7 @@ class IMessageDialog extends IInspectable { set title(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IMessageDialog extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -72,7 +72,7 @@ class IMessageDialog extends IInspectable { IVector? get commands { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -82,7 +82,7 @@ class IMessageDialog extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -103,7 +103,7 @@ class IMessageDialog extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -113,7 +113,7 @@ class IMessageDialog extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -125,7 +125,7 @@ class IMessageDialog extends IInspectable { set defaultCommandIndex(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -134,7 +134,7 @@ class IMessageDialog extends IInspectable { VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -143,7 +143,7 @@ class IMessageDialog extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -153,7 +153,7 @@ class IMessageDialog extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -165,7 +165,7 @@ class IMessageDialog extends IInspectable { set cancelCommandIndex(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(12) .cast< Pointer< @@ -174,7 +174,7 @@ class IMessageDialog extends IInspectable { VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -183,7 +183,7 @@ class IMessageDialog extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -193,7 +193,7 @@ class IMessageDialog extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -205,7 +205,7 @@ class IMessageDialog extends IInspectable { set content(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(14) .cast< Pointer< @@ -214,7 +214,7 @@ class IMessageDialog extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -222,7 +222,7 @@ class IMessageDialog extends IInspectable { Future showAsync() { final messageDialogAsyncOperation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -233,7 +233,7 @@ class IMessageDialog extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, Pointer messageDialogAsyncOperation)>()( - ptr.ref.lpVtbl, messageDialogAsyncOperation); + lpVtbl, messageDialogAsyncOperation); if (FAILED(hr)) { free(messageDialogAsyncOperation); @@ -250,7 +250,7 @@ class IMessageDialog extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -260,7 +260,7 @@ class IMessageDialog extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -272,7 +272,7 @@ class IMessageDialog extends IInspectable { set options(MessageDialogOptions value) { final hr = - ptr.ref.vtable + vtable .elementAt(17) .cast< Pointer< @@ -281,7 +281,7 @@ class IMessageDialog extends IInspectable { VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.value); + lpVtbl, value.value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ui/lib/src/popups/imessagedialogfactory.dart b/packages/windows_ui/lib/src/popups/imessagedialogfactory.dart index 96fd2b59..ea1eac23 100644 --- a/packages/windows_ui/lib/src/popups/imessagedialogfactory.dart +++ b/packages/windows_ui/lib/src/popups/imessagedialogfactory.dart @@ -31,7 +31,7 @@ class IMessageDialogFactory extends IInspectable { MessageDialog create(String content) { final messageDialog = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IMessageDialogFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int content, Pointer messageDialog)>()( - ptr.ref.lpVtbl, content.toHString(), messageDialog); + lpVtbl, content.toHString(), messageDialog); if (FAILED(hr)) { free(messageDialog); @@ -55,7 +55,7 @@ class IMessageDialogFactory extends IInspectable { MessageDialog createWithTitle(String content, String title) { final messageDialog = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -66,7 +66,7 @@ class IMessageDialogFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int content, int title, Pointer messageDialog)>()( - ptr.ref.lpVtbl, content.toHString(), title.toHString(), messageDialog); + lpVtbl, content.toHString(), title.toHString(), messageDialog); if (FAILED(hr)) { free(messageDialog); diff --git a/packages/windows_ui/lib/src/popups/iuicommand.dart b/packages/windows_ui/lib/src/popups/iuicommand.dart index 38f6a8cc..54e931e6 100644 --- a/packages/windows_ui/lib/src/popups/iuicommand.dart +++ b/packages/windows_ui/lib/src/popups/iuicommand.dart @@ -30,7 +30,7 @@ class IUICommand extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -40,7 +40,7 @@ class IUICommand extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -52,7 +52,7 @@ class IUICommand extends IInspectable { set label(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -61,7 +61,7 @@ class IUICommand extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -69,7 +69,7 @@ class IUICommand extends IInspectable { Pointer get invoked { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -79,7 +79,7 @@ class IUICommand extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -90,7 +90,7 @@ class IUICommand extends IInspectable { } set invoked(Pointer value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -100,7 +100,7 @@ class IUICommand extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value.ref.lpVtbl); + lpVtbl, value.ref.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -108,7 +108,7 @@ class IUICommand extends IInspectable { Object? get id { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -118,7 +118,7 @@ class IUICommand extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -134,7 +134,7 @@ class IUICommand extends IInspectable { } set id(Object? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -144,7 +144,7 @@ class IUICommand extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.boxValue().lpVtbl ?? nullptr); + lpVtbl, value?.boxValue().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ui/lib/src/popups/iuicommandfactory.dart b/packages/windows_ui/lib/src/popups/iuicommandfactory.dart index 46d4f118..4469799c 100644 --- a/packages/windows_ui/lib/src/popups/iuicommandfactory.dart +++ b/packages/windows_ui/lib/src/popups/iuicommandfactory.dart @@ -31,7 +31,7 @@ class IUICommandFactory extends IInspectable { UICommand create(String label) { final instance = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IUICommandFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int label, Pointer instance)>()( - ptr.ref.lpVtbl, label.toHString(), instance); + lpVtbl, label.toHString(), instance); if (FAILED(hr)) { free(instance); @@ -56,7 +56,7 @@ class IUICommandFactory extends IInspectable { final instance = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -70,7 +70,7 @@ class IUICommandFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int label, VTablePointer action, Pointer instance)>()( - ptr.ref.lpVtbl, label.toHString(), action.ref.lpVtbl, instance); + lpVtbl, label.toHString(), action.ref.lpVtbl, instance); if (FAILED(hr)) { free(instance); @@ -84,7 +84,7 @@ class IUICommandFactory extends IInspectable { String label, Pointer action, Object? commandId) { final instance = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -102,12 +102,8 @@ class IUICommandFactory extends IInspectable { int label, VTablePointer action, VTablePointer commandId, - Pointer instance)>()( - ptr.ref.lpVtbl, - label.toHString(), - action.ref.lpVtbl, - commandId?.boxValue().lpVtbl ?? nullptr, - instance); + Pointer instance)>()(lpVtbl, label.toHString(), + action.ref.lpVtbl, commandId?.boxValue().lpVtbl ?? nullptr, instance); if (FAILED(hr)) { free(instance); diff --git a/packages/windows_ui/lib/src/uiautomation/core/iautomationremoteoperationresult.dart b/packages/windows_ui/lib/src/uiautomation/core/iautomationremoteoperationresult.dart index b31d2c0e..bf84d607 100644 --- a/packages/windows_ui/lib/src/uiautomation/core/iautomationremoteoperationresult.dart +++ b/packages/windows_ui/lib/src/uiautomation/core/iautomationremoteoperationresult.dart @@ -35,17 +35,17 @@ class IAutomationRemoteOperationResult extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -59,17 +59,17 @@ class IAutomationRemoteOperationResult extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -83,17 +83,17 @@ class IAutomationRemoteOperationResult extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -109,24 +109,22 @@ class IAutomationRemoteOperationResult extends IInspectable { try { final operandIdNativeStructPtr = operandId.toNative(); - final hr = - ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - NativeAutomationRemoteOperationOperandId - operandId, - Pointer result)>>>() - .value - .asFunction< - int Function( + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( VTablePointer lpVtbl, NativeAutomationRemoteOperationOperandId operandId, - Pointer result)>()( - ptr.ref.lpVtbl, operandIdNativeStructPtr.ref, result); + Pointer result)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, + NativeAutomationRemoteOperationOperandId operandId, + Pointer + result)>()(lpVtbl, operandIdNativeStructPtr.ref, result); free(operandIdNativeStructPtr); @@ -142,7 +140,7 @@ class IAutomationRemoteOperationResult extends IInspectable { final result = calloc(); final operandIdNativeStructPtr = operandId.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -157,7 +155,7 @@ class IAutomationRemoteOperationResult extends IInspectable { VTablePointer lpVtbl, NativeAutomationRemoteOperationOperandId operandId, Pointer result)>()( - ptr.ref.lpVtbl, operandIdNativeStructPtr.ref, result); + lpVtbl, operandIdNativeStructPtr.ref, result); free(operandIdNativeStructPtr); diff --git a/packages/windows_ui/lib/src/uiautomation/core/icoreautomationconnectionboundobjectprovider.dart b/packages/windows_ui/lib/src/uiautomation/core/icoreautomationconnectionboundobjectprovider.dart index 865ee3dd..ab4665a6 100644 --- a/packages/windows_ui/lib/src/uiautomation/core/icoreautomationconnectionboundobjectprovider.dart +++ b/packages/windows_ui/lib/src/uiautomation/core/icoreautomationconnectionboundobjectprovider.dart @@ -35,17 +35,17 @@ class ICoreAutomationConnectionBoundObjectProvider extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_ui/lib/src/uiautomation/core/icoreautomationregistrarstatics.dart b/packages/windows_ui/lib/src/uiautomation/core/icoreautomationregistrarstatics.dart index 5c23a926..6a49aac5 100644 --- a/packages/windows_ui/lib/src/uiautomation/core/icoreautomationregistrarstatics.dart +++ b/packages/windows_ui/lib/src/uiautomation/core/icoreautomationregistrarstatics.dart @@ -36,24 +36,23 @@ class ICoreAutomationRegistrarStatics extends IInspectable { try { final guidNativeStructPtr = guid.toNativeGUID(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - GUID guid, - Pointer - result)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, - GUID guid, - Pointer - result)>()( - ptr.ref.lpVtbl, guidNativeStructPtr.ref, result); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, + GUID guid, + Pointer + result)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, + GUID guid, + Pointer + result)>()(lpVtbl, guidNativeStructPtr.ref, result); free(guidNativeStructPtr); @@ -69,7 +68,7 @@ class ICoreAutomationRegistrarStatics extends IInspectable { AutomationAnnotationTypeRegistration registration) { final registrationNativeStructPtr = registration.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -82,7 +81,7 @@ class ICoreAutomationRegistrarStatics extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, NativeAutomationAnnotationTypeRegistration registration)>()( - ptr.ref.lpVtbl, registrationNativeStructPtr.ref); + lpVtbl, registrationNativeStructPtr.ref); free(registrationNativeStructPtr); diff --git a/packages/windows_ui/lib/src/uiautomation/core/icoreautomationremoteoperation.dart b/packages/windows_ui/lib/src/uiautomation/core/icoreautomationremoteoperation.dart index eeb4bdcd..e546c406 100644 --- a/packages/windows_ui/lib/src/uiautomation/core/icoreautomationremoteoperation.dart +++ b/packages/windows_ui/lib/src/uiautomation/core/icoreautomationremoteoperation.dart @@ -37,7 +37,7 @@ class ICoreAutomationRemoteOperation extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -47,7 +47,7 @@ class ICoreAutomationRemoteOperation extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int opcode, - Pointer result)>()(ptr.ref.lpVtbl, opcode, result); + Pointer result)>()(lpVtbl, opcode, result); if (FAILED(hr)) throwWindowsException(hr); @@ -61,7 +61,7 @@ class ICoreAutomationRemoteOperation extends IInspectable { AutomationElement? element) { final operandIdNativeStructPtr = operandId.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -76,7 +76,7 @@ class ICoreAutomationRemoteOperation extends IInspectable { VTablePointer lpVtbl, NativeAutomationRemoteOperationOperandId operandId, VTablePointer element)>()( - ptr.ref.lpVtbl, operandIdNativeStructPtr.ref, element.lpVtbl); + lpVtbl, operandIdNativeStructPtr.ref, element.lpVtbl); free(operandIdNativeStructPtr); @@ -87,7 +87,7 @@ class ICoreAutomationRemoteOperation extends IInspectable { AutomationTextRange? textRange) { final operandIdNativeStructPtr = operandId.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -102,7 +102,7 @@ class ICoreAutomationRemoteOperation extends IInspectable { VTablePointer lpVtbl, NativeAutomationRemoteOperationOperandId operandId, VTablePointer textRange)>()( - ptr.ref.lpVtbl, operandIdNativeStructPtr.ref, textRange.lpVtbl); + lpVtbl, operandIdNativeStructPtr.ref, textRange.lpVtbl); free(operandIdNativeStructPtr); @@ -112,7 +112,7 @@ class ICoreAutomationRemoteOperation extends IInspectable { void addToResults(AutomationRemoteOperationOperandId operandId) { final operandIdNativeStructPtr = operandId.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -124,7 +124,7 @@ class ICoreAutomationRemoteOperation extends IInspectable { int Function( VTablePointer lpVtbl, NativeAutomationRemoteOperationOperandId - operandId)>()(ptr.ref.lpVtbl, operandIdNativeStructPtr.ref); + operandId)>()(lpVtbl, operandIdNativeStructPtr.ref); free(operandIdNativeStructPtr); @@ -135,7 +135,7 @@ class ICoreAutomationRemoteOperation extends IInspectable { final result = calloc(); final bytecodeBufferArray = bytecodeBuffer.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -152,7 +152,7 @@ class ICoreAutomationRemoteOperation extends IInspectable { int bytecodeBufferSize, Pointer bytecodeBuffer, Pointer result)>()( - ptr.ref.lpVtbl, bytecodeBuffer.length, bytecodeBufferArray, result); + lpVtbl, bytecodeBuffer.length, bytecodeBufferArray, result); free(bytecodeBufferArray); diff --git a/packages/windows_ui/lib/src/uiautomation/core/icoreautomationremoteoperation2.dart b/packages/windows_ui/lib/src/uiautomation/core/icoreautomationremoteoperation2.dart index f94a9908..8c7111a2 100644 --- a/packages/windows_ui/lib/src/uiautomation/core/icoreautomationremoteoperation2.dart +++ b/packages/windows_ui/lib/src/uiautomation/core/icoreautomationremoteoperation2.dart @@ -35,7 +35,7 @@ class ICoreAutomationRemoteOperation2 extends IInspectable { AutomationConnectionBoundObject? connectionBoundObject) { final operandIdNativeStructPtr = operandId.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -49,8 +49,8 @@ class ICoreAutomationRemoteOperation2 extends IInspectable { int Function( VTablePointer lpVtbl, NativeAutomationRemoteOperationOperandId operandId, - VTablePointer connectionBoundObject)>()(ptr.ref.lpVtbl, - operandIdNativeStructPtr.ref, connectionBoundObject.lpVtbl); + VTablePointer connectionBoundObject)>()( + lpVtbl, operandIdNativeStructPtr.ref, connectionBoundObject.lpVtbl); free(operandIdNativeStructPtr); diff --git a/packages/windows_ui/lib/src/uiautomation/core/icoreautomationremoteoperationcontext.dart b/packages/windows_ui/lib/src/uiautomation/core/icoreautomationremoteoperationcontext.dart index 106550f2..903d26c3 100644 --- a/packages/windows_ui/lib/src/uiautomation/core/icoreautomationremoteoperationcontext.dart +++ b/packages/windows_ui/lib/src/uiautomation/core/icoreautomationremoteoperationcontext.dart @@ -34,7 +34,7 @@ class ICoreAutomationRemoteOperationContext extends IInspectable { final result = calloc(); final idNativeStructPtr = id.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -49,7 +49,7 @@ class ICoreAutomationRemoteOperationContext extends IInspectable { VTablePointer lpVtbl, NativeAutomationRemoteOperationOperandId id, Pointer result)>()( - ptr.ref.lpVtbl, idNativeStructPtr.ref, result); + lpVtbl, idNativeStructPtr.ref, result); free(idNativeStructPtr); @@ -69,7 +69,7 @@ class ICoreAutomationRemoteOperationContext extends IInspectable { void setOperand(AutomationRemoteOperationOperandId id, Object? operand) { final idNativeStructPtr = id.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -83,8 +83,8 @@ class ICoreAutomationRemoteOperationContext extends IInspectable { int Function( VTablePointer lpVtbl, NativeAutomationRemoteOperationOperandId id, - VTablePointer operand)>()(ptr.ref.lpVtbl, - idNativeStructPtr.ref, operand?.boxValue().lpVtbl ?? nullptr); + VTablePointer operand)>()( + lpVtbl, idNativeStructPtr.ref, operand?.boxValue().lpVtbl ?? nullptr); free(idNativeStructPtr); @@ -96,7 +96,7 @@ class ICoreAutomationRemoteOperationContext extends IInspectable { final idNativeStructPtr = id.toNative(); final operandInterfaceIdNativeStructPtr = operandInterfaceId.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -113,7 +113,7 @@ class ICoreAutomationRemoteOperationContext extends IInspectable { NativeAutomationRemoteOperationOperandId id, VTablePointer operand, GUID operandInterfaceId)>()( - ptr.ref.lpVtbl, + lpVtbl, idNativeStructPtr.ref, operand?.boxValue().lpVtbl ?? nullptr, operandInterfaceIdNativeStructPtr.ref); diff --git a/packages/windows_ui/lib/src/uiautomation/core/icoreautomationremoteoperationextensionprovider.dart b/packages/windows_ui/lib/src/uiautomation/core/icoreautomationremoteoperationextensionprovider.dart index e9359417..69685d4a 100644 --- a/packages/windows_ui/lib/src/uiautomation/core/icoreautomationremoteoperationextensionprovider.dart +++ b/packages/windows_ui/lib/src/uiautomation/core/icoreautomationremoteoperationextensionprovider.dart @@ -42,7 +42,7 @@ class ICoreAutomationRemoteOperationExtensionProvider extends IInspectable { final allocator = Arena(); final operandIdsArray = operandIds.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -62,12 +62,8 @@ class ICoreAutomationRemoteOperationExtensionProvider extends IInspectable { VTablePointer context, int operandIdsSize, Pointer - operandIds)>()( - ptr.ref.lpVtbl, - extensionIdNativeStructPtr.ref, - context.lpVtbl, - operandIds.length, - operandIdsArray); + operandIds)>()(lpVtbl, extensionIdNativeStructPtr.ref, + context.lpVtbl, operandIds.length, operandIdsArray); free(extensionIdNativeStructPtr); allocator.releaseAll(); @@ -82,7 +78,7 @@ class ICoreAutomationRemoteOperationExtensionProvider extends IInspectable { final extensionIdNativeStructPtr = extensionId.toNativeGUID(); final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -93,7 +89,7 @@ class ICoreAutomationRemoteOperationExtensionProvider extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, GUID extensionId, Pointer result)>()( - ptr.ref.lpVtbl, extensionIdNativeStructPtr.ref, result); + lpVtbl, extensionIdNativeStructPtr.ref, result); free(extensionIdNativeStructPtr); diff --git a/packages/windows_ui/lib/src/uiautomation/core/iremoteautomationclientsession.dart b/packages/windows_ui/lib/src/uiautomation/core/iremoteautomationclientsession.dart index 998ef9b6..c0f47040 100644 --- a/packages/windows_ui/lib/src/uiautomation/core/iremoteautomationclientsession.dart +++ b/packages/windows_ui/lib/src/uiautomation/core/iremoteautomationclientsession.dart @@ -32,21 +32,21 @@ class IRemoteAutomationClientSession extends IInspectable { IID_IRemoteAutomationClientSession); void start() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } void stop() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -55,7 +55,7 @@ class IRemoteAutomationClientSession extends IInspectable { int remoteProcessId, Object? parentAutomationElement) { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -74,7 +74,7 @@ class IRemoteAutomationClientSession extends IInspectable { int remoteProcessId, VTablePointer parentAutomationElement, Pointer operation)>()( - ptr.ref.lpVtbl, + lpVtbl, remoteWindowId, remoteProcessId, parentAutomationElement?.boxValue().lpVtbl ?? nullptr, @@ -95,17 +95,17 @@ class IRemoteAutomationClientSession extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -119,18 +119,17 @@ class IRemoteAutomationClientSession extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -142,7 +141,7 @@ class IRemoteAutomationClientSession extends IInspectable { void remove_ConnectionRequested(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(11) .cast< Pointer< @@ -151,7 +150,7 @@ class IRemoteAutomationClientSession extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -160,18 +159,17 @@ class IRemoteAutomationClientSession extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(12) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(12) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -183,7 +181,7 @@ class IRemoteAutomationClientSession extends IInspectable { void remove_Disconnected(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(13) .cast< Pointer< @@ -192,7 +190,7 @@ class IRemoteAutomationClientSession extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ui/lib/src/uiautomation/core/iremoteautomationclientsessionfactory.dart b/packages/windows_ui/lib/src/uiautomation/core/iremoteautomationclientsessionfactory.dart index 99231c94..9c7dce25 100644 --- a/packages/windows_ui/lib/src/uiautomation/core/iremoteautomationclientsessionfactory.dart +++ b/packages/windows_ui/lib/src/uiautomation/core/iremoteautomationclientsessionfactory.dart @@ -33,18 +33,17 @@ class IRemoteAutomationClientSessionFactory extends IInspectable { RemoteAutomationClientSession createInstance(String name) { final value = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, IntPtr name, - Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int name, - Pointer value)>()( - ptr.ref.lpVtbl, name.toHString(), value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, IntPtr name, + Pointer value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int name, + Pointer value)>()(lpVtbl, name.toHString(), value); if (FAILED(hr)) { free(value); @@ -58,7 +57,7 @@ class IRemoteAutomationClientSessionFactory extends IInspectable { final value = calloc(); final sessionIdNativeStructPtr = sessionId.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -69,7 +68,7 @@ class IRemoteAutomationClientSessionFactory extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int name, GUID sessionId, Pointer value)>()( - ptr.ref.lpVtbl, name.toHString(), sessionIdNativeStructPtr.ref, value); + lpVtbl, name.toHString(), sessionIdNativeStructPtr.ref, value); free(sessionIdNativeStructPtr); diff --git a/packages/windows_ui/lib/src/uiautomation/core/iremoteautomationserverstatics.dart b/packages/windows_ui/lib/src/uiautomation/core/iremoteautomationserverstatics.dart index a3e91c21..6e54c4a5 100644 --- a/packages/windows_ui/lib/src/uiautomation/core/iremoteautomationserverstatics.dart +++ b/packages/windows_ui/lib/src/uiautomation/core/iremoteautomationserverstatics.dart @@ -31,18 +31,16 @@ class IRemoteAutomationServerStatics extends IInspectable { void reportSession(Guid sessionId) { final sessionIdNativeStructPtr = sessionId.toNativeGUID(); - final hr = - ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, GUID sessionId)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, GUID sessionId)>()( - ptr.ref.lpVtbl, sessionIdNativeStructPtr.ref); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, GUID sessionId)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + GUID sessionId)>()(lpVtbl, sessionIdNativeStructPtr.ref); free(sessionIdNativeStructPtr); diff --git a/packages/windows_ui/lib/src/uiautomation/core/iremoteautomationwindow.dart b/packages/windows_ui/lib/src/uiautomation/core/iremoteautomationwindow.dart index a0d0fc14..5bdf8500 100644 --- a/packages/windows_ui/lib/src/uiautomation/core/iremoteautomationwindow.dart +++ b/packages/windows_ui/lib/src/uiautomation/core/iremoteautomationwindow.dart @@ -29,7 +29,7 @@ class IRemoteAutomationWindow extends IInspectable { Object? get automationProvider { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -39,7 +39,7 @@ class IRemoteAutomationWindow extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -57,7 +57,7 @@ class IRemoteAutomationWindow extends IInspectable { Future unregisterAsync() { final operation = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -67,7 +67,7 @@ class IRemoteAutomationWindow extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer operation)>()(ptr.ref.lpVtbl, operation); + Pointer operation)>()(lpVtbl, operation); if (FAILED(hr)) { free(operation); diff --git a/packages/windows_ui/lib/src/uiautomation/iautomationconnection.dart b/packages/windows_ui/lib/src/uiautomation/iautomationconnection.dart index f9a4716b..ec6dfcac 100644 --- a/packages/windows_ui/lib/src/uiautomation/iautomationconnection.dart +++ b/packages/windows_ui/lib/src/uiautomation/iautomationconnection.dart @@ -30,17 +30,17 @@ class IAutomationConnection extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IAutomationConnection extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IAutomationConnection extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -78,7 +78,7 @@ class IAutomationConnection extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -88,7 +88,7 @@ class IAutomationConnection extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_ui/lib/src/uiautomation/iautomationconnectionboundobject.dart b/packages/windows_ui/lib/src/uiautomation/iautomationconnectionboundobject.dart index 8b614195..6bb52c8e 100644 --- a/packages/windows_ui/lib/src/uiautomation/iautomationconnectionboundobject.dart +++ b/packages/windows_ui/lib/src/uiautomation/iautomationconnectionboundobject.dart @@ -33,7 +33,7 @@ class IAutomationConnectionBoundObject extends IInspectable { AutomationConnection? get connection { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IAutomationConnectionBoundObject extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); diff --git a/packages/windows_ui/lib/src/uiautomation/iautomationelement.dart b/packages/windows_ui/lib/src/uiautomation/iautomationelement.dart index 0fcb0c40..4ee66521 100644 --- a/packages/windows_ui/lib/src/uiautomation/iautomationelement.dart +++ b/packages/windows_ui/lib/src/uiautomation/iautomationelement.dart @@ -30,17 +30,17 @@ class IAutomationElement extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -54,7 +54,7 @@ class IAutomationElement extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -64,7 +64,7 @@ class IAutomationElement extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -78,7 +78,7 @@ class IAutomationElement extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -88,7 +88,7 @@ class IAutomationElement extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_ui/lib/src/viewmanagement/iuisettings.dart b/packages/windows_ui/lib/src/viewmanagement/iuisettings.dart index 25be55f8..774d4f3d 100644 --- a/packages/windows_ui/lib/src/viewmanagement/iuisettings.dart +++ b/packages/windows_ui/lib/src/viewmanagement/iuisettings.dart @@ -34,17 +34,17 @@ class IUISettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -58,7 +58,7 @@ class IUISettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast< Pointer< @@ -68,7 +68,7 @@ class IUISettings extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -82,7 +82,7 @@ class IUISettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -92,7 +92,7 @@ class IUISettings extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -106,7 +106,7 @@ class IUISettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -116,7 +116,7 @@ class IUISettings extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -130,7 +130,7 @@ class IUISettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -140,7 +140,7 @@ class IUISettings extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -154,7 +154,7 @@ class IUISettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -164,7 +164,7 @@ class IUISettings extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -178,17 +178,17 @@ class IUISettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(12) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(12) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -202,17 +202,17 @@ class IUISettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(13) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(13) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -226,7 +226,7 @@ class IUISettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -236,7 +236,7 @@ class IUISettings extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -250,7 +250,7 @@ class IUISettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(15) .cast< Pointer< @@ -260,7 +260,7 @@ class IUISettings extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -274,7 +274,7 @@ class IUISettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -284,7 +284,7 @@ class IUISettings extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -298,7 +298,7 @@ class IUISettings extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -308,7 +308,7 @@ class IUISettings extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -323,7 +323,7 @@ class IUISettings extends IInspectable { try { final hr = - ptr.ref.vtable + vtable .elementAt(18) .cast< Pointer< @@ -336,7 +336,7 @@ class IUISettings extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int desiredElement, Pointer value)>()( - ptr.ref.lpVtbl, desiredElement.value, value); + lpVtbl, desiredElement.value, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/windows_ui/lib/src/viewmanagement/iuisettings2.dart b/packages/windows_ui/lib/src/viewmanagement/iuisettings2.dart index 7a990bf0..cc479b1e 100644 --- a/packages/windows_ui/lib/src/viewmanagement/iuisettings2.dart +++ b/packages/windows_ui/lib/src/viewmanagement/iuisettings2.dart @@ -32,7 +32,7 @@ class IUISettings2 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class IUISettings2 extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -57,7 +57,7 @@ class IUISettings2 extends IInspectable { try { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -70,7 +70,7 @@ class IUISettings2 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer handler, Pointer cookie)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, cookie); + lpVtbl, handler.ref.lpVtbl, cookie); if (FAILED(hr)) throwWindowsException(hr); @@ -82,7 +82,7 @@ class IUISettings2 extends IInspectable { void remove_TextScaleFactorChanged(int cookie) { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -91,7 +91,7 @@ class IUISettings2 extends IInspectable { VTablePointer lpVtbl, IntPtr cookie)>>>() .value .asFunction()( - ptr.ref.lpVtbl, cookie); + lpVtbl, cookie); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ui/lib/src/viewmanagement/iuisettings3.dart b/packages/windows_ui/lib/src/viewmanagement/iuisettings3.dart index 43876afc..fc624bc5 100644 --- a/packages/windows_ui/lib/src/viewmanagement/iuisettings3.dart +++ b/packages/windows_ui/lib/src/viewmanagement/iuisettings3.dart @@ -35,7 +35,7 @@ class IUISettings3 extends IInspectable { try { final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -48,7 +48,7 @@ class IUISettings3 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int desiredColor, Pointer value)>()( - ptr.ref.lpVtbl, desiredColor.value, value); + lpVtbl, desiredColor.value, value); if (FAILED(hr)) throwWindowsException(hr); @@ -63,7 +63,7 @@ class IUISettings3 extends IInspectable { try { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -76,7 +76,7 @@ class IUISettings3 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer handler, Pointer cookie)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, cookie); + lpVtbl, handler.ref.lpVtbl, cookie); if (FAILED(hr)) throwWindowsException(hr); @@ -88,7 +88,7 @@ class IUISettings3 extends IInspectable { void remove_ColorValuesChanged(int cookie) { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -97,7 +97,7 @@ class IUISettings3 extends IInspectable { VTablePointer lpVtbl, IntPtr cookie)>>>() .value .asFunction()( - ptr.ref.lpVtbl, cookie); + lpVtbl, cookie); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ui/lib/src/viewmanagement/iuisettings4.dart b/packages/windows_ui/lib/src/viewmanagement/iuisettings4.dart index 9854f15b..3d701f39 100644 --- a/packages/windows_ui/lib/src/viewmanagement/iuisettings4.dart +++ b/packages/windows_ui/lib/src/viewmanagement/iuisettings4.dart @@ -32,17 +32,17 @@ class IUISettings4 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -57,7 +57,7 @@ class IUISettings4 extends IInspectable { try { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -70,7 +70,7 @@ class IUISettings4 extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer handler, Pointer cookie)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, cookie); + lpVtbl, handler.ref.lpVtbl, cookie); if (FAILED(hr)) throwWindowsException(hr); @@ -82,7 +82,7 @@ class IUISettings4 extends IInspectable { void remove_AdvancedEffectsEnabledChanged(int cookie) { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -91,7 +91,7 @@ class IUISettings4 extends IInspectable { VTablePointer lpVtbl, IntPtr cookie)>>>() .value .asFunction()( - ptr.ref.lpVtbl, cookie); + lpVtbl, cookie); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ui/lib/src/viewmanagement/iuisettings5.dart b/packages/windows_ui/lib/src/viewmanagement/iuisettings5.dart index 2d96ad99..420e2da6 100644 --- a/packages/windows_ui/lib/src/viewmanagement/iuisettings5.dart +++ b/packages/windows_ui/lib/src/viewmanagement/iuisettings5.dart @@ -32,17 +32,17 @@ class IUISettings5 extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -56,18 +56,17 @@ class IUISettings5 extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -79,7 +78,7 @@ class IUISettings5 extends IInspectable { void remove_AutoHideScrollBarsChanged(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(8) .cast< Pointer< @@ -88,7 +87,7 @@ class IUISettings5 extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ui/lib/src/viewmanagement/iuisettings6.dart b/packages/windows_ui/lib/src/viewmanagement/iuisettings6.dart index c0195010..29eb4a07 100644 --- a/packages/windows_ui/lib/src/viewmanagement/iuisettings6.dart +++ b/packages/windows_ui/lib/src/viewmanagement/iuisettings6.dart @@ -32,18 +32,17 @@ class IUISettings6 extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -55,7 +54,7 @@ class IUISettings6 extends IInspectable { void remove_AnimationsEnabledChanged(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(7) .cast< Pointer< @@ -64,7 +63,7 @@ class IUISettings6 extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } @@ -73,18 +72,17 @@ class IUISettings6 extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -96,7 +94,7 @@ class IUISettings6 extends IInspectable { void remove_MessageDurationChanged(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -105,7 +103,7 @@ class IUISettings6 extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ui/lib/src/windowmanagement/idisplayregion.dart b/packages/windows_ui/lib/src/windowmanagement/idisplayregion.dart index e0784bec..181c805a 100644 --- a/packages/windows_ui/lib/src/windowmanagement/idisplayregion.dart +++ b/packages/windows_ui/lib/src/windowmanagement/idisplayregion.dart @@ -33,7 +33,7 @@ class IDisplayRegion extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -43,7 +43,7 @@ class IDisplayRegion extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -57,17 +57,17 @@ class IDisplayRegion extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -81,7 +81,7 @@ class IDisplayRegion extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -91,7 +91,7 @@ class IDisplayRegion extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -105,7 +105,7 @@ class IDisplayRegion extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -115,7 +115,7 @@ class IDisplayRegion extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer value)>()(ptr.ref.lpVtbl, value); + Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -128,7 +128,7 @@ class IDisplayRegion extends IInspectable { WindowingEnvironment? get windowingEnvironment { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -138,7 +138,7 @@ class IDisplayRegion extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -157,18 +157,17 @@ class IDisplayRegion extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -180,7 +179,7 @@ class IDisplayRegion extends IInspectable { void remove_Changed(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(12) .cast< Pointer< @@ -189,7 +188,7 @@ class IDisplayRegion extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ui/lib/src/windowmanagement/iwindowingenvironment.dart b/packages/windows_ui/lib/src/windowmanagement/iwindowingenvironment.dart index 655b57a5..511af19c 100644 --- a/packages/windows_ui/lib/src/windowmanagement/iwindowingenvironment.dart +++ b/packages/windows_ui/lib/src/windowmanagement/iwindowingenvironment.dart @@ -34,17 +34,17 @@ class IWindowingEnvironment extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -58,17 +58,17 @@ class IWindowingEnvironment extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -81,7 +81,7 @@ class IWindowingEnvironment extends IInspectable { List getDisplayRegions() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -91,7 +91,7 @@ class IWindowingEnvironment extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -108,18 +108,17 @@ class IWindowingEnvironment extends IInspectable { final token = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(9) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer handler, Pointer token)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer handler, - Pointer token)>()( - ptr.ref.lpVtbl, handler.ref.lpVtbl, token); + final hr = vtable + .elementAt(9) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer handler, Pointer token)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer handler, + Pointer token)>()(lpVtbl, handler.ref.lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); @@ -131,7 +130,7 @@ class IWindowingEnvironment extends IInspectable { void remove_Changed(int token) { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -140,7 +139,7 @@ class IWindowingEnvironment extends IInspectable { VTablePointer lpVtbl, IntPtr token)>>>() .value .asFunction()( - ptr.ref.lpVtbl, token); + lpVtbl, token); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/windows_ui/lib/src/windowmanagement/iwindowingenvironmentstatics.dart b/packages/windows_ui/lib/src/windowmanagement/iwindowingenvironmentstatics.dart index 162d0ef9..9eba65b2 100644 --- a/packages/windows_ui/lib/src/windowmanagement/iwindowingenvironmentstatics.dart +++ b/packages/windows_ui/lib/src/windowmanagement/iwindowingenvironmentstatics.dart @@ -34,7 +34,7 @@ class IWindowingEnvironmentStatics extends IInspectable { List findAll() { final result = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -44,7 +44,7 @@ class IWindowingEnvironmentStatics extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer result)>()(ptr.ref.lpVtbl, result); + Pointer result)>()(lpVtbl, result); if (FAILED(hr)) { free(result); @@ -60,18 +60,17 @@ class IWindowingEnvironmentStatics extends IInspectable { List findAllWithKind(WindowingEnvironmentKind kind) { final result = calloc(); - final hr = ptr.ref.vtable - .elementAt(7) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 kind, - Pointer result)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int kind, - Pointer result)>()( - ptr.ref.lpVtbl, kind.value, result); + final hr = vtable + .elementAt(7) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 kind, + Pointer result)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int kind, + Pointer result)>()(lpVtbl, kind.value, result); if (FAILED(hr)) { free(result); diff --git a/packages/winrtgen/lib/src/projections/method.dart b/packages/winrtgen/lib/src/projections/method.dart index 11b65dfb..072d3be7 100644 --- a/packages/winrtgen/lib/src/projections/method.dart +++ b/packages/winrtgen/lib/src/projections/method.dart @@ -215,14 +215,14 @@ base class MethodProjection { /// The names of the parameters to be passed through to the underlying WinRT /// function. String get identifiers => [ - 'ptr.ref.lpVtbl', + 'lpVtbl', ...parameters.map((param) => param.localIdentifier), if (typeProjection.isSimpleArray) '${paramIdentifier}Size', if (!typeProjection.isVoid) paramLocalIdentifier, ].join(', '); String get ffiCall => ''' - final hr = ptr.ref.vtable + final hr = vtable .elementAt($vtableOffset) .cast>>() .value diff --git a/packages/winrtgen/lib/src/projections/types/object.dart b/packages/winrtgen/lib/src/projections/types/object.dart index 6ed19f58..99a9f162 100644 --- a/packages/winrtgen/lib/src/projections/types/object.dart +++ b/packages/winrtgen/lib/src/projections/types/object.dart @@ -115,9 +115,7 @@ final class ObjectParameterProjection extends ParameterProjection { : '$identifier.boxValue().lpVtbl'; } - if (!typeProjection.isReferenceType && !typeProjection.isSimpleArray) { - return '$identifier.lpVtbl'; - } + if (!typeProjection.isReferenceType) return '$identifier.lpVtbl'; } return identifier; diff --git a/packages/winrtgen/test/goldens/icalendar.golden b/packages/winrtgen/test/goldens/icalendar.golden index dc23b836..cfd4d623 100644 --- a/packages/winrtgen/test/goldens/icalendar.golden +++ b/packages/winrtgen/test/goldens/icalendar.golden @@ -32,7 +32,7 @@ class ICalendar extends IInspectable { Calendar? clone() { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -42,7 +42,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -58,21 +58,21 @@ class ICalendar extends IInspectable { } void setToMin() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(7) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } void setToMax() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -80,7 +80,7 @@ class ICalendar extends IInspectable { List? get languages { final value = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -90,7 +90,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) { free(value); @@ -111,7 +111,7 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -121,7 +121,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -133,7 +133,7 @@ class ICalendar extends IInspectable { set numeralSystem(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(11) .cast< Pointer< @@ -142,7 +142,7 @@ class ICalendar extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -151,7 +151,7 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(12) .cast< Pointer< @@ -161,7 +161,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -173,7 +173,7 @@ class ICalendar extends IInspectable { void changeCalendarSystem(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(13) .cast< Pointer< @@ -182,7 +182,7 @@ class ICalendar extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -191,7 +191,7 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(14) .cast< Pointer< @@ -201,7 +201,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -213,7 +213,7 @@ class ICalendar extends IInspectable { void changeClock(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(15) .cast< Pointer< @@ -222,7 +222,7 @@ class ICalendar extends IInspectable { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -231,7 +231,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -241,7 +241,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -252,7 +252,7 @@ class ICalendar extends IInspectable { } void setDateTime(DateTime value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -260,17 +260,17 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int64 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toWinRTDateTime()); + lpVtbl, value.toWinRTDateTime()); if (FAILED(hr)) throwWindowsException(hr); } void setToNow() { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(18) .cast>>() .value - .asFunction()(ptr.ref.lpVtbl); + .asFunction()(lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -279,17 +279,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(19) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(19) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -303,17 +303,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(20) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(20) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -327,17 +327,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(21) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(21) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -351,17 +351,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(22) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(22) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -372,7 +372,7 @@ class ICalendar extends IInspectable { } set era(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(23) .cast< Pointer< @@ -380,13 +380,13 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } void addEras(int eras) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(24) .cast< Pointer< @@ -394,7 +394,7 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 eras)>>>() .value .asFunction()( - ptr.ref.lpVtbl, eras); + lpVtbl, eras); if (FAILED(hr)) throwWindowsException(hr); } @@ -403,7 +403,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(25) .cast< Pointer< @@ -413,7 +413,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -427,7 +427,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(26) .cast< Pointer< @@ -436,11 +436,8 @@ class ICalendar extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - int idealLength, - Pointer - result)>()(ptr.ref.lpVtbl, idealLength, result); + int Function(VTablePointer lpVtbl, int idealLength, + Pointer result)>()(lpVtbl, idealLength, result); if (FAILED(hr)) throwWindowsException(hr); @@ -454,17 +451,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(27) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(27) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -478,17 +475,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(28) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(28) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -502,17 +499,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(29) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(29) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -526,17 +523,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(30) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(30) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -547,7 +544,7 @@ class ICalendar extends IInspectable { } set year(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(31) .cast< Pointer< @@ -555,13 +552,13 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } void addYears(int years) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(32) .cast< Pointer< @@ -569,7 +566,7 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 years)>>>() .value .asFunction()( - ptr.ref.lpVtbl, years); + lpVtbl, years); if (FAILED(hr)) throwWindowsException(hr); } @@ -578,7 +575,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(33) .cast< Pointer< @@ -588,7 +585,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -602,21 +599,17 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = - ptr.ref.vtable - .elementAt(34) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, - Int32 remainingDigits, - Pointer result)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int remainingDigits, - Pointer result)>()( - ptr.ref.lpVtbl, remainingDigits, result); + final hr = vtable + .elementAt(34) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Int32 remainingDigits, Pointer result)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int remainingDigits, + Pointer result)>()(lpVtbl, remainingDigits, result); if (FAILED(hr)) throwWindowsException(hr); @@ -630,7 +623,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(35) .cast< Pointer< @@ -640,7 +633,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int minDigits, - Pointer result)>()(ptr.ref.lpVtbl, minDigits, result); + Pointer result)>()(lpVtbl, minDigits, result); if (FAILED(hr)) throwWindowsException(hr); @@ -654,17 +647,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(36) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(36) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -678,17 +671,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(37) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(37) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -702,17 +695,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(38) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(38) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -726,17 +719,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(39) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(39) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -747,7 +740,7 @@ class ICalendar extends IInspectable { } set month(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(40) .cast< Pointer< @@ -755,14 +748,14 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } void addMonths(int months) { final hr = - ptr.ref.vtable + vtable .elementAt(41) .cast< Pointer< @@ -771,7 +764,7 @@ class ICalendar extends IInspectable { VTablePointer lpVtbl, Int32 months)>>>() .value .asFunction()( - ptr.ref.lpVtbl, months); + lpVtbl, months); if (FAILED(hr)) throwWindowsException(hr); } @@ -780,7 +773,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(42) .cast< Pointer< @@ -790,7 +783,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -804,7 +797,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(43) .cast< Pointer< @@ -813,11 +806,8 @@ class ICalendar extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - int idealLength, - Pointer - result)>()(ptr.ref.lpVtbl, idealLength, result); + int Function(VTablePointer lpVtbl, int idealLength, + Pointer result)>()(lpVtbl, idealLength, result); if (FAILED(hr)) throwWindowsException(hr); @@ -831,7 +821,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(44) .cast< Pointer< @@ -841,7 +831,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -855,7 +845,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(45) .cast< Pointer< @@ -864,11 +854,8 @@ class ICalendar extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - int idealLength, - Pointer - result)>()(ptr.ref.lpVtbl, idealLength, result); + int Function(VTablePointer lpVtbl, int idealLength, + Pointer result)>()(lpVtbl, idealLength, result); if (FAILED(hr)) throwWindowsException(hr); @@ -882,7 +869,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(46) .cast< Pointer< @@ -892,7 +879,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -906,7 +893,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(47) .cast< Pointer< @@ -916,7 +903,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int minDigits, - Pointer result)>()(ptr.ref.lpVtbl, minDigits, result); + Pointer result)>()(lpVtbl, minDigits, result); if (FAILED(hr)) throwWindowsException(hr); @@ -927,7 +914,7 @@ class ICalendar extends IInspectable { } void addWeeks(int weeks) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(48) .cast< Pointer< @@ -935,7 +922,7 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 weeks)>>>() .value .asFunction()( - ptr.ref.lpVtbl, weeks); + lpVtbl, weeks); if (FAILED(hr)) throwWindowsException(hr); } @@ -944,17 +931,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(49) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(49) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -968,17 +955,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(50) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(50) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -992,17 +979,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(51) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(51) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1016,17 +1003,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(52) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(52) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1037,7 +1024,7 @@ class ICalendar extends IInspectable { } set day(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(53) .cast< Pointer< @@ -1045,13 +1032,13 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } void addDays(int days) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(54) .cast< Pointer< @@ -1059,7 +1046,7 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 days)>>>() .value .asFunction()( - ptr.ref.lpVtbl, days); + lpVtbl, days); if (FAILED(hr)) throwWindowsException(hr); } @@ -1068,7 +1055,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(55) .cast< Pointer< @@ -1078,7 +1065,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1092,7 +1079,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(56) .cast< Pointer< @@ -1102,7 +1089,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int minDigits, - Pointer result)>()(ptr.ref.lpVtbl, minDigits, result); + Pointer result)>()(lpVtbl, minDigits, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1116,17 +1103,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(57) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(57) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1140,7 +1127,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(58) .cast< Pointer< @@ -1150,7 +1137,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1164,7 +1151,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(59) .cast< Pointer< @@ -1173,11 +1160,8 @@ class ICalendar extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - int idealLength, - Pointer - result)>()(ptr.ref.lpVtbl, idealLength, result); + int Function(VTablePointer lpVtbl, int idealLength, + Pointer result)>()(lpVtbl, idealLength, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1191,7 +1175,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(60) .cast< Pointer< @@ -1201,7 +1185,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1215,7 +1199,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(61) .cast< Pointer< @@ -1224,11 +1208,8 @@ class ICalendar extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - int idealLength, - Pointer - result)>()(ptr.ref.lpVtbl, idealLength, result); + int Function(VTablePointer lpVtbl, int idealLength, + Pointer result)>()(lpVtbl, idealLength, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1242,17 +1223,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(62) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(62) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1266,17 +1247,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(63) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(63) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1290,17 +1271,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(64) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(64) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1314,17 +1295,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(65) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(65) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1335,7 +1316,7 @@ class ICalendar extends IInspectable { } set period(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(66) .cast< Pointer< @@ -1343,14 +1324,14 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } void addPeriods(int periods) { final hr = - ptr.ref.vtable + vtable .elementAt(67) .cast< Pointer< @@ -1359,7 +1340,7 @@ class ICalendar extends IInspectable { VTablePointer lpVtbl, Int32 periods)>>>() .value .asFunction()( - ptr.ref.lpVtbl, periods); + lpVtbl, periods); if (FAILED(hr)) throwWindowsException(hr); } @@ -1368,7 +1349,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(68) .cast< Pointer< @@ -1378,7 +1359,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1392,7 +1373,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(69) .cast< Pointer< @@ -1401,11 +1382,8 @@ class ICalendar extends IInspectable { Pointer result)>>>() .value .asFunction< - int Function( - VTablePointer lpVtbl, - int idealLength, - Pointer - result)>()(ptr.ref.lpVtbl, idealLength, result); + int Function(VTablePointer lpVtbl, int idealLength, + Pointer result)>()(lpVtbl, idealLength, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1419,17 +1397,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(70) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(70) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1443,17 +1421,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(71) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(71) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1467,17 +1445,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(72) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(72) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1491,17 +1469,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(73) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(73) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1512,7 +1490,7 @@ class ICalendar extends IInspectable { } set hour(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(74) .cast< Pointer< @@ -1520,13 +1498,13 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } void addHours(int hours) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(75) .cast< Pointer< @@ -1534,7 +1512,7 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 hours)>>>() .value .asFunction()( - ptr.ref.lpVtbl, hours); + lpVtbl, hours); if (FAILED(hr)) throwWindowsException(hr); } @@ -1543,7 +1521,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(76) .cast< Pointer< @@ -1553,7 +1531,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1567,7 +1545,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(77) .cast< Pointer< @@ -1577,7 +1555,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int minDigits, - Pointer result)>()(ptr.ref.lpVtbl, minDigits, result); + Pointer result)>()(lpVtbl, minDigits, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1591,17 +1569,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(78) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(78) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1612,7 +1590,7 @@ class ICalendar extends IInspectable { } set minute(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(79) .cast< Pointer< @@ -1620,14 +1598,14 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } void addMinutes(int minutes) { final hr = - ptr.ref.vtable + vtable .elementAt(80) .cast< Pointer< @@ -1636,7 +1614,7 @@ class ICalendar extends IInspectable { VTablePointer lpVtbl, Int32 minutes)>>>() .value .asFunction()( - ptr.ref.lpVtbl, minutes); + lpVtbl, minutes); if (FAILED(hr)) throwWindowsException(hr); } @@ -1645,7 +1623,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(81) .cast< Pointer< @@ -1655,7 +1633,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1669,7 +1647,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(82) .cast< Pointer< @@ -1679,7 +1657,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int minDigits, - Pointer result)>()(ptr.ref.lpVtbl, minDigits, result); + Pointer result)>()(lpVtbl, minDigits, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1693,17 +1671,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(83) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(83) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1714,7 +1692,7 @@ class ICalendar extends IInspectable { } set second(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(84) .cast< Pointer< @@ -1722,14 +1700,14 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } void addSeconds(int seconds) { final hr = - ptr.ref.vtable + vtable .elementAt(85) .cast< Pointer< @@ -1738,7 +1716,7 @@ class ICalendar extends IInspectable { VTablePointer lpVtbl, Int32 seconds)>>>() .value .asFunction()( - ptr.ref.lpVtbl, seconds); + lpVtbl, seconds); if (FAILED(hr)) throwWindowsException(hr); } @@ -1747,7 +1725,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(86) .cast< Pointer< @@ -1757,7 +1735,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1771,7 +1749,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(87) .cast< Pointer< @@ -1781,7 +1759,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int minDigits, - Pointer result)>()(ptr.ref.lpVtbl, minDigits, result); + Pointer result)>()(lpVtbl, minDigits, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1795,17 +1773,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(88) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(88) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1816,7 +1794,7 @@ class ICalendar extends IInspectable { } set nanosecond(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(89) .cast< Pointer< @@ -1824,13 +1802,13 @@ class ICalendar extends IInspectable { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } void addNanoseconds(int nanoseconds) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(90) .cast< Pointer< @@ -1839,7 +1817,7 @@ class ICalendar extends IInspectable { VTablePointer lpVtbl, Int32 nanoseconds)>>>() .value .asFunction()( - ptr.ref.lpVtbl, nanoseconds); + lpVtbl, nanoseconds); if (FAILED(hr)) throwWindowsException(hr); } @@ -1848,7 +1826,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(91) .cast< Pointer< @@ -1858,7 +1836,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer result)>()( - ptr.ref.lpVtbl, result); + lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1872,7 +1850,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(92) .cast< Pointer< @@ -1882,7 +1860,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, int minDigits, - Pointer result)>()(ptr.ref.lpVtbl, minDigits, result); + Pointer result)>()(lpVtbl, minDigits, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1896,18 +1874,17 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(93) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - VTablePointer other, Pointer result)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer other, - Pointer result)>()( - ptr.ref.lpVtbl, other.lpVtbl, result); + final hr = vtable + .elementAt(93) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + VTablePointer other, Pointer result)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, VTablePointer other, + Pointer result)>()(lpVtbl, other.lpVtbl, result); if (FAILED(hr)) throwWindowsException(hr); @@ -1921,7 +1898,7 @@ class ICalendar extends IInspectable { final result = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(94) .cast< Pointer< @@ -1932,7 +1909,7 @@ class ICalendar extends IInspectable { .asFunction< int Function(VTablePointer lpVtbl, int other, Pointer result)>()( - ptr.ref.lpVtbl, other.toWinRTDateTime(), result); + lpVtbl, other.toWinRTDateTime(), result); if (FAILED(hr)) throwWindowsException(hr); @@ -1943,7 +1920,7 @@ class ICalendar extends IInspectable { } void copyTo(Calendar? other) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(95) .cast< Pointer< @@ -1953,7 +1930,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer other)>()( - ptr.ref.lpVtbl, other.lpVtbl); + lpVtbl, other.lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -1962,17 +1939,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(96) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(96) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -1986,17 +1963,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(97) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(97) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2010,17 +1987,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(98) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(98) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2034,17 +2011,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(99) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(99) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2058,17 +2035,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(100) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(100) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2082,17 +2059,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(101) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(101) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2106,7 +2083,7 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(102) .cast< Pointer< @@ -2116,7 +2093,7 @@ class ICalendar extends IInspectable { .value .asFunction< int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); @@ -2130,17 +2107,17 @@ class ICalendar extends IInspectable { final value = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(103) - .cast< - Pointer< - NativeFunction< - HRESULT Function( - VTablePointer lpVtbl, Pointer value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, Pointer value)>()( - ptr.ref.lpVtbl, value); + final hr = vtable + .elementAt(103) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Pointer value)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, Pointer value)>()(lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/winrtgen/test/goldens/imap_part.golden b/packages/winrtgen/test/goldens/imap_part.golden index f670800b..dd129ed6 100644 --- a/packages/winrtgen/test/goldens/imap_part.golden +++ b/packages/winrtgen/test/goldens/imap_part.golden @@ -21,7 +21,7 @@ final class _IMapGuidInspectable extends IMap { final retValuePtr = calloc(); final keyNativeStructPtr = key.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -32,7 +32,7 @@ final class _IMapGuidInspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, GUID key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, keyNativeStructPtr.ref, retValuePtr); + lpVtbl, keyNativeStructPtr.ref, retValuePtr); free(keyNativeStructPtr); @@ -56,7 +56,7 @@ final class _IMapGuidInspectable extends IMap { try { final keyNativeStructPtr = key.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -67,7 +67,7 @@ final class _IMapGuidInspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, GUID key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, keyNativeStructPtr.ref, retValuePtr); + lpVtbl, keyNativeStructPtr.ref, retValuePtr); free(keyNativeStructPtr); @@ -87,7 +87,7 @@ final class _IMapGuidInspectable extends IMap { final keyNativeStructPtr = key.toNativeGUID(); final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -101,7 +101,7 @@ final class _IMapGuidInspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, GUID key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, + lpVtbl, keyNativeStructPtr.ref, (value as IInspectable).lpVtbl, retValuePtr); @@ -120,7 +120,7 @@ final class _IMapGuidInspectable extends IMap { void remove(Guid key) { final keyNativeStructPtr = key.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -128,7 +128,7 @@ final class _IMapGuidInspectable extends IMap { HRESULT Function(VTablePointer lpVtbl, GUID key)>>>() .value .asFunction()( - ptr.ref.lpVtbl, keyNativeStructPtr.ref); + lpVtbl, keyNativeStructPtr.ref); free(keyNativeStructPtr); @@ -144,7 +144,7 @@ final class _IMapGuidObject extends IMap { final retValuePtr = calloc(); final keyNativeStructPtr = key.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -155,7 +155,7 @@ final class _IMapGuidObject extends IMap { .asFunction< int Function(VTablePointer lpVtbl, GUID key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, keyNativeStructPtr.ref, retValuePtr); + lpVtbl, keyNativeStructPtr.ref, retValuePtr); free(keyNativeStructPtr); @@ -179,7 +179,7 @@ final class _IMapGuidObject extends IMap { try { final keyNativeStructPtr = key.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -190,7 +190,7 @@ final class _IMapGuidObject extends IMap { .asFunction< int Function(VTablePointer lpVtbl, GUID key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, keyNativeStructPtr.ref, retValuePtr); + lpVtbl, keyNativeStructPtr.ref, retValuePtr); free(keyNativeStructPtr); @@ -210,7 +210,7 @@ final class _IMapGuidObject extends IMap { final keyNativeStructPtr = key.toNativeGUID(); final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -224,7 +224,7 @@ final class _IMapGuidObject extends IMap { .asFunction< int Function(VTablePointer lpVtbl, GUID key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, + lpVtbl, keyNativeStructPtr.ref, value?.boxValue().lpVtbl ?? nullptr, retValuePtr); @@ -243,7 +243,7 @@ final class _IMapGuidObject extends IMap { void remove(Guid key) { final keyNativeStructPtr = key.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -251,7 +251,7 @@ final class _IMapGuidObject extends IMap { HRESULT Function(VTablePointer lpVtbl, GUID key)>>>() .value .asFunction()( - ptr.ref.lpVtbl, keyNativeStructPtr.ref); + lpVtbl, keyNativeStructPtr.ref); free(keyNativeStructPtr); @@ -270,18 +270,17 @@ final class _IMapInt16Inspectable extends IMap { V lookup(int key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int16 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int16 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -301,18 +300,17 @@ final class _IMapInt16Inspectable extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int16 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int16 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -328,7 +326,7 @@ final class _IMapInt16Inspectable extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -342,7 +340,7 @@ final class _IMapInt16Inspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); + lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -354,15 +352,14 @@ final class _IMapInt16Inspectable extends IMap { @override void remove(int key) { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int16 key)>>>() - .value - .asFunction()( - ptr.ref.lpVtbl, key); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int16 key)>>>() + .value + .asFunction()(lpVtbl, key); if (FAILED(hr)) throwWindowsException(hr); } @@ -379,18 +376,17 @@ final class _IMapInt32Inspectable extends IMap { V lookup(int key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -410,18 +406,17 @@ final class _IMapInt32Inspectable extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -437,7 +432,7 @@ final class _IMapInt32Inspectable extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -451,7 +446,7 @@ final class _IMapInt32Inspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); + lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -463,15 +458,14 @@ final class _IMapInt32Inspectable extends IMap { @override void remove(int key) { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int32 key)>>>() - .value - .asFunction()( - ptr.ref.lpVtbl, key); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int32 key)>>>() + .value + .asFunction()(lpVtbl, key); if (FAILED(hr)) throwWindowsException(hr); } @@ -488,18 +482,17 @@ final class _IMapInt64Inspectable extends IMap { V lookup(int key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int64 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int64 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -519,18 +512,17 @@ final class _IMapInt64Inspectable extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int64 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int64 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -546,7 +538,7 @@ final class _IMapInt64Inspectable extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -560,7 +552,7 @@ final class _IMapInt64Inspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); + lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -572,15 +564,14 @@ final class _IMapInt64Inspectable extends IMap { @override void remove(int key) { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Int64 key)>>>() - .value - .asFunction()( - ptr.ref.lpVtbl, key); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Int64 key)>>>() + .value + .asFunction()(lpVtbl, key); if (FAILED(hr)) throwWindowsException(hr); } @@ -594,7 +585,7 @@ final class _IMapObjectObject extends IMap { final retValuePtr = calloc(); final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -607,7 +598,7 @@ final class _IMapObjectObject extends IMap { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.boxValue().lpVtbl, retValuePtr); + lpVtbl, key.boxValue().lpVtbl, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -627,18 +618,20 @@ final class _IMapObjectObject extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, VTablePointer key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, VTablePointer key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.boxValue().lpVtbl, retValuePtr); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, VTablePointer key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function( + VTablePointer lpVtbl, + VTablePointer key, + Pointer + retValuePtr)>()(lpVtbl, key.boxValue().lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -654,7 +647,7 @@ final class _IMapObjectObject extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -668,7 +661,7 @@ final class _IMapObjectObject extends IMap { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, + lpVtbl, key.boxValue().lpVtbl, value?.boxValue().lpVtbl ?? nullptr, retValuePtr); @@ -683,7 +676,7 @@ final class _IMapObjectObject extends IMap { @override void remove(Object key) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -693,7 +686,7 @@ final class _IMapObjectObject extends IMap { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer key)>()( - ptr.ref.lpVtbl, key.boxValue().lpVtbl); + lpVtbl, key.boxValue().lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -710,7 +703,7 @@ final class _IMapStringInspectable extends IMap { V lookup(String key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -721,7 +714,7 @@ final class _IMapStringInspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -741,7 +734,7 @@ final class _IMapStringInspectable extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -752,7 +745,7 @@ final class _IMapStringInspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -768,7 +761,7 @@ final class _IMapStringInspectable extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -782,7 +775,7 @@ final class _IMapStringInspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, + lpVtbl, key.toHString(), (value as IInspectable).lpVtbl, retValuePtr); @@ -797,7 +790,7 @@ final class _IMapStringInspectable extends IMap { @override void remove(String key) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -805,7 +798,7 @@ final class _IMapStringInspectable extends IMap { HRESULT Function(VTablePointer lpVtbl, IntPtr key)>>>() .value .asFunction()( - ptr.ref.lpVtbl, key.toHString()); + lpVtbl, key.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -818,7 +811,7 @@ final class _IMapStringObject extends IMap { Object? lookup(String key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -829,7 +822,7 @@ final class _IMapStringObject extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -849,7 +842,7 @@ final class _IMapStringObject extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -860,7 +853,7 @@ final class _IMapStringObject extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -876,7 +869,7 @@ final class _IMapStringObject extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -890,7 +883,7 @@ final class _IMapStringObject extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, + lpVtbl, key.toHString(), value?.boxValue().lpVtbl ?? nullptr, retValuePtr); @@ -905,7 +898,7 @@ final class _IMapStringObject extends IMap { @override void remove(String key) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -913,7 +906,7 @@ final class _IMapStringObject extends IMap { HRESULT Function(VTablePointer lpVtbl, IntPtr key)>>>() .value .asFunction()( - ptr.ref.lpVtbl, key.toHString()); + lpVtbl, key.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -927,7 +920,7 @@ final class _IMapStringString extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -938,7 +931,7 @@ final class _IMapStringString extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -953,7 +946,7 @@ final class _IMapStringString extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -964,7 +957,7 @@ final class _IMapStringString extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -979,7 +972,7 @@ final class _IMapStringString extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -990,7 +983,7 @@ final class _IMapStringString extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, int value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), value.toHString(), retValuePtr); + lpVtbl, key.toHString(), value.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1002,7 +995,7 @@ final class _IMapStringString extends IMap { @override void remove(String key) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -1010,7 +1003,7 @@ final class _IMapStringString extends IMap { HRESULT Function(VTablePointer lpVtbl, IntPtr key)>>>() .value .asFunction()( - ptr.ref.lpVtbl, key.toHString()); + lpVtbl, key.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -1028,7 +1021,7 @@ final class _IMapStringWinRTEnum extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1039,7 +1032,7 @@ final class _IMapStringWinRTEnum extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1054,7 +1047,7 @@ final class _IMapStringWinRTEnum extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -1065,7 +1058,7 @@ final class _IMapStringWinRTEnum extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1080,7 +1073,7 @@ final class _IMapStringWinRTEnum extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -1090,8 +1083,8 @@ final class _IMapStringWinRTEnum extends IMap { .value .asFunction< int Function(VTablePointer lpVtbl, int key, int value, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, - key.toHString(), (value as WinRTEnum).value, retValuePtr); + Pointer retValuePtr)>()( + lpVtbl, key.toHString(), (value as WinRTEnum).value, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1103,7 +1096,7 @@ final class _IMapStringWinRTEnum extends IMap { @override void remove(String key) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -1111,7 +1104,7 @@ final class _IMapStringWinRTEnum extends IMap { HRESULT Function(VTablePointer lpVtbl, IntPtr key)>>>() .value .asFunction()( - ptr.ref.lpVtbl, key.toHString()); + lpVtbl, key.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -1129,7 +1122,7 @@ final class _IMapStringWinRTFlagsEnum extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1140,7 +1133,7 @@ final class _IMapStringWinRTFlagsEnum extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1155,7 +1148,7 @@ final class _IMapStringWinRTFlagsEnum extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -1166,7 +1159,7 @@ final class _IMapStringWinRTFlagsEnum extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toHString(), retValuePtr); + lpVtbl, key.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1181,7 +1174,7 @@ final class _IMapStringWinRTFlagsEnum extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -1191,8 +1184,8 @@ final class _IMapStringWinRTFlagsEnum extends IMap { .value .asFunction< int Function(VTablePointer lpVtbl, int key, int value, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, - key.toHString(), (value as WinRTEnum).value, retValuePtr); + Pointer retValuePtr)>()( + lpVtbl, key.toHString(), (value as WinRTEnum).value, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1204,7 +1197,7 @@ final class _IMapStringWinRTFlagsEnum extends IMap { @override void remove(String key) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -1212,7 +1205,7 @@ final class _IMapStringWinRTFlagsEnum extends IMap { HRESULT Function(VTablePointer lpVtbl, IntPtr key)>>>() .value .asFunction()( - ptr.ref.lpVtbl, key.toHString()); + lpVtbl, key.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -1229,18 +1222,17 @@ final class _IMapUint8Inspectable extends IMap { V lookup(int key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint8 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint8 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -1260,18 +1252,17 @@ final class _IMapUint8Inspectable extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint8 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint8 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1287,7 +1278,7 @@ final class _IMapUint8Inspectable extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -1301,7 +1292,7 @@ final class _IMapUint8Inspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); + lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1313,15 +1304,14 @@ final class _IMapUint8Inspectable extends IMap { @override void remove(int key) { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint8 key)>>>() - .value - .asFunction()( - ptr.ref.lpVtbl, key); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint8 key)>>>() + .value + .asFunction()(lpVtbl, key); if (FAILED(hr)) throwWindowsException(hr); } @@ -1338,18 +1328,17 @@ final class _IMapUint16Inspectable extends IMap { V lookup(int key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint16 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint16 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -1369,18 +1358,17 @@ final class _IMapUint16Inspectable extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint16 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint16 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1396,7 +1384,7 @@ final class _IMapUint16Inspectable extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -1410,7 +1398,7 @@ final class _IMapUint16Inspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); + lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1422,15 +1410,14 @@ final class _IMapUint16Inspectable extends IMap { @override void remove(int key) { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint16 key)>>>() - .value - .asFunction()( - ptr.ref.lpVtbl, key); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint16 key)>>>() + .value + .asFunction()(lpVtbl, key); if (FAILED(hr)) throwWindowsException(hr); } @@ -1447,18 +1434,17 @@ final class _IMapUint32Inspectable extends IMap { V lookup(int key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -1478,18 +1464,17 @@ final class _IMapUint32Inspectable extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1505,7 +1490,7 @@ final class _IMapUint32Inspectable extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -1519,7 +1504,7 @@ final class _IMapUint32Inspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); + lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1531,15 +1516,14 @@ final class _IMapUint32Inspectable extends IMap { @override void remove(int key) { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 key)>>>() - .value - .asFunction()( - ptr.ref.lpVtbl, key); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 key)>>>() + .value + .asFunction()(lpVtbl, key); if (FAILED(hr)) throwWindowsException(hr); } @@ -1556,18 +1540,17 @@ final class _IMapUint64Inspectable extends IMap { V lookup(int key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint64 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint64 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -1587,18 +1570,17 @@ final class _IMapUint64Inspectable extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(8) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint64 key, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int key, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, retValuePtr); + final hr = vtable + .elementAt(8) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint64 key, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int key, + Pointer retValuePtr)>()(lpVtbl, key, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1614,7 +1596,7 @@ final class _IMapUint64Inspectable extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -1628,7 +1610,7 @@ final class _IMapUint64Inspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); + lpVtbl, key, (value as IInspectable).lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1640,15 +1622,14 @@ final class _IMapUint64Inspectable extends IMap { @override void remove(int key) { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint64 key)>>>() - .value - .asFunction()( - ptr.ref.lpVtbl, key); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint64 key)>>>() + .value + .asFunction()(lpVtbl, key); if (FAILED(hr)) throwWindowsException(hr); } @@ -1663,7 +1644,7 @@ final class _IMapUriString extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(6) .cast< Pointer< @@ -1676,7 +1657,7 @@ final class _IMapUriString extends IMap { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toWinRTUri().lpVtbl, retValuePtr); + lpVtbl, key.toWinRTUri().lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1691,7 +1672,7 @@ final class _IMapUriString extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -1702,7 +1683,7 @@ final class _IMapUriString extends IMap { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, key.toWinRTUri().lpVtbl, retValuePtr); + lpVtbl, key.toWinRTUri().lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1718,7 +1699,7 @@ final class _IMapUriString extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -1732,10 +1713,7 @@ final class _IMapUriString extends IMap { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer key, int value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, - key.toWinRTUri().lpVtbl, - value.toHString(), - retValuePtr); + lpVtbl, key.toWinRTUri().lpVtbl, value.toHString(), retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1747,7 +1725,7 @@ final class _IMapUriString extends IMap { @override void remove(Uri key) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -1757,7 +1735,7 @@ final class _IMapUriString extends IMap { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer key)>()( - ptr.ref.lpVtbl, key.toWinRTUri().lpVtbl); + lpVtbl, key.toWinRTUri().lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -1777,7 +1755,7 @@ final class _IMapWinRTEnumInspectable extends IMap { V lookup(K key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1788,7 +1766,7 @@ final class _IMapWinRTEnumInspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, (key as WinRTEnum).value, retValuePtr); + lpVtbl, (key as WinRTEnum).value, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -1808,7 +1786,7 @@ final class _IMapWinRTEnumInspectable extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -1819,7 +1797,7 @@ final class _IMapWinRTEnumInspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, (key as WinRTEnum).value, retValuePtr); + lpVtbl, (key as WinRTEnum).value, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1835,7 +1813,7 @@ final class _IMapWinRTEnumInspectable extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -1849,7 +1827,7 @@ final class _IMapWinRTEnumInspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, + lpVtbl, (key as WinRTEnum).value, (value as IInspectable).lpVtbl, retValuePtr); @@ -1864,7 +1842,7 @@ final class _IMapWinRTEnumInspectable extends IMap { @override void remove(K key) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -1872,7 +1850,7 @@ final class _IMapWinRTEnumInspectable extends IMap { HRESULT Function(VTablePointer lpVtbl, Int32 key)>>>() .value .asFunction()( - ptr.ref.lpVtbl, (key as WinRTEnum).value); + lpVtbl, (key as WinRTEnum).value); if (FAILED(hr)) throwWindowsException(hr); } @@ -1892,7 +1870,7 @@ final class _IMapWinRTFlagsEnumInspectable extends IMap { V lookup(K key) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1903,7 +1881,7 @@ final class _IMapWinRTFlagsEnumInspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, (key as WinRTEnum).value, retValuePtr); + lpVtbl, (key as WinRTEnum).value, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -1923,7 +1901,7 @@ final class _IMapWinRTFlagsEnumInspectable extends IMap { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(8) .cast< Pointer< @@ -1934,7 +1912,7 @@ final class _IMapWinRTFlagsEnumInspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, (key as WinRTEnum).value, retValuePtr); + lpVtbl, (key as WinRTEnum).value, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1950,7 +1928,7 @@ final class _IMapWinRTFlagsEnumInspectable extends IMap { try { final hr = - ptr.ref.vtable + vtable .elementAt(10) .cast< Pointer< @@ -1964,7 +1942,7 @@ final class _IMapWinRTFlagsEnumInspectable extends IMap { .asFunction< int Function(VTablePointer lpVtbl, int key, VTablePointer value, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, + lpVtbl, (key as WinRTEnum).value, (value as IInspectable).lpVtbl, retValuePtr); @@ -1979,7 +1957,7 @@ final class _IMapWinRTFlagsEnumInspectable extends IMap { @override void remove(K key) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -1987,7 +1965,7 @@ final class _IMapWinRTFlagsEnumInspectable extends IMap { HRESULT Function(VTablePointer lpVtbl, Uint32 key)>>>() .value .asFunction()( - ptr.ref.lpVtbl, (key as WinRTEnum).value); + lpVtbl, (key as WinRTEnum).value); if (FAILED(hr)) throwWindowsException(hr); } diff --git a/packages/winrtgen/test/goldens/ireference_part.golden b/packages/winrtgen/test/goldens/ireference_part.golden index 564532c2..e395cb8d 100644 --- a/packages/winrtgen/test/goldens/ireference_part.golden +++ b/packages/winrtgen/test/goldens/ireference_part.golden @@ -19,7 +19,7 @@ final class _IReferenceBasicGeoposition extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -30,7 +30,7 @@ final class _IReferenceBasicGeoposition extends IReference { .asFunction< int Function(VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -51,7 +51,7 @@ final class _IReferenceBool extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -61,7 +61,7 @@ final class _IReferenceBool extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -82,18 +82,17 @@ final class _IReferenceColor extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -114,7 +113,7 @@ final class _IReferenceDateTime extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -124,7 +123,7 @@ final class _IReferenceDateTime extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -146,7 +145,7 @@ final class _IReferenceDisplayPresentationRate final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -159,7 +158,7 @@ final class _IReferenceDisplayPresentationRate .asFunction< int Function(VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -180,7 +179,7 @@ final class _IReferenceDouble extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -190,7 +189,7 @@ final class _IReferenceDouble extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -211,7 +210,7 @@ final class _IReferenceDuration extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -221,7 +220,7 @@ final class _IReferenceDuration extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -242,7 +241,7 @@ final class _IReferenceFloat extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -252,7 +251,7 @@ final class _IReferenceFloat extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -273,7 +272,7 @@ final class _IReferenceGuid extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -283,7 +282,7 @@ final class _IReferenceGuid extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -305,7 +304,7 @@ final class _IReferenceHolographicStereoTransform final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -318,7 +317,7 @@ final class _IReferenceHolographicStereoTransform .asFunction< int Function(VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -339,7 +338,7 @@ final class _IReferenceInt16 extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -349,7 +348,7 @@ final class _IReferenceInt16 extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -370,7 +369,7 @@ final class _IReferenceInt32 extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -380,7 +379,7 @@ final class _IReferenceInt32 extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -401,7 +400,7 @@ final class _IReferenceInt64 extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -411,7 +410,7 @@ final class _IReferenceInt64 extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -432,18 +431,17 @@ final class _IReferenceMatrix4x4 extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -464,7 +462,7 @@ final class _IReferenceMseTimeRange extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -475,7 +473,7 @@ final class _IReferenceMseTimeRange extends IReference { .asFunction< int Function(VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -496,18 +494,17 @@ final class _IReferencePoint extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -528,7 +525,7 @@ final class _IReferenceQuaternion extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -539,7 +536,7 @@ final class _IReferenceQuaternion extends IReference { .asFunction< int Function(VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -560,18 +557,17 @@ final class _IReferenceRect extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -592,18 +588,17 @@ final class _IReferenceSize extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -624,18 +619,17 @@ final class _IReferenceSizeInt32 extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -657,7 +651,7 @@ final class _IReferenceSpatialBoundingBox final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -669,7 +663,7 @@ final class _IReferenceSpatialBoundingBox int Function( VTablePointer lpVtbl, Pointer - retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -691,7 +685,7 @@ final class _IReferenceSpatialBoundingFrustum final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -704,7 +698,7 @@ final class _IReferenceSpatialBoundingFrustum .asFunction< int Function(VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -726,7 +720,7 @@ final class _IReferenceSpatialBoundingOrientedBox final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -739,7 +733,7 @@ final class _IReferenceSpatialBoundingOrientedBox .asFunction< int Function(VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -760,7 +754,7 @@ final class _IReferenceSpatialRay extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -771,7 +765,7 @@ final class _IReferenceSpatialRay extends IReference { .asFunction< int Function(VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -792,7 +786,7 @@ final class _IReferenceString extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -802,7 +796,7 @@ final class _IReferenceString extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -823,7 +817,7 @@ final class _IReferenceUint8 extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -833,7 +827,7 @@ final class _IReferenceUint8 extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -854,7 +848,7 @@ final class _IReferenceUint16 extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -864,7 +858,7 @@ final class _IReferenceUint16 extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -885,7 +879,7 @@ final class _IReferenceUint32 extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -895,7 +889,7 @@ final class _IReferenceUint32 extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -916,7 +910,7 @@ final class _IReferenceUint64 extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -926,7 +920,7 @@ final class _IReferenceUint64 extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -947,18 +941,17 @@ final class _IReferenceVector2 extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -979,18 +972,17 @@ final class _IReferenceVector3 extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1011,7 +1003,7 @@ final class _IReferenceWhiteBalanceGain extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1022,7 +1014,7 @@ final class _IReferenceWhiteBalanceGain extends IReference { .asFunction< int Function(VTablePointer lpVtbl, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, retValuePtr); + lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1045,7 +1037,7 @@ final class _IReferenceWinRTEnum extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1055,7 +1047,7 @@ final class _IReferenceWinRTEnum extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1078,7 +1070,7 @@ final class _IReferenceWinRTFlagsEnum extends IReference { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1088,7 +1080,7 @@ final class _IReferenceWinRTFlagsEnum extends IReference { .value .asFunction< int Function(VTablePointer lpVtbl, - Pointer retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr); + Pointer retValuePtr)>()(lpVtbl, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); diff --git a/packages/winrtgen/test/goldens/ivector_part.golden b/packages/winrtgen/test/goldens/ivector_part.golden index aa5e62c0..58d681d3 100644 --- a/packages/winrtgen/test/goldens/ivector_part.golden +++ b/packages/winrtgen/test/goldens/ivector_part.golden @@ -17,7 +17,7 @@ final class _IVectorAccessListEntry extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -28,7 +28,7 @@ final class _IVectorAccessListEntry extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -45,7 +45,7 @@ final class _IVectorAccessListEntry extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -62,7 +62,7 @@ final class _IVectorAccessListEntry extends IVector { NativeAccessListEntry value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -78,7 +78,7 @@ final class _IVectorAccessListEntry extends IVector { void setAt(int index, AccessListEntry value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -89,7 +89,7 @@ final class _IVectorAccessListEntry extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativeAccessListEntry value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -100,7 +100,7 @@ final class _IVectorAccessListEntry extends IVector { void insertAt(int index, AccessListEntry value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -111,7 +111,7 @@ final class _IVectorAccessListEntry extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativeAccessListEntry value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -122,7 +122,7 @@ final class _IVectorAccessListEntry extends IVector { void append(AccessListEntry value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -133,7 +133,7 @@ final class _IVectorAccessListEntry extends IVector { .asFunction< int Function( VTablePointer lpVtbl, NativeAccessListEntry value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -146,7 +146,7 @@ final class _IVectorAccessListEntry extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -165,7 +165,7 @@ final class _IVectorAccessListEntry extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -184,7 +184,7 @@ final class _IVectorAccessListEntry extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -195,7 +195,7 @@ final class _IVectorAccessListEntry extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -213,7 +213,7 @@ final class _IVectorBackgroundTransferFileRange final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -229,7 +229,7 @@ final class _IVectorBackgroundTransferFileRange VTablePointer lpVtbl, int index, Pointer - retValuePtr)>()(ptr.ref.lpVtbl, index, retValuePtr); + retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -246,7 +246,7 @@ final class _IVectorBackgroundTransferFileRange final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -263,7 +263,7 @@ final class _IVectorBackgroundTransferFileRange NativeBackgroundTransferFileRange value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -279,7 +279,7 @@ final class _IVectorBackgroundTransferFileRange void setAt(int index, BackgroundTransferFileRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -290,7 +290,7 @@ final class _IVectorBackgroundTransferFileRange .asFunction< int Function(VTablePointer lpVtbl, int index, NativeBackgroundTransferFileRange value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -301,7 +301,7 @@ final class _IVectorBackgroundTransferFileRange void insertAt(int index, BackgroundTransferFileRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -312,7 +312,7 @@ final class _IVectorBackgroundTransferFileRange .asFunction< int Function(VTablePointer lpVtbl, int index, NativeBackgroundTransferFileRange value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -323,7 +323,7 @@ final class _IVectorBackgroundTransferFileRange void append(BackgroundTransferFileRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -334,7 +334,7 @@ final class _IVectorBackgroundTransferFileRange .asFunction< int Function(VTablePointer lpVtbl, NativeBackgroundTransferFileRange value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -348,7 +348,7 @@ final class _IVectorBackgroundTransferFileRange final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -367,7 +367,7 @@ final class _IVectorBackgroundTransferFileRange int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -386,7 +386,7 @@ final class _IVectorBackgroundTransferFileRange final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -399,7 +399,7 @@ final class _IVectorBackgroundTransferFileRange VTablePointer lpVtbl, int itemsSize, Pointer - items)>()(ptr.ref.lpVtbl, items.length, itemsArray); + items)>()(lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -415,7 +415,7 @@ final class _IVectorBasicGeoposition extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -426,7 +426,7 @@ final class _IVectorBasicGeoposition extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -443,7 +443,7 @@ final class _IVectorBasicGeoposition extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -460,7 +460,7 @@ final class _IVectorBasicGeoposition extends IVector { NativeBasicGeoposition value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -476,7 +476,7 @@ final class _IVectorBasicGeoposition extends IVector { void setAt(int index, BasicGeoposition value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -487,7 +487,7 @@ final class _IVectorBasicGeoposition extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativeBasicGeoposition value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -498,7 +498,7 @@ final class _IVectorBasicGeoposition extends IVector { void insertAt(int index, BasicGeoposition value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -509,7 +509,7 @@ final class _IVectorBasicGeoposition extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativeBasicGeoposition value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -520,7 +520,7 @@ final class _IVectorBasicGeoposition extends IVector { void append(BasicGeoposition value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -531,7 +531,7 @@ final class _IVectorBasicGeoposition extends IVector { .asFunction< int Function( VTablePointer lpVtbl, NativeBasicGeoposition value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -544,7 +544,7 @@ final class _IVectorBasicGeoposition extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -563,7 +563,7 @@ final class _IVectorBasicGeoposition extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -582,7 +582,7 @@ final class _IVectorBasicGeoposition extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -593,7 +593,7 @@ final class _IVectorBasicGeoposition extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -609,18 +609,17 @@ final class _IVectorBool extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -637,7 +636,7 @@ final class _IVectorBool extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -651,7 +650,7 @@ final class _IVectorBool extends IVector { .asFunction< int Function(VTablePointer lpVtbl, bool value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -664,7 +663,7 @@ final class _IVectorBool extends IVector { @override void setAt(int index, bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -674,14 +673,14 @@ final class _IVectorBool extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, bool value)>()( - ptr.ref.lpVtbl, index, value); + lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -691,14 +690,14 @@ final class _IVectorBool extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, bool value)>()( - ptr.ref.lpVtbl, index, value); + lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void append(bool value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -706,7 +705,7 @@ final class _IVectorBool extends IVector { HRESULT Function(VTablePointer lpVtbl, Bool value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -717,7 +716,7 @@ final class _IVectorBool extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -736,7 +735,7 @@ final class _IVectorBool extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -754,18 +753,17 @@ final class _IVectorBool extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); @@ -781,7 +779,7 @@ final class _IVectorColor extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -792,7 +790,7 @@ final class _IVectorColor extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -810,7 +808,7 @@ final class _IVectorColor extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -824,7 +822,7 @@ final class _IVectorColor extends IVector { .asFunction< int Function(VTablePointer lpVtbl, NativeColor value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -840,18 +838,17 @@ final class _IVectorColor extends IVector { void setAt(int index, Color value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - NativeColor value)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, int index, NativeColor value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + NativeColor value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + NativeColor value)>()(lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -862,18 +859,17 @@ final class _IVectorColor extends IVector { void insertAt(int index, Color value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - NativeColor value)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, int index, NativeColor value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + NativeColor value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + NativeColor value)>()(lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -884,7 +880,7 @@ final class _IVectorColor extends IVector { void append(Color value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -894,7 +890,7 @@ final class _IVectorColor extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, NativeColor value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -907,7 +903,7 @@ final class _IVectorColor extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -926,7 +922,7 @@ final class _IVectorColor extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -945,7 +941,7 @@ final class _IVectorColor extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -956,7 +952,7 @@ final class _IVectorColor extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -972,18 +968,17 @@ final class _IVectorDateTime extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1000,7 +995,7 @@ final class _IVectorDateTime extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -1014,7 +1009,7 @@ final class _IVectorDateTime extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value.toWinRTDateTime(), index, retValuePtr); + lpVtbl, value.toWinRTDateTime(), index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1027,7 +1022,7 @@ final class _IVectorDateTime extends IVector { @override void setAt(int index, DateTime value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -1037,14 +1032,14 @@ final class _IVectorDateTime extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value.toWinRTDateTime()); + int value)>()(lpVtbl, index, value.toWinRTDateTime()); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, DateTime value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -1054,14 +1049,14 @@ final class _IVectorDateTime extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value.toWinRTDateTime()); + int value)>()(lpVtbl, index, value.toWinRTDateTime()); if (FAILED(hr)) throwWindowsException(hr); } @override void append(DateTime value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -1069,7 +1064,7 @@ final class _IVectorDateTime extends IVector { HRESULT Function(VTablePointer lpVtbl, Int64 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toWinRTDateTime()); + lpVtbl, value.toWinRTDateTime()); if (FAILED(hr)) throwWindowsException(hr); } @@ -1080,7 +1075,7 @@ final class _IVectorDateTime extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -1099,7 +1094,7 @@ final class _IVectorDateTime extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1117,18 +1112,17 @@ final class _IVectorDateTime extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); @@ -1145,18 +1139,17 @@ final class _IVectorDouble extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1173,7 +1166,7 @@ final class _IVectorDouble extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -1187,7 +1180,7 @@ final class _IVectorDouble extends IVector { .asFunction< int Function(VTablePointer lpVtbl, double value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1200,7 +1193,7 @@ final class _IVectorDouble extends IVector { @override void setAt(int index, double value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -1210,14 +1203,14 @@ final class _IVectorDouble extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - double value)>()(ptr.ref.lpVtbl, index, value); + double value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, double value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -1227,7 +1220,7 @@ final class _IVectorDouble extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - double value)>()(ptr.ref.lpVtbl, index, value); + double value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -1235,7 +1228,7 @@ final class _IVectorDouble extends IVector { @override void append(double value) { final hr = - ptr.ref.vtable + vtable .elementAt(13) .cast< Pointer< @@ -1244,7 +1237,7 @@ final class _IVectorDouble extends IVector { VTablePointer lpVtbl, Double value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -1255,7 +1248,7 @@ final class _IVectorDouble extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -1274,7 +1267,7 @@ final class _IVectorDouble extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1292,18 +1285,17 @@ final class _IVectorDouble extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); @@ -1319,18 +1311,17 @@ final class _IVectorDuration extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1347,7 +1338,7 @@ final class _IVectorDuration extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -1361,7 +1352,7 @@ final class _IVectorDuration extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value.toWinRTDuration(), index, retValuePtr); + lpVtbl, value.toWinRTDuration(), index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1374,7 +1365,7 @@ final class _IVectorDuration extends IVector { @override void setAt(int index, Duration value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -1384,14 +1375,14 @@ final class _IVectorDuration extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value.toWinRTDuration()); + int value)>()(lpVtbl, index, value.toWinRTDuration()); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, Duration value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -1401,14 +1392,14 @@ final class _IVectorDuration extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value.toWinRTDuration()); + int value)>()(lpVtbl, index, value.toWinRTDuration()); if (FAILED(hr)) throwWindowsException(hr); } @override void append(Duration value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -1416,7 +1407,7 @@ final class _IVectorDuration extends IVector { HRESULT Function(VTablePointer lpVtbl, Int64 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toWinRTDuration()); + lpVtbl, value.toWinRTDuration()); if (FAILED(hr)) throwWindowsException(hr); } @@ -1427,7 +1418,7 @@ final class _IVectorDuration extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -1446,7 +1437,7 @@ final class _IVectorDuration extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1464,18 +1455,17 @@ final class _IVectorDuration extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); @@ -1492,18 +1482,17 @@ final class _IVectorFloat extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1520,7 +1509,7 @@ final class _IVectorFloat extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -1534,7 +1523,7 @@ final class _IVectorFloat extends IVector { .asFunction< int Function(VTablePointer lpVtbl, double value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1547,7 +1536,7 @@ final class _IVectorFloat extends IVector { @override void setAt(int index, double value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -1557,14 +1546,14 @@ final class _IVectorFloat extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - double value)>()(ptr.ref.lpVtbl, index, value); + double value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, double value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -1574,14 +1563,14 @@ final class _IVectorFloat extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - double value)>()(ptr.ref.lpVtbl, index, value); + double value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void append(double value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -1589,7 +1578,7 @@ final class _IVectorFloat extends IVector { HRESULT Function(VTablePointer lpVtbl, Float value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -1600,7 +1589,7 @@ final class _IVectorFloat extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -1619,7 +1608,7 @@ final class _IVectorFloat extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1637,18 +1626,17 @@ final class _IVectorFloat extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); @@ -1664,7 +1652,7 @@ final class _IVectorGpioChangeRecord extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -1675,7 +1663,7 @@ final class _IVectorGpioChangeRecord extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1692,7 +1680,7 @@ final class _IVectorGpioChangeRecord extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -1709,7 +1697,7 @@ final class _IVectorGpioChangeRecord extends IVector { NativeGpioChangeRecord value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1725,7 +1713,7 @@ final class _IVectorGpioChangeRecord extends IVector { void setAt(int index, GpioChangeRecord value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -1736,7 +1724,7 @@ final class _IVectorGpioChangeRecord extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativeGpioChangeRecord value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -1747,7 +1735,7 @@ final class _IVectorGpioChangeRecord extends IVector { void insertAt(int index, GpioChangeRecord value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -1758,7 +1746,7 @@ final class _IVectorGpioChangeRecord extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativeGpioChangeRecord value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -1769,7 +1757,7 @@ final class _IVectorGpioChangeRecord extends IVector { void append(GpioChangeRecord value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -1780,7 +1768,7 @@ final class _IVectorGpioChangeRecord extends IVector { .asFunction< int Function( VTablePointer lpVtbl, NativeGpioChangeRecord value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -1793,7 +1781,7 @@ final class _IVectorGpioChangeRecord extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -1812,7 +1800,7 @@ final class _IVectorGpioChangeRecord extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1831,7 +1819,7 @@ final class _IVectorGpioChangeRecord extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -1842,7 +1830,7 @@ final class _IVectorGpioChangeRecord extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -1858,18 +1846,17 @@ final class _IVectorGuid extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1887,7 +1874,7 @@ final class _IVectorGuid extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -1901,7 +1888,7 @@ final class _IVectorGuid extends IVector { .asFunction< int Function(VTablePointer lpVtbl, GUID value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -1917,7 +1904,7 @@ final class _IVectorGuid extends IVector { void setAt(int index, Guid value) { final valueNativeStructPtr = value.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -1927,7 +1914,7 @@ final class _IVectorGuid extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, GUID value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -1938,7 +1925,7 @@ final class _IVectorGuid extends IVector { void insertAt(int index, Guid value) { final valueNativeStructPtr = value.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -1948,7 +1935,7 @@ final class _IVectorGuid extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, GUID value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -1959,7 +1946,7 @@ final class _IVectorGuid extends IVector { void append(Guid value) { final valueNativeStructPtr = value.toNativeGUID(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -1967,7 +1954,7 @@ final class _IVectorGuid extends IVector { HRESULT Function(VTablePointer lpVtbl, GUID value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -1980,7 +1967,7 @@ final class _IVectorGuid extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -1999,7 +1986,7 @@ final class _IVectorGuid extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2018,18 +2005,17 @@ final class _IVectorGuid extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -2045,18 +2031,17 @@ final class _IVectorInt16 extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2073,7 +2058,7 @@ final class _IVectorInt16 extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -2087,7 +2072,7 @@ final class _IVectorInt16 extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2100,7 +2085,7 @@ final class _IVectorInt16 extends IVector { @override void setAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -2110,14 +2095,14 @@ final class _IVectorInt16 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -2127,14 +2112,14 @@ final class _IVectorInt16 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void append(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -2142,7 +2127,7 @@ final class _IVectorInt16 extends IVector { HRESULT Function(VTablePointer lpVtbl, Int16 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -2153,7 +2138,7 @@ final class _IVectorInt16 extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -2172,7 +2157,7 @@ final class _IVectorInt16 extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2190,18 +2175,17 @@ final class _IVectorInt16 extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); @@ -2217,18 +2201,17 @@ final class _IVectorInt32 extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2245,7 +2228,7 @@ final class _IVectorInt32 extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -2259,7 +2242,7 @@ final class _IVectorInt32 extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2272,7 +2255,7 @@ final class _IVectorInt32 extends IVector { @override void setAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -2282,14 +2265,14 @@ final class _IVectorInt32 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -2299,14 +2282,14 @@ final class _IVectorInt32 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void append(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -2314,7 +2297,7 @@ final class _IVectorInt32 extends IVector { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -2325,7 +2308,7 @@ final class _IVectorInt32 extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -2344,7 +2327,7 @@ final class _IVectorInt32 extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2362,18 +2345,17 @@ final class _IVectorInt32 extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); @@ -2389,18 +2371,17 @@ final class _IVectorInt64 extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2417,7 +2398,7 @@ final class _IVectorInt64 extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -2431,7 +2412,7 @@ final class _IVectorInt64 extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2444,7 +2425,7 @@ final class _IVectorInt64 extends IVector { @override void setAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -2454,14 +2435,14 @@ final class _IVectorInt64 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -2471,14 +2452,14 @@ final class _IVectorInt64 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void append(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -2486,7 +2467,7 @@ final class _IVectorInt64 extends IVector { HRESULT Function(VTablePointer lpVtbl, Int64 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -2497,7 +2478,7 @@ final class _IVectorInt64 extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -2516,7 +2497,7 @@ final class _IVectorInt64 extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2534,18 +2515,17 @@ final class _IVectorInt64 extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); @@ -2561,7 +2541,7 @@ final class _IVectorMediaTimeRange extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -2572,7 +2552,7 @@ final class _IVectorMediaTimeRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2589,7 +2569,7 @@ final class _IVectorMediaTimeRange extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -2603,7 +2583,7 @@ final class _IVectorMediaTimeRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, NativeMediaTimeRange value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2619,7 +2599,7 @@ final class _IVectorMediaTimeRange extends IVector { void setAt(int index, MediaTimeRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -2630,7 +2610,7 @@ final class _IVectorMediaTimeRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativeMediaTimeRange value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -2641,7 +2621,7 @@ final class _IVectorMediaTimeRange extends IVector { void insertAt(int index, MediaTimeRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -2652,7 +2632,7 @@ final class _IVectorMediaTimeRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativeMediaTimeRange value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -2663,7 +2643,7 @@ final class _IVectorMediaTimeRange extends IVector { void append(MediaTimeRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -2674,7 +2654,7 @@ final class _IVectorMediaTimeRange extends IVector { .asFunction< int Function( VTablePointer lpVtbl, NativeMediaTimeRange value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -2687,7 +2667,7 @@ final class _IVectorMediaTimeRange extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -2706,7 +2686,7 @@ final class _IVectorMediaTimeRange extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2725,7 +2705,7 @@ final class _IVectorMediaTimeRange extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -2736,7 +2716,7 @@ final class _IVectorMediaTimeRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -2752,7 +2732,7 @@ final class _IVectorMseTimeRange extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -2763,7 +2743,7 @@ final class _IVectorMseTimeRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2780,7 +2760,7 @@ final class _IVectorMseTimeRange extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -2794,7 +2774,7 @@ final class _IVectorMseTimeRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, NativeMseTimeRange value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2810,7 +2790,7 @@ final class _IVectorMseTimeRange extends IVector { void setAt(int index, MseTimeRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -2821,7 +2801,7 @@ final class _IVectorMseTimeRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativeMseTimeRange value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -2832,7 +2812,7 @@ final class _IVectorMseTimeRange extends IVector { void insertAt(int index, MseTimeRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -2843,7 +2823,7 @@ final class _IVectorMseTimeRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativeMseTimeRange value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -2854,7 +2834,7 @@ final class _IVectorMseTimeRange extends IVector { void append(MseTimeRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -2864,7 +2844,7 @@ final class _IVectorMseTimeRange extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, NativeMseTimeRange value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -2877,7 +2857,7 @@ final class _IVectorMseTimeRange extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -2896,7 +2876,7 @@ final class _IVectorMseTimeRange extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2915,7 +2895,7 @@ final class _IVectorMseTimeRange extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -2926,7 +2906,7 @@ final class _IVectorMseTimeRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -2942,7 +2922,7 @@ final class _IVectorNitRange extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -2953,7 +2933,7 @@ final class _IVectorNitRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -2970,7 +2950,7 @@ final class _IVectorNitRange extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -2984,7 +2964,7 @@ final class _IVectorNitRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, NativeNitRange value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3000,7 +2980,7 @@ final class _IVectorNitRange extends IVector { void setAt(int index, NitRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -3011,7 +2991,7 @@ final class _IVectorNitRange extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, NativeNitRange value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -3022,7 +3002,7 @@ final class _IVectorNitRange extends IVector { void insertAt(int index, NitRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -3033,7 +3013,7 @@ final class _IVectorNitRange extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, NativeNitRange value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -3044,7 +3024,7 @@ final class _IVectorNitRange extends IVector { void append(NitRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -3054,7 +3034,7 @@ final class _IVectorNitRange extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, NativeNitRange value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -3067,7 +3047,7 @@ final class _IVectorNitRange extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -3086,7 +3066,7 @@ final class _IVectorNitRange extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3105,7 +3085,7 @@ final class _IVectorNitRange extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -3116,7 +3096,7 @@ final class _IVectorNitRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -3135,18 +3115,17 @@ final class _IVectorInspectable extends IVector { T getAt(int index) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -3167,7 +3146,7 @@ final class _IVectorInspectable extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -3181,7 +3160,7 @@ final class _IVectorInspectable extends IVector { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, (value as IInspectable).lpVtbl, index, retValuePtr); + lpVtbl, (value as IInspectable).lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3194,7 +3173,7 @@ final class _IVectorInspectable extends IVector { @override void setAt(int index, T value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -3205,14 +3184,14 @@ final class _IVectorInspectable extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, VTablePointer value)>()( - ptr.ref.lpVtbl, index, (value as IInspectable).lpVtbl); + lpVtbl, index, (value as IInspectable).lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, T value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -3223,14 +3202,14 @@ final class _IVectorInspectable extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, VTablePointer value)>()( - ptr.ref.lpVtbl, index, (value as IInspectable).lpVtbl); + lpVtbl, index, (value as IInspectable).lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @override void append(T value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -3240,7 +3219,7 @@ final class _IVectorInspectable extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, (value as IInspectable).lpVtbl); + lpVtbl, (value as IInspectable).lpVtbl); if (FAILED(hr)) throwWindowsException(hr); } @@ -3251,7 +3230,7 @@ final class _IVectorInspectable extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -3270,7 +3249,7 @@ final class _IVectorInspectable extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3288,7 +3267,7 @@ final class _IVectorInspectable extends IVector { void replaceAll(List items) { final itemsArray = items.cast().toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -3299,7 +3278,7 @@ final class _IVectorInspectable extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); free(itemsArray); @@ -3314,18 +3293,17 @@ final class _IVectorObject extends IVector { Object? getAt(int index) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -3346,7 +3324,7 @@ final class _IVectorObject extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -3360,10 +3338,7 @@ final class _IVectorObject extends IVector { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, - value?.boxValue().lpVtbl ?? nullptr, - index, - retValuePtr); + lpVtbl, value?.boxValue().lpVtbl ?? nullptr, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3376,7 +3351,7 @@ final class _IVectorObject extends IVector { @override void setAt(int index, Object? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -3387,14 +3362,14 @@ final class _IVectorObject extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, VTablePointer value)>()( - ptr.ref.lpVtbl, index, value?.boxValue().lpVtbl ?? nullptr); + lpVtbl, index, value?.boxValue().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, Object? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -3405,14 +3380,14 @@ final class _IVectorObject extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, VTablePointer value)>()( - ptr.ref.lpVtbl, index, value?.boxValue().lpVtbl ?? nullptr); + lpVtbl, index, value?.boxValue().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @override void append(Object? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -3422,7 +3397,7 @@ final class _IVectorObject extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.boxValue().lpVtbl ?? nullptr); + lpVtbl, value?.boxValue().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @@ -3433,7 +3408,7 @@ final class _IVectorObject extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -3452,7 +3427,7 @@ final class _IVectorObject extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3470,7 +3445,7 @@ final class _IVectorObject extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -3481,7 +3456,7 @@ final class _IVectorObject extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); free(itemsArray); @@ -3496,18 +3471,17 @@ final class _IVectorUri extends IVector { Uri? getAt(int index) { final retValuePtr = calloc(); - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) { free(retValuePtr); @@ -3528,7 +3502,7 @@ final class _IVectorUri extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -3542,10 +3516,7 @@ final class _IVectorUri extends IVector { .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, - value?.toWinRTUri().lpVtbl ?? nullptr, - index, - retValuePtr); + lpVtbl, value?.toWinRTUri().lpVtbl ?? nullptr, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3558,7 +3529,7 @@ final class _IVectorUri extends IVector { @override void setAt(int index, Uri? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -3569,14 +3540,14 @@ final class _IVectorUri extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, VTablePointer value)>()( - ptr.ref.lpVtbl, index, value?.toWinRTUri().lpVtbl ?? nullptr); + lpVtbl, index, value?.toWinRTUri().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, Uri? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -3587,14 +3558,14 @@ final class _IVectorUri extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, VTablePointer value)>()( - ptr.ref.lpVtbl, index, value?.toWinRTUri().lpVtbl ?? nullptr); + lpVtbl, index, value?.toWinRTUri().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @override void append(Uri? value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -3604,7 +3575,7 @@ final class _IVectorUri extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, VTablePointer value)>()( - ptr.ref.lpVtbl, value?.toWinRTUri().lpVtbl ?? nullptr); + lpVtbl, value?.toWinRTUri().lpVtbl ?? nullptr); if (FAILED(hr)) throwWindowsException(hr); } @@ -3615,7 +3586,7 @@ final class _IVectorUri extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -3634,7 +3605,7 @@ final class _IVectorUri extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3652,7 +3623,7 @@ final class _IVectorUri extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -3663,7 +3634,7 @@ final class _IVectorUri extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); free(itemsArray); @@ -3679,7 +3650,7 @@ final class _IVectorPoint extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -3690,7 +3661,7 @@ final class _IVectorPoint extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3708,7 +3679,7 @@ final class _IVectorPoint extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -3722,7 +3693,7 @@ final class _IVectorPoint extends IVector { .asFunction< int Function(VTablePointer lpVtbl, NativePoint value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3738,18 +3709,17 @@ final class _IVectorPoint extends IVector { void setAt(int index, Point value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - NativePoint value)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, int index, NativePoint value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + NativePoint value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + NativePoint value)>()(lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -3760,18 +3730,17 @@ final class _IVectorPoint extends IVector { void insertAt(int index, Point value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - NativePoint value)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, int index, NativePoint value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + NativePoint value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + NativePoint value)>()(lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -3782,7 +3751,7 @@ final class _IVectorPoint extends IVector { void append(Point value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -3792,7 +3761,7 @@ final class _IVectorPoint extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, NativePoint value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -3805,7 +3774,7 @@ final class _IVectorPoint extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -3824,7 +3793,7 @@ final class _IVectorPoint extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3843,7 +3812,7 @@ final class _IVectorPoint extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -3854,7 +3823,7 @@ final class _IVectorPoint extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -3870,7 +3839,7 @@ final class _IVectorPointerDeviceUsage extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -3883,7 +3852,7 @@ final class _IVectorPointerDeviceUsage extends IVector { VTablePointer lpVtbl, int index, Pointer - retValuePtr)>()(ptr.ref.lpVtbl, index, retValuePtr); + retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3900,7 +3869,7 @@ final class _IVectorPointerDeviceUsage extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -3917,7 +3886,7 @@ final class _IVectorPointerDeviceUsage extends IVector { NativePointerDeviceUsage value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -3933,7 +3902,7 @@ final class _IVectorPointerDeviceUsage extends IVector { void setAt(int index, PointerDeviceUsage value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -3944,7 +3913,7 @@ final class _IVectorPointerDeviceUsage extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativePointerDeviceUsage value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -3955,7 +3924,7 @@ final class _IVectorPointerDeviceUsage extends IVector { void insertAt(int index, PointerDeviceUsage value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -3966,7 +3935,7 @@ final class _IVectorPointerDeviceUsage extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativePointerDeviceUsage value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -3977,7 +3946,7 @@ final class _IVectorPointerDeviceUsage extends IVector { void append(PointerDeviceUsage value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -3988,7 +3957,7 @@ final class _IVectorPointerDeviceUsage extends IVector { .asFunction< int Function( VTablePointer lpVtbl, NativePointerDeviceUsage value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4002,7 +3971,7 @@ final class _IVectorPointerDeviceUsage extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -4021,7 +3990,7 @@ final class _IVectorPointerDeviceUsage extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4040,7 +4009,7 @@ final class _IVectorPointerDeviceUsage extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -4051,7 +4020,7 @@ final class _IVectorPointerDeviceUsage extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -4067,7 +4036,7 @@ final class _IVectorRect extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -4078,7 +4047,7 @@ final class _IVectorRect extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4096,7 +4065,7 @@ final class _IVectorRect extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -4110,7 +4079,7 @@ final class _IVectorRect extends IVector { .asFunction< int Function(VTablePointer lpVtbl, NativeRect value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4126,18 +4095,17 @@ final class _IVectorRect extends IVector { void setAt(int index, Rect value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - NativeRect value)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, int index, NativeRect value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + NativeRect value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + NativeRect value)>()(lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4148,18 +4116,17 @@ final class _IVectorRect extends IVector { void insertAt(int index, Rect value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - NativeRect value)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, int index, NativeRect value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + NativeRect value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + NativeRect value)>()(lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4170,7 +4137,7 @@ final class _IVectorRect extends IVector { void append(Rect value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -4179,7 +4146,7 @@ final class _IVectorRect extends IVector { VTablePointer lpVtbl, NativeRect value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4192,7 +4159,7 @@ final class _IVectorRect extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -4211,7 +4178,7 @@ final class _IVectorRect extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4230,18 +4197,17 @@ final class _IVectorRect extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -4257,7 +4223,7 @@ final class _IVectorRectInt32 extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -4268,7 +4234,7 @@ final class _IVectorRectInt32 extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4285,7 +4251,7 @@ final class _IVectorRectInt32 extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -4299,7 +4265,7 @@ final class _IVectorRectInt32 extends IVector { .asFunction< int Function(VTablePointer lpVtbl, NativeRectInt32 value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4315,7 +4281,7 @@ final class _IVectorRectInt32 extends IVector { void setAt(int index, RectInt32 value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -4326,7 +4292,7 @@ final class _IVectorRectInt32 extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, NativeRectInt32 value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4337,7 +4303,7 @@ final class _IVectorRectInt32 extends IVector { void insertAt(int index, RectInt32 value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -4348,7 +4314,7 @@ final class _IVectorRectInt32 extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, NativeRectInt32 value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4359,7 +4325,7 @@ final class _IVectorRectInt32 extends IVector { void append(RectInt32 value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -4369,7 +4335,7 @@ final class _IVectorRectInt32 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, NativeRectInt32 value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4382,7 +4348,7 @@ final class _IVectorRectInt32 extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -4401,7 +4367,7 @@ final class _IVectorRectInt32 extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4420,7 +4386,7 @@ final class _IVectorRectInt32 extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -4431,7 +4397,7 @@ final class _IVectorRectInt32 extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -4447,7 +4413,7 @@ final class _IVectorSize extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -4458,7 +4424,7 @@ final class _IVectorSize extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4476,7 +4442,7 @@ final class _IVectorSize extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -4490,7 +4456,7 @@ final class _IVectorSize extends IVector { .asFunction< int Function(VTablePointer lpVtbl, NativeSize value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4506,18 +4472,17 @@ final class _IVectorSize extends IVector { void setAt(int index, Size value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - NativeSize value)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, int index, NativeSize value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + NativeSize value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + NativeSize value)>()(lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4528,18 +4493,17 @@ final class _IVectorSize extends IVector { void insertAt(int index, Size value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - NativeSize value)>>>() - .value - .asFunction< - int Function( - VTablePointer lpVtbl, int index, NativeSize value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + NativeSize value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + NativeSize value)>()(lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4550,7 +4514,7 @@ final class _IVectorSize extends IVector { void append(Size value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -4559,7 +4523,7 @@ final class _IVectorSize extends IVector { VTablePointer lpVtbl, NativeSize value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4572,7 +4536,7 @@ final class _IVectorSize extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -4591,7 +4555,7 @@ final class _IVectorSize extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4610,18 +4574,17 @@ final class _IVectorSize extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -4637,7 +4600,7 @@ final class _IVectorSizeUInt32 extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -4648,7 +4611,7 @@ final class _IVectorSizeUInt32 extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4665,7 +4628,7 @@ final class _IVectorSizeUInt32 extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -4679,7 +4642,7 @@ final class _IVectorSizeUInt32 extends IVector { .asFunction< int Function(VTablePointer lpVtbl, NativeSizeUInt32 value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4695,7 +4658,7 @@ final class _IVectorSizeUInt32 extends IVector { void setAt(int index, SizeUInt32 value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -4706,7 +4669,7 @@ final class _IVectorSizeUInt32 extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, NativeSizeUInt32 value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4717,7 +4680,7 @@ final class _IVectorSizeUInt32 extends IVector { void insertAt(int index, SizeUInt32 value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -4728,7 +4691,7 @@ final class _IVectorSizeUInt32 extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, NativeSizeUInt32 value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4739,7 +4702,7 @@ final class _IVectorSizeUInt32 extends IVector { void append(SizeUInt32 value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -4749,7 +4712,7 @@ final class _IVectorSizeUInt32 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, NativeSizeUInt32 value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4762,7 +4725,7 @@ final class _IVectorSizeUInt32 extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -4781,7 +4744,7 @@ final class _IVectorSizeUInt32 extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4800,7 +4763,7 @@ final class _IVectorSizeUInt32 extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -4811,7 +4774,7 @@ final class _IVectorSizeUInt32 extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -4827,7 +4790,7 @@ final class _IVectorSortEntry extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -4838,7 +4801,7 @@ final class _IVectorSortEntry extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4855,7 +4818,7 @@ final class _IVectorSortEntry extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -4869,7 +4832,7 @@ final class _IVectorSortEntry extends IVector { .asFunction< int Function(VTablePointer lpVtbl, NativeSortEntry value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4885,7 +4848,7 @@ final class _IVectorSortEntry extends IVector { void setAt(int index, SortEntry value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -4896,7 +4859,7 @@ final class _IVectorSortEntry extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, NativeSortEntry value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4907,7 +4870,7 @@ final class _IVectorSortEntry extends IVector { void insertAt(int index, SortEntry value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -4918,7 +4881,7 @@ final class _IVectorSortEntry extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, NativeSortEntry value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4929,7 +4892,7 @@ final class _IVectorSortEntry extends IVector { void append(SortEntry value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -4939,7 +4902,7 @@ final class _IVectorSortEntry extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, NativeSortEntry value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -4952,7 +4915,7 @@ final class _IVectorSortEntry extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -4971,7 +4934,7 @@ final class _IVectorSortEntry extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -4990,7 +4953,7 @@ final class _IVectorSortEntry extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -5001,7 +4964,7 @@ final class _IVectorSortEntry extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -5019,7 +4982,7 @@ final class _IVectorStorePackageUpdateStatus final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -5033,7 +4996,7 @@ final class _IVectorStorePackageUpdateStatus .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5050,7 +5013,7 @@ final class _IVectorStorePackageUpdateStatus final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -5067,7 +5030,7 @@ final class _IVectorStorePackageUpdateStatus NativeStorePackageUpdateStatus value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5083,7 +5046,7 @@ final class _IVectorStorePackageUpdateStatus void setAt(int index, StorePackageUpdateStatus value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -5094,7 +5057,7 @@ final class _IVectorStorePackageUpdateStatus .asFunction< int Function(VTablePointer lpVtbl, int index, NativeStorePackageUpdateStatus value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -5105,7 +5068,7 @@ final class _IVectorStorePackageUpdateStatus void insertAt(int index, StorePackageUpdateStatus value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -5116,7 +5079,7 @@ final class _IVectorStorePackageUpdateStatus .asFunction< int Function(VTablePointer lpVtbl, int index, NativeStorePackageUpdateStatus value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -5127,7 +5090,7 @@ final class _IVectorStorePackageUpdateStatus void append(StorePackageUpdateStatus value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -5138,7 +5101,7 @@ final class _IVectorStorePackageUpdateStatus .asFunction< int Function(VTablePointer lpVtbl, NativeStorePackageUpdateStatus value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -5152,7 +5115,7 @@ final class _IVectorStorePackageUpdateStatus final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -5171,7 +5134,7 @@ final class _IVectorStorePackageUpdateStatus int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5190,7 +5153,7 @@ final class _IVectorStorePackageUpdateStatus final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -5201,7 +5164,7 @@ final class _IVectorStorePackageUpdateStatus .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -5217,18 +5180,17 @@ final class _IVectorString extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5245,7 +5207,7 @@ final class _IVectorString extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -5259,7 +5221,7 @@ final class _IVectorString extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value.toHString(), index, retValuePtr); + lpVtbl, value.toHString(), index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5272,7 +5234,7 @@ final class _IVectorString extends IVector { @override void setAt(int index, String value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -5282,14 +5244,14 @@ final class _IVectorString extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value.toHString()); + int value)>()(lpVtbl, index, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, String value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -5299,7 +5261,7 @@ final class _IVectorString extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value.toHString()); + int value)>()(lpVtbl, index, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -5307,7 +5269,7 @@ final class _IVectorString extends IVector { @override void append(String value) { final hr = - ptr.ref.vtable + vtable .elementAt(13) .cast< Pointer< @@ -5316,7 +5278,7 @@ final class _IVectorString extends IVector { VTablePointer lpVtbl, IntPtr value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value.toHString()); + lpVtbl, value.toHString()); if (FAILED(hr)) throwWindowsException(hr); } @@ -5327,7 +5289,7 @@ final class _IVectorString extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -5346,7 +5308,7 @@ final class _IVectorString extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5364,19 +5326,18 @@ final class _IVectorString extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); - + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); + free(itemsArray); if (FAILED(hr)) throwWindowsException(hr); @@ -5391,7 +5352,7 @@ final class _IVectorTextRange extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -5402,7 +5363,7 @@ final class _IVectorTextRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5419,7 +5380,7 @@ final class _IVectorTextRange extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -5433,7 +5394,7 @@ final class _IVectorTextRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, NativeTextRange value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5449,7 +5410,7 @@ final class _IVectorTextRange extends IVector { void setAt(int index, TextRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -5460,7 +5421,7 @@ final class _IVectorTextRange extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, NativeTextRange value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -5471,7 +5432,7 @@ final class _IVectorTextRange extends IVector { void insertAt(int index, TextRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -5482,7 +5443,7 @@ final class _IVectorTextRange extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, NativeTextRange value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -5493,7 +5454,7 @@ final class _IVectorTextRange extends IVector { void append(TextRange value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -5503,7 +5464,7 @@ final class _IVectorTextRange extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, NativeTextRange value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -5516,7 +5477,7 @@ final class _IVectorTextRange extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -5535,7 +5496,7 @@ final class _IVectorTextRange extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5554,7 +5515,7 @@ final class _IVectorTextRange extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -5565,7 +5526,7 @@ final class _IVectorTextRange extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -5581,7 +5542,7 @@ final class _IVectorTextSegment extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -5592,7 +5553,7 @@ final class _IVectorTextSegment extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5609,7 +5570,7 @@ final class _IVectorTextSegment extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -5623,7 +5584,7 @@ final class _IVectorTextSegment extends IVector { .asFunction< int Function(VTablePointer lpVtbl, NativeTextSegment value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5639,7 +5600,7 @@ final class _IVectorTextSegment extends IVector { void setAt(int index, TextSegment value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -5650,7 +5611,7 @@ final class _IVectorTextSegment extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativeTextSegment value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -5661,7 +5622,7 @@ final class _IVectorTextSegment extends IVector { void insertAt(int index, TextSegment value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -5672,7 +5633,7 @@ final class _IVectorTextSegment extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, NativeTextSegment value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -5683,7 +5644,7 @@ final class _IVectorTextSegment extends IVector { void append(TextSegment value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -5693,7 +5654,7 @@ final class _IVectorTextSegment extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, NativeTextSegment value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -5706,7 +5667,7 @@ final class _IVectorTextSegment extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -5725,7 +5686,7 @@ final class _IVectorTextSegment extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5744,7 +5705,7 @@ final class _IVectorTextSegment extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -5755,7 +5716,7 @@ final class _IVectorTextSegment extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -5771,18 +5732,17 @@ final class _IVectorUint8 extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5799,7 +5759,7 @@ final class _IVectorUint8 extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -5813,7 +5773,7 @@ final class _IVectorUint8 extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5826,7 +5786,7 @@ final class _IVectorUint8 extends IVector { @override void setAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -5836,14 +5796,14 @@ final class _IVectorUint8 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -5853,14 +5813,14 @@ final class _IVectorUint8 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void append(int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -5868,7 +5828,7 @@ final class _IVectorUint8 extends IVector { HRESULT Function(VTablePointer lpVtbl, Uint8 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -5879,7 +5839,7 @@ final class _IVectorUint8 extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -5898,7 +5858,7 @@ final class _IVectorUint8 extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5916,18 +5876,17 @@ final class _IVectorUint8 extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); @@ -5944,18 +5903,17 @@ final class _IVectorUint16 extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5972,7 +5930,7 @@ final class _IVectorUint16 extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -5986,7 +5944,7 @@ final class _IVectorUint16 extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -5999,7 +5957,7 @@ final class _IVectorUint16 extends IVector { @override void setAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -6009,14 +5967,14 @@ final class _IVectorUint16 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -6026,7 +5984,7 @@ final class _IVectorUint16 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -6034,7 +5992,7 @@ final class _IVectorUint16 extends IVector { @override void append(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(13) .cast< Pointer< @@ -6043,7 +6001,7 @@ final class _IVectorUint16 extends IVector { VTablePointer lpVtbl, Uint16 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -6054,7 +6012,7 @@ final class _IVectorUint16 extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -6073,7 +6031,7 @@ final class _IVectorUint16 extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6091,18 +6049,17 @@ final class _IVectorUint16 extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); @@ -6119,18 +6076,17 @@ final class _IVectorUint32 extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6147,7 +6103,7 @@ final class _IVectorUint32 extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -6161,7 +6117,7 @@ final class _IVectorUint32 extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6174,7 +6130,7 @@ final class _IVectorUint32 extends IVector { @override void setAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -6184,14 +6140,14 @@ final class _IVectorUint32 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -6201,7 +6157,7 @@ final class _IVectorUint32 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -6209,7 +6165,7 @@ final class _IVectorUint32 extends IVector { @override void append(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(13) .cast< Pointer< @@ -6218,7 +6174,7 @@ final class _IVectorUint32 extends IVector { VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -6229,7 +6185,7 @@ final class _IVectorUint32 extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -6248,7 +6204,7 @@ final class _IVectorUint32 extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6266,18 +6222,17 @@ final class _IVectorUint32 extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); @@ -6294,18 +6249,17 @@ final class _IVectorUint64 extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6322,7 +6276,7 @@ final class _IVectorUint64 extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -6336,7 +6290,7 @@ final class _IVectorUint64 extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, value, index, retValuePtr); + lpVtbl, value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6349,7 +6303,7 @@ final class _IVectorUint64 extends IVector { @override void setAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -6359,14 +6313,14 @@ final class _IVectorUint64 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, int value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -6376,7 +6330,7 @@ final class _IVectorUint64 extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, int index, - int value)>()(ptr.ref.lpVtbl, index, value); + int value)>()(lpVtbl, index, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -6384,7 +6338,7 @@ final class _IVectorUint64 extends IVector { @override void append(int value) { final hr = - ptr.ref.vtable + vtable .elementAt(13) .cast< Pointer< @@ -6393,7 +6347,7 @@ final class _IVectorUint64 extends IVector { VTablePointer lpVtbl, Uint64 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, value); + lpVtbl, value); if (FAILED(hr)) throwWindowsException(hr); } @@ -6404,7 +6358,7 @@ final class _IVectorUint64 extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -6423,7 +6377,7 @@ final class _IVectorUint64 extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6441,18 +6395,17 @@ final class _IVectorUint64 extends IVector { void replaceAll(List items) { final itemsArray = items.toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); @@ -6468,7 +6421,7 @@ final class _IVectorWindowId extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(6) .cast< Pointer< @@ -6479,7 +6432,7 @@ final class _IVectorWindowId extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6496,7 +6449,7 @@ final class _IVectorWindowId extends IVector { final index = calloc(); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(9) .cast< Pointer< @@ -6510,7 +6463,7 @@ final class _IVectorWindowId extends IVector { .asFunction< int Function(VTablePointer lpVtbl, NativeWindowId value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); + lpVtbl, valueNativeStructPtr.ref, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6526,7 +6479,7 @@ final class _IVectorWindowId extends IVector { void setAt(int index, WindowId value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(10) .cast< Pointer< @@ -6537,7 +6490,7 @@ final class _IVectorWindowId extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, NativeWindowId value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -6548,7 +6501,7 @@ final class _IVectorWindowId extends IVector { void insertAt(int index, WindowId value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(11) .cast< Pointer< @@ -6559,7 +6512,7 @@ final class _IVectorWindowId extends IVector { .asFunction< int Function( VTablePointer lpVtbl, int index, NativeWindowId value)>()( - ptr.ref.lpVtbl, index, valueNativeStructPtr.ref); + lpVtbl, index, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -6570,7 +6523,7 @@ final class _IVectorWindowId extends IVector { void append(WindowId value) { final valueNativeStructPtr = value.toNative(); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -6580,7 +6533,7 @@ final class _IVectorWindowId extends IVector { .value .asFunction< int Function(VTablePointer lpVtbl, NativeWindowId value)>()( - ptr.ref.lpVtbl, valueNativeStructPtr.ref); + lpVtbl, valueNativeStructPtr.ref); free(valueNativeStructPtr); @@ -6593,7 +6546,7 @@ final class _IVectorWindowId extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -6612,7 +6565,7 @@ final class _IVectorWindowId extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6631,7 +6584,7 @@ final class _IVectorWindowId extends IVector { final allocator = Arena(); final itemsArray = items.toArray(allocator: allocator); - final hr = ptr.ref.vtable + final hr = vtable .elementAt(17) .cast< Pointer< @@ -6642,7 +6595,7 @@ final class _IVectorWindowId extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int itemsSize, Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + lpVtbl, items.length, itemsArray); allocator.releaseAll(); @@ -6662,18 +6615,17 @@ final class _IVectorWinRTEnum extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6690,7 +6642,7 @@ final class _IVectorWinRTEnum extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -6704,7 +6656,7 @@ final class _IVectorWinRTEnum extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, (value as WinRTEnum).value, index, retValuePtr); + lpVtbl, (value as WinRTEnum).value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6717,41 +6669,41 @@ final class _IVectorWinRTEnum extends IVector { @override void setAt(int index, T value) { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Int32 value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, int value)>()( - ptr.ref.lpVtbl, index, (value as WinRTEnum).value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Uint32 index, Int32 value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + int value)>()(lpVtbl, index, (value as WinRTEnum).value); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, T value) { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Int32 value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, int value)>()( - ptr.ref.lpVtbl, index, (value as WinRTEnum).value); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Uint32 index, Int32 value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + int value)>()(lpVtbl, index, (value as WinRTEnum).value); if (FAILED(hr)) throwWindowsException(hr); } @override void append(T value) { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(13) .cast< Pointer< @@ -6759,7 +6711,7 @@ final class _IVectorWinRTEnum extends IVector { HRESULT Function(VTablePointer lpVtbl, Int32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, (value as WinRTEnum).value); + lpVtbl, (value as WinRTEnum).value); if (FAILED(hr)) throwWindowsException(hr); } @@ -6770,7 +6722,7 @@ final class _IVectorWinRTEnum extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -6789,7 +6741,7 @@ final class _IVectorWinRTEnum extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6807,18 +6759,17 @@ final class _IVectorWinRTEnum extends IVector { void replaceAll(List items) { final itemsArray = items.cast().toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); @@ -6838,18 +6789,17 @@ final class _IVectorWinRTFlagsEnum extends IVector { final retValuePtr = calloc(); try { - final hr = ptr.ref.vtable - .elementAt(6) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Pointer retValuePtr)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, - Pointer retValuePtr)>()( - ptr.ref.lpVtbl, index, retValuePtr); + final hr = vtable + .elementAt(6) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 index, + Pointer retValuePtr)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + Pointer retValuePtr)>()(lpVtbl, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6866,7 +6816,7 @@ final class _IVectorWinRTFlagsEnum extends IVector { try { final hr = - ptr.ref.vtable + vtable .elementAt(9) .cast< Pointer< @@ -6880,7 +6830,7 @@ final class _IVectorWinRTFlagsEnum extends IVector { .asFunction< int Function(VTablePointer lpVtbl, int value, Pointer index, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, (value as WinRTEnum).value, index, retValuePtr); + lpVtbl, (value as WinRTEnum).value, index, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6893,34 +6843,34 @@ final class _IVectorWinRTFlagsEnum extends IVector { @override void setAt(int index, T value) { - final hr = ptr.ref.vtable - .elementAt(10) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Uint32 value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, int value)>()( - ptr.ref.lpVtbl, index, (value as WinRTEnum).value); + final hr = vtable + .elementAt(10) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Uint32 index, Uint32 value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + int value)>()(lpVtbl, index, (value as WinRTEnum).value); if (FAILED(hr)) throwWindowsException(hr); } @override void insertAt(int index, T value) { - final hr = ptr.ref.vtable - .elementAt(11) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 index, - Uint32 value)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int index, int value)>()( - ptr.ref.lpVtbl, index, (value as WinRTEnum).value); + final hr = vtable + .elementAt(11) + .cast< + Pointer< + NativeFunction< + HRESULT Function( + VTablePointer lpVtbl, Uint32 index, Uint32 value)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int index, + int value)>()(lpVtbl, index, (value as WinRTEnum).value); if (FAILED(hr)) throwWindowsException(hr); } @@ -6928,7 +6878,7 @@ final class _IVectorWinRTFlagsEnum extends IVector { @override void append(T value) { final hr = - ptr.ref.vtable + vtable .elementAt(13) .cast< Pointer< @@ -6937,7 +6887,7 @@ final class _IVectorWinRTFlagsEnum extends IVector { VTablePointer lpVtbl, Uint32 value)>>>() .value .asFunction()( - ptr.ref.lpVtbl, (value as WinRTEnum).value); + lpVtbl, (value as WinRTEnum).value); if (FAILED(hr)) throwWindowsException(hr); } @@ -6948,7 +6898,7 @@ final class _IVectorWinRTFlagsEnum extends IVector { final items = calloc(itemsSize); try { - final hr = ptr.ref.vtable + final hr = vtable .elementAt(16) .cast< Pointer< @@ -6967,7 +6917,7 @@ final class _IVectorWinRTFlagsEnum extends IVector { int itemsSize, Pointer items, Pointer retValuePtr)>()( - ptr.ref.lpVtbl, startIndex, itemsSize, items, retValuePtr); + lpVtbl, startIndex, itemsSize, items, retValuePtr); if (FAILED(hr)) throwWindowsException(hr); @@ -6985,18 +6935,17 @@ final class _IVectorWinRTFlagsEnum extends IVector { void replaceAll(List items) { final itemsArray = items.cast().toArray(); - final hr = ptr.ref.vtable - .elementAt(17) - .cast< - Pointer< - NativeFunction< - HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, - Pointer items)>>>() - .value - .asFunction< - int Function(VTablePointer lpVtbl, int itemsSize, - Pointer items)>()( - ptr.ref.lpVtbl, items.length, itemsArray); + final hr = vtable + .elementAt(17) + .cast< + Pointer< + NativeFunction< + HRESULT Function(VTablePointer lpVtbl, Uint32 itemsSize, + Pointer items)>>>() + .value + .asFunction< + int Function(VTablePointer lpVtbl, int itemsSize, + Pointer items)>()(lpVtbl, items.length, itemsArray); free(itemsArray); diff --git a/packages/winrtgen/test/projections/getter_test.dart b/packages/winrtgen/test/projections/getter_test.dart index ce93423c..74d30c64 100644 --- a/packages/winrtgen/test/projections/getter_test.dart +++ b/packages/winrtgen/test/projections/getter_test.dart @@ -84,7 +84,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, Pointer value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -111,8 +111,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer ppWwwFormUrlDecoder)')); - expect(projection.identifiers, - equals('ptr.ref.lpVtbl, ppWwwFormUrlDecoder')); + expect(projection.identifiers, equals('lpVtbl, ppWwwFormUrlDecoder')); expect(projection.parametersPostamble, isEmpty); expect( projection.failedCheck, @@ -141,7 +140,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, Pointer value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -169,7 +168,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer handler)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, handler')); + expect(projection.identifiers, equals('lpVtbl, handler')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'handler'))); @@ -198,7 +197,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, Pointer value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -223,7 +222,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, Pointer value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -248,7 +247,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, Pointer value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -273,7 +272,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, Pointer value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -306,7 +305,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer retValuePtr)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, retValuePtr')); + expect(projection.identifiers, equals('lpVtbl, retValuePtr')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -339,7 +338,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer retValuePtr)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, retValuePtr')); + expect(projection.identifiers, equals('lpVtbl, retValuePtr')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -372,7 +371,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer retValuePtr)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, retValuePtr')); + expect(projection.identifiers, equals('lpVtbl, retValuePtr')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -405,7 +404,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer retValuePtr)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, retValuePtr')); + expect(projection.identifiers, equals('lpVtbl, retValuePtr')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true))); expect(projection.nullCheck, @@ -432,7 +431,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, Pointer value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -456,7 +455,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, Pointer value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -483,7 +482,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'value'))); @@ -514,7 +513,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'value'))); @@ -547,7 +546,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'value'))); @@ -578,7 +577,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'value'))); @@ -609,7 +608,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'value'))); @@ -642,7 +641,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'value'))); @@ -675,7 +674,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'value'))); @@ -707,7 +706,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'value'))); @@ -738,7 +737,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'value'))); @@ -769,7 +768,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'value'))); @@ -801,7 +800,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'value'))); @@ -832,7 +831,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'value'))); @@ -865,7 +864,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'value'))); @@ -896,7 +895,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'value'))); @@ -927,7 +926,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'value'))); @@ -963,8 +962,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer valueSize, Pointer> value)')); - expect( - projection.identifiers, equals('ptr.ref.lpVtbl, valueSize, value')); + expect(projection.identifiers, equals('lpVtbl, valueSize, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -1001,7 +999,7 @@ void main() { equals( 'int Function(VTablePointer lpVtbl, Pointer contentKeyIdsSize, Pointer> contentKeyIds)')); expect(projection.identifiers, - equals('ptr.ref.lpVtbl, contentKeyIdsSize, contentKeyIds')); + equals('lpVtbl, contentKeyIdsSize, contentKeyIds')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -1037,8 +1035,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer valueSize, Pointer> value)')); - expect( - projection.identifiers, equals('ptr.ref.lpVtbl, valueSize, value')); + expect(projection.identifiers, equals('lpVtbl, valueSize, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -1072,8 +1069,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer valueSize, Pointer> value)')); - expect( - projection.identifiers, equals('ptr.ref.lpVtbl, valueSize, value')); + expect(projection.identifiers, equals('lpVtbl, valueSize, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -1107,8 +1103,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer valueSize, Pointer> value)')); - expect( - projection.identifiers, equals('ptr.ref.lpVtbl, valueSize, value')); + expect(projection.identifiers, equals('lpVtbl, valueSize, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -1142,7 +1137,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer retValuePtr)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, retValuePtr')); + expect(projection.identifiers, equals('lpVtbl, retValuePtr')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'retValuePtr'))); @@ -1173,7 +1168,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'value'))); @@ -1199,7 +1194,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, Pointer value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -1224,7 +1219,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, Pointer value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -1252,7 +1247,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -1284,7 +1279,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer retValuePtr)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, retValuePtr')); + expect(projection.identifiers, equals('lpVtbl, retValuePtr')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'retValuePtr'))); @@ -1313,7 +1308,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'value'))); diff --git a/packages/winrtgen/test/projections/method_test.dart b/packages/winrtgen/test/projections/method_test.dart index a1651b0c..2eb4d729 100644 --- a/packages/winrtgen/test/projections/method_test.dart +++ b/packages/winrtgen/test/projections/method_test.dart @@ -101,7 +101,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, Pointer value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -128,7 +128,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'value'))); @@ -154,7 +154,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, Pointer result)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, Pointer result)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, result')); + expect(projection.identifiers, equals('lpVtbl, result')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -179,7 +179,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, Pointer value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -203,7 +203,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, Pointer value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -231,7 +231,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, int hresult, Pointer status)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, hresult, status')); + expect(projection.identifiers, equals('lpVtbl, hresult, status')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -256,7 +256,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, Pointer value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -288,8 +288,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)')); - expect( - projection.identifiers, equals('ptr.ref.lpVtbl, index, retValuePtr')); + expect(projection.identifiers, equals('lpVtbl, index, retValuePtr')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -321,8 +320,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)')); - expect( - projection.identifiers, equals('ptr.ref.lpVtbl, index, retValuePtr')); + expect(projection.identifiers, equals('lpVtbl, index, retValuePtr')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -354,8 +352,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, int index, Pointer retValuePtr)')); - expect( - projection.identifiers, equals('ptr.ref.lpVtbl, index, retValuePtr')); + expect(projection.identifiers, equals('lpVtbl, index, retValuePtr')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true))); expect(projection.nullCheck, @@ -381,7 +378,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, Pointer value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -405,7 +402,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, Pointer value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -434,7 +431,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer returnValue)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, returnValue')); + expect(projection.identifiers, equals('lpVtbl, returnValue')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'returnValue'))); @@ -466,7 +463,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer operation)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, operation')); + expect(projection.identifiers, equals('lpVtbl, operation')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'operation'))); @@ -496,8 +493,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer signOutUserOperation)')); - expect(projection.identifiers, - equals('ptr.ref.lpVtbl, signOutUserOperation')); + expect(projection.identifiers, equals('lpVtbl, signOutUserOperation')); expect(projection.parametersPostamble, isEmpty); expect( projection.failedCheck, @@ -530,7 +526,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer operation)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, operation')); + expect(projection.identifiers, equals('lpVtbl, operation')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'operation'))); @@ -558,8 +554,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, int count, Pointer operation)')); - expect( - projection.identifiers, equals('ptr.ref.lpVtbl, count, operation')); + expect(projection.identifiers, equals('lpVtbl, count, operation')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'operation'))); @@ -597,7 +592,7 @@ void main() { expect( projection.identifiers, equals( - 'ptr.ref.lpVtbl, contentId.toHString(), propertiesToRetrieve.lpVtbl, operation')); + 'lpVtbl, contentId.toHString(), propertiesToRetrieve.lpVtbl, operation')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'operation'))); @@ -632,8 +627,8 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, VTablePointer target, Pointer operation)')); - expect(projection.identifiers, - equals('ptr.ref.lpVtbl, target.lpVtbl, operation')); + expect( + projection.identifiers, equals('lpVtbl, target.lpVtbl, operation')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'operation'))); @@ -667,7 +662,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer operation)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, operation')); + expect(projection.identifiers, equals('lpVtbl, operation')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'operation'))); @@ -703,7 +698,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer operation)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, operation')); + expect(projection.identifiers, equals('lpVtbl, operation')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'operation'))); @@ -736,8 +731,8 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, VTablePointer buffer, Pointer operation)')); - expect(projection.identifiers, - equals('ptr.ref.lpVtbl, buffer.lpVtbl, operation')); + expect( + projection.identifiers, equals('lpVtbl, buffer.lpVtbl, operation')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'operation'))); @@ -770,8 +765,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, VTablePointer file, Pointer result)')); - expect(projection.identifiers, - equals('ptr.ref.lpVtbl, file.lpVtbl, result')); + expect(projection.identifiers, equals('lpVtbl, file.lpVtbl, result')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'result'))); @@ -804,7 +798,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer returnValue)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, returnValue')); + expect(projection.identifiers, equals('lpVtbl, returnValue')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'returnValue'))); @@ -835,7 +829,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'value'))); @@ -869,7 +863,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'value'))); @@ -900,7 +894,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer result)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, result')); + expect(projection.identifiers, equals('lpVtbl, result')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'result'))); @@ -933,7 +927,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'value'))); @@ -965,7 +959,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer result)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, result')); + expect(projection.identifiers, equals('lpVtbl, result')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'result'))); @@ -997,7 +991,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer result)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, result')); + expect(projection.identifiers, equals('lpVtbl, result')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'result'))); @@ -1030,7 +1024,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'value'))); @@ -1062,8 +1056,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, VTablePointer user, Pointer value)')); - expect( - projection.identifiers, equals('ptr.ref.lpVtbl, user.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, user.lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'value'))); @@ -1100,8 +1093,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer resultSize, Pointer> result)')); - expect( - projection.identifiers, equals('ptr.ref.lpVtbl, resultSize, result')); + expect(projection.identifiers, equals('lpVtbl, resultSize, result')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -1136,8 +1128,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer resultSize, Pointer> result)')); - expect( - projection.identifiers, equals('ptr.ref.lpVtbl, resultSize, result')); + expect(projection.identifiers, equals('lpVtbl, resultSize, result')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -1174,7 +1165,7 @@ void main() { equals( 'int Function(VTablePointer lpVtbl, int descriptorKind, Pointer resultSize, Pointer> result)')); expect(projection.identifiers, - equals('ptr.ref.lpVtbl, descriptorKind.value, resultSize, result')); + equals('lpVtbl, descriptorKind.value, resultSize, result')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -1208,8 +1199,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer resultSize, Pointer> result)')); - expect( - projection.identifiers, equals('ptr.ref.lpVtbl, resultSize, result')); + expect(projection.identifiers, equals('lpVtbl, resultSize, result')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -1244,8 +1234,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer valueSize, Pointer> value)')); - expect( - projection.identifiers, equals('ptr.ref.lpVtbl, valueSize, value')); + expect(projection.identifiers, equals('lpVtbl, valueSize, value')); expect(projection.parametersPostamble, equals(['free(valueSize);', 'free(value);'])); expect(projection.failedCheck, equals(failedCheck())); @@ -1275,7 +1264,7 @@ void main() { equals( 'int Function(VTablePointer lpVtbl, int key, Pointer returnValue)')); expect(projection.identifiers, - equals('ptr.ref.lpVtbl, key.toHString(), returnValue')); + equals('lpVtbl, key.toHString(), returnValue')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'returnValue'))); @@ -1304,7 +1293,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer propertyValue)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, propertyValue')); + expect(projection.identifiers, equals('lpVtbl, propertyValue')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'propertyValue'))); @@ -1333,10 +1322,8 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, VTablePointer value, Pointer propertyValue)')); - expect( - projection.identifiers, - equals( - 'ptr.ref.lpVtbl, value?.boxValue().lpVtbl ?? nullptr, propertyValue')); + expect(projection.identifiers, + equals('lpVtbl, value?.boxValue().lpVtbl ?? nullptr, propertyValue')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'propertyValue'))); @@ -1368,7 +1355,7 @@ void main() { equals( 'int Function(VTablePointer lpVtbl, int regionCode, Pointer phoneNumber)')); expect(projection.identifiers, - equals('ptr.ref.lpVtbl, regionCode.toHString(), phoneNumber')); + equals('lpVtbl, regionCode.toHString(), phoneNumber')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'phoneNumber'))); @@ -1401,7 +1388,7 @@ void main() { equals( 'int Function(VTablePointer lpVtbl, VTablePointer value, Pointer index, Pointer returnValue)')); expect(projection.identifiers, - equals('ptr.ref.lpVtbl, value.lpVtbl, index, returnValue')); + equals('lpVtbl, value.lpVtbl, index, returnValue')); expect(projection.parametersPostamble, equals(['free(index);'])); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -1435,7 +1422,7 @@ void main() { equals( 'int Function(VTablePointer lpVtbl, int startIndex, int itemsSize, Pointer items, Pointer returnValue)')); expect(projection.identifiers, - equals('ptr.ref.lpVtbl, startIndex, itemsSize, items, returnValue')); + equals('lpVtbl, startIndex, itemsSize, items, returnValue')); expect(projection.parametersPostamble, equals(['free(items);'])); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -1476,7 +1463,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer first, Pointer second)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, first, second')); + expect(projection.identifiers, equals('lpVtbl, first, second')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'first'))); @@ -1525,7 +1512,7 @@ void main() { equals( 'int Function(VTablePointer lpVtbl, int input, Pointer phoneNumber, Pointer result)')); expect(projection.identifiers, - equals('ptr.ref.lpVtbl, input.toHString(), phoneNumber, result')); + equals('lpVtbl, input.toHString(), phoneNumber, result')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'phoneNumber'))); @@ -1559,7 +1546,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, Pointer value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -1584,7 +1571,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, Pointer value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -1609,7 +1596,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, Pointer value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -1637,7 +1624,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -1664,8 +1651,8 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, int uri, Pointer instance)')); - expect(projection.identifiers, - equals('ptr.ref.lpVtbl, uri.toHString(), instance')); + expect( + projection.identifiers, equals('lpVtbl, uri.toHString(), instance')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'instance'))); @@ -1696,7 +1683,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, Pointer callbackUri)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, callbackUri')); + expect(projection.identifiers, equals('lpVtbl, callbackUri')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck(freeRetVal: true, identifier: 'callbackUri'))); @@ -1720,7 +1707,7 @@ void main() { equals('HRESULT Function(VTablePointer lpVtbl)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl')); + expect(projection.identifiers, equals('lpVtbl')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -1749,8 +1736,8 @@ void main() { equals('HRESULT Function(VTablePointer lpVtbl, NativePlane value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, NativePlane value)')); - expect(projection.identifiers, - equals('ptr.ref.lpVtbl, valueNativeStructPtr.ref')); + expect( + projection.identifiers, equals('lpVtbl, valueNativeStructPtr.ref')); expect( projection.parametersPostamble, equals(['allocator.releaseAll();'])); expect(projection.failedCheck, equals(failedCheck())); diff --git a/packages/winrtgen/test/projections/setter_test.dart b/packages/winrtgen/test/projections/setter_test.dart index 854abb59..736618a8 100644 --- a/packages/winrtgen/test/projections/setter_test.dart +++ b/packages/winrtgen/test/projections/setter_test.dart @@ -66,7 +66,7 @@ void main() { equals('HRESULT Function(VTablePointer lpVtbl, Bool value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, bool value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -90,7 +90,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, VTablePointer value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, VTablePointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value.lpVtbl')); + expect(projection.identifiers, equals('lpVtbl, value.lpVtbl')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -112,8 +112,7 @@ void main() { equals('HRESULT Function(VTablePointer lpVtbl, Int64 value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, int value)')); - expect(projection.identifiers, - equals('ptr.ref.lpVtbl, value.toWinRTDateTime()')); + expect(projection.identifiers, equals('lpVtbl, value.toWinRTDateTime()')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -138,8 +137,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, VTablePointer handler)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, VTablePointer handler)')); - expect( - projection.identifiers, equals('ptr.ref.lpVtbl, handler.ref.lpVtbl')); + expect(projection.identifiers, equals('lpVtbl, handler.ref.lpVtbl')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -161,7 +159,7 @@ void main() { equals('HRESULT Function(VTablePointer lpVtbl, Double value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, double value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -183,8 +181,7 @@ void main() { equals('HRESULT Function(VTablePointer lpVtbl, Int64 value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, int value)')); - expect(projection.identifiers, - equals('ptr.ref.lpVtbl, value.toWinRTDuration()')); + expect(projection.identifiers, equals('lpVtbl, value.toWinRTDuration()')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -206,7 +203,7 @@ void main() { equals('HRESULT Function(VTablePointer lpVtbl, Int32 value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, int value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value.value')); + expect(projection.identifiers, equals('lpVtbl, value.value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -230,7 +227,7 @@ void main() { equals('HRESULT Function(VTablePointer lpVtbl, Uint32 value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, int value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value.value')); + expect(projection.identifiers, equals('lpVtbl, value.value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -253,8 +250,8 @@ void main() { equals('HRESULT Function(VTablePointer lpVtbl, GUID value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, GUID value)')); - expect(projection.identifiers, - equals('ptr.ref.lpVtbl, valueNativeStructPtr.ref')); + expect( + projection.identifiers, equals('lpVtbl, valueNativeStructPtr.ref')); expect(projection.parametersPostamble, equals(['free(valueNativeStructPtr);'])); expect(projection.failedCheck, equals(failedCheck())); @@ -277,7 +274,7 @@ void main() { equals('HRESULT Function(VTablePointer lpVtbl, Int32 value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, int value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value')); + expect(projection.identifiers, equals('lpVtbl, value')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -302,7 +299,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, VTablePointer value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, VTablePointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value.lpVtbl')); + expect(projection.identifiers, equals('lpVtbl, value.lpVtbl')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -329,7 +326,7 @@ void main() { expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, VTablePointer value)')); expect(projection.identifiers, - equals('ptr.ref.lpVtbl, value?.toReference().lpVtbl ?? nullptr')); + equals('lpVtbl, value?.toReference().lpVtbl ?? nullptr')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -354,7 +351,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, VTablePointer value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, VTablePointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value.lpVtbl')); + expect(projection.identifiers, equals('lpVtbl, value.lpVtbl')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -378,7 +375,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, VTablePointer value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, VTablePointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value.lpVtbl')); + expect(projection.identifiers, equals('lpVtbl, value.lpVtbl')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -403,7 +400,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, VTablePointer value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, VTablePointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value.lpVtbl')); + expect(projection.identifiers, equals('lpVtbl, value.lpVtbl')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -429,7 +426,7 @@ void main() { 'HRESULT Function(VTablePointer lpVtbl, VTablePointer value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, VTablePointer value)')); - expect(projection.identifiers, equals('ptr.ref.lpVtbl, value.lpVtbl')); + expect(projection.identifiers, equals('lpVtbl, value.lpVtbl')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -457,8 +454,7 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, VTablePointer languages)')); - expect( - projection.identifiers, equals('ptr.ref.lpVtbl, languages.lpVtbl')); + expect(projection.identifiers, equals('lpVtbl, languages.lpVtbl')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -483,7 +479,7 @@ void main() { expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, VTablePointer value)')); expect(projection.identifiers, - equals('ptr.ref.lpVtbl, value?.boxValue().lpVtbl ?? nullptr')); + equals('lpVtbl, value?.boxValue().lpVtbl ?? nullptr')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -505,8 +501,7 @@ void main() { equals('HRESULT Function(VTablePointer lpVtbl, IntPtr value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, int value)')); - expect( - projection.identifiers, equals('ptr.ref.lpVtbl, value.toHString()')); + expect(projection.identifiers, equals('lpVtbl, value.toHString()')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -528,8 +523,7 @@ void main() { equals('HRESULT Function(VTablePointer lpVtbl, Uint16 value)')); expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, int value)')); - expect(projection.identifiers, - equals('ptr.ref.lpVtbl, value.codeUnitAt(0)')); + expect(projection.identifiers, equals('lpVtbl, value.codeUnitAt(0)')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty); @@ -557,8 +551,8 @@ void main() { projection.dartPrototype, equals( 'int Function(VTablePointer lpVtbl, NativeGamepadVibration value)')); - expect(projection.identifiers, - equals('ptr.ref.lpVtbl, valueNativeStructPtr.ref')); + expect( + projection.identifiers, equals('lpVtbl, valueNativeStructPtr.ref')); expect(projection.parametersPostamble, equals(['free(valueNativeStructPtr);'])); expect(projection.failedCheck, equals(failedCheck())); @@ -584,7 +578,7 @@ void main() { expect(projection.dartPrototype, equals('int Function(VTablePointer lpVtbl, VTablePointer value)')); expect(projection.identifiers, - equals('ptr.ref.lpVtbl, value?.toWinRTUri().lpVtbl ?? nullptr')); + equals('lpVtbl, value?.toWinRTUri().lpVtbl ?? nullptr')); expect(projection.parametersPostamble, isEmpty); expect(projection.failedCheck, equals(failedCheck())); expect(projection.nullCheck, isEmpty);