Answered by:
"The Device Does not recognize the command"

Question
-
"The Device Does not recognize the command"
Why i try to load a driver using OSR Loader.
How can i find the bug inside my code. Its not a crashdump.
Thanks.
Wednesday, December 23, 2015 1:21 PM
Answers
-
Assuming this is a driver that you have the source to, then the best solution is to use Windbg to debug the driver. See https://msdn.microsoft.com/en-us/library/windows/hardware/ff551063(v=vs.85).aspx You will need two systems (these can be virtual or physical) to debug, but this gives you full control.
A poorer approach is to use DebugView https://technet.microsoft.com/en-us/sysinternals/debugview and add DbgPrint statements to the driver to see what is happening.
Don Burn Windows Driver Consulting Website: http://www.windrvr.com
- Marked as answer by How to send streaming Video UDP Socket Connection Wednesday, December 23, 2015 2:20 PM
Wednesday, December 23, 2015 2:10 PM
All replies
-
Are you saying that you get a failure when you try to load the driver with the OSR loader? If this is a plug and play driver the loader will not work. Or are you saying you loaded the driver, and you are getting this error trying to issue a command? In that case you need to see what the command is and what your driver does to support it, i.e. it is time to start debugging.
In either case we need more information to help you.
Don Burn Windows Driver Consulting Website: http://www.windrvr.com
Wednesday, December 23, 2015 1:28 PM -
how do i debug a driver?Wednesday, December 23, 2015 1:49 PM
-
And issue number 2.Wednesday, December 23, 2015 1:49 PM
-
Assuming this is a driver that you have the source to, then the best solution is to use Windbg to debug the driver. See https://msdn.microsoft.com/en-us/library/windows/hardware/ff551063(v=vs.85).aspx You will need two systems (these can be virtual or physical) to debug, but this gives you full control.
A poorer approach is to use DebugView https://technet.microsoft.com/en-us/sysinternals/debugview and add DbgPrint statements to the driver to see what is happening.
Don Burn Windows Driver Consulting Website: http://www.windrvr.com
- Marked as answer by How to send streaming Video UDP Socket Connection Wednesday, December 23, 2015 2:20 PM
Wednesday, December 23, 2015 2:10 PM -
If i can't load driver how i supposed to print messages from DbgView!Wednesday, December 23, 2015 2:21 PM
-
If the problem is loading, then you need to enable SetupAPI logging see https://msdn.microsoft.com/en-us/library/windows/hardware/ff550887%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396 The log should tell you what the problem is, but worst case post it here.
Don Burn Windows Driver Consulting Website: http://www.windrvr.com
Wednesday, December 23, 2015 2:25 PM