古龙作品全集收藏指南:版本选择、阅读顺序与避坑全解析
2026/9/28 7:31:46
创建 AppLocker 条目是一个困难且容易出错的过程,因为这些条目分散在众多注册表键中,需要在注册表中递归搜索合适的位置来放置这些键。
private List < String > SearchReg( RegistryKey StartHive, String StartPath, String SearchKey, List < String > Results) { RegistryKey Start; // Defines a starting point for the search. // This operation will fail when processing certain users. try { // Open the specified registry key. Start = StartHive.OpenSubKey(StartPath); } catch (SecurityException SE) { // The application can’t process this key. return Results; } // Start may be null after an attempt to open some user keys. if (Start == null)