Found the solution to this problem while starting service :
"StartService FAILED 6:The handle is invalid."
We need to specify the KMDF version in the project , according to
this
For exemple, in Windows 7, it's 1.9, so under Driver Model Settings, change the following
- KMDF Version Major = 1
- KMDF Version Minor = 9
And it's done