接口。 两个 _SECURITY_ATTRIBUTES 类型的安全属性,一般来说可以设置为空,使用缺省设置。 以下为引用: _SECURITY_ATTRIBUTES sa = new _SECURITY_ATTRIBUTES(); sa.nLength = (uint)Marshal.SizeOf(sa); sa.bInheritHandle = Win32.BOOL.FALSE; sa.lpSecurityDescriptor = IntPtr.Zero; 值得注意的是 dwCreationFlags 指定了创建进程是否支持 Native 模式的调试,也就是前面 SetUnmanagedHandler 方法调用的接口是否起作用。可以根据情况如命令行选项决定是否支持 Native 调试模式,如 以下为引用: namespace Win32 { public struct CreationFlag { public const uint DEBUG_PROCESS = 0x00000001; public const uint DEBUG_ONLY_THIS_PROCESS = 0x00000002; public const uint CREATE_SUSPENDED = 0x00000004; public const uint DETACHED_PROCESS = 0x00000008; 页码:[1] [2] [3] [4] [5] [6] [7] [8] [9] 第6页、共9页 |