Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagecpp
extern "C" __declspec(dllexport) int ModuleGetAPIVersion()

ModuleGetAPIVersion should return the version of the API that your module was compiled with. WinGate will check that the version returned from ModuleGetAPIVersion is the same as its own host API version. If they differ, the module will not be loaded. The host API version number does not change unless we make a significant change to the API that would break compatibility with current plugins.

 

Typically the function looks like so:

Code Block
languagecpp
extern "C" __declspec(dllexport) int ModuleGetAPIVersion()
{
	return COMPONENTS_API_VERSION;
}