On Mon, 15 Oct 2007, Robert Shearman wrote:
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.
The X509_* constants all look like small integers disguised as string pointers so the LOWORD() approach is probably the one that makes the most sense.