Skip to content

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.

{
  "hostVersion": "2026",
  "configPath": "C:\\ProgramData\\PARO\\HydroSym\\Plugins\\MyPlugin\\plugin.ini",
  "hostDataPath": "C:\\Users\\you\\AppData\\Roaming\\PARO\\HydroSym",
  "mainWindowHandle": 0,
  "windowsUser": "jsmith",
  "windowsDomain": "WORKGROUP"
}
{}

JSON Schemas: Request · Response