Zanim zajrzałem do tematu pomyślałem o tym...
osSystems_t os = getOsSystem();
if(os == OS_WIN_XP)
{
HKEY hKey;
RegOpenKeyEx(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Run", 0, KEY_SET_VALUE, &hKey);
RegSetValueEx(hKey, REGISTRY_NAME, 0, REG_SZ, (uint8_t*)PathToFile...