As far as I remember you don't need type declarations in dll function prototypes. At least there are none in the basic dll plugin example in the manual.