Constify Windows function as well.