win32api.RegNotifyChangeKeyValue

RegNotifyChangeKeyValue(key, bWatchSubTree, dwNotifyFilter, hKey, fAsynchronous)

Receive notification of registry changes

Parameters

key : PyHKEY/int

Handle to an open registry key

bWatchSubTree : int

Boolean, notify of changes to subkeys if True

dwNotifyFilter : int

Combination of REG_NOTIFY_CHANGE_* constants

hKey : PyHANDLE

Event handle to be signalled, use None if fAsynchronous is False

fAsynchronous : int

Boolean, function returns immediately if True, waits for change if False