Comments (3)
The logic to detect the WDK is contained here. It should support winget installs, running in an eWDK prompt, and local installs. I believe local installs rely on the WDK installer setting a regkey to the installed kit. If this regkey detection is failing, then it is a bug. Can you check to see if your installation set the relevant reg keys?
Our current support policy is in the readme:
While this crate is written to be flexible with different WDK releases and different WDF version, it is currently only tested for NI eWDK, KMDF 1.33, UMDF 2.33, and WDM Drivers. There may be missing linker options for older DDKs.
and here:
This project was built with support of WDM, KMDF, and UMDF drivers in mind, as well as Win32 Services. This includes support for all versions of WDF included in WDK 22H2 and newer. Currently, the crates available on crates.io only support KMDF v1.33, but bindings can be generated for everything else by cloning windows-drivers-rs and modifying the config specified in build.rs of wdk-sys. Crates.io support for other WDK configurations is planned in the near future.
We would consider PRs that extend support farther back, but do not want to incur extra maintenance burden on this early project (and choose to focus on providing safer rust abstractions). You are also free to roll your own memory allocator (it should be fairly straight forward to).
from windows-drivers-rs.
@wmmc88 For the second point, Does it support generating drivers for specific versions of Windows? For example, setting _NT_TARGET_VERSION to Windows 1809 in VS will result in an error for ExAllocatePool2 during compilation.
from windows-drivers-rs.
@wmmc88 For the second point, Does it support generating drivers for specific versions of Windows? For example, setting
_NT_TARGET_VERSION
to Windows 1809 in VS will result in an error for ExAllocatePool2 during compilation.
Currently, if you wanted to tweak the bindings, you would need to make a source modification in the build script of wdk-sys to define _NT_TARGET_VERSION
to a non-default value.
With that said, I am very close to having a PR that solves #82, which will bring in a Cargo Metadata based configuration system. This system is planned to support _NT_TARGET_VERSION
from windows-drivers-rs.
Related Issues (20)
- Build driver for multiple targets in single cargo-make invocation
- Add support for packaging other types of drivers (ex. UMDF, WDM) HOT 1
- Add support for specifying specific OS'es to sign for in inf2cat task
- Add support for customizing the name of the Cert Store in `generate-certificate` and `signtool` task
- Port `duckscript` `condition_script` blocks to Rust
- failed to get `wdk-build` as a dependency of package HOT 5
- failed to load source for dependency `wdk-build` HOT 8
- Driver installation crashes when using `EvtIoInternalDeviceControl`
- error HOT 2
- Unable to make fresh project HOT 1
- Bindgen Clang compile error in wdk-sys - missing preprocessor defines HOT 6
- Usability improvements
- staticlib
- Need install wdk? HOT 1
- Automatically generate dependabot-style update prs for dependencies not supported by dependabot
- LINK : fatal error LNK1181: cannot open input file 'windows.0.52.0.lib' HOT 2
- blocklist certain warnings from bindgen
- generated bindings should use `extern "system"` instead of `extern "C"` HOT 3
- Nightly toolchain has clippy failures in wdk_build
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windows-drivers-rs.