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 ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API 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< RegistryKey > ASPOSECPP_SHARED_API ClassesRoot
 HKEY_CLASSES_ROOT key. More...
 
static const System::SharedPtr< RegistryKey > ASPOSECPP_SHARED_API CurrentConfig
 HKEY_CURRENT_CONFIG key. More...
 
static const System::SharedPtr< RegistryKey > ASPOSECPP_SHARED_API CurrentUser
 HKEY_CURRENT_USER key. More...
 
static const System::SharedPtr< RegistryKey > ASPOSECPP_SHARED_API DynData
 HKEY_DYN_DATA key. More...
 
static const System::SharedPtr< RegistryKey > ASPOSECPP_SHARED_API LocalMachine
 HKEY_LOCAL_MACHINE key. More...
 
static const System::SharedPtr< RegistryKey > ASPOSECPP_SHARED_API PerformanceData
 HKEY_PERFORMANCE_DATA key. More...
 
static const System::SharedPtr< RegistryKey > ASPOSECPP_SHARED_API Users
 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 ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API 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> ASPOSECPP_SHARED_API Microsoft::Win32::Registry::ClassesRoot
static

HKEY_CLASSES_ROOT key.

◆ CurrentConfig

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

HKEY_CURRENT_CONFIG key.

◆ CurrentUser

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

HKEY_CURRENT_USER key.

◆ DynData

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

HKEY_DYN_DATA key.

◆ LocalMachine

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

HKEY_LOCAL_MACHINE key.

◆ PerformanceData

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

HKEY_PERFORMANCE_DATA key.

◆ Users

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

HKEY_USERS key.