# Registry Access Flags

    Const KEY_ALL_ACCESS = ((&H1F0000 Or KEY_QUERY_VALUE Or KEY_SET_VALUE Or KEY_CREATE_SUB_KEY Or KEY_ENUMERATE_SUB_KEYS Or KEY_NOTIFY Or KEY_CREATE_LINK) And (Not &H100000))
    Const KEY_CREATE_LINK = &H20
    Const KEY_CREATE_SUB_KEY = &H4
    Const KEY_ENUMERATE_SUB_KEYS = &H8
    Const KEY_EXECUTE = KEY_READ
    Const KEY_NOTIFY = &H10
    Const KEY_QUERY_VALUE = &H1
    Const KEY_READ = ((&H20000 Or KEY_QUERY_VALUE Or KEY_ENUMERATE_SUB_KEYS Or KEY_NOTIFY) And (Not &H100000))
    Const KEY_SET_VALUE = &H2
    Const KEY_WRITE = ((&H20000 Or KEY_SET_VALUE Or KEY_CREATE_SUB_KEY) And (Not &H100000))

The registry access flags specify what levels of registry access to allow the program. They can be combined in any logical combination.

KEY_ALL_ACCESS
  Permission for all general access.
KEY_CREATE_LINK
  Permission to create symbolic links.
KEY_CREATE_SUB_KEY
  Permission to create subkeys.
KEY_ENUMERATE_SUB_KEYS
  Permission to enumerate subkeys.
KEY_EXECUTE
  Permission to read.
KEY_NOTIFY
  Permission to give change notification.
KEY_QUERY_VALUE
  Permission to query subkey data.
KEY_READ
  Permission for general read access.
KEY_SET_VALUE
  Permission to set subkey data.
KEY_WRITE
  Permission for general write access.

Used by: RegCreateKeyEx, RegOpenKeyEx
Back to the index.