Giter Site home page Giter Site logo

vn-os / winring0 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from germanaizek/winring0

0.0 0.0 0.0 141 KB

WinRing0 is a hardware access library for Windows.

License: GNU General Public License v3.0

C++ 40.13% C 57.29% Makefile 1.61% Assembly 0.97%

winring0's Introduction

What's 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

winring0's People

Contributors

germanaizek avatar mend-bolt-for-github[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.