LPDIRECT3D9 is just a typedef, which is a pointer to an IDirect3D9 object. All of the DirectX objects have typedefs which are in all-caps and preceded by "LP".
www.drunkenhyena.com