Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

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

DetailsIn 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

Stars

10 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages