UlteriusServer.Api.Win32.Desktop.CreateProcess C# (CSharp) Method

CreateProcess() public static method

Creates a new process on the specified desktop.
public static CreateProcess ( string path, string desktop ) : Process
path string Path to application.
desktop string Desktop name.
return System.Diagnostics.Process
        public static Process CreateProcess(string path, string desktop)
        {
            if (!Exists(desktop)) return null;

            // create the process.
            var d = OpenDesktop(desktop);
            return d.CreateProcess(path);
        }

Same methods

Desktop::CreateProcess ( string path ) : Process
Desktop::CreateProcess ( string lpApplicationName, string lpCommandLine, IntPtr lpProcessAttributes, IntPtr lpThreadAttributes, bool bInheritHandles, int dwCreationFlags, IntPtr lpEnvironment, string lpCurrentDirectory, STARTUPINFO &lpStartupInfo, PROCESS_INFORMATION &lpProcessInformation ) : bool