there is an example in the directX9 sdk which could be the way. also, i just had a glimpse and will go for it. but as i am not the fastest one here you will find it:
directXsdk-->directX utilities--> effect edit
then go to file--> open and jump one folder up. find the water.fx file and go...
those files just need minimal ajustments from what i see at the moment.