Function winvd::get_desktop
source · pub fn get_desktop<T>(desktop: T) -> Desktop
Expand description
Get desktop by index or GUID
§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.