LONG res = RegSetValueEx(vbKey, key, NULL, REG_DWORD, (const UCHAR *)&value, sizeof(DWORD));
if(regEnabled || force) { LONG res = RegSetValueEx(vbKey, key, NULL, REG_DWORD, (const UCHAR *)&value, sizeof(DWORD)); } else { wsprintf(buffer, "%u", value); WritePrivateProfileString(VBA_PREF, key, buffer, VBA_INI); }
void regSetDwordValue(char * key, DWORD value){  LONG res = RegSetValueEx(vbKey,                           key,                           NULL,                           REG_DWORD,                           (const UCHAR *)&value,                           sizeof(DWORD));}