Deleted and added some WinApi functions