Documentation ¶
Overview ¶
Package registry provides primitives to access the Windows Registry
Index ¶
- Constants
- type MockRegistry
- func (r MockRegistry) CreateKey(path RegPath) error
- func (r MockRegistry) DeleteKey(path RegPath) error
- func (r MockRegistry) DeleteValue(path RegPath, valueName string) error
- func (r MockRegistry) EnumValues(path RegPath) []string
- func (r MockRegistry) GetQword(path RegPath, valueName string) (uint64, error)
- func (r MockRegistry) SetQword(path RegPath, valueName string, value uint64) error
- type RegPath
- type Registry
Constants ¶
View Source
const ( HKEY_CLASSES_ROOT = iota HKEY_CURRENT_USER HKEY_LOCAL_MACHINE HKEY_USERS HKEY_PERFORMANCE_DATA HKEY_CURRENT_CONFIG HKEY_DYN_DATA )
Registry hKey index values, do not reorder
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRegistry ¶
func NewMockRegistry ¶
func NewMockRegistry() MockRegistry
func (MockRegistry) CreateKey ¶
func (r MockRegistry) CreateKey(path RegPath) error
func (MockRegistry) DeleteKey ¶
func (r MockRegistry) DeleteKey(path RegPath) error
func (MockRegistry) DeleteValue ¶
func (r MockRegistry) DeleteValue(path RegPath, valueName string) error
func (MockRegistry) EnumValues ¶
func (r MockRegistry) EnumValues(path RegPath) []string
type RegPath ¶
A registry path is composed of an hKey index and the string representation of the path withing that hKey. We use hKey indexes to avoid dependency on non-portable syscall values.
Click to show internal directories.
Click to hide internal directories.