Page tree

Versions Compared

Key

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

In order for your module to be used within WinGate it needs to export a set of mandatory functions. The WinGate Module Wizard creates these for you if you use it to create your solution/project.

 

For GUI

...

modules

Code Block
languagecpp
extern "C" __declspec(dllexport) int InitialiseGUI(HostAPI* pHost, HostModuleHandle hModule)

 See InitialiseGUI

For Engine

...

modules

Code Block
languagecpp
extern "C" __declspec(dllexport) int Initialise(HostAPI* pHost, HostModuleHandle hModule, LPCWSTR szRegistryPath)

Vardef
NamepHost
TypeMod*
Linkedtrue
TypeHostApi
StyleParameter

Pointer to the host (UI or Engine) API.

 

 

 

See Initialise

For all modules

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

 

Typically the function looks like so: