Better? but unportable. Those are Win API specific functions and useless elsewhere.
Ini files are a thing of the past anyway. They should only be used for compatability with existing implementations or for learning file i/o and string manipulation. Use XML instead