to add UpdateCodeMessage into winmain.cpp for ioctrldemo