#include "basepch.h" #pragma hdrstop #define _CFGMGR32_ #include #error Do not add any delayload stubs for CFGMGR32.DLL. #error CFGMGR32.DLL is just a stub DLL that forwards all its exports #error to the same-named exports in SETUPAPI.DLL. #error So you should change your SOURCES file #error to link to SETUPAPI.LIB instead of CFGMGR32.LIB.