...
Clients of ComponentEntry will normally set this to the address of the ComponentEntry structure itself before registering the component with the framework. e.g:
Code Block | ||
---|---|---|
| ||
static ComponentEntry myComponent; extern "C" __declspec(dllexport) int Initialise(HostAPI* pHost, HostModuleHandle hModule, LPCWSTR szRegistryPath) { // Setup eliminated for brevity myComponent.hComponentPrivate = &myComponent; return wgapi_RegisterComponent(hModule, &myComponent); } |
...