// constructor is private to prevent invalid handles being passed to it. private Desktop(IntPtr desktop) { // init variables. m_desktop = desktop; m_desktopName = GetDesktopName(desktop); m_windows = new List <IntPtr>(); m_disposed = false; DesktopActions = new DesktopActions(this); }
/// <summary> /// Creates a new Desktop object. /// </summary> public Desktop() { // init variables. m_desktop = IntPtr.Zero; m_desktopName = String.Empty; m_windows = new List <IntPtr>(); m_disposed = false; DesktopActions = new DesktopActions(this); }