win32 api backend improvements