#define ERROR_DS_INVALID_SEARCH_FLAG 8500L
MessageId: ERROR_DS_INVALID_SEARCH_FLAG MessageText: The search flags for the attribute are invalid. The ANR bit is valid only on attributes of Unicode or Teletex strings.