I know that LPWSTR is a WCHAR * (from wtypes.h):
typedef WCHAR *LPWSTR;
but I can't find the definition for LPWSTR(s). Is a macro / a constructor / something else? Where is it defined?
In particular, are these two lines exactly equivalent?
LPWSTR a = (LPWSTR) b; // cast
LPWSTR a = LPWSTR(b);
or does LPWSTR(...) do something else than a cast?