对注册表和系统服务项的一些有关问题

对注册表和系统服务项的一些问题
如何获取 注册表中自动启动项和系统服务项发生变化时的信息呢?
求大牛!
给个思路即可,或者调用哪些API更好,不胜感激!
注册表 api 服务 变化

------解决方案--------------------
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 to key to watch
  BOOL bWatchSubtree,    // flag for subkey notification
  DWORD dwNotifyFilter,  // changes to be reported
  HANDLE hEvent,         // handle to signaled event
  BOOL fAsynchronous     // flag for asynchronous reporting
);
 
Parameters
hKey 
Handle to a currently open key or any of the following predefined reserved handle values: 
HKEY_CLASSES_ROOT
HKEY_CURRENT_CONFIG
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