Windows: Log change of power state