aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/um/README.md
blob: a983900d46e69887e194fe158a1250f32e67041b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Driver utilities
================

A couple of usage examples are included along with the drivers.

* [libservice]: Utilities to load/unload the drivers.
* [libsimple]: [simple] driver usage examples.
* [libnt_namespace]: [nt_namespace] driver usage examples.

[libservice]: service/README.md
[libsimple]: wrappers/simple/README.md
[simple]: ../km/src/simple
[libnt_namespace]: wrappers/special/nt_namespace/README.md
[nt_namespace]: ../km/src/special/nt_namespace

Building
--------

Create the build files using CMake and build the project using Visual Studio.

* **Customization.**
The runtime libraries are linked statically by default (when this project is
the root CMake project).
You can link the runtime dynamically by passing `-D USE_STATIC_RUNTIME=OFF` to
`cmake`.
* **Example.**
In the example below, the project directory is
"C:\workspace\personal\windows7-drivers\um" and Visual Studio 2013 is used,
targeting x86.

      > cmake -G "Visual Studio 12 2013" C:\workspace\personal\windows7-drivers\um
      ...

      > cmake --build . --config release -- /m
      ...