How to change BDE setting by code

How can I change BDE settings via code. I trying make a program that
toons the BDE settings for different user needs. So that databases
could be effective when needed OR could consume as little memory as

Does it make any sence?