Microsoft preps Vista to thwart rogue gadgets