Lines Matching full:desktop
11 #include "webrtc/modules/desktop_capture/win/desktop.h"
19 Desktop::Desktop(HDESK desktop, bool own) : desktop_(desktop), own_(own) { in Desktop() argument
22 Desktop::~Desktop() { in ~Desktop()
25 LOG(LS_ERROR) << "Failed to close the owned desktop handle: " in ~Desktop()
31 bool Desktop::GetName(std::wstring* desktop_name_out) const { in GetName()
44 LOG(LS_ERROR) << "Failed to query the desktop name: " << GetLastError(); in GetName()
52 bool Desktop::IsSame(const Desktop& other) const { in IsSame()
64 bool Desktop::SetThreadDesktop() const { in SetThreadDesktop()
66 LOG(LS_ERROR) << "Failed to assign the desktop to the current thread: " in SetThreadDesktop()
74 Desktop* Desktop::GetDesktop(const WCHAR* desktop_name) { in GetDesktop()
79 HDESK desktop = OpenDesktop(desktop_name, 0, FALSE, desired_access); in GetDesktop() local
80 if (desktop == NULL) { in GetDesktop()
81 LOG(LS_ERROR) << "Failed to open the desktop '" << desktop_name << "': " in GetDesktop()
86 return new Desktop(desktop, true); in GetDesktop()
89 Desktop* Desktop::GetInputDesktop() { in GetInputDesktop()
90 HDESK desktop = OpenInputDesktop( in GetInputDesktop() local
92 if (desktop == NULL) in GetInputDesktop()
95 return new Desktop(desktop, true); in GetInputDesktop()
98 Desktop* Desktop::GetThreadDesktop() { in GetThreadDesktop()
99 HDESK desktop = ::GetThreadDesktop(GetCurrentThreadId()); in GetThreadDesktop() local
100 if (desktop == NULL) { in GetThreadDesktop()
101 LOG(LS_ERROR) << "Failed to retrieve the handle of the desktop assigned to " in GetThreadDesktop()
107 return new Desktop(desktop, false); in GetThreadDesktop()