示例#1
0
 // 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);
 }
示例#2
0
 /// <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);
 }