From Sample Code to Production Driver: What to Change in the Sample

From Sample Code to Production Driver: What to Change in the Sample

Post by Carl-Magnu » Sat, 26 Apr 2008 19:09:37


I'm missing the part about removing debug stuff from the inx file when it
comes to KMDF samples:

<osrusbfx2.inx>
[osrusbfx2.AddReg]
HKR, Parameters\Wdf, VerboseOn, 0x00010001, 1
HKR, Parameters\Wdf, VerifierOn, 0x00010001, 1
HKR, Parameters\Wdf, DbgBreakOnError, 0x00010001, 1

If they are kept, in some cases the driver can crash the system for bad in
data, see
"Validating parameters for IoDeviceControl in KMDF -> KMDF verifier error"
from 2008-01-29 and on.

Carl-Magnus Segerlund