SQL Server 7.0 and DTS

I'm Looking for some sample code that invokes DTS packages from DELPHI
3.0, and retain control over the process. I need to track error codes,
package failures, etc.
I am currently invoking the DTS package using
CREATEPROCESS..DTSRUN.EXE, and after getting it's handle, call
GETEXITCODEPROCESS, to get it's return code. But this does not work.
DTSRUN.EXE get's launched as a detached process, and I cannot monitor
the process as I can with other Windows initiated tasks.
Any suggestions are welcome.
thanks
Norm