Alex Henrie alexhenrie24@gmail.com wrote:
WCHAR * is generally preferred over PWSTR.
In the public headers it's strongly advised to follow the PSDK types, otherwise compiling with Wine headers may either lead to unpredictable debug information in PE builds or warnings in C++.
Why would the compiler warn about using versus not using a typedef? Can you provide a minimal C++ program that would trigger such a warning?
Probably not in this particular case, but it's still stands that following the PSDK types should be the best way of defining things in a public header.