# Reg_GetValueTypeX64

> Gets the type of the requested variable in 64 bit registry from a 32 bit context.

Source: https://docs.capaone.com/capainstaller/vb-scripting-library/registry-functions/reg-getvaluetypex64/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

### Description

Gets the type of the requested variable in 64 bit registry from a 32 bit context

### Syntax

Reg_GetValueTypeX64(sHandle, sKey, sVariable) as Boolean

### Parameters

#### sHandle (String)

HKEY-handle

#### sKey (String)

Subkey path

#### sVariable (String)

Name of variable to check type of

### Return value

Result will be stored in gsValue and giValue

### Example

**VBScript**

```vb
If bStatus Then bStatus = Reg_GetValueTypeX64("HKLM", "Software\KeyName", "ValueName")
If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: '" & gsValue & "' giValue: '" & giValue &"'", bStatus, True)
```

[Scripting Guidelines](/capainstaller/vb-scripting-library/scripting-guidelines/)

### Related functions

[Registry Functions](/capainstaller/vb-scripting-library/registry-functions/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
