• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            隨筆 - 45  文章 - 129  trackbacks - 0
            <2007年2月>
            28293031123
            45678910
            11121314151617
            18192021222324
            25262728123
            45678910

            專注于C++ P2P STL GP OpenSource等
            Google

            常用鏈接

            留言簿(10)

            隨筆分類

            隨筆檔案

            相冊

            朋友

            • .NET

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            本文是Vista相關(guān)新技術(shù)的第一篇文章。

            轉(zhuǎn)載請注明出處。??



            最近由于工作原因,需要將系統(tǒng)移植到Vista上面。看了一些文檔,發(fā)現(xiàn)Windows Vista對內(nèi)核做了一些調(diào)整。

            1. 對于Windows NT 5.x 系統(tǒng)來說:當(dāng)?shù)谝粋€用戶登錄上去之后,系統(tǒng)啟動了Session 0作為第一個用戶的運行的Session。而一些系統(tǒng)程序和一些服務(wù)都運行于Session 0.這樣。這樣假如開發(fā)人員開發(fā)Service的時候選擇與桌面交互,那么服務(wù)就能很好的和桌面程序進(jìn)行交互。
            2. 對于Vista系統(tǒng)來說,微軟做了一些調(diào)整,為了加強(qiáng)服務(wù)的安全性,Vista將所有Service和一些系統(tǒng)進(jìn)程放入了Sesion 0,而對于用戶進(jìn)程則從Session 1開始。這樣就能很好的避免一些惡意服務(wù)對于用戶使用的時候的一些干擾,提供更好的用戶體驗(這是我猜的 ^-^).
            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.

            如果你需要下載文檔請到文件下載。

            posted on 2006-11-03 11:39 CPP&&設(shè)計模式小屋 閱讀(1137) 評論(0)  編輯 收藏 引用 所屬分類: Windows Programming
            丁香五月综合久久激情| 久久久久久亚洲Av无码精品专口 | 久久精品中文字幕大胸| 久久久久99精品成人片牛牛影视| 久久精品二区| 一本色道久久88—综合亚洲精品 | 精品精品国产自在久久高清| 99久久精品这里只有精品| 天天做夜夜做久久做狠狠| 亚洲级αV无码毛片久久精品| 精品999久久久久久中文字幕| 国产精品久久久久免费a∨| 精品久久8x国产免费观看| 亚洲&#228;v永久无码精品天堂久久| 国产精品久久久久久久久软件 | 中文字幕无码久久久| 狠狠色婷婷综合天天久久丁香| 伊人 久久 精品| 91麻精品国产91久久久久| 久久精品人成免费| 日本WV一本一道久久香蕉| 国产亚州精品女人久久久久久 | 久久人人爽人人爽人人片AV东京热| 色偷偷偷久久伊人大杳蕉| 欧洲性大片xxxxx久久久| 国产精品99久久久久久人| 亚洲乱码精品久久久久..| 综合久久精品色| 亚洲伊人久久成综合人影院 | 成人综合伊人五月婷久久| 久久精品aⅴ无码中文字字幕不卡| 国产三级精品久久| 人人狠狠综合久久亚洲婷婷| 久久国产精品成人片免费| 亚洲精品无码久久一线| 无码AV波多野结衣久久| 欧美精品九九99久久在观看| 狠狠色丁香久久婷婷综合图片| 人妻无码精品久久亚瑟影视| 无码精品久久一区二区三区| 欧美日韩成人精品久久久免费看|