This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// onexit.h | |
// | |
// Defines ON_EXIT macro to create finalizer objects. | |
// These objects execute specified code when they go out of scope. | |
// | |
// Useful when you can't be bothered writing RAII wrappers for every little thing in 3rd-party code, | |
// but still want to reduce cognitive load by not tracking stuff you might need to cleanup. | |
// | |
// Usage example: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Pseudocode and structs for nt!PsSyscallProviderDispatch. | |
// For ntosknrl win11 24H2 10.0.26100.1742. | |
// Restored by Cyra, adjusted by @sixtyvividtails. | |
// | |
// See actual research: | |
// by @gal_kristal: https://gist.github.com/Kristal-g/eec050b3fcea2a77715ef0cff4acf841 | |
// by @0xfluxsec: https://fluxsec.red/alt-syscalls-for-windows-11 | |
// name's mine // @gal_kristal: _PS_SYSCALL_PROVIDER_SERVICE_DESCRIPTOR_GROUP |