added more functions for windows.h