createForUser static method

FileOpenPicker? createForUser(
  1. User? user
)

Implementation

static FileOpenPicker? createForUser(User? user) {
  final activationFactoryPtr =
      CreateActivationFactory(_className, IID_IFileOpenPickerStatics2);
  final object = IFileOpenPickerStatics2.fromRawPointer(activationFactoryPtr);

  try {
    return object.createForUser(user);
  } finally {
    object.release();
  }
}