• Stars
    star
    145
  • Rank 254,144 (Top 6 %)
  • Language
    C
  • License
    GNU General Publi...
  • Created almost 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

WinRing0 is a hardware access library for Windows.

WinRing0

WinRing0 is a hardware access library for Windows.

Features

WinRing0 library allows x86/x64 Windows applications to access

  • I/O port
  • MSR (Model-Specific Register)
  • PCI

Copyrights

SPECIAL THANKS

How to Use

Put WinRing0.dll, WinRing0x64.dll, WinRing0.sys, WinRing0x64.sys, and WinRing0.vxd into the directory where your application's executable file resides.

C++

See also sample application.

Load-Time Dynamic Linking

  1. Add WinRing0.lib or WinRing0x64.lib to your project.
  2. Add #include "OlsApi.h" statement to your source file.
  3. Call InitializeOls().
  4. Call GetDllStatus() to check error.
  5. Call the library's functions.
  6. Call DeinitializeOls().

Reference : Load-Time Dynamic Linking (MSDN)

Run-Time Dynamic Linking

  1. Add #include "OlsApiInit.h" statement to your source file.
  2. Call InitOpenLibSys().
  3. Call GetDllStatus() to check error.
  4. Call the library's functions. *
  5. Call DeinitOpenLibSys().

*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.

Reference : Run-Time Dynamic Linking (MSDN)

C#

See also sample application.

  1. Put OpenLibSys.cs into your project.
  2. Add using OpenLibSys; statement to your source file.
  3. Call GetStatus() and GetDllStatus() to check error.
  4. Call the library's functions.

*Supported platform target is "x86", "x64" and "Any CPU". But WinRing0 does not support "IA64".

How to Build (Requirement)

Sample Code

C++ and C#

Required Visual Studio 2015 Community or higher because of using MFC.

SYS (NT Driver)

Required WDK (Windows Driver Kits)

  1. Get WDK from MSDN
  2. Install WDK
  3. cd WinRing0/source/dll/sys
  4. build :trollface:

VxD (9x Driver)

Required Windows XP SP1 DDK + Win Me support

  1. Get Windows XP SP1 DDK from MSDN
  2. Install Windows XP SP1 DDK with Win Me support
  3. Open "Win Me Free Build Environment"
  4. cd WinRing0\source\dll\vxd
  5. nmake

More Repositories

1

webdriverxx

Client API for Selenium Server
C++
47
star
2

mongodb-without-avx

⚠ mongodb core-dump illegal instruction ✔ Building without AVX instructions not supported by cpu's
Dockerfile
42
star
3

sqlmap-python-3

Port sqlmap of Python 2.6.x - 2.7.x This repo is not relevant. Python 3 support is already: https://github.com/sqlmapproject/sqlmap
Python
11
star
4

midi2mod

Tool for easy conversion of MIDI to MOD audio format
C
9
star
5

picobase64

Very lightweight encoder and decoder base64 for C/C++
C++
3
star
6

nyan-engine

2D game engine
C++
2
star
7

crucial-MX500-linux

Crucial MX500 SSD firmware for Linux
2
star
8

ESRGAN-Video

Upscale resolution video using ESRGAN
Python
2
star
9

blockchain-chat

Open source blockchain chat
C++
1
star
10

vcproj2cmake

New implementation for new CMake 3.x
1
star
11

LTECellSearch

"Cell Search LTE" based on srsRAN and has more features
C++
1
star
12

4good-t101i-drivers

Binary drivers for screen sensor, audio, gyroscope, wifi, bluetooth, battery, camera, gpio, i2c, uart and etc.
1
star
13

mass-spamer

Software for bulk emails without blocking (open source)
Python
1
star
14

openwrt-qt5-compile

Tutorials, manual and docs
1
star
15

NUMAyei

[EXPERIMENTAL] Custom NUMA node scheduler - distributes non-adapted Windows programs into several NUMA nodes evenly
C++
1
star
16

docker-sandbox-windows

Sandbox zum testen verdächtiger software auf schädliche aktivitäten
Shell
1
star
17

hostapd-wpe-ng

Modified new hostapd-2.10 to facilitate AP impersonation attacks for research and education only
Makefile
1
star
18

cellular-network-learning

HTML
1
star
19

PGPsdk-2.1.1-Source

PGPsdk 2.1.1 Sources Win32 and Unix (latest GPL license code)
1
star
20

OrangePi-3-H6-mainline

Modern building mainline Orange Pi 3 (Allwinner H6 not LTS version!). PCI Express works, custom DTS, USB3, WiFi, Ethernet (dwmac_meson8b regulator patch). This fork: https://github.com/ingamedeo/orangepi3-h6-mainline
1
star