Use a bool instead of an int to represent the initialized state in IOWin.cpp