{"id":24797392,"url":"https://github.com/germanaizek/winring0","last_synced_at":"2025-04-05T23:05:34.034Z","repository":{"id":41433321,"uuid":"228267783","full_name":"GermanAizek/WinRing0","owner":"GermanAizek","description":"WinRing0 is a hardware access library for Windows.","archived":false,"fork":false,"pushed_at":"2024-01-17T14:37:12.000Z","size":149,"stargazers_count":335,"open_issues_count":8,"forks_count":77,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-03-29T22:04:24.768Z","etag":null,"topics":["access-control","driver","hardware","ioport","msr","pci","ring0","windows","winring0"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GermanAizek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-15T23:29:59.000Z","updated_at":"2025-03-29T02:24:55.000Z","dependencies_parsed_at":"2024-01-17T16:33:29.075Z","dependency_job_id":"8c6875ad-b143-43f2-b1f8-1f3fbb92dd0b","html_url":"https://github.com/GermanAizek/WinRing0","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/GermanAizek%2FWinRing0","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GermanAizek%2FWinRing0/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GermanAizek%2FWinRing0/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GermanAizek%2FWinRing0/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GermanAizek","download_url":"https://codeload.github.com/GermanAizek/WinRing0/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411226,"owners_count":20934653,"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":["access-control","driver","hardware","ioport","msr","pci","ring0","windows","winring0"],"created_at":"2025-01-30T01:28:18.822Z","updated_at":"2025-04-05T23:05:34.002Z","avatar_url":"https://github.com/GermanAizek.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WinRing0\nWinRing0 is a hardware access library for Windows.\n\n## Features\nWinRing0 library allows x86/x64 Windows applications to access\n * I/O port\n * MSR (Model-Specific Register)\n * PCI\n\n## Copyrights\n\n * 2007-2009 [hiyohiyo](https://github.com/hiyohiyo) \u003c[hiyohiyo@crystalmark.info](mailto:hiyohiyo@crystalmark.info)\u003e - original author\n * 2019-2024 [GermanAizek](https://github.com/GermanAizek) \u003c[GermanAizek@yandex.ru](mailto:GermanAizek@yandex.ru)\u003e - current maintainer\n\nSPECIAL THANKS\n * 2007 kashiwano masahiro \u003c\u003chttp://www.otto.to/~kasiwano/\u003e\u003e - PCI Debug Library for Win32 \n * 2007 Yariv Kaplan, WinIo ([http://www.internals.com/](http://www.internals.com/))\n * 2008 habe - translation support \u0026 technical assistance\n * 2009 Patrick - bug patch\n * 2023 [Vitalii Khoruzhyi](https://github.com/Merlin1st) \u003c\u003cmerlin_1st@livejournal.com\u003e\u003e - x64 build, additional features and work on code\n * 2023 [Sophie Lemos](https://github.com/SecurityAndStuff) \u003cPress F to pay respects, thanks to microsoft-github\u003e - fixed fatal BSOD error and porting to Windows ARM\n * 2023 [drvexplorer](https://github.com/drvexplorer) - I suggested using fileIoCreateDeviceSecure() and tidying up output files\n\n## How to Use\nPut WinRing0.dll, WinRing0x64.dll, WinRing0.sys, WinRing0x64.sys, and WinRing0.vxd into the directory where your application's executable file resides.\n\n### C++\nSee also sample application.\n\n#### Load-Time Dynamic Linking\n 1. Add WinRing0.lib or WinRing0x64.lib to your project.\n 2. Add #include \"OlsApi.h\" statement to your source file.\n 3. Call InitializeOls().\n 4. Call GetDllStatus() to check error.\n 5. Call the library's functions.\n 6. Call DeinitializeOls().\n \nReference : [Load-Time Dynamic Linking (MSDN)](https://docs.microsoft.com/en-us/windows/win32/dlls/load-time-dynamic-linking) \n\n#### Run-Time Dynamic Linking \n 1. Add #include \"OlsApiInit.h\" statement to your source file.\n 2. Call InitOpenLibSys().\n 3. Call GetDllStatus() to check error.\n 4. Call the library's functions. *\n 5. Call DeinitOpenLibSys().\n \n*If you would like to call the library's functions on other source files, you should add #include \"OlsApiInitExt.h\" statement to the source files.\n \nReference : [Run-Time Dynamic Linking (MSDN)](https://docs.microsoft.com/en-us/windows/win32/dlls/run-time-dynamic-linking)\n\n### C#\nSee also sample application.\n 1. Put OpenLibSys.cs into your project.\n 2. Add using OpenLibSys; statement to your source file.\n 3. Call GetStatus() and GetDllStatus() to check error.\n 4. Call the library's functions.\n \n*Supported platform target is \"x86\", \"x64\" and \"Any CPU\". But WinRing0 does not support \"IA64\".\n\n## How to Build (Requirement)\n\n### Sample Code\n\n#### C++ and C#\nRequired Visual Studio 2015 Community or higher because of using MFC.\n\n### SYS (NT Driver)\nRequired WDK (Windows Driver Kits)\n 1. [Get WDK from MSDN](https://docs.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk)\n 2. Install WDK\n 3. cd WinRing0/source/dll/sys\n 4. build :trollface:\n\n### VxD (9x Driver)\nRequired Windows XP SP1 DDK + Win Me support\n 1. Get Windows XP SP1 DDK from MSDN\n 2. Install Windows XP SP1 DDK with Win Me support\n 3. Open \"Win Me Free Build Environment\"\n 4. cd WinRing0\\source\\dll\\vxd\n 5. nmake\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgermanaizek%2Fwinring0","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgermanaizek%2Fwinring0","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgermanaizek%2Fwinring0/lists"}