Working context::resolve for win32 using a temporary window+context