Microsoft warned users of a "critical" security flaw in Windows that could allow hackers to take complete control of a computer.