• <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
            <2006年11月>
            2930311234
            567891011
            12131415161718
            19202122232425
            262728293012
            3456789

            專(zhuān)注于C++ P2P STL GP OpenSource等
            Google

            常用鏈接

            留言簿(10)

            隨筆分類(lèi)

            隨筆檔案

            相冊(cè)

            朋友

            • .NET

            搜索

            •  

            最新評(píng)論

            閱讀排行榜

            評(píng)論排行榜

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

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



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

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

            如果你需要下載文檔請(qǐng)到文件下載。

            posted on 2006-11-03 11:39 CPP&&設(shè)計(jì)模式小屋 閱讀(1147) 評(píng)論(0)  編輯 收藏 引用 所屬分類(lèi): Windows Programming
            一日本道伊人久久综合影| 欧美亚洲另类久久综合| 一个色综合久久| 色综合久久久久无码专区| 久久成人精品视频| 伊人久久大香线蕉成人| 久久久综合九色合综国产| 久久综合久久美利坚合众国| 91精品国产乱码久久久久久| 欧美激情一区二区久久久| 国产精品岛国久久久久| 国产香蕉久久精品综合网| 国产精品久久久久影院嫩草| 久久亚洲精品成人无码网站| 久久se精品一区精品二区国产| 久久精品国产亚洲AV嫖农村妇女| 久久久精品视频免费观看| 久久婷婷五月综合色高清| 久久精品视频一| 久久精品国产一区二区电影| 久久99国产亚洲高清观看首页| 波多野结衣AV无码久久一区| 性高湖久久久久久久久AAAAA| 亚洲国产精品久久久久网站 | 久久久久亚洲av无码专区| 亚洲欧美另类日本久久国产真实乱对白| 国产精品免费福利久久| 亚洲中文字幕无码久久2017| 模特私拍国产精品久久| 亚洲精品高清一二区久久| 精品久久久久久国产免费了| 久久国产精品国语对白| 一本大道加勒比久久综合| 久久青青草原综合伊人| 久久99精品综合国产首页| 久久久久一区二区三区| 99久久er这里只有精品18| 99久久精品国产麻豆| 久久久久久a亚洲欧洲aⅴ| 91精品国产综合久久四虎久久无码一级| 办公室久久精品|