Lines Matching defs:desktop
205 // Returns true if the current's thread desktop is the interactive desktop.
244 HDESK desktop = ::GetThreadDesktop(::GetCurrentThreadId());
245 if (NULL == desktop) {
248 if (::SwitchDesktop(desktop)) {
260 HDESK desktop = ::GetThreadDesktop(::GetCurrentThreadId());
261 if (desktop) {
263 if (::DuplicateHandle(::GetCurrentProcess(), desktop,
279 desktop = ::OpenDesktop(desktop_name, 0, FALSE, WRITE_DAC);
280 if (desktop || ::GetLastError() != ERROR_ACCESS_DENIED) {
281 ::CloseDesktop(desktop);