Create a wined3d interface, and generate a wined3d object in the d3d9 create method. Make the first (simple) call implementation into the new wined3d interface.