Initialize¶
Establish connections and load configuration.
When is this called?
Called once after GetInfo (not gated by capabilities). Plugin should connect to databases, authenticate, etc. Return ERROR if initialization cannot complete (e.g. database unreachable). If Initialize fails, Finalize is not called and the DLL is unloaded.
C# Override¶
public override void Initialize(InitializeRequest request)
{
// Read config from request.ConfigPath
}
Request¶
| Field | Type | Required | Description |
|---|---|---|---|
hostVersion |
string |
✅ | Host application version string. |
configPath |
string |
Path to plugin-specific configuration file. | |
hostDataPath |
string |
✅ | Path to the host application's data directory. |
mainWindowHandle |
integer |
✅ | HWND of the host application's main window. |
windowsUser |
string |
✅ | Current Windows username. |
windowsDomain |
string |
Windows domain name, if domain-joined. |
Response¶
This method returns no data on success.
JSON¶
The SDK serializes these JSON bodies for you.