Okay I ma getting close. Using the first piece of advice I received from hilfy I was able to get the call to the DLL to work.
function utlapi(var func:LongInt; DataString:string; var Length, RetC, Xtra1, Xtra2:LongInt):LongInt; stdcall; external 'PCSUTL32.DLL';
This is my call to the DLL...