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 />

Syntax<br />

GetRegValueType( 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 />

1 Variable type is String.<br />

0 Variable type is DWord.<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 GetRegValueType( 0, "HARDWARE\DESCRIPTION\System", "SystemBiosDate" ) //<br />

Returned value = 1<br />

Tag<br />

GetServerHostName<br />

GetRegValueType( 2, "Control Panel\Desktop", "Smooth Scroll" ) // Returned<br />

value = 0<br />

Gets the host name of the project's Server station.<br />

Function Group Execution Windows Embedded Thin Client<br />

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

Syntax<br />

GetServerHostName()<br />

This function takes no parameters.<br />

Returned value<br />

Server host name for ISSymbol and 127.0.0.1 for others.<br />

Page 670<br />

<strong>InduSoft</strong> Web Studio

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

Saved successfully!

Ooh no, something went wrong!