|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| No
| Win32s
| No
| Import Library
| advapi32.lib
| Header File
| winreg.h
| Unicode
| No
| Platform Notes
| None
|
|
|
RegNotifyChangeKeyValue
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
| );
|
|
Parameters
hKey
Identifies a currently open key or any of the following predefined reserved
handle values:
HKEY_CLASSES_ROOT
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
HKEY_USERS
bWatchSubtree
Specifies a flag that indicates whether to report changes in the specified key
and all of its subkeys or only in the specified key. If this parameter is
TRUE, the function reports changes in the key and its subkeys. If the parameter is
FALSE, the function reports changes only in the key.
dwNotifyFilter
Specifies a set of flags that control which changes should be reported. This
parameter can be a combination of the following values:
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.
|
hEvent
Identifies an event. If the fAsynchronous parameter is TRUE, the function returns immediately and changes are reported
by signaling this event. If fAsynchronous is FALSE, hEvent is ignored.
fAsynchronous
Specifies a flag that indicates how the function reports changes. If this
parameter is TRUE, the function returns immediately and reports changes by
signaling the specified event. When this parameter is FALSE, the function does not
return until a change has occurred.
If hEvent does not specify a valid event, the fAsynchronous parameter cannot be TRUE.
Return Values
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.
Remarks
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.
See Also
RegDeleteKey, RegEnumKey, RegEnumKeyEx, RegEnumValue, RegQueryInfoKey, RegQueryValue, RegQueryValueEx
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|