HRESULT WINAPI SHGetFolderPath(HWND hwndOwner, int nFolder,HANDLE hToken,DWORD dwFlags,char* pszPath);
#define PRAGMA_API SHGetFolderPath;Shell32.dll!SHGetFolderPathA
char temp_getfolder[260];
STRING* appdata_str="";
const int APPDATA = 0x001A;
const int DESKTOP = 0x0000;
const int PROGRAMFILES = 0x0026;
void get_folder()
{
SHGetFolderPath(NULL,APPDATA,0,NULL,temp_getfolder);
str_cpy(appdata_str,temp_getfolder);
add_folder(_chr(appdata_str));
}