Awesome, Mr. Tippet. Thanks for taking the time to do such a nice write-up.
I’m looking forward to playing with this library.
Sounds like a step in the right direction. Some day, we Windows kernel mode devs will actually arrive in the 21st century.
Specialty libraries like this raise an interesting question, however: Is their use “worth it” in terms of the potential for confusion “down stream” that they very well might cause? It’s pretty simple (sort of) for us all to agree in vanilla C or “a little C++ as a better C” — but are most devs ready for, say, wil::scope_exit? It’s an interesting problem. Different devs, with different levels of experience and coming from different heritages, will all have different views on what’s “good code” (and we don’t have Cutler handy to offer to “put [someone] through a wall” for violating the standards). For example, I find
RETURN_IF_NTSTATUS_FAILED(ZwCreateFile(. . . ));
heinous enough that I’d require it to be changed. But it becomes religion and reasonable folks will differ.
Thank you again for your many contributions here, not just this latest one.
Peter