New Question

Revision history [back]

click to hide/show revision 1
initial version

For people who ask what i mean with a detached process. We normaly start the ceph-dokan.exe in the background. Therefor we have a small prorgamm that just looks like this (Delphi):

var
    processInfo: TProcessInformation;
    startupInfo: TStartupInfo;
    commandLine : string;
begin

  commandLine := '"c:\Program Files\Ceph\bin\ceph-dokan.exe" -c D:\Ceph\ceph_RIPs.conf --mountpoint e:\spool --id RIPs ';

     FillChar(startupInfo, SizeOf(startupInfo), #0);
     startupInfo.cb := SizeOf(startupInfo);
     startupInfo.wShowWindow := SW_HIDE;

CreateProcess(nil,
                         PChar(commandLine),
                         nil,
                         nil,
                         false, //Inherit Handles
                         DETACHED_PROCESS,  // Enviroment Flags
                         nil,
                         nil,  // Workdir
                         startupInfo,
                         processInfo);

end;