The RegNotifyChangeKeyValue function notifies the caller about changes to the attributes or contents of a specified registry key. Note that the function does not notify the caller if the specified key is deleted.
LONG RegNotifyChangeKeyValue(
HKEY hKey, |
// handle of key to watch |
BOOL bWatchSubtree, |
// flag for subkey notification |
DWORD dwNotifyFilter, |
// changes to be reported |
HANDLE hEvent, |
// handle of signaled event |
BOOL fAsynchronous |
// flag for asynchronous reporting |
); |
HKEY_CLASSES_ROOT
HKEY_CURRENT_CONFIG
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
HKEY_USERS
Value |
Meaning |
REG_NOTIFY_CHANGE_NAME |
Notify the caller if a subkey is added or deleted. |
REG_NOTIFY_CHANGE_ATTRIBUTES |
Notify the caller of changes to the attributes of the key, such as the security descriptor information. |
REG_NOTIFY_CHANGE_LAST_SET |
Notify the caller of changes to a value of the key. This can include adding or deleting a value, or changing an existing value. |
REG_NOTIFY_CHANGE_SECURITY |
Notify the caller of changes to the security descriptor of the key. |
If hEvent does not specify a valid event, the fAsynchronous parameter cannot be TRUE.
If the function succeeds, the return value is ERROR_SUCCESS.
If the function fails, the return value is a nonzero error code defined in WINERROR.H. You can use the FormatMessage function with the FORMAT_MESSAGE_FROM_SYSTEM flag to get a generic description of the error.
If the key identified by the hKey parameter is closed, the event is signaled. This means that an application should not depend on the key being open after returning from a wait operation on the event.
RegNotifyChangeKeyValue does not work with remote handles. If RegNotifyChangeKeyValue is called with an hKey value that is a remote handle, it returns ERROR_INVALID_HANDLE.
RegDeleteKey, RegEnumKey, RegEnumKeyEx, RegEnumValue, RegQueryInfoKey, RegQueryValue, RegQueryValueEx
file: /Techref/os/win/api/win32/func/src/f73_2.htm, 5KB, , updated: 2000/4/7 12:19, local time: 2024/9/1 17:53,
3.15.239.17:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/Techref/os/win/api/win32/func/src/f73_2.htm"> RegNotifyChangeKeyValue</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.