Stuart Sutherland << the verilog pLI handbook , A user's guide and comprehensive reference on the verilog programming language interface >>
from Kluwer 2002. it is an absloute text for you .
I think IEEE verilog standard has the PLI description. You can use that as a manual, plus the simulator's online manual, you should be able to start writing PLI routines.