Function get_desktop

Source
pub fn get_desktop<T>(desktop: T) -> Desktop
where T: Into<Desktop>,
Expand description

Get desktop by index or GUID (Same as [winvd::get_desktop]).

ยงExamples

  • Get first desktop by index get_desktop(0)
  • Get second desktop by index get_desktop(1)
  • Get desktop by GUID get_desktop(GUID(0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0]))

Note: This function does not check if the desktop exists.