switch (Color)
{
  case CLR_TEXT:
    ...
  return 0;

  case CLR_BGND:
    ...
  return 0;

  case CLR_LINE:
    ...
  return 0;

  case CLR_DARK:
    ...
  return 0;

  ...

}

return ERR_UNKNOWN_COLOR;