ntdll 0.0.1

bindings to `ntdll.dll`.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
fn main() {
	let target    = std::env::var("TARGET").expect("TARGET couldn't be decoded.");
	let directory = std::env::var("CARGO_MANIFEST_DIR").expect("TARGET couldn't be decoded.");

	match target.as_ref() {
		"x86_64-pc-windows-gnu" | "x86_64-pc-windows-msvc" => {
			println!("cargo:rustc-link-lib=dylib=ntdll");
			println!("cargo:rustc-link-search=native={}\\lib\\x64", directory);
		},

		"i686-pc-windows-gnu" | "i686-pc-windows-msvc" => {
			println!("cargo:rustc-link-lib=dylib=ntdll");
			println!("cargo:rustc-link-search=native={}\\lib\\x86", directory);
		},

		_ => { },
	}
}