Profile property

int Profile

Implementation

int get Profile {
  final retValuePtr = calloc<IntPtr>();

  try {
    final hr = Pointer<NativeFunction<_get_Profile_Native>>.fromAddress(
            ptr.ref.vtable.elementAt(18).value)
        .asFunction<_get_Profile_Dart>()(ptr.ref.lpVtbl, retValuePtr);
    if (FAILED(hr)) throw WindowsException(hr);

    final retValue = retValuePtr.value;
    return retValue;
  } finally {
    free(retValuePtr);
  }
}