none
KMDF Driver WdfDeviceCreate returning STATUS_UNSUCCESSFUL when using SDV in VS2015 RRS feed

  • Question

  • I have developed a KMDF driver in visual studio for a function driver. After running SDV on the completed driver with Default rule sets, one of three defects reported by SDV is devicecreatefail. I can not identify any possible reason for the device creation method to be returning a failure. What are common issues for this problem and is it possible that this is a false negative where the WdfDeviceCreate call is succeeding? It seems after looking through the stack trace provided with SDV, it seems that DeviceInit is not NULL however the switch to SdvMakeChoice is not going through case 0 which would result in a STATUS_SUCCESS, the conditional it lands in is the default for #else; hdevice_init. If need be, I can provide code here on the forum.

    Thank you for any feedback that can be provided.

    Thursday, June 30, 2016 1:05 AM