# WindowsRegistry

from pandac.PandaModules import WindowsRegistry

Class : WindowsRegistry
Description : This class provides a hook to Python to read and write strings and integers to the windows registry. It automatically converts strings from utf-8 encoding and stores them in Unicode (and conversely reconverts them on retrieval).

## Inheritance:

WindowsRegistry:

## Methods of WindowsRegistry:

getIntValue
getKeyType
getStringValue
setIntValue
setStringValue

## Constants in WindowsRegistry:

rlMachine | (RegLevel)
rlUser | (RegLevel)
TNone | (Type)
TInt | (Type)
TString | (Type)

getIntValue static int WindowsRegistry::get_int_value(string const &key, string const &name, int default_value, WindowsRegistry::RegLevel rl = (rl_machine)); Description: Returns the value associated with the indicated registry key, assuming it is an integer value. If the key is not defined or is not an integer type value, default_value is returned instead.

getKeyType static WindowsRegistry::Type WindowsRegistry::get_key_type(string const &key, string const &name, WindowsRegistry::RegLevel rl = (rl_machine)); Description: Returns the type of the indicated key, or T_none if the key is not known or is some unsupported type.

getStringValue static string WindowsRegistry::get_string_value(string const &key, string const &name, string const &default_value, WindowsRegistry::RegLevel rl = (rl_machine)); Description: Returns the value associated with the indicated registry key, assuming it is a string value. The string value is automatically encoded using TextEncoder::get_default_encoding(). If the key is not defined or is not a string type value, default_value is returned instead.

setIntValue static bool WindowsRegistry::set_int_value(string const &key, string const &name, int value, WindowsRegistry::RegLevel rl = (rl_machine)); Description: Sets the registry key to the indicated value as an integer. The registry key must already exist prior to calling this function.

setStringValue static bool WindowsRegistry::set_string_value(string const &key, string const &name, string const &value, WindowsRegistry::RegLevel rl = (rl_machine)); Description: Sets the registry key to the indicated value as a string. The supplied string value is automatically converted from whatever encoding is set by TextEncoder::set_default_encoding() and written as a Unicode string. The registry key must already exist prior to calling this function.