Gerald Pfeifer wrote:
} if (!HIWORD(lpszStructType)) {
switch (LOWORD(lpszStructType))
switch ((DWORD)lpszStructType)
You're just passing the problem on to people doing 64-bit builds. You should use DWORD_PTR or use LOWORD everywhere, like you suggested.