37 TCHAR name[100] = {0};
39 HDESK h = ::GetThreadDesktop(::GetCurrentThreadId());
40 ::GetUserObjectInformation(h, UOI_NAME, name, 100, &w);
41 m_currentDesktopName = name;
50 return m_currentDesktopName;
61 TCHAR name[100] = {0};
63 HDESK h = ::OpenInputDesktop(0, FALSE, DESKTOP_ENUMERATE);
64 BOOL r = ::GetUserObjectInformation(h, UOI_NAME, name, 100, &w);
80 return _tcscmp(str, m_currentDesktopName) == 0;