The Everything_GetMajorVersion function retrieves the major version number of Everything.
DWORD Everything_GetMajorVersion(void);
No parameters.
The function returns the major version number.
The function returns 0 if major version information is unavailable. To get extended error information, call Everything_GetLastError
Error code | Meaning |
---|---|
EVERYTHING_ERROR_IPC | Please make sure the Everything search client is running in the background. |
Everything uses the following version format:
major.minor.revision.build
The build part is incremental and unique for all Everything versions.
DWORD majorVersion;
DWORD minorVersion;
DWORD revision;
// get version information
majorVersion = Everything_GetMajorVersion();
minorVersion = Everything_GetMinorVersion();
revision = Everything_GetRevision();
if ((majorVersion > 1) || ((majorVersion == 1) && (minorVersion > 3)) || ((majorVersion == 1) && (minorVersion == 3) && (revision >= 4)))
{
// do something with version 1.3.4 or later
}
Requires Everything 1.0.0.0 or later.