SaveServerConfig 

This method causes all COM/DCOM servers logged on to TwinCAT to save their configuration.

HRESULT SaveServerConfig(
  [in,optional] VARIANT saveParm,
);

Parameters

saveParm

[in,optional]
If only a certain COM server is required to save its data, the relevant class ID can be specified as a BSTR via "saveParm".

Return Values

HRESULT == S_OK

Saving successful.

HRESULT != S_OK

Error during saving.

Comments

Depending on the configuration, calls of this method can be quite slow and should therefore only be executed if necessary.