Skip to content

Tracking Issue for windows_process_extensions_main_thread_handle #96723

Open
@nico-abram

Description

@nico-abram

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-processArea: `std::process` and `std::env`C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions