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
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!