setCategory method

int setCategory(
  1. int NewCategory
)

Implementation

int setCategory(int NewCategory) => ptr.ref.vtable
    .elementAt(19)
    .cast<
        Pointer<NativeFunction<Int32 Function(Pointer, Int32 NewCategory)>>>()
    .value
    .asFunction<
        int Function(
            Pointer, int NewCategory)>()(ptr.ref.lpVtbl, NewCategory);