Hi,
There are two functions in FoxTools that allow you to do this.
Unfortunately FoxTools isn't documented in the online help, it's in a ReadMe file; and the readme file is hidden in a zipped file in the Goodies subdirectory...
Having unzipped it all you will find:
\fpw26\goodies\foxtools\foxtools.wri
... which opens with the description of RegFn & CallFn. The directory also contains a few examples - and if you read the thread of yesterday about 'CallFn("GetPrivateProfileString" .. not working', you'll see how to do it wrong, too :-(
Finally you will need documentation for your DLL to tell you what parameters it takes and what return type it gives.