PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • 32-bit application operating on a 64-bit system
  • Handling the registry in Windows Vista
  • Operating mode in GO mode and at run time
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
RegistryValueType (Function)
In French: RegistreTypeValeur
Returns the type of value found in the registry.
Example
WINDEVWEBDEV - Server codeReports and QueriesAjaxUser code (UMC)
// Returns the type of "Language" value in "HKEY_LOCAL_MACHINE\SOFTWARE\App"
ResReadingType is string
ResReadingType = RegistryValueType("HKEY_LOCAL_MACHINE\SOFTWARE\App", "Language")

IF ResReadingType = RegistryTypeString THEN
Info("Type of language key: String")
END
Syntax

Finding out the type of value identified by its name in the registry Hide the details

<Result> = RegistryValueType(<Key Path> , <Value Name>)
<Result>: Character String constant
Type of value:
RegistryTypeBinaryBinary key.
RegistryTypeStringString key.
RegistryTypeStringEnvString key containing environment variables.
RegistryTypeInt4-byte integer key.
RegistryTypeInt_88-byte integer key.
RegistryTypeIntegerBigEndianBig-endian integer key
RegistryTypeMultiStringMultistring key
<Key Path>: Character string (with quotes)
Full path of key to use. This key must exists in order for a value to be given to it.
Windows Mobile This path can contain up to 255 characters and up to 16 levels.
<Value Name>: Character string (with quotes)
Name of the value to use.

Finding out the type of value identified by its subscript in the registry Hide the details

<Result> = RegistryValueType(<Key Path> , <Value Subscript>)
<Result>: Character String constant
Type of value:
RegistryTypeBinaryBinary key.
RegistryTypeStringString key.
RegistryTypeStringEnvString key containing environment variables.
RegistryTypeInt4-byte integer key.
RegistryTypeInt_88-byte integer key.
RegistryTypeIntegerBigEndianBig-endian integer key
RegistryTypeMultiStringMultistring key
<Key Path>: Character string (with quotes)
Full path of key to use. This key must exists.
Windows Mobile This path can contain up to 255 characters and up to 16 levels.
<Value Subscript>: Integer
Subscript of value to use.
Remarks
WINDEVWEBDEV - Server codeReports and QueriesWindowsUser code (UMC)

32-bit application operating on a 64-bit system

On a 64-bit system, the 32-bit applications write into the registry from the following branch:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node
WINDEVWEBDEV - Server codeReports and QueriesWindowsUser code (UMC)

Handling the registry in Windows Vista

In Windows Vista (and later), if the UAC mechanism is enabled, you must have the administrator rights to write into "HKEY_LOCAL_MACHINE\SOFTWARE".
If the user does not have the necessary rights, the UAC mechanism performs a redirection to "HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE". The purpose of this redirection is to ensure the compatibility of the applications. The keys written in this directory can be read by the application that has written them.
Reminder: when creating the executable, a manifest can be included in the executable so that administrator rights are granted to the application.
Windows Mobile

Operating mode in GO mode and at run time

In GO mode (simulation on the development computer), RegistryValueType handles the registry of development computer.
At run time, RegistryValueType handles the Mobile Device registry (Pocket PC).
The differences between GO mode (simulator) and real use are presented in Differences between GO mode and real use.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
Windows Mobile wp230std.dll
Minimum required version
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment