DWORD type = 0; DWORD size = count; DWORD result = 0;  LONG res = RegQueryValueEx(vbKey, key, NULL, &type, (UCHAR *)value, &size);  if(res == ERROR_SUCCESS && type == REG_BINARY) return TRUE;
if(regEnabled) { DWORD type = 0; DWORD size = count; DWORD result = 0;   LONG res = RegQueryValueEx(vbKey, key, NULL, &type, (UCHAR *)value, &size);  if(res == ERROR_SUCCESS && type == REG_BINARY) return TRUE;
BOOL regQueryBinaryValue(char * key, char *value, int count){  DWORD type = 0;  DWORD size = count;  DWORD result = 0;    LONG res = RegQueryValueEx(vbKey,                             key,                             NULL,                             &type,                             (UCHAR *)value,                             &size);    if(res == ERROR_SUCCESS && type == REG_BINARY)    return TRUE;  return FALSE;}