SECRegistry::NotifyChange

BOOLSECRegistry::NotifyChange(const HANDLEhEvent, const NotifyChangeFilterreported_changes, const BOOLbAllSubkeys, const BOOLbWaitForChange)

Indicates when a registry key has changed.

Defined in: SECREG.CPP

Return Value

BOOL

Parameters

hEvent

Handle of signalled event.

reported_changes

Type of change to be reported (see Comments).

bAllSubkeys

Boolean flag to indicate whether any change in subkeys should cause notification.

bWaitForChange

Specifies how a change should be reported.

Comments

Encapsulates RegNotifyChangeKeyValue API to indicate when a registry key has changed. If bWaitForChange is TRUE, the wait is performed synchronously, and control returns immediately to the program. Otherwise the function will wait for the event to occur. The changes_to_be_reported parameter accepts the same arguments as the fdwNotifyFilter parameter in the RegNotifyChangeKeyValue API, and can include any combination of the following values:

REG_NOTIFY_CHANGE_NAME

Changes to key names that occur in the specified key or in the specified key and its subkeys cause a change notification. This includes key creations and deletions.

REG_NOTIFY_CHANGE_ATTRIBUTES

Attribute changes that occur in a key or in a key and its subkeys cause a change notification.

REG_NOTIFY_CHANGE_LAST_SET

Changes to the last write time that occur in a key or in a key and its subkeys cause a change notification.

REG_NOTIFY_CHANGE_SECURITY

Security-descriptor changes that occur in a key or in a key and its subkeys cause a change notification.

Developer Notes

For 32-bit only.

See Also

SECRegistry