if(winout != NULL) fclose(winout); winout = NULL;
void releaseAllObjects(){  regShutdown();    shutdownDirectInput();    shutdownDirectDraw();  soundShutdown();  RedrawWindow(NULL,NULL,NULL,RDW_INVALIDATE|RDW_ERASE|RDW_ALLCHILDREN);}