
CONFIDENTIAL – No part of this document may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic or
mechanical, photocopying, recording, or otherwise, for any purpose, without the prior written permission of VITEC MULTIMEDIA.
VMC-7440_v8_0_6_Quick Start_V1_0_0.doc
registered in Windows’ Registry. Please refer to LiveWire Implementing Custom
Component.html document from \DevResources\Tutorial for further information.
7.8.21. How can I change a parameter from my application?
IAssemblyContainer interface has some methods that allow interacting directly with the
parameter of component.
get_ComponentParameter(BSTR bstrComponentName, BSTR bstrParameterName,
LONG* plVal);
This method returns current integer value parameter in plVal variable.
put_ComponentParameter(BSTR bstrComponentName, BSTR bstrParameterName,
LONG lVal);
This method sets current integer value to lVal.
get_ComponentParameterText(BSTR bstrComponentName, BSTR
bstrParameterName, BSTR* pbstrVal);
This method returns current text value parameter in pbstrVal variable.
put_ComponentParameterText(BSTR bstrComponentName, BSTR
bstrParameterName, BSTR bstrVal);
This method sets current text value bstrVal argument.
Please note that for parameters which are in a sub section (see paragraph 5.4), main
component and subsection must be specified following path rule:
bstrComponentName = L”MainComponent\\Subsection”.
For instance to modify Contrast parameters of Device it is necessary to add Video Input
section with this call.
m_pAssemblyContainer->put_ComponentParameter(L"Device\\Video Input", L"Contrast
", new_value);
7.8.22. Where can I find access rights, current, default, min and max value
for each parameter?
Parameter values are stored in the XML file in profile sections with their values and a
flag for access rights management.
Each bit of the AccessFlag represents different rights that can be combined.
1 = Read-only mode.
2 = Hidden mode (only visible from the Livewire Setting page when Show Hidden is
checked in the view menu).
8 = Protected mode (similar to read only except that right is cleared when creating a
child profile from the preset).
Other bits are reserved.
For integer parameters, there is current, default, max and min values described as
follow
<Property AccessFlags="0" Current="XXX" Default="XXX" Max="XXX" Min="XXX"
Name="Parameter_name"/>
Comentarios a estos manuales