Asposecpplib
Microsoft::Win32::Registry Struct Reference

Windows system registry API. This is a static type with no instance services. You should never create instances of it by any means. More...

Static Public Member Functions

static System::SharedPtr< System::ObjectGetValue (const System::String &keyName, const System::String &valueName, const System::SharedPtr< System::Object > &defaultValue)
 Gets value of specified key. Not implemented. More...
 
static void SetValue (const System::String &keyName, const System::String &valueName, const System::SharedPtr< System::Object > &value)
 Sets value of specified key. Not implemented. More...
 
static void SetValue (const System::String &keyName, const System::String &valueName, const System::SharedPtr< System::Object > &value, RegistryValueKind valueKind)
 Sets value of specified key. Not implemented. More...
 

Static Public Attributes

static const System::SharedPtr< RegistryKeyClassesRoot
 HKEY_CLASSES_ROOT key. More...
 
static const System::SharedPtr< RegistryKeyCurrentConfig
 HKEY_CURRENT_CONFIG key. More...
 
static const System::SharedPtr< RegistryKeyCurrentUser
 HKEY_CURRENT_USER key. More...
 
static const System::SharedPtr< RegistryKeyDynData
 HKEY_DYN_DATA key. More...
 
static const System::SharedPtr< RegistryKeyLocalMachine
 HKEY_LOCAL_MACHINE key. More...
 
static const System::SharedPtr< RegistryKeyPerformanceData
 HKEY_PERFORMANCE_DATA key. More...
 
static const System::SharedPtr< RegistryKeyUsers
 HKEY_USERS key. More...
 

Detailed Description

Windows system registry API. This is a static type with no instance services. You should never create instances of it by any means.

Member Function Documentation

◆ GetValue()

static System::SharedPtr<System::Object> Microsoft::Win32::Registry::GetValue ( const System::String keyName,
const System::String valueName,
const System::SharedPtr< System::Object > &  defaultValue 
)
static

Gets value of specified key. Not implemented.

Parameters
keyNameThe full registry path of the key.
valueNameRepresents the key of the name/value pair.
defaultValueValues used when valueName does not exist.
Returns
nullptr when the key specified by the keyName doesn't exist, otherwise returns the value associated with valueName, or defaultValue if valueName is not found.
Exceptions
Alwaysthrows System::NotSupportedException.

◆ SetValue() [1/2]

static void Microsoft::Win32::Registry::SetValue ( const System::String keyName,
const System::String valueName,
const System::SharedPtr< System::Object > &  value 
)
static

Sets value of specified key. Not implemented.

Parameters
keyNameThe full registry path of the key.
valueNameRepresents the key of the name/value pair.
valueThe value to set.
Exceptions
Alwaysthrows System::NotSupportedException.

◆ SetValue() [2/2]

static void Microsoft::Win32::Registry::SetValue ( const System::String keyName,
const System::String valueName,
const System::SharedPtr< System::Object > &  value,
RegistryValueKind  valueKind 
)
static

Sets value of specified key. Not implemented.

Parameters
keyNameThe full registry path of the key.
valueNameRepresents the key of the name/value pair.
valueThe value to set.
valueKindThe registry data type.
Exceptions
Alwaysthrows System::NotSupportedException.

Member Data Documentation

◆ ClassesRoot

const System::SharedPtr<RegistryKey> Microsoft::Win32::Registry::ClassesRoot
static

HKEY_CLASSES_ROOT key.

◆ CurrentConfig

const System::SharedPtr<RegistryKey> Microsoft::Win32::Registry::CurrentConfig
static

HKEY_CURRENT_CONFIG key.

◆ CurrentUser

const System::SharedPtr<RegistryKey> Microsoft::Win32::Registry::CurrentUser
static

HKEY_CURRENT_USER key.

◆ DynData

const System::SharedPtr<RegistryKey> Microsoft::Win32::Registry::DynData
static

HKEY_DYN_DATA key.

◆ LocalMachine

const System::SharedPtr<RegistryKey> Microsoft::Win32::Registry::LocalMachine
static

HKEY_LOCAL_MACHINE key.

◆ PerformanceData

const System::SharedPtr<RegistryKey> Microsoft::Win32::Registry::PerformanceData
static

HKEY_PERFORMANCE_DATA key.

◆ Users

const System::SharedPtr<RegistryKey> Microsoft::Win32::Registry::Users
static

HKEY_USERS key.