Add support for old and new kext together

This commit is contained in:
Vladimir Stoilov
2024-02-18 17:59:15 +02:00
parent b5195797d1
commit ddec8010d4
4 changed files with 123 additions and 58 deletions

View File

@@ -76,6 +76,15 @@ func Start() error {
return nil
}
func SetKextHandler(handle windows.Handle) {
kextHandle = handle
}
func SetKextService(handle windows.Handle, path string) {
service = &KextService{handle: handle}
driverPath = path
}
// Stop intercepting.
func Stop() error {
// Prepare kernel for shutdown