The Everything_IsFastSort function checks if the specified file information is indexed and has fast sort enabled.
BOOL Everything_IsFastSort(DWORD sortType);
sortType
Can be one of the following:
Code | Value | Description |
---|---|---|
EVERYTHING_IPC_SORT_NAME_ASCENDING | 1 | Name ascending |
EVERYTHING_IPC_SORT_NAME_DESCENDING | 2 | Name descending |
EVERYTHING_IPC_SORT_PATH_ASCENDING | 3 | Path ascending |
EVERYTHING_IPC_SORT_PATH_DESCENDING | 4 | Path descending |
EVERYTHING_IPC_SORT_SIZE_ASCENDING | 5 | Size ascending |
EVERYTHING_IPC_SORT_SIZE_DESCENDING | 6 | Size descending |
EVERYTHING_IPC_SORT_EXTENSION_ASCENDING | 7 | Extension ascending |
EVERYTHING_IPC_SORT_EXTENSION_DESCENDING | 8 | Extension descending |
EVERYTHING_IPC_SORT_TYPE_NAME_ASCENDING | 9 | Type name ascending |
EVERYTHING_IPC_SORT_TYPE_NAME_DESCENDING | 10 | Type name descending |
EVERYTHING_IPC_SORT_DATE_CREATED_ASCENDING | 11 | Date created ascending |
EVERYTHING_IPC_SORT_DATE_CREATED_DESCENDING | 12 | Date created descending |
EVERYTHING_IPC_SORT_DATE_MODIFIED_ASCENDING | 13 | Date modified ascending |
EVERYTHING_IPC_SORT_DATE_MODIFIED_DESCENDING | 14 | Date modified descending |
EVERYTHING_IPC_SORT_ATTRIBUTES_ASCENDING | 15 | Attributes ascending |
EVERYTHING_IPC_SORT_ATTRIBUTES_DESCENDING | 16 | Attributes descending |
EVERYTHING_IPC_SORT_FILE_LIST_FILENAME_ASCENDING | 17 | File list filename ascending |
EVERYTHING_IPC_SORT_FILE_LIST_FILENAME_DESCENDING | 18 | File list filename descending |
EVERYTHING_IPC_SORT_RUN_COUNT_ASCENDING | 19 | Run count ascending |
EVERYTHING_IPC_SORT_RUN_COUNT_DESCENDING | 20 | Run count descending |
EVERYTHING_IPC_SORT_DATE_RECENTLY_CHANGED_ASCENDING | 21 | Recently changed ascending |
EVERYTHING_IPC_SORT_DATE_RECENTLY_CHANGED_DESCENDING | 22 | Recently changed descending |
EVERYTHING_IPC_SORT_DATE_ACCESSED_ASCENDING | 23 | Date accessed ascending |
EVERYTHING_IPC_SORT_DATE_ACCESSED_DESCENDING | 24 | Date accessed descending |
EVERYTHING_IPC_SORT_DATE_RUN_ASCENDING | 25 | Date run ascending |
EVERYTHING_IPC_SORT_DATE_RUN_DESCENDING | 26 | Date run descending |
The function returns non-zero if the specified information is indexed and has fast sort enabled.
The function returns 0 if the specified information does not have fast sort enabled or if an error occurred. To get extended error information, call Everything_GetLastError.
Error code | Meaning |
---|---|
EVERYTHING_OK | The specified information does not have fast sort enabled. |
EVERYTHING_ERROR_IPC | Please make sure the Everything search client is running in the background. |
The following sort types are always fast sort types:
Code | Value | Description |
---|---|---|
EVERYTHING_IPC_SORT_NAME_ASCENDING | 1 | Name ascending |
EVERYTHING_IPC_SORT_NAME_DESCENDING | 2 | Name descending |
EVERYTHING_IPC_SORT_RUN_COUNT_ASCENDING | 19 | Run count ascending |
EVERYTHING_IPC_SORT_RUN_COUNT_DESCENDING | 20 | Run count descending |
EVERYTHING_IPC_SORT_DATE_RECENTLY_CHANGED_ASCENDING | 21 | Recently changed ascending |
EVERYTHING_IPC_SORT_DATE_RECENTLY_CHANGED_DESCENDING | 22 | Recently changed descending |
EVERYTHING_IPC_SORT_DATE_RUN_ASCENDING | 25 | Date run ascending |
EVERYTHING_IPC_SORT_DATE_RUN_DESCENDING | 26 | Date run descending |
BOOL isFastSizeSort;
// Check if sorting by size descending will be instant.
isFastSizeSort = Everything_IsFastSort(EVERYTHING_IPC_SORT_SIZE_DESCENDING);
Requires Everything 1.4.1 or later.