Code:
#include <acknex.h>
#include <default.c>
#include <windows.h>

HRESULT WINAPI SHGetFolderPath(HWND hwndOwner, int nFolder,HANDLE hToken,DWORD dwFlags,char* pszPath);
#define PRAGMA_API SHGetFolderPath;Shell32.dll!SHGetFolderPathA

const int APPDATA = 0x001A;
char buffer[260];

void main()
{
	
	SHGetFolderPath(NULL,APPDATA,0,NULL,buffer);
	error(buffer);
}