the domain
path to the output file
configuration for domain or NULL
the flags
TRUE on success, FALSE otherwise