Struct winsafe::HPROCESS [−][src]
#[repr(C)]pub struct HPROCESS { /* fields omitted */ }
Expand description
Handle to a
process.
Originally just a HANDLE
.
Implementations
Creates a new handle instance by wrapping a pointer.
This method is common to all handle types.
Consumes the handle returning the underlying raw pointer.
This method is common to all handle types.
Tells if the handle is invalid (null).
This method is common to all handle types.
CloseHandle
method.
pub fn CreateProcess(
application_name: Option<&str>,
command_line: Option<&str>,
process_attrs: Option<&mut SECURITY_ATTRIBUTES<'_>>,
thread_attrs: Option<&mut SECURITY_ATTRIBUTES<'_>>,
inherit_handles: bool,
creation_flags: CREATE,
environment: Option<Vec<String>>,
current_dir: Option<&str>,
si: &mut STARTUPINFO<'_, '_>
) -> WinResult<PROCESS_INFORMATION>
pub fn CreateProcess(
application_name: Option<&str>,
command_line: Option<&str>,
process_attrs: Option<&mut SECURITY_ATTRIBUTES<'_>>,
thread_attrs: Option<&mut SECURITY_ATTRIBUTES<'_>>,
inherit_handles: bool,
creation_flags: CREATE,
environment: Option<Vec<String>>,
current_dir: Option<&str>,
si: &mut STARTUPINFO<'_, '_>
) -> WinResult<PROCESS_INFORMATION>
CreateProcess
static method.
Note: Process and thread handles are returned in the
PROCESS_INFORMATION
struct, and they
must be paired with their respective
HPROCESS::CloseHandle
and
HTHREAD::CloseHandle
calls.
ExitProcess
static method.
FlushInstructionCache
method.
FlushProcessWriteBuffers
static method.
GetCurrentProcess
static method.
GetExitCodeProcess
method.
GetGuiResources
method.
GetProcessId
method.
GetProcessTimes
method.
IsWow64Process
method.
OpenProcess
static method.
Note: Must be paired with an
HPROCESS::CloseHandle
call.
QueryFullProcessImageName
method.
WaitForSingleObject
method.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more