voidtools

Everything_GetMajorVersion

The Everything_GetMajorVersion function retrieves the major version number of Everything.


Syntax

DWORD Everything_GetMajorVersion(void);

Parameters

No parameters.


Return Value

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 codeMeaning
EVERYTHING_ERROR_IPCPlease make sure the Everything search client is running in the background.

Remarks

Everything uses the following version format:

major.minor.revision.build

The build part is incremental and unique for all Everything versions.


Example

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
}

Function Information

Requires Everything 1.0.0.0 or later.


See Also


© 2024 voidtools - Privacy