LONG res = RegSetValueEx(vbKey, key, NULL, REG_SZ, (const UCHAR *)value, strlen(value)+1);
if(regEnabled) { LONG res = RegSetValueEx(vbKey, key, NULL, REG_SZ, (const UCHAR *)value, strlen(value)+1); } else { WritePrivateProfileString(VBA_PREF, key, value, VBA_INI); }
void regSetStringValue(char * key, char * value){  LONG res = RegSetValueEx(vbKey,                           key,                           NULL,                           REG_SZ,                           (const UCHAR *)value,                           strlen(value)+1);  }