D3DRM Implementation patches upto CreateDeviceFromSurface