Looks like you have optimization turned on. /OPT:REF option tells the linker to eliminate functions and data that are never referenced. Try to remove shell32.lib from library list in your project settingsor
#pragma warning( disable:4089 )
#pragma warning( disable:4089 )
I tried both.
or
2. add the /OPT:NOREF command line to linking setting. Your exe will probably grow by 1-200k, :-)