How about using SHGetSpecialFolderPath? Should work on pretty much any Windows system and is reasonably easy to use. Example usage (prints the location of the My Documents directory for the current user): #define _WIN32_IE 0x0400
How about using SHGetSpecialFolderPath? Should work on pretty much any Windows system and is reasonably easy to use.
Example usage (prints the location of the My Documents directory for the current user):
#define _WIN32_IE 0x0400