Application settings

Where, in your opinion, the best place to store global settings of your program (preferably consider dll or exe)?

XML, registry, text document, application resources?

SolidworksApi macros