You already know about
from the answer of gtest_vs
You can find examples on this functions in MSDN
Also consider using a helper library or class instead of raw APIs. This can simplify things a lot.
For example you can use this INI Reader\Writer class
] from CodeProject
It comes in different versions for different platforms.
With a simple search you can find more classes and libraries like this.