A wrapper for win32-api that simplifies and automates common idioms