pub struct HDESK(/* private fields */);
Available on crate feature
user
only.Expand description
Handle to a desktop.
Trait Implementations§
source§impl Handle for HDESK
impl Handle for HDESK
source§const NULL: Self = _
const NULL: Self = _
Available on crate feature
kernel
only.The null, uninitialized handle; equals to
0
.source§const INVALID: Self = _
const INVALID: Self = _
Available on crate feature
kernel
only.The invalid handle; equals to
-1
. Read moresource§unsafe fn from_ptr(p: *mut c_void) -> Self
unsafe fn from_ptr(p: *mut c_void) -> Self
Available on crate feature
kernel
only.Creates a new handle object by wrapping a pointer. Read more
source§unsafe fn as_mut(&mut self) -> &mut *mut c_void
unsafe fn as_mut(&mut self) -> &mut *mut c_void
Available on crate feature
kernel
only.Returns a mutable reference to the underlying raw pointer. Read more
source§unsafe fn raw_copy(&self) -> Self
unsafe fn raw_copy(&self) -> Self
Available on crate feature
kernel
only.Returns a raw copy of the underlying handle pointer. Read more
source§impl PartialEq for HDESK
impl PartialEq for HDESK
source§impl user_Hdesk for HDESK
impl user_Hdesk for HDESK
source§fn CreateDesktop(
name: &str,
flags: Option<DF>,
desired_access: DESKTOP_RIGHTS,
security_attributes: Option<&SECURITY_ATTRIBUTES<'_>>
) -> SysResult<CloseDesktopGuard>
fn CreateDesktop( name: &str, flags: Option<DF>, desired_access: DESKTOP_RIGHTS, security_attributes: Option<&SECURITY_ATTRIBUTES<'_>> ) -> SysResult<CloseDesktopGuard>
CreateDesktop
function.source§fn CreateDesktopEx(
name: &str,
flags: Option<DF>,
desired_access: DESKTOP_RIGHTS,
security_attributes: Option<&SECURITY_ATTRIBUTES<'_>>,
heap_size_kb: u32
) -> SysResult<CloseDesktopGuard>
fn CreateDesktopEx( name: &str, flags: Option<DF>, desired_access: DESKTOP_RIGHTS, security_attributes: Option<&SECURITY_ATTRIBUTES<'_>>, heap_size_kb: u32 ) -> SysResult<CloseDesktopGuard>
CreateDesktopEx
function.source§fn GetThreadDesktop(
thread_id: u32
) -> SysResult<ManuallyDrop<CloseDesktopGuard>>
fn GetThreadDesktop( thread_id: u32 ) -> SysResult<ManuallyDrop<CloseDesktopGuard>>
GetThreadDesktop
function. Read moresource§fn OpenDesktop(
name: &str,
flags: Option<DF>,
inherit: bool,
desired_access: DESKTOP_RIGHTS
) -> SysResult<CloseDesktopGuard>
fn OpenDesktop( name: &str, flags: Option<DF>, inherit: bool, desired_access: DESKTOP_RIGHTS ) -> SysResult<CloseDesktopGuard>
OpenDesktop
function.source§fn OpenInputDesktop(
flags: Option<DF>,
inherit: bool,
desired_access: DESKTOP_RIGHTS
) -> SysResult<CloseDesktopGuard>
fn OpenInputDesktop( flags: Option<DF>, inherit: bool, desired_access: DESKTOP_RIGHTS ) -> SysResult<CloseDesktopGuard>
OpenInputDesktop
function.source§fn SetThreadDesktop(&self) -> SysResult<()>
fn SetThreadDesktop(&self) -> SysResult<()>
SetThreadDesktop
function.source§fn SwitchDesktop(&self) -> SysResult<()>
fn SwitchDesktop(&self) -> SysResult<()>
SwitchDesktop
function.impl Eq for HDESK
impl Send for HDESK
impl StructuralPartialEq for HDESK
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more