With your code I get a crash because you included windows.h and overwrite an already declared function pointer.

Either rename your GetEnvironmentVariable to something else or do it like that:

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

STRING* profileTempStr = "#128";

function main()
{
	GetEnvironmentVariable("AllUsersProfile", _chr(profileTempStr), 128);
	printf(_chr(profileTempStr));
}


Last edited by Ch40zzC0d3r; 07/08/16 08:47.