It sounds like the LIB you built is using libraries that are for C++ and not available in CVI. We do not provide the Windows DDK, just the SDK and do not test in compiling with these libraries since we cannot build device drivers (SYS and VXD files) in LabWindows/CVI. As listed in our help, if you are using the Win SDK, windows.h should be included first, before any CVI includes. I would assume that is true for DDK headers also, but we do not test with the DDK.
Best Regards,
Chris Matthews
National Instruments