OverviewExamples
Checks to see if a Registry key has specific access rights and returns either true or false.
(number) The main or "root" key containing the sub key. Choose from:
CONSTANT |
VALUE |
HKEY_CLASSES_ROOT |
0 |
HKEY_CURRENT_CONFIG |
1 |
HKEY_CURRENT_USER |
2 |
HKEY_LOCAL_MACHINE |
3 |
HKEY_USERS |
4 |
(string) The sub key to check for access rights.
(number) The access rights to check. Choose from:
CONSTANT |
VALUE |
DESCRIPTION |
ACCESS_READ |
131097 |
The Registry key contents can be read. |
ACCESS_WRITE |
131078 |
The Registry key can be written to. |
ACCESS_ENUMERATE |
8 |
The Registry key contents can be enumerated. |
ACCESS_ALL |
98103 |
The key has full access rights. (Default) |
(boolean) True if the key has the specified access rights and false if it doesn't or an error occurs. You can use Application.GetLastError to determine whether this action failed, and why.
See also: Related Actions