18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix: Built-in Scripting Language<br />

GetRegValue<br />

Gets a the value of a variable in the Windows registry.<br />

Function Group Execution Windows Embedded Thin Client<br />

GetRegValue System Info Synchronous Supported Supported Not supported<br />

Syntax<br />

GetRegValue( numMainKey, strKey, strValueName )<br />

numMainKey<br />

Numeric tag with the following possible values:<br />

0 HKEY_LOCAL_MACHINE<br />

1 HKEY_CLASSES_ROOT<br />

2 HKEY_CURRENT_USER<br />

3 HKEY_USERS<br />

4 HKEY_CURRENT_CONFIG<br />

5 HKEY_PERFORMANCE_DATA<br />

strKey<br />

Path where the value is located in the Main Key.<br />

strVariableName<br />

Name of the variable to get. The maximum length is 255 characters.<br />

Returned value<br />

If the function succeeds, then the function returns the variable value. Otherwise one of the following error<br />

codes will be returned:<br />

−1<br />

−2<br />

−3<br />

Invalid number of parameters or invalid Main Key.<br />

Variable type is not supported. You can only read DWord or String values from the registry.<br />

Failed to read the variable value; verify that you have the proper security rights.<br />

Examples<br />

Tag Name<br />

Expression<br />

Tag GetRegValue( 0, "HARDWARE\DESCRIPTION\System", "SystemBiosDate" ) //<br />

Returned value = "08/14/03"<br />

Tag GetRegValue( 2, "Control Panel\Current", "Color Schemes" ) // Returned value =<br />

"Windows Standard "<br />

GetRegValueType<br />

Gets the data type of the value of a variable in the Windows registry.<br />

Function Group Execution Windows Embedded Thin Client<br />

GetRegValueTypeSystem Info Synchronous Supported Supported Not supported<br />

<strong>InduSoft</strong> Web Studio Page 669

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!