It appears that specifying the KEY_WOW64_64KEY flag (reference) when accessing a registry key under 32-bit Windows XP has no effect - that is, no error
KEY_WOW64_64KEY
I have tested on Windows XP 32 bit, and it seems to work OK.