RAD Studio VCL Reference
|
Specifies the level of access to use when opening keys.
property Access: LongWord;
__property LongWord Access;
Use Access to specify the level of security access to use when opening keys. The OpenKey method uses the value of Access when opening a registry key. Access is initialized by the TRegistry constructor, but can be altered before calling OpenKey.
The value of Access is a set of flags or'd together, where each flag indicates a type of permission. Choose a value that grants sufficient permission to allow the desired actions while not exceeding the access level of the system running the application. The following table lists the flags that can be included:
Flag |
Meaning |
KEY_ALL_ACCESS |
combination of KEY_READ, KEY_WRITE, and KEY_CREATE_LINK. |
KEY_READ |
combination of KEY_QUERY_VALUE, KEY_ENUMERATE_SUB_KEYS, and KEY_NOTIFY. |
KEY_WRITE |
combination of KEY_SET_VALUE and KEY_CREATE_SUB_KEY. |
KEY_QUERY_VALUE |
grants permission to query subkey data. |
KEY_ENUMERATE_SUB_KEYS |
grants permission to enumerate subkeys. |
KEY_NOTIFY |
grants ability to receive change notifications. |
KEY_SET_VALUE |
grants permission to set subkey data. |
KEY_CREATE_SUB_KEY |
grants permission to create subkeys. |
KEY_CREATE_LINK |
grants permission to create symbolic links. |
KEY_EXECUTE |
restricts permission to read-only access. |
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|