How To Override Settings in the Type Library
If you need to temporarily change certain data sent from the type library to the host, you can override the type library settings without changing the original file. Use the following keywords in combination with the COMTIContext parameter to override the type library setting:
-
The override remains active until either a new override is set or the override is deleted. Use the WriteContext function to set the override and the DeleteContext function to delete the override. If you delete the override, the value defaults to the setting in the original type library.
See Also
Custom TRMs and ELMs with COMTIContext
How to Pass a Custom TRM