GetControlItemState method Null safety

int GetControlItemState(
  1. int dwIDCtl,
  2. int dwIDItem,
  3. Pointer<Uint32> pdwState
)

Implementation

int GetControlItemState(
        int dwIDCtl, int dwIDItem, Pointer<Uint32> pdwState) =>
    ptr.ref.lpVtbl.value
            .elementAt(22)
            .cast<Pointer<NativeFunction<_GetControlItemState_Native>>>()
            .value
            .asFunction<_GetControlItemState_Dart>()(
        ptr.ref.lpVtbl, dwIDCtl, dwIDItem, pdwState);