Local System Plug-in

<< Click to Display Table of Contents >>

RayQC > 8.0 > User Guide > Plug-ins > Internal Plug-ins 

Local System Plug-in

The Local System plug-in deals with functionality required to read gather information about the Local System.

 

Function Summary

GetEnvVariable

GetMachineName

GetOsName

GetProcessorCount

GetResources

GetServiceStatus

GetUserDomainName

GetUserName

Is64Bit

 

Function Details

GetEnvVariableData Field

Returns the current value of the referenced environment variable.

Usable in combination with elements of type Data Field.

 

Input parameters

Name

Type

Description & Examples

Variable

string

 
 

Name of the environment variable whose value has to be retrieved.

 

Example:

TMP

 

GetMachineNameMulti-OptionData Field

Returns the name of the machine RayQC is running on.

Usable in combination with elements of types Data Field and Multi-Option.

 

This function does not accept parameters.

 

GetOsNameMulti-OptionData Field

Returns the name of the operating system.

Usable in combination with elements of types Data Field and Multi-Option.

 

Input parameters

Name

Type

Description & Examples

Translate

boolean  

optional

default value: true

 
 

Switch for return value type definition.

 

Example:

enabled: the translated OS name is returned

disabled: the raw OS version string is returned

 

GetProcessorCountMulti-OptionData Field

Return the processor count for the current machine.

Usable in combination with elements of types Data Field and Multi-Option.

 

This function does not accept parameters.

GetResourcesData Field

Returns a path to the current working directory where supporting files [Resources] can be found.

Usable in combination with elements of types Data Field.

 

Input parameters

Name

Type

Description & Examples

File

formatted string

optional

default value: none

If a file name is given, RayQC will extend the return value with this file name to provide the full path to the resource file including the actual file name for direct file access.

 

Example:

Using

Sample.txt as value for the File parameter

C:\Users\Admin\AppData\Local\Temp\RayQC\working\2040_0\Resources\ as path retrieved by the function

leads to

C:\Users\Admin\AppData\Local\Temp\RayQC\working\2040_0\Resources\Sample.txt as total return value of the plug-in function execution

 

GetServiceStatusData Field

Returns the status of the given service.

Usable in combination with elements of type Data Field and Multi-Option.

 

Input parameters

Name

Type

Description & Examples

ServiceName

string

 
 

Name of the service whose status has to be retrieved.

 

Example:

Remote Registry

 

GetUserDomainNameMulti-OptionData Field

Returns the user domain name for the user running RayQC.

Usable in combination with elements of types Data Field and Multi-Option.

 

This function does not accept parameters.

GetUserNameMulti-OptionData Field

Returns the user name for the user running RayQC.

Usable in combination with elements of types Data Field and Multi-Option.

 

This function does not accept parameters.

Is64BitCheckpoint

Returns Yes if the current operating system is a 64bit system.

Usable in combination with elements of type Data Field.

 

This function does not accept parameters.