...
Code Block | ||
---|---|---|
| ||
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 internal version. If they differ, the module will not be loaded.
Typically the function looks like so:
Code Block | ||
---|---|---|
| ||
extern "C" __declspec(dllexport) int ModuleGetAPIVersion()
{
return COMPONENTS_API_VERSION;
} |