voidtools

Everything_IsFastSort

The Everything_IsFastSort function checks if the specified file information is indexed and has fast sort enabled.


Syntax

BOOL Everything_IsFastSort(DWORD sortType);

Parameters

sortType

Can be one of the following:

CodeValueDescription
EVERYTHING_IPC_SORT_NAME_ASCENDING1Name ascending
EVERYTHING_IPC_SORT_NAME_DESCENDING 2Name descending
EVERYTHING_IPC_SORT_PATH_ASCENDING 3Path ascending
EVERYTHING_IPC_SORT_PATH_DESCENDING 4Path descending
EVERYTHING_IPC_SORT_SIZE_ASCENDING 5Size ascending
EVERYTHING_IPC_SORT_SIZE_DESCENDING 6Size descending
EVERYTHING_IPC_SORT_EXTENSION_ASCENDING 7Extension ascending
EVERYTHING_IPC_SORT_EXTENSION_DESCENDING 8Extension descending
EVERYTHING_IPC_SORT_TYPE_NAME_ASCENDING 9Type name ascending
EVERYTHING_IPC_SORT_TYPE_NAME_DESCENDING 10Type name descending
EVERYTHING_IPC_SORT_DATE_CREATED_ASCENDING 11Date created ascending
EVERYTHING_IPC_SORT_DATE_CREATED_DESCENDING 12Date created descending
EVERYTHING_IPC_SORT_DATE_MODIFIED_ASCENDING 13Date modified ascending
EVERYTHING_IPC_SORT_DATE_MODIFIED_DESCENDING 14Date modified descending
EVERYTHING_IPC_SORT_ATTRIBUTES_ASCENDING 15Attributes ascending
EVERYTHING_IPC_SORT_ATTRIBUTES_DESCENDING 16Attributes descending
EVERYTHING_IPC_SORT_FILE_LIST_FILENAME_ASCENDING 17File list filename ascending
EVERYTHING_IPC_SORT_FILE_LIST_FILENAME_DESCENDING 18File list filename descending
EVERYTHING_IPC_SORT_RUN_COUNT_ASCENDING 19Run count ascending
EVERYTHING_IPC_SORT_RUN_COUNT_DESCENDING 20Run count descending
EVERYTHING_IPC_SORT_DATE_RECENTLY_CHANGED_ASCENDING21Recently changed ascending
EVERYTHING_IPC_SORT_DATE_RECENTLY_CHANGED_DESCENDING22Recently changed descending
EVERYTHING_IPC_SORT_DATE_ACCESSED_ASCENDING23Date accessed ascending
EVERYTHING_IPC_SORT_DATE_ACCESSED_DESCENDING24Date accessed descending
EVERYTHING_IPC_SORT_DATE_RUN_ASCENDING25Date run ascending
EVERYTHING_IPC_SORT_DATE_RUN_DESCENDING26Date run descending

Return Value

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 codeMeaning
EVERYTHING_ERROR_SUCCESSThe specified information does not have fast sort enabled.
EVERYTHING_ERROR_IPCPlease make sure the Everything search client is running in the background.

Remarks

The following sort types are always fast sort types:

CodeValueDescription
EVERYTHING_IPC_SORT_NAME_ASCENDING1Name ascending
EVERYTHING_IPC_SORT_NAME_DESCENDING 2Name descending
EVERYTHING_IPC_SORT_RUN_COUNT_ASCENDING 19Run count ascending
EVERYTHING_IPC_SORT_RUN_COUNT_DESCENDING 20Run count descending
EVERYTHING_IPC_SORT_DATE_RECENTLY_CHANGED_ASCENDING21Recently changed ascending
EVERYTHING_IPC_SORT_DATE_RECENTLY_CHANGED_DESCENDING22Recently changed descending
EVERYTHING_IPC_SORT_DATE_RUN_ASCENDING25Date run ascending
EVERYTHING_IPC_SORT_DATE_RUN_DESCENDING26Date run descending

Example

BOOL isFastSizeSort;

// Check if sorting by size descending will be instant.
isFastSizeSort = Everything_IsFastSort(EVERYTHING_IPC_SORT_SIZE_DESCENDING);

Function Information

Requires Everything 1.4.1 or later.


See Also


© 2018 - Privacy