A desktop has a logical display surface and contains user interface objects such as windows, menus, and hooks; it can be used to create and manage windows. Each desktop object is a securable object. When a desktop is created, it is associated with the current window station of the calling process and assigned to the calling thread.
Desktop是一个逻辑的显示界面,包含用户接口对象,如:窗口、菜单、钩子等;可以创建和管理窗口。每一个Desktop对象是可引用的对象。当一个Desktop被创建,它被关联到当前调用进程和Window Station 和分配给调用线程。
Messages can be sent only between processes that are on the same desktop. In addition, the hook procedure of a process running on a particular desktop can only receive messages intended for windows created in the same desktop.
Messages 只能在同一Desktop中的进程间传递。另外,运行在特定Desktop的进程中的钩子程序只能接受同一Desktop中被创建的窗口的消息。
The desktops associated with the interactive window station, Winsta0, can be made to display a user interface and receive user input, but only one of these desktops at a time is active. This active desktop, also known as the input desktop, is the one that is currently visible to the user and that receives user input. Applications can use the OpenInputDesktop function to get a handle to the input desktop. Applications that have the required access can use the SwitchDesktop function to specify a different input desktop.
Desktops 与当前活动的Window Station,Winsta0关联,用于显示用户接口和接受用户输入,但是同一时间只能有一个Desktop是活动的。这个活动的Desktop同样被认为是 the Input Desktop,是用户当前可见和可接受用户输入的。应用程序可以用OpenInputDesktop函数取得The Input Desktop的句柄。取得访问权限的应用程序可用SwitchDesktop函数指定其他 Input Desktop。
By default, there are three desktops in the interactive window station: default, Winlogon, and screen-saver. The default desktop is created when the logged-on user starts a process. It is the active desktop, and it is used to interact with the user. If you press the CTRL+ALT+DEL key sequence, you are switched to the Winlogon desktop. Whenever the screen saver activates, you are automatically switched to the screen-saver desktop, which protects the processes on the default desktop from unauthorized users. Unsecured screen savers run on Winsta0/default.
在默认情况下,一个交互的Window Station有三个Desktop对象:default,Winlogon, 和 screen-saver. 当登录用户开始一个进程时Default Desktop被创建。它是一个活动桌面,用于与用户交互。如果你按下CTRL+ALT+DEL键,将切换到Winlogon桌面。每当Screen Saver激活时,你自动切换到screen-saver desktop(屏保桌面),它保护在Default桌面上运行的进程被未授权的用户访问。不安全的屏幕保护程序运行在Winsta0/default。
For more information, see the following topics:
更多信息请访问下面的标题:
- Window Station and Desktop Creation
- Thread Connection to a Desktop
- Desktop Security and Access Rights