다음을 통해 공유


CeFindFirstRegChange (Windows CE 5.0)

Send Feedback

This function creates a change notification handle and sets up initial change notification filter conditions. A wait on a notification handle succeeds when a change matching the filter conditions occurs in the specified registry key, or subkeys.

HANDLE CeFindFirstRegChange (HKEYhKey,
  BOOLbWatchSubtree,
  DWORDdwNotifyFilter);

Parameters

  • hKey
    [in] Handle to an open key. This handle is returned by the RegCreateKeyEx or RegOpenKeyEx function, or it can be set to one of the following predefined keys:
    • HKEY_CLASSES_ROOT
    • HKEY_CURRENT_CONFIG
    • HKEY_CURRENT_USER
    • HKEY_LOCAL_MACHINE
    • HKEY_USERS
  • bWatchSubtree
    [in] If this parameter is set to TRUE, the function reports changes in the specified key and its subkeys. If the parameter is set to FALSE, the function reports changes only in the specified key.
  • dwNotifyFilter
    [in] Changes that should be reported. This parameter can be set to one or more of the following values.
    Value Description
    REG_NOTIFY_CHANGE_NAME Notify the caller if a subkey is added or deleted.
    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.

Return Values

If the function succeeds, the return value is a handle to a find change notification object. If the function fails, the return value is INVALID_HANDLE_VALUE. To get extended error information, call GetLastError.

Requirements

OS Versions: Windows CE 5.0 and later
Header: Winreg.h
Link Library: Coredll.lib

See Also

Registry Notification Functions | RegCreateKeyEx | RegOpenKeyEx | GetLastError

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.