Open paulpv opened 5 days ago
Hmm.... This is strange. For us, all the sample drivers compile. Let me investigate this issue. It is not clear to me why it was not working for you. Thank you for the information.
Hmm.... This is strange. For us, all the sample drivers compile. Let me investigate this issue. It is not clear to me why it was not working for you. Thank you for the information.
All of the sample drivers do work fine for me.
It is when I create my own new KMDF [DMF] driver project from scratch that I have to add that undocumented config to the project file.
I wanted to learn how to create a DMF project, so I:
Dmf.props
into my KMDF DMF project following the [IMHO important but very buried] instructions at:https://github.com/Microsoft/DMF/blob/master/Dmf/Documentation/Driver%20Module%20Framework.md#simplifying-compilation-and-linking-with-dmf
https://github.com/Microsoft/DMF/blob/master/Dmf/Documentation/Driver%20Module%20Framework.md#using-dmf-in-a-driver-that-does-not-have-a-deviceadd-callback
Roughly...
/WPP_INIT_TRACING(); (This comment is necessary for WPP Scanner.)/
pragma code_seg("INIT")
DMF_DEFAULT_DRIV<RENTRY(DriverEntry, StorageFwUpdateDriverContextCleanup, StorageFwUpdateDeviceAdd)
pragma code_seg()
pragma code_seg("PAGED")
DMF_DEFAULT_DRIVERCLEANUP(StorageFwUpdateDriverContextCleanup) DMF_DEFAULT_DEVICEADD(StorageFwUpdateDeviceAdd, DmfDeviceModulesAdd)
pragma code_seg()
Severity Code Description Project File Line Suppression State Details Error C4013 'WPP_CLEANUP' undefined; assuming extern returning int KMDF WDF DMF VHF KMClone DmfInterface.c 9
Error C4013 'WPP_INIT_TRACING' undefined; assuming extern returning int KMDF WDF DMF VHF KMClone DmfInterface.c 9
include "Trace.h"
include "DmfInterface.tmh"