SWI-Prolog Did You Know Did you know? SWI-Prolog supports DDE on Windows Search Documentation:
Predicate sub_term_shared_variables/3