Nelson,
My understanding is there are a few macros defined by windows.h that are also defined in some of the CVI headers. Although NI defined the macro names first, Microsoft decided to use the same names at a later date and NI added tests for previous declarations in their headers.
The workaround is to make sure windows.h is the first header file included in your code.
Regards
Jamie