LONG res = RegSetValueEx(vbKey, key, NULL, REG_BINARY, (const UCHAR *)value, count);
if(regEnabled) { LONG res = RegSetValueEx(vbKey, key, NULL, REG_BINARY, (const UCHAR *)value, count); } else { WritePrivateProfileStruct(VBA_PREF, key, value, count, VBA_INI); }
void regSetBinaryValue(char *key, char *value, int count){  LONG res = RegSetValueEx(vbKey,                           key,                           NULL,                           REG_BINARY,                           (const UCHAR *)value,                           count);  }