Lily,
This is definitely not a bug in CVI. It's POOR documentation on Microsoft's header files. If you look inside winuser.h, you'll see that this function is defined only if one of the following symbols is defined:
#define _WIN32_WINNT 0x0500 // for Win2000/NT
#define _WIN32_WINDOWS 0x0410 // for Win95/98
So before you include windows.h, define _WIN32_WINDOWS to 0x0410. If you want more information, seach google.com for any of those two symbols.
Regards,
Azucena