Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 编程语言 > C/C++ > Vista 相对与Window NT 5.x的不同
【标  题】:Vista 相对与Window NT 5.x的不同
【关键字】:Vista,Window,NT,5.x
【来  源】:http://www.cppblog.com/shenhuafeng/archive/2006/11/03/14602.html

Vista 相对与Window NT 5.x的不同

Your Ad Here

???最近由于工作原因,需要将系统移植到Vista上面。看了一些文档,发现Windows Vista对内核做了一些调整。

  1. 对于Windows NT 5.x 系统来说:当第一个用户登录上去之后,系统启动了Session 0作为第一个用户的运行的Session。而一些系统程序和一些服务都运行于Session 0.这样。这样假如开发人员开发Service的时候选择与桌面交互,那么服务就能很好的和桌面程序进行交互。
  2. 对于Vista系统来说,微软做了一些调整,为了加强服务的安全性,Vista将所有Service和一些系统进程放入了Sesion 0,而对于用户进程则从Session 1开始。这样就能很好的避免一些恶意服务对于用户使用的时候的一些干扰,提供更好的用户体验(这是我猜的 ^-^).
  3. · ???????? Use a client/server mechanism such as remote procedure call (RPC) or named pipes rather than window messages to communicate with applications.

    · ???????? Implement any necessary user interface for the service as follows:

    · ???????? Use the WTSSendMessage function to create a simple message box on the user’s desktop. This allows the service to give the user a notification and request a simple response.

    · ???????? For more complex UI, use the CreateProcessAsUser function to create a process in the user’s session. The process can then display a user interface in the user’s session. The service should use a client/server mechanism such as RPC or named pipes to obtain any response from the user.

    ·??????? Query display properties in the user’s session, not in Session?0, because the resolution and color depth that are reported in Session?0 are unlikely to reflect the actual display properties.

    · ???????? Explicitly choose either the Local\ or Global\ namespace for any named objects, such as events or mapped memory, that the service makes available. If an object must be accessible to user applications, it must be created in the Global\ namespace to be accessible to other sessions. The following Microsoft Win32? functions all accept named objects: OpenEvent, OpenMutex, OpenSemaphore, OpenWaitableTimer, OpenJobObject, and OpenFileMapping. Care should be taken when using these functions to ensure that the named object is accessible within the current session.

    · ???????? Test the driver in Windows Vista to ensure that it runs properly. If that is not possible, test the driver in Windows?XP with FUS enabled and multiple users logged on. If the driver works correctly for second and subsequent logged-on users, it is not likely to be affected by the Session?0 changes in Windows Vista. The only issues that this test does not detect are those related to the absence of the video driver in Session?0 in Windows Vista.

如果你需要下载文档请到文件下载。

《windows系统管理--使用命令行,批处理文件和windows脚本》(命令行基础):【上一篇】
2006年10月几个安全公告:【下一篇】
【相关文章】
  • 《windows系统管理--使用命令行,批处理文件和windows脚本》(命令行基础)
  • Dive Into IronPython(2006-11-05更新)
  • ubuntu 6.10上的xen安装
  • Ubuntu-最有前途的linux发行版
  • 在VMWare5.5.2上安装ubuntu6.10
  • Checkpoint Tuning and Troubleshooting
  • Document.all 以及 Document.getElementById 的转化
  • 老外对vista的一句有趣评价
  • Windows 自定义exe文件注册系统服务方法(Inber write)
  • windows控制台程序设定光标位置
  • 【随机文章】
  • 心情不好中...写的几首诗~
  • ASP.NET程序中常用的三十三种代码(一)
  • 禁止显示"远程管理"
  • 写远程缓冲区溢出漏洞利用程序
  • SGA和共享池
  • 博客迁移声明
  • Unix选路守护程序
  • 系统分析员级软件人员资格与水平考试的各项事宜
  • 背板带宽
  • 转载而来
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.