Here an example which I used with Windows NT
==========================================================
// create Command
STARTUPINFO sti;
_PROCESS_INFORMATION pi;
pgpcmd(cmd,PGPSIGNEXT,"",""

;
// Setup Flags
flags=NORMAL_PRIORITY_CLASS;
flags |=CREATE_NEW_PROCESS_GROUP;
flags |=CREATE_NEW_CONSOLE;
// Get Process information
GetStartupInfo(&sti);
// Start with Window closed
sti.wShowWindow =SW_SHOWMINIMIZED;
// Start Task
if(!( CreateProcess(NULL,cmd,NULL,NULL,false,flags,NULL,"./",&sti,&pi)))
erc=GetLastError();
============================================================
Good Luck
[sig]<p>hnd<br><a href=mailto:hasso55@yahoo.com>hasso55@yahoo.com</a><br><a href= > </a><br> [/sig]