win10相机注册表变化监控
// monitorhelper public class RegeditMonitorHelper { /// <summary> /// 检测注册表项名称变化,以及侦测注册表的创建和删除事件 /// </summary> public static int REG_NOTIFY_CHANGE_NAME = 0x1; /// <summary> /// 侦测属性的变化 /// </summary> public static int REG_NOTIFY_CHANGE_ATTRIBUTES = 0x2; /// <summary> /// 侦测上一次修改时间的变化 /// </summary> public static int REG_NOTIFY_CHANGE_LAST_SET = 0x4; /// <summary> /// 侦测对安全特性的改动 /// </summary> public static int REG_NOTIFY_CHANGE_SECURITY = 0x8; public static uint HKEY_CURRENT_USER = 0x80000001; public static uint HKEY_LOCAL_MACHINE = 0x80000002; public const UInt32 INFINITE = 0xFFFFFFFF;