The following bug has been logged on the website:
Bug reference: 13277
Logged by: Kajetan Abt
Email address: kajetan.abt@cyfex.com
PostgreSQL version: 9.4.1
Operating system: Windows 8.1
Description:
It seems that it is impossible to programmatically create a data source on
Windows 8. Neither odbcconf.exe /A {CONFIGDSN ....} nor
SQLConfigDataSource(...) seem to work at all. The former return an unclear
error mesage, the latter actually corrupts the heap. My use case was trying
to add a new data source for the current user with Postgres Unicode(x64) as
a driver. I tried both an older driver version (in the 8-range), and two
more current ones, namely 9.3.300 and 9.3.400.