ITcSysManager::OpenConfiguration
The OpenConfiguration() method loads a previously created TwinCAT configuration file.
HRESULT OpenConfiguration(BSTRbstrFile);
Parameters
bstrFile |
[in, defaultvalue(L"")] contains the file path of the configuration file that should be loaded or an empty string if a new configuration should generated. The currently running configuration of a target device may also be read by using "CURRENTCONFIG". |
Return Values
S_OK |
Function has returned a value. |
E_ACCESSDENIED |
The actual document is locked in the system manager-instance. This is if at least one reference tot he system manager-object or one of the Tree Items is opened. |
E_INVALIDARG |
The path doesn’t point to a valid configfile. |
Comments
Warning: The three methods ITcSysManager::NewConfiguration, ITcSysManager::OpenConfiguration and ITcsSysManager::SaveConfiguration are only available in Compatiblity Mode. Calling them in standard mode will throw an E_NOTSUPPORTED Exception.