Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DMF in Visual Studio WDK templates? #62

Open
hansmbakker opened this issue May 22, 2019 · 6 comments
Open

DMF in Visual Studio WDK templates? #62

hansmbakker opened this issue May 22, 2019 · 6 comments

Comments

@hansmbakker
Copy link

This is not a bug - I just wanted to say that it would be great if the WDK templates in Visual Studio would make use of DMF.

Not sure whether this issue is the right place to share this feedback though.

@samtertzakian
Copy link
Member

Yes, it is in the plan to make a DMF Driver Wizard or template of some kind. But we are currently working on writing unit tests against the Modules to stress test the Framework and Modules.

If you are interested in doing that work, we welcome it.

Thank you for the suggestion.

@hansmbakker
Copy link
Author

I submitted a feature request at https://developercommunity.visualstudio.com/content/problem/579179/it-would-be-great-if-the-wdk-templates-in-visual-s.html.

I'm quite new to Windows drivers so I feel I'm not the right person for this, but great that it is part of the plan.

@hansmbakker
Copy link
Author

@AraHaan I believe your question is not related to the question of this github issue. Also I am not sure it is DMF specific. Could you please delete your question from this issue and open a new issue for it?

@AraHaan
Copy link

AraHaan commented Jul 7, 2019

I hope I created the issue in the right place. But at least it was filed in a Microsoft repository.

@nefarius
Copy link
Contributor

Not a 100% what you're after but I created a little helper to make DMF inclusion a breeze!

@paulpv
Copy link

paulpv commented Nov 13, 2024

Not a 100% what you're after but I created a little helper to make DMF inclusion a breeze!

Thanks @nefarius!
I'm new to DMF so just found this recently.
Glad to see that your helper got merged into this code per https://github.com/Microsoft/DMF/blob/master/Dmf/Documentation/Driver%20Module%20Framework.md#simplifying-compilation-and-linking-with-dmf.
I use it and it helped.

I still ran into compiler errors and created a new issue #260 that I think there is another snippet of code needed in the project file in order for a developer writing their own DMF driver to successfully compile.

  <ItemGroup Label="WrappedTaskItems">
    <ClCompile Include="DmfInterface.c">
      <WppEnabled>true</WppEnabled>
      <WppKernelMode>true</WppKernelMode>
      <WppTraceFunction>TraceEvents(LEVEL,FLAGS,MSG,...)</WppTraceFunction>
      <WppGenerateUsingTemplateFile>{km-WdfDefault.tpl}*.tmh</WppGenerateUsingTemplateFile>
    </ClCompile>
  </ItemGroup>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants