Page tree

Versions Compared

Key

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

...

Vardef
NamedwComponentVersion
Typeunsigned long
StyleMember

The version number of the component. This value is displayed in the Modules panel inside the WinGate Management Console.

Vardef
NamebPublic
Typebool
StyleMember

Specifies whether this component is public. Public components will notify other modules of their existence via their own ComponentEntry.Notify callback.

Vardef
NamehHostPrivate
Linkedtrue
TypeHostComponentHandle
StyleMember

 

Vardef
NamehComponentPrivate
Linkedtrue
TypeComponentContextHandle
StyleMember

Handle used by a component to associate itself with the host framework. You typically set this to the address of your own ComponentEntry.

Code Block
static ComponentEntry myComponent;
 
extern "C" __declspec(dllexport) int Initialise(HostAPI* pHost, HostModuleHandle hModule, LPCWSTR szRegistryPath)
{
// other initialisation ommitted
 
	myComponent.hComponentPrivate = &myComponent;
	
	return wgapi_RegisterComponent(hModule, &myComponent);
}

 

 

Remarks

Anchor
Remarks
Remarks

...