Skip to content

SoraTenshi/zig-wdk-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zig-wdk-example

Caution

This example wont compile, you'll have to be able to edit some of Zig's cache in order to be able to use it!

This is an experiment to build a Windows Driver (with the WDK) in Zig.

There are some rough edges, e.g. that the wdm.h and ntifs.h aren't perfectly yet translated to Zig see Issue #1499.

Just edit the cimport.zig in the zig-cache to align with the memory layout of those extern structs, and it should work

In this example, it was enough to change every `opaque {}` type with `*anyopaque` but this is possibly dangerous.

Also this features a fully functional build script that when executed automagically builds the driver. see build.exe for a list of todos (just check the calls to checkForEnvVariable) ;)

Good Luck, Soldier!

About

Experiments with the Windows Driver Kit and Zig!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages