Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 Win32 我可以创建内核对象,这些对象的句柄继承给子进程(例如CreateEventwith SECURITY_ATTRIBUTES.bInheritHandle = true)。System.Diagnostics.Process.Start()虽然我可以通过使用 P/ Invoke获得相同的结果,但我想知道为什么框架类库没有提供此功能,即使CreateProcess使用bInheritHandles = true.
CreateEvent
SECURITY_ATTRIBUTES.bInheritHandle = true
System.Diagnostics.Process.Start()
CreateProcess
bInheritHandles = true
这种技术是过时的、不安全的还是不是很为人所知?