Move the GetDeviceCaps into the wined3d library and call from d3d9.