GetMinFarVersion
The GetMinFarVersion is called to get the minimum FAR version
required for the plugin to work correctly.
int WINAPI GetMinFarVersion(void);
Parameters
None.
Return value
This function must return an integer in the form
0xZZZZXXYY
:
Component | Description |
---|---|
ZZZZ | build number (FAR 1.70.387 = 0x0183) |
XX | major version (FAR 1.70 = 0x01) |
YY | minor version (FAR 1.70 = 0x46) |
It is recomended to use the macro MAKEFARVERSION.
Remarks
If the required version is greater than the current FAR version,
an error message is displayed and the plugin is then unloaded.
Example
// For a plugin that requires FAR Manager 1.70 build 591 or later int WINAPI _export GetMinFarVersion(void) { return MAKEFARVERSION(1,70,591); } // And this plugin will work in FAR Manager version 1.70 and later int WINAPI _export GetMinFarVersion(void) { return MAKEFARVERSION(1,70,0); }
See also: