voidtools

Everything_GetLastError

The Everything_GetLastError function retrieves the last-error code value.


Syntax

DWORD Everything_GetLastError(void);

Parameters

This function has no parameters.


Return Value

Error codeValueMeaning
EVERYTHING_OK0The operation completed successfully.
EVERYTHING_ERROR_MEMORY1Failed to allocate memory for the search query.
EVERYTHING_ERROR_IPC2IPC is not available.
EVERYTHING_ERROR_REGISTERCLASSEX3Failed to register the search query window class.
EVERYTHING_ERROR_CREATEWINDOW4Failed to create the search query window.
EVERYTHING_ERROR_CREATETHREAD5Failed to create the search query thread.
EVERYTHING_ERROR_INVALIDINDEX6Invalid index. The index must be greater or equal to 0 and less than the number of visible results.
EVERYTHING_ERROR_INVALIDCALL7Invalid call.

Example

// execute the query
if (!Everything_Query(true))
{
DWORD dwLastError = Everything_GetLastError();
if (dwLastError == EVERYTHING_ERROR_IPC)
{
// IPC not available.
}
}

© 2024 voidtools - Privacy