[ODBC] DRIVER=SQL Server ;UID=sa DATABASE=JIWA WSID=T7020CT APP=Test SERVER=. Description=Local Trusted_Connection=TrueThe files live (in my case) in the C:\Program Files\Common Files\ODBC\Data Sources>/tt> folder. I guess there's an API call to find out what that folder is. OTOH, maybe it doesn't matter where the DSN file lives, just as loong as you can provide and explicit, known path to it.
[ODBC] DRIVER=Microsoft Access Driver (*.mdb) UID=admin UserCommitSync=Yes Threads=3 SafeTransactions=0 PageTimeout=5 MaxScanRows=8 MaxBufferSize=2048 FIL=MS Access DriverId=25 DefaultDir=C:\Program Files\Microsoft Office\Office10\Samples DBQ=C:\Program Files\Microsoft Office\Office10\Samples\Northwind.mdbHTH