winsiderss / phnt

Native API header files for the System Informer project.
https://github.com/winsiderss/systeminformer
MIT License
991 stars 166 forks source link

Including phnt in an ATL C++ project #4

Closed temghost03ajfksdf closed 5 years ago

temghost03ajfksdf commented 5 years ago

This isn't really an issue, but more that I felt I should share my experience in hopes that it might save other people several hours of trying to make sense of Windows header files should they find themselves in a similar scenario.

By default you can't include phnt in ATL projects because of various header conflicts, such as missing declarations, etc.

So to get them to play nice, all you have to do is:

Anyway, I hope this will help someone. I'm going to just close this issue since there's no problem with phnt. Thanks for your efforts~ :upside_down_face: