Solution
LabWindows™/CVI compilation errors associated with SDK Header files can be caused due to conflict references between Windows SDK and LabWindows™/CVI libraries or incorrect paths that reference a different software file.
You must include the Windows SDK include files before the LabWindows™/CVI include files (i.e. put #include <windows.h> before all other include files). This is needed because there are some functions from the native LabWindows™/CVI and the Windows SDK libraries that have the same name and cause errors between the calls. The LabWindows™/CVI include files contain special macros and conditional compilation to adjust for declarations in the SDK include files.
In order to verify that LabWindows™/CVI is not referencing a file from another compiler with the same name, select Options >> Environment >> Include Paths. If there is any path that is referenced incorrectly, click the Cut button to delete it.