This a minor mistake.
const LPWSTR == const (wchar *) but not (const wchar) *