I'm currently working on a screensaver for windows and need to store a settings file in the user's AppData folder. Right now I am using
Code:
getenv("APPDATA")
to find it, but this seems somewhat unreliable to me. Is there a way to do this with the Windows API?