Thomas Weidenmueller wrote:
I guess our wine/windef.h is the reason why we need ntstatus.h and winternl.h, but I haven't checked yet. Honestly, these headers are kind of a mess... Just including public headers and one private header file for undocumented stuff would be much clearer, especially if precompiled headers were used, that'd simplify things a lot, I guess.
I have no problem with including ntstatus.h, even though it is not strictly necessary as it is just defines. However, I don't like the idea of including winternl.h as crypt32 (specifically high level things like certificate handling) shouldn't need to depend on low-level and undocumented structures, defines and function declarations. Can you tell me what errors you get without including winternl.h?