API | ITcRemoteManager Parameter Return value Error codes E_POINTER : pVersions is NULL . E_NOT_VALID_STATE : No component host is registered. See also SetComponentVersion GetComponentVersion 5.4.1.3 ITcRemoteManager::SetComponentVersion | ITcRemoteManager::SetComponentVersion Sets the version of a specified TwinCAT component to be loaded. Currently, only the "Base" component (or an empty component name) is implemented. All other component names return E_NOTIMPL . For the base component, the version string is parsed and, if valid, the requested version is loaded permanently. An empty or syntactically invalid string falls back to the default version.
Signature HRESULT SetComponentVersion([in] BSTR bstrComponent, [in] BSTR bstrVersion); Parameter Return value Error codes E_NOT_VALID_STATE : No component host is registered. E_NOTIMPL : bstrComponent is not "Base" , nor is it empty. See also GetComponentVersion GetComponentVersions TE1000 68 Version: 1.7.0 Name Type Description bstrComponent BSTR [in] Component name. Empty or "Base" is addressed to the System Manager. Name Type Description pVersions SAFEARRAY(BSTR)* [out, retval] Availability of component versions. (HRESULT) HRESULT S OK if successful, otherwise an error code. _ Name Type Description bstrComponent BSTR [in] Component name. Empty or "Base" is addressed to the System Manager.
bstrVersion BSTR [in] Version to be loaded. Invalid strings result in the default version. Name Type Description (HRESULT) HRESULT S OK if successful, otherwise an error code. _