Some additions to the windows api