BelhardTraining.LessonMultithreading.NativeMethods.CreateProcessAsUser C# (CSharp) Method

CreateProcessAsUser() private method

private CreateProcessAsUser ( SafeTokenHandle hToken, string applicationName, string commandLine, IntPtr pProcessAttributes, IntPtr pThreadAttributes, bool bInheritHandles, uint dwCreationFlags, IntPtr pEnvironment, string currentDirectory, STARTUPINFO &startupInfo, PROCESS_INFORMATION &processInformation ) : bool
hToken SafeTokenHandle
applicationName string
commandLine string
pProcessAttributes System.IntPtr
pThreadAttributes System.IntPtr
bInheritHandles bool
dwCreationFlags uint
pEnvironment System.IntPtr
currentDirectory string
startupInfo STARTUPINFO
processInformation PROCESS_INFORMATION
return bool
        public static extern bool CreateProcessAsUser(
            SafeTokenHandle hToken,
            string applicationName,
            string commandLine,
            IntPtr pProcessAttributes,
            IntPtr pThreadAttributes,
            bool bInheritHandles,
            uint dwCreationFlags,
            IntPtr pEnvironment,
            string currentDirectory,
            ref STARTUPINFO startupInfo,
            out PROCESS_INFORMATION processInformation);