DWORD dwThreadId = ::GetCurrentThreadId ( ) ; HDESK m_hUserDesktop = 0; HDESK m_hOrigDesktop = ::GetThreadDesktop ( dwThreadId ) ; m_hUserDesktop = ::CreateDesktop ( _T("MyNewDesktop"), 0, 0, 0, GENERIC_ALL, 0 ) ; ::SwitchDesktop ( m_hUserDesktop ); Sleep( 70000 ); ::SwitchDesktop ( m_hOrigDesktop ); ::CloseDesktop( m_hUserDesktop );
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)