{"id":24971245,"url":"https://github.com/miaione/offineregistry","last_synced_at":"2025-04-11T05:42:39.967Z","repository":{"id":65184997,"uuid":"586116638","full_name":"MIAIONE/OffineRegistry","owner":"MIAIONE","description":"fork offreg by standard 2.1","archived":false,"fork":false,"pushed_at":"2023-01-12T04:09:57.000Z","size":102,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T17:37:00.849Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MIAIONE.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2023-01-07T01:57:06.000Z","updated_at":"2023-01-24T13:34:28.000Z","dependencies_parsed_at":"2023-02-09T10:00:41.473Z","dependency_job_id":null,"html_url":"https://github.com/MIAIONE/OffineRegistry","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MIAIONE%2FOffineRegistry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MIAIONE%2FOffineRegistry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MIAIONE%2FOffineRegistry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MIAIONE%2FOffineRegistry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MIAIONE","download_url":"https://codeload.github.com/MIAIONE/OffineRegistry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248351442,"owners_count":21089270,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-03T16:10:06.138Z","updated_at":"2025-04-11T05:42:39.941Z","avatar_url":"https://github.com/MIAIONE.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OffineRegistry\n---\n\n## 这个库修改自offreg\n\n\n这个库在新版本中追随原生体验, 因此重写了相关方法;\n\n//1.0.4版本增加了InitOffreg, 你必须先调用他加载offreg.dll, 然后才可以调用加载hive\n\n例如: RegistryKey.InitOffreg.InitLibrary(@\"X:\\Windows\\System32\\offreg.dll\");\n\n//如果你不想判断subkey是否存在, 请直接createsubkey, 因为创建前会先尝试打开\n\n//1.0.4支持多路径了: \n\n例如: key2.CreateSubKey(@\"xxx\\sssssss\\ssssssfsf\\sdfsdfwefs\\sadfsdfsdfsef\");\n\n\n\n---\n\n使用方法与offreg一样, 值得注意的是, SaveHive方法中的版本非常依赖offreg.dll的版本:\n\ne.g. offreg version = 6.2 (win7)\n\n此时调用 savehive(10, 0); 将会抛出异常(因为这是win10的版本号), 正确做法是执行前复制一份目标操作注册表单元'System32\\offreg.dll', 这样可以确保顺利保存\n\n(x-已经重写save方法)[另外保存hive不能存在已有文件,原地保存可以先删除(打开时全部载入内存, 不占用文件)后保存同名文件即可]\n新版本会自动删除, 如果保存失败直接退出将永久丢失文件, 请确认保存成功再退出, 因为hive数据库是全部载入内存, 只要内存还在就可以保存到别的地方\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiaione%2Foffineregistry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiaione%2Foffineregistry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiaione%2Foffineregistry/lists"}