I'm using CreateProcess to run an EXE and WaitForSingleObject to wait for it to finish.
My problem is that I need the EXE process to have the same security access as the calling EXE. I'm guessing the lpProcessAttributes argument needs to be populated but how that is done, I don't know.
I'll look at this when I get a chance. Thanks.
Beware also of TAB characters. We use CatSoft's DLL (combined or not with OLE), to be able to drag and drop Outlook emails onto a dw. The e-mail's Subject is being used as the filename and who knows why, some of our customers have TABs in the Subject. It turns out that the file can be saved with a TAB character, but afterwards opening the .msg / .eml file won't work.