Open
Description
Feature gate: #![feature(windows_process_extensions_main_thread_handle)]
This is a tracking issue for a new main_thread_handle(&self)
function on a new ChildExt trait for windows.
The winapi function used to create a process on windows returns a structure that has both a main thread handle and a process handle. std currently discards the thread handle, but that handle can be useful when resuming a process that was created as suspended since that is usually done with ResumeThread. Finding that thread from the process handle can be a bit convoluted, so it'd be nice if std exposed it on a windows-specific extension trait.
Public API
// std::process
pub trait ChildExt: Sealed {
#[unstable(feature = "windows_process_extensions_main_thread_handle", issue = "96723")]
fn main_thread_handle(&self) -> RawHandle;
}
Steps / History
- Implementation: Expose process windows_process_extensions_main_thread_handle on Windows #96725
- Final comment period (FCP)
- Stabilization PR