Updated Isd.cpp for Windows