This is a method of the IDirect3dDevice Interface.
public void pick(Direct3dExecuteBuffer eb, Direct3dViewport vport, int flags, D3dRect Rect);