WinApi update, fixed some incorrect parameters