Page tree

Versions Compared

Key

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

...

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);
}

...

Vardef
NameInitInterfaces
LinkedNametrue
Linkedtrue
TypeInitInterfacesFunc
StyleMember

Pointer to the function that initialises the component's interfaces. This will not be called by the framework unless ComponentEntry.QueryInitInterfaces has returned true;

...