GithubHelp home page GithubHelp logo

wgwjifeng / xdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eladraz/xdk

0.0 0.0 0.0 310 KB

XDK is a fully featured C++ wrapper library for Windows kernel development

License: BSD 3-Clause "New" or "Revised" License

C++ 86.26% C 5.85% HTML 7.89%

xdk's Introduction

unmaintained

XDK

XDK is a fully featured C++ wrapper library that uses xStl as a base library. XDK includes the following features:

  • Easy driver development.
  • Full C++ features, including exception handling.
  • Synchronization objects, threads and file access APIs.

For more information about using C++ in kernel, please see this article.

Requirements

The compiled binaries can be operated on Windows NT operating system or higher. Need Visual Studio Express 2010 or higher, or Visual Studio 2010 or higher. Need Windows Driver Kit (DDK) Version 7.1.0.

Setting Up Environment

Git

git clone https://github.com/eladraz/xStl
git clone https://github.com/eladraz/XDK

Compilation tools

Windows

In order to pass variable arguments to Visual Studio, you need to declare the following system arguments:

  • XSTL_PATH (for example: C:\WORK\github\xStl)
  • XDK_PATH (for example: C:\WORK\github\XDK)
  • DDK_PATH (for example: C:\WinDDK\7600.16385.1)

To add system variables you should:

  • Right-click My Computer, and then click Properties.
  • Click the Advanced tab.
  • Click Environment variables.
  • Click New to add a new variable name (e.g. XDK_PATH) and its location (e.g. C:\WORK\github\XDK).

How to Build

In order to build the XDK library, open XDK.sln solution project with Visual Studio. In Visual Studio's configuration manager, choose the desired build configuration. Choosing Release|Win32 or Debug|Win32 builds the user-mode components. Choosing 'Kernel Release|Win32orDebug Release|Win32` builds the kernel-mode components.

NOTE: I have decided not to upload the x64 version of XDK

How to Run

The XDK solution comes with the following projects:

  • xStl - xStl is a cross-compile, cross-platform C++ library that works in both user mode and kernel mode.

  • xdk_loader - A user-mode library that implements driver-loading APIs.

  • Manager - A generic driver-loading application that uses xdk_loader (e.g. CLI front-end for driver loading).

  • PCPlayer - A dedicated user-mode application that loads PCSpeakerDriver from hardcoded location (C:\Temp\PCSpeakerDriver.sys), which demonstrates user mode => kernel mode commands and events. The application sends a few commands to the driver to turn on the PC speaker.

  • XDK - A fully featured C++ kernel mode library (including synchronization objects, threads and file access file-access APIs).

  • PCSpeakerDriver - A sample driver for PC Speaker.

License

Please see LICENSE file

xdk's People

Contributors

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