DelayLoad and _load_config_used
<< Back
If you don't use CRT and you want to use DelayLoad, the linker would simply complain about
the symbol "_load_config_used" not found in Visual Studio 2022. To get around the problem,
simply add the following to your code.
#ifdef _WIN64
extern "C" IMAGE_LOAD_CONFIG_DIRECTORY _load_config_used = { 0x17 };
#else
extern "C" int _load_config_used = 0;
#endif