The handle is invalid

I found a source code about the keylogger kernel. I buil successfully but when I run into the virtual machine, when start it says “the handle is invalid” error. Can someone help me run the test and fix it?
source code: https://github.com/adapiekarska/kmdf-keylogger
Thank you for help.

So you’ve already passed two major road blocks: built the driver and installed it on the target. Good.
Now you are ready to debug it.
Enable kernel debugging on the VM, get a suitabe windbg version and connect to the VM from your host.
Set a breakpoint in strategic points of the driver : such as
https://github.com/adapiekarska/kmdf-keylogger/blob/979b8c94c9e0ba4a53b1dd67a4229c0fe2f86f9e/sys/keylogger.c#L693
https://github.com/adapiekarska/kmdf-keylogger/blob/979b8c94c9e0ba4a53b1dd67a4229c0fe2f86f9e/sys/keylogger.c#L253

Is anything not clear about these steps?

– pa