unresolved external symbol __imp_CertFindChainInStore compile error
seems if i include CertFindChainInStore my program wont compile https://learn.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-certfindchaininstore
you need to link Crypt32.lib to address that function
add this at beggning of your cpp file
#pragma comment ( lib, "Crypt32.lib" )