If CreateProcess doesn't work:

 

 

if CreateProcess ... then 
  ...
else //it doesn't work
  strLog := SysErrorMessage(GetLastError ); //information why it doesn't work