Asposecpplib
Microsoft::Win32 Namespace Reference

Classes

class  RegistryKey
 API to manipulate registry values. Support is very limited and Windows-only. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
struct  Registry
 Windows system registry API. This is a static type with no instance services. You should never create instances of it by any means. More...
 

Enumerations

enum class  RegistryView { Default = 0 , Registry64 = 256 , Registry32 = 512 }
 Defines which of the registry views to use on 64-bit Windows. More...
 
enum class  RegistryHive {
  ClassesRoot = (std::numeric_limits<int32_t>::min)() , CurrentUser = -2147483647 , LocalMachine = -2147483646 , Users = -2147483645 ,
  PerformanceData = -2147483644 , CurrentConfig = -2147483643 , DynData = -2147483642
}
 Defines which registry root item to use as base on remote machine. More...
 
enum class  RegistryKeyPermissionCheck { Default = 0 , ReadSubTree = 1 , ReadWriteSubTree = 2 }
 Defines how the security checks are performed on registry entries. More...
 
enum class  RegistryOptions { None = 0 , Volatile = 1 }
 Registry keys creation options. More...
 
enum class  AccessControlSections {
  None = 0 , Audit = 1 , Access = 2 , Owner = 4 ,
  Group = 8 , All = 15
}
 Specifies which part of security descriptor to save or load. More...
 
enum class  RegistryValueOptions { None = 0 , DoNotExpandEnvironmentNames = 1 }
 Registry value write mode. More...
 
enum class  RegistryValueKind {
  None = -1 , Unknown = 0 , String = 1 , ExpandString = 2 ,
  Binary = 3 , DWord = 4 , MultiString = 7 , QWord = 11
}
 Type of registry value. More...
 
enum class  RegistryRights {
  QueryValues = 1 , SetValue = 2 , CreateSubKey = 4 , EnumerateSubKeys = 8 ,
  Notify = 16 , CreateLink = 32 , Delete = 65536 , ReadPermissions = 131072 ,
  WriteKey = 131078 , ExecuteKey = 131097 , ReadKey = 131097 , ChangePermissions = 262144 ,
  TakeOwnership = 524288 , FullControl = 983103
}
 Registry access rights. More...
 

Enumeration Type Documentation

◆ AccessControlSections

Specifies which part of security descriptor to save or load.

Enumerator
None 

No sections.

Audit 

Audit section.

Access 

Access section.

Owner 

Owner section.

Group 

Group section.

All 

All section.

◆ RegistryHive

Defines which registry root item to use as base on remote machine.

Enumerator
ClassesRoot 

Use HKEY_CLASSES_ROOT.

CurrentUser 

Use HKEY_CURRENT_USER.

LocalMachine 

Use HKEY_LOCAL_MACHINE.

Users 

Use HKEY_USERS.

PerformanceData 

Use HKEY_PERFORMANCE_DATA.

CurrentConfig 

Use HKEY_CURRENT_CONFIG.

DynData 

Use HKEY_DYN_DATA.

◆ RegistryKeyPermissionCheck

Defines how the security checks are performed on registry entries.

Enumerator
Default 

Inherits parent permissions.

ReadSubTree 

No security checks when reading subtree.

ReadWriteSubTree 

No security checks when reading or writing subtree.

◆ RegistryOptions

Registry keys creation options.

Enumerator
None 

Store value on disc.

Volatile 

Keep value in memory only.

◆ RegistryRights

Registry access rights.

Enumerator
QueryValues 

Reading values.

SetValue 

Setting values.

CreateSubKey 

Creating subkeys.

EnumerateSubKeys 

Listing subkeys.

Notify 

Sending notifications.

CreateLink 

Link creation.

Delete 

Section deletion.

ReadPermissions 

Reading permissions mask.

WriteKey 

Key writing permissions mask.

ExecuteKey 

Key execution permissions mask.

ReadKey 

Key reading permissions mask.

ChangePermissions 

Permission change.

TakeOwnership 

Ownership taking.

FullControl 

Full control mask.

◆ RegistryValueKind

Type of registry value.

Enumerator
None 

No value.

Unknown 

Unknown type.

String 

String type.

ExpandString 

Long string.

Binary 

Binary type.

DWord 

32-bit integer.

MultiString 

Multiple strings.

QWord 

64-bit integer.

◆ RegistryValueOptions

Registry value write mode.

Enumerator
None 

Default.

DoNotExpandEnvironmentNames 

Without environment names expansion.

◆ RegistryView

Defines which of the registry views to use on 64-bit Windows.

Enumerator
Default 

Use default view.

Registry64 

Use 64-bit registry view.

Registry32 

Use 32-bit registry view.