ReqDelete rule (kmdf)
The ReqDelete rule specifies that driver-created requests are not passed to WdfRequestCompleteXxx functions. Instead, the request should be deleted upon completion.
The driver cannot call WdfRequestComplete, WdfRequestCompleteWithInformation or WdfRequestCompleteWithPriorityBoost functions on the request object. The WdfRequestCompleteXxx functions are reserved for framework-supplied requests.
How to test
|At compile time|
Run Static Driver Verifier and specify the ReqDelete rule.Use the following steps to run an analysis of your code:
For more information, see Using Static Driver Verifier to Find Defects in Drivers.