added a few more win api functions