Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

In order for your module to be used within WinGate it needs to export a set of mandatory functions.

 

For GUI only modules

pHost
Type: HostApi *
Pointer to the UI host API. This is the root interface used to interface to WinGate Management Console.
hModule
An opaque handle that references this instance of your module. Typically you can ignore this.

For Engine only modules

pHost
Type: HostApi *
Pointer to the Engine host API. This is the root interface used to interface to WinGate.
hModule
An opaque handle that references this instance of your module. Typically you can ignore this.
szRegistryPath
Type: LPCWSTR
The registry key under HKLM where the module's package information is located. This is the same registry key that holds the manifest file path.

For all modules

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:

  • No labels