点击或拖拽改变大小

KernelCreateProcess 方法

Sweet 开发框架

[缺少 "M:Sweet.Common.Win32.Kernel.CreateProcess(System.String,System.String,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,System.Int32,System.Int32,System.IntPtr,System.String,Sweet.Common.Win32.STARTUPINFO@,Sweet.Common.Win32.PROCESS_INFORMATION@)" 的 <summary> 文档]

命名空间:  Sweet.Common.Win32
程序集:  Sweet.Common (在 Sweet.Common.dll 中) 版本:3.10.1.0 (3.10.1.0)
语法
public static int CreateProcess(
	string lpApplicationName,
	string lpCommandLine,
	ref SECURITY_ATTRIBUTES lpProcessAttributes,
	ref SECURITY_ATTRIBUTES lpThreadAttributes,
	int bInheritHandles,
	int dwCreationFlags,
	IntPtr lpEnvironment,
	string lpCurrentDriectory,
	ref STARTUPINFO lpStartupInfo,
	ref PROCESS_INFORMATION lpProcessInformation
)

参数

lpApplicationName
类型:SystemString

[缺少 "M:Sweet.Common.Win32.Kernel.CreateProcess(System.String,System.String,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,System.Int32,System.Int32,System.IntPtr,System.String,Sweet.Common.Win32.STARTUPINFO@,Sweet.Common.Win32.PROCESS_INFORMATION@)" 的 <param name="lpApplicationName"/> 文档]

lpCommandLine
类型:SystemString

[缺少 "M:Sweet.Common.Win32.Kernel.CreateProcess(System.String,System.String,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,System.Int32,System.Int32,System.IntPtr,System.String,Sweet.Common.Win32.STARTUPINFO@,Sweet.Common.Win32.PROCESS_INFORMATION@)" 的 <param name="lpCommandLine"/> 文档]

lpProcessAttributes
类型:Sweet.Common.Win32SECURITY_ATTRIBUTES

[缺少 "M:Sweet.Common.Win32.Kernel.CreateProcess(System.String,System.String,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,System.Int32,System.Int32,System.IntPtr,System.String,Sweet.Common.Win32.STARTUPINFO@,Sweet.Common.Win32.PROCESS_INFORMATION@)" 的 <param name="lpProcessAttributes"/> 文档]

lpThreadAttributes
类型:Sweet.Common.Win32SECURITY_ATTRIBUTES

[缺少 "M:Sweet.Common.Win32.Kernel.CreateProcess(System.String,System.String,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,System.Int32,System.Int32,System.IntPtr,System.String,Sweet.Common.Win32.STARTUPINFO@,Sweet.Common.Win32.PROCESS_INFORMATION@)" 的 <param name="lpThreadAttributes"/> 文档]

bInheritHandles
类型:SystemInt32

[缺少 "M:Sweet.Common.Win32.Kernel.CreateProcess(System.String,System.String,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,System.Int32,System.Int32,System.IntPtr,System.String,Sweet.Common.Win32.STARTUPINFO@,Sweet.Common.Win32.PROCESS_INFORMATION@)" 的 <param name="bInheritHandles"/> 文档]

dwCreationFlags
类型:SystemInt32

[缺少 "M:Sweet.Common.Win32.Kernel.CreateProcess(System.String,System.String,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,System.Int32,System.Int32,System.IntPtr,System.String,Sweet.Common.Win32.STARTUPINFO@,Sweet.Common.Win32.PROCESS_INFORMATION@)" 的 <param name="dwCreationFlags"/> 文档]

lpEnvironment
类型:SystemIntPtr

[缺少 "M:Sweet.Common.Win32.Kernel.CreateProcess(System.String,System.String,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,System.Int32,System.Int32,System.IntPtr,System.String,Sweet.Common.Win32.STARTUPINFO@,Sweet.Common.Win32.PROCESS_INFORMATION@)" 的 <param name="lpEnvironment"/> 文档]

lpCurrentDriectory
类型:SystemString

[缺少 "M:Sweet.Common.Win32.Kernel.CreateProcess(System.String,System.String,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,System.Int32,System.Int32,System.IntPtr,System.String,Sweet.Common.Win32.STARTUPINFO@,Sweet.Common.Win32.PROCESS_INFORMATION@)" 的 <param name="lpCurrentDriectory"/> 文档]

lpStartupInfo
类型:Sweet.Common.Win32STARTUPINFO

[缺少 "M:Sweet.Common.Win32.Kernel.CreateProcess(System.String,System.String,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,System.Int32,System.Int32,System.IntPtr,System.String,Sweet.Common.Win32.STARTUPINFO@,Sweet.Common.Win32.PROCESS_INFORMATION@)" 的 <param name="lpStartupInfo"/> 文档]

lpProcessInformation
类型:Sweet.Common.Win32PROCESS_INFORMATION

[缺少 "M:Sweet.Common.Win32.Kernel.CreateProcess(System.String,System.String,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,System.Int32,System.Int32,System.IntPtr,System.String,Sweet.Common.Win32.STARTUPINFO@,Sweet.Common.Win32.PROCESS_INFORMATION@)" 的 <param name="lpProcessInformation"/> 文档]

返回值

类型:Int32

[缺少 "M:Sweet.Common.Win32.Kernel.CreateProcess(System.String,System.String,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,System.Int32,System.Int32,System.IntPtr,System.String,Sweet.Common.Win32.STARTUPINFO@,Sweet.Common.Win32.PROCESS_INFORMATION@)" 的 <returns> 文档]

参见
SweetUI 控件库、工具类库、扩展类库、多页面开发框架