SlideShare a Scribd company logo
议程
                                                                                          WRP保护资源
                                                                                          WRP保护资源
             Windows 7兼容性系列课程(3):
                     7兼容性系列课程(3):                                                         程序兼容性助手
             有针对的兼容性开发(
             有针对的兼容性开发(上)                                                                 映射网络驱动器
                                                                                          安装识别
                                                                                          正确文件目录
                吴慧锋
                MVP 测试与技术支持工程师                                                            操作系统版本检测
                www.ssw.com.au                                                            Session 0
                E-mail / MSN: WilsonWu@ssw.com.au




          议程                                                                             Windows资源保护
                                                                                         Windows资源保护
                WRP保护资源
                WRP保护资源
                程序兼容性助手
                映射网络驱动器
                安装识别
                正确文件目录
                操作系统版本检测
                Session 0




          何为TrustedInstaller
          何为TrustedInstaller                                                             WRP 的保护内容
           c:Windows>icacls
           c:Windows>icacls explorer.exe
           explorer.exe NT SERVICETrustedInstaller:(F)
                           SERVICETrustedInstaller:(F)
                  BUILTIN
                  BUILTINAdministrators:(RX)
                  NT AUTHORITYSYSTEM:(RX)
                      AUTHORITY
                                                                                          大多核心操作系统文件
                  BUILTIN
                  BUILTINUsers:(RX)
           Successfully processed 1 files; Failed processing 0 files
                                                                                          大多核心操作系统的注册表项
           c:Windows>psgetsid
           c:Windows>psgetsid "NT SERVICETrustedInstaller"
                                     SERVICETrustedInstaller"                            操作系统进程级别的目录
           PsGetSid v1.43 - Translates SIDs to names and vice versa
           Copyright (C) 1999-2006 M k R
           C     i ht    1999-     Mark Russinovich
                                              i   i h                                     对于安装程式将没有限制
           Sysinternals - www.sysinternals.com
           SID for NT SERVICETrustedInstaller:
                      SERVICETrustedInstaller:
           S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464
                 80-956008885-3418522649-1831038044-1853292631-
                                                                                          取决于服务的SID
                                                                                          取决于服务的SID
                                                                                           TrustedInstaller是服务而不是账户!
                                                                                           TrustedInstaller是服务而不是账户!
           c:
           c:Windows>sc showsid trustedinstaller
           NAME: trustedinstaller
           SERVICE SID: S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464
                               80-956008885-3418522649-1831038044-1853292631-
           c:
           c:Windows>sc getdisplayname trustedinstaller
           [SC] GetServiceDisplayName SUCCESS
           Name = Windows Modules Installer




© 2002 Microsoft Corporation. All rights reserved.
This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.   1
议程
                                                                              WRP保护资源
                                                                              WRP保护资源

          Windows资源保护
          Windows资源保护                                                         程序兼容性助手
                                                                              映射网络驱动器
                                                                              安装识别
                                                                              正确文件目录
                                                                              操作系统版本检测
                                                                              Session 0




          程序兼容性助手
          程序兼容性助手                                                         PCA安装失败
                                                                          PCA安装失败
              只适用于客户端应用程序
              仅当运行失败时触发
              PCA在如下情况被触发:
              PCA在如下情况被触发:
                 在“Program Files”目录下创建 个子目录
                           Files 目录下创建一个子目录
                   Program Files”目录下创建一个子目录
                 将文件复制到新目录中
                 利用虚拟化事件




                                                                          议程
                                                                              WRP保护资源
                                                                              WRP保护资源

          程序兼容性助手                                                             程序兼容性助手
                                                                              映射网络驱动器
                                                                              正确文件目录
                                                                              操作系统版本检测
                                                                              Session 0




© 2002 Microsoft Corporation. All rights reserved.
This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.   2
映射网络驱动器
           射网络驱动器
              在每个用户登录会话中单独存放
              管理员权限用户登录具有两个会话
                 未提升权限的会话
                                                                          驱动器映射与UAC
                                                                          驱动器映射与UAC
                 提升权限的会话
              管理员权限用户具有两个驱动器映射集
              HKLMSOFTWAREMicrosoftWindows
              HKLMSOFTWAREMicrosoftWindows
              CurrentVersionPoliciesSystem
              CurrentVersionPoliciesSystem
              EnableLinkedConnections = (dword)1
                                          (dword)1
              http://support.microsoft.com/kb/937624




          议程                                                              安装识别
              WRP保护资源
              WRP保护资源                                                         为什么我的程序会以提升权限被运行
              程序兼容性助手                                                           因为Windows
                                                                                因为Windows 7认为它是一个安装包

              映射网络驱动器                                                         具体的安装包
              安装识别                                                            通用的安装包
              正确文件目录                                                          具体的非安装包
              操作系统版本检测
              Session 0




                                                                          议程
                                                                              WRP保护资源
                                                                              WRP保护资源

          安装识别                                                                程序兼容性助手
                                                                              映射网络驱动器
                                                                              安装识别
                                                                              正确文件目录
                                                                              操作系统版本检测
                                                                              Session 0




© 2002 Microsoft Corporation. All rights reserved.
This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.   3
正确文件目录
          正确文件目录 (1/2)                                                                                      正确文件目录
                                                                                                            正确文件目录 (2/2)
          以前的路径                                         新路径                                                 以前的路径                                     新路径

          c:windows                                     %windir%
                                                         windir%                                            %windir%profiles%username%start menu
                                                                                                             windir% profiles%username%             %userstartmenu%
                                                                                                                                                       userstartmenu%

          %windir%rundll32.exe
           windir%                                      %systemdir%rundll32.exe
                                                         systemdir%                                         %windir%profiles%username%desktop
                                                                                                             windir% profiles%username%             %userdesktop%
                                                                                                                                                       userdesktop%

          %windir%rundll.exe
           windir%                                      %systemdir%rundll32.exe
                                                         systemdir%                                         %windir%profiles%username%favorites
                                                                                                             windir% profiles%username%             %userfavorites%
                                                                                                                                                       userfavorites%

          %windir%write.exe
           windir%                                      %systemdir%write.exe
                                                         systemdir%                                         %windir%profilesall usersstart menu
                                                                                                             windir% profiles users
                                                                                                                     p                                %allstartmenu%
                                                                                                                                                       allstartmenu%

          %windir%wordpad.exe
           windir%                                      %programfiles%windows ntaccessorieswordpad.exe
                                                         programfiles%         ntaccessories              %windir%profilesall usersdesktop
                                                                                                             windir% profiles users                 %alldesktop

          %programfiles%accessorieswordpad.exe
           programfiles% accessories                   %programfiles%windows ntaccessorieswordpad.exe
                                                         programfiles%         ntaccessories              %windir%profilesall usersfavorites
                                                                                                             windir% profiles users                 %userfavorites%
                                                                                                                                                       userfavorites%

          %windir%dxdiag.exe
           windir%                                      %systemdir%dxdiag.exe
                                                         systemdir%                                         ddhelp.exe                                ddraw.dll

          %windir%start menu
           windir%                                      %userstartmenu%
                                                         userstartmenu%                                     ddraw16.dll                               ddraw.dll

          %windir%desktop
           windir%                                      %userdesktop%
                                                         userdesktop%                                       dsound.vxd                                Ddraw.dll

          %windir%
          %windir%favorites                            %userfavorites%
                                                         userfavorites%                                     %userstartmenu%
                                                                                                             userstartmenu%                           %allstartmenu%
                                                                                                                                                       allstartmenu%




                                                                                                            议程
                                                                                                                   WRP保护资源
                                                                                                                   WRP保护资源

          正确文件目录                                                                                                   程序兼容性助手
                                                                                                                   映射网络驱动器
                                                                                                                   安装识别
                                                                                                                   正确文件目录
                                                                                                                   操作系统版本检测
                                                                                                                   Session 0




          Windows版本纵览
          Windows版本纵览                                                                                       版本检测的最佳实践
          操作系统                              版本                            发布时间
                                                                                                                   不要使用横等方式检测版本
          Windows 1.0                       1.04                          1985
          Windows 2.0                       2.11                          1987                                            如果你的程序需要某项新功能则请直接价差该功能是
          Windows 3.0                       3.00                          1990                                            否存在
          Windows NT 3.1                    3.10.528                      1993                                            使用大于好来检测系统版本
          Windows for Workgroups 3.11       3.11                          1993
                                                                                                                               检查Windows XP或后续系统 (
                                                                                                                               检查Windows XP或后续系统 (>= 5.1)
                                                                                                                                                        )
          Windows NT Workstation 3.5        3.5.807                       1994
          Windows NT Workstation 3.51       3.51.1057                     1995                                            特殊的情况是一些商业或法律原因需要做一个版本检
          Windows 95                        4.0.950                       1995                                            查,比如一个管理机构,您需要证明您的应用程序的
          Windows NT Workstation 4.0        4.0.1381                      1996                                            每个操作系统和版本
          Windows 98                        4.1.1998                      1998
          Windows 98 Second Edition         4.1.2222                      1999
          Windows Me                        4.90.3000                     2000
          Windows 2000 Professional         5.0.2195                      2000
          Windows XP                        5.1.2600                      2001
          Windows Vista                     6.0.6000                      2006
          Windows 7                         6.1.????                      ????




© 2002 Microsoft Corporation. All rights reserved.
This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.                                               4

Recommended for you

20090418 イケテルRails勉強会 第2部Air編
20090418 イケテルRails勉強会 第2部Air編20090418 イケテルRails勉強会 第2部Air編
20090418 イケテルRails勉強会 第2部Air編

The document discusses the development of a web application using Adobe Flex and ActionScript. It describes creating a framework, displaying search result location information and listings, and implementing features like search and map clicks. The application will be compiled into a SWF file to run on Flash Player or as an AIR application.

Richard Databoard
Richard DataboardRichard Databoard
Richard Databoard

This document provides information about the Sysview Confidential DataBoard, a digital signage and interactive whiteboard product. It describes the key features and functions of the DataBoard, including its touchscreen capabilities, automatic recording and sharing of audio and visual materials, ability to display various types of media content, and remote management system. Applications of the DataBoard discussed include modern digital education, conferences, multimedia classrooms, mobile cinemas, and digital signage.

databoard....?2008
خودکاوی-اریک.فروم
خودکاوی-اریک.فرومخودکاوی-اریک.فروم
خودکاوی-اریک.فروم

The three sentence summary is: The document discusses a meeting between two individuals where they talk about political and social issues affecting their community. They express concerns about the current situation and difficulties people are facing. They agree to continue their discussion and try to find solutions to the problems.

议程
                                                                              WRP保护资源
                                                                              WRP保护资源

          操作系统版本检测                                                            程序兼容性助手
                                                                              映射网络驱动器
                                                                              安装识别
                                                                              正确文件目录
                                                                              操作系统版本检测
                                                                              Session 0




          Session 0分离原理
                  0分离原理                                                   Session 0分离原理
                                                                                  0分离原理

                Session 0                                                       Session 0                    Session 1
                     WinSta0                                                        WinSta0                       WinSta0


                 Default Desktop
                 D f lt D kt                                                     Default Desktop
                                                                                 D f lt D kt                  Default Desktop
                                                                                                              D f lt D kt


                     Service                                                         Service                  User Application




                 User Application




          Session 0兼容问题
                  0兼容问题                                                   Service设计的最佳实践
                                                                          Service设计的最佳实践
              支持远程桌面和快速切换用户的程序都没                                              使用第二个程序来显示UI
                                                                              使用第二个程序来显示UI
              有问题                                                             使用C/S结构进行交互
                                                                              使用C/S结构进行交互
              通过Windows Messages进行交互
              通过Windows Messages进行交互                                            RPC
              本地命名空间实体                                                          命名管道

              UI界面和服务
              UI界面和服务                                                         尽可能使用Service
                                                                              尽可能使用Service Hardening
                                                                                删除不必要的权限
              与Session 0桌面进行交互                                                  使用服务的SID来安全访问资源
                                                                                使用服务的SID来安全访问资源
                 UX变化巨大
                 UX变化巨大
                                                                              快速解决方案:
                                                                                WTSSendMessage




© 2002 Microsoft Corporation. All rights reserved.
This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.        5
Question & Answer                                               感谢!
                                                                          感谢!
                                                                              吴慧锋
                   如需提出问题,请在此区域输入文字,并单击
                   “问题和解答”右上方的“提问”按钮即可。
                    问题和解答”右上方的“提问”                                            Wilson Wu
                                                                              Email: iwilsonwu@gmail.com
                                                                              MSN: il
                                                                              MSN wilsonwu@ssw.com.au
                                                                                             @
                                                                              QQ: 53286461
                                                                              Blog: http://WilsonWu.cnblogs.com
                                                                              Blog: http://WilsonWu.cnblogs.com
             您也可以选择在微软中文技术论坛上寻求帮助,MSDN中文网络
               也可以选择在微软中文技术论坛上寻求帮助,MSDN中文网络
             广播的讲师们会定期在论坛上为大家解答与课程相关的技术问题。
             http://forums.microsoft.com/china
             http://forums.microsoft.com/china




© 2002 Microsoft Corporation. All rights reserved.
This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.   6

More Related Content

What's hot

Windows 7兼容性系列课程(4):有针对的兼容性开发(下)
Windows 7兼容性系列课程(4):有针对的兼容性开发(下)Windows 7兼容性系列课程(4):有针对的兼容性开发(下)
Windows 7兼容性系列课程(4):有针对的兼容性开发(下)
Chui-Wen Chiu
 
كتاب تعليم الفلاش
كتاب تعليم الفلاشكتاب تعليم الفلاش
كتاب تعليم الفلاش
nansyrigan
 
IPV9人类共同的理想/IPv9 - The common ideal for human being
IPV9人类共同的理想/IPv9 - The common ideal for human beingIPV9人类共同的理想/IPv9 - The common ideal for human being
IPV9人类共同的理想/IPv9 - The common ideal for human being
shizhao
 
20090418 イケテルRails勉強会 第2部Air編
20090418 イケテルRails勉強会 第2部Air編20090418 イケテルRails勉強会 第2部Air編
20090418 イケテルRails勉強会 第2部Air編
mochiko AsTech
 
Richard Databoard
Richard DataboardRichard Databoard
Richard Databoard
巍 陆
 
خودکاوی-اریک.فروم
خودکاوی-اریک.فرومخودکاوی-اریک.فروم
خودکاوی-اریک.فروم
Farid Kamali
 
maple , part2
maple , part2maple , part2
maple , part2
ahamidp
 
Zurich2007 MySQL Query Optimization
Zurich2007 MySQL Query OptimizationZurich2007 MySQL Query Optimization
Zurich2007 MySQL Query Optimization
Hiệp Lê Tuấn
 
T1
T1T1
4200 Kte7.0 Training V1.0
4200 Kte7.0 Training V1.04200 Kte7.0 Training V1.0
4200 Kte7.0 Training V1.0
wayneliao
 
【12-B-4】 並列処理開発を支援するコンパイラの機能
【12-B-4】 並列処理開発を支援するコンパイラの機能【12-B-4】 並列処理開発を支援するコンパイラの機能
【12-B-4】 並列処理開発を支援するコンパイラの機能
devsumi2009
 
Gpl 과 Ccl
Gpl 과  CclGpl 과  Ccl
Jslunch6
Jslunch6Jslunch6
Jslunch6
Nao Haida
 
20090418 イケテルRails勉強会 第2部Air編 解説
20090418 イケテルRails勉強会 第2部Air編 解説20090418 イケテルRails勉強会 第2部Air編 解説
20090418 イケテルRails勉強会 第2部Air編 解説
mochiko AsTech
 
Oracle Unconference 松下 4/22
Oracle Unconference 松下 4/22Oracle Unconference 松下 4/22
Oracle Unconference 松下 4/22
matsushita
 
Semantic Web Vo Camp Seoul Summer Rdf Vocabularies
Semantic Web Vo Camp Seoul   Summer Rdf VocabulariesSemantic Web Vo Camp Seoul   Summer Rdf Vocabularies
Semantic Web Vo Camp Seoul Summer Rdf Vocabularies
sangwon Yang
 
داستانهايي از امام زمان3
داستانهايي از امام زمان3داستانهايي از امام زمان3
داستانهايي از امام زمان3
Mohammad Hossein
 
العلوم للصف الرابع
العلوم للصف الرابعالعلوم للصف الرابع
العلوم للصف الرابع
أمنية وجدى
 
Prototyping Web Metaphors 20090418
Prototyping Web Metaphors 20090418Prototyping Web Metaphors 20090418
Prototyping Web Metaphors 20090418
Charles (XXC) Chen
 
The Invisible Web
The Invisible WebThe Invisible Web
The Invisible Web
Mohammad Fadl
 

What's hot (20)

Windows 7兼容性系列课程(4):有针对的兼容性开发(下)
Windows 7兼容性系列课程(4):有针对的兼容性开发(下)Windows 7兼容性系列课程(4):有针对的兼容性开发(下)
Windows 7兼容性系列课程(4):有针对的兼容性开发(下)
 
كتاب تعليم الفلاش
كتاب تعليم الفلاشكتاب تعليم الفلاش
كتاب تعليم الفلاش
 
IPV9人类共同的理想/IPv9 - The common ideal for human being
IPV9人类共同的理想/IPv9 - The common ideal for human beingIPV9人类共同的理想/IPv9 - The common ideal for human being
IPV9人类共同的理想/IPv9 - The common ideal for human being
 
20090418 イケテルRails勉強会 第2部Air編
20090418 イケテルRails勉強会 第2部Air編20090418 イケテルRails勉強会 第2部Air編
20090418 イケテルRails勉強会 第2部Air編
 
Richard Databoard
Richard DataboardRichard Databoard
Richard Databoard
 
خودکاوی-اریک.فروم
خودکاوی-اریک.فرومخودکاوی-اریک.فروم
خودکاوی-اریک.فروم
 
maple , part2
maple , part2maple , part2
maple , part2
 
Zurich2007 MySQL Query Optimization
Zurich2007 MySQL Query OptimizationZurich2007 MySQL Query Optimization
Zurich2007 MySQL Query Optimization
 
T1
T1T1
T1
 
4200 Kte7.0 Training V1.0
4200 Kte7.0 Training V1.04200 Kte7.0 Training V1.0
4200 Kte7.0 Training V1.0
 
【12-B-4】 並列処理開発を支援するコンパイラの機能
【12-B-4】 並列処理開発を支援するコンパイラの機能【12-B-4】 並列処理開発を支援するコンパイラの機能
【12-B-4】 並列処理開発を支援するコンパイラの機能
 
Gpl 과 Ccl
Gpl 과  CclGpl 과  Ccl
Gpl 과 Ccl
 
Jslunch6
Jslunch6Jslunch6
Jslunch6
 
20090418 イケテルRails勉強会 第2部Air編 解説
20090418 イケテルRails勉強会 第2部Air編 解説20090418 イケテルRails勉強会 第2部Air編 解説
20090418 イケテルRails勉強会 第2部Air編 解説
 
Oracle Unconference 松下 4/22
Oracle Unconference 松下 4/22Oracle Unconference 松下 4/22
Oracle Unconference 松下 4/22
 
Semantic Web Vo Camp Seoul Summer Rdf Vocabularies
Semantic Web Vo Camp Seoul   Summer Rdf VocabulariesSemantic Web Vo Camp Seoul   Summer Rdf Vocabularies
Semantic Web Vo Camp Seoul Summer Rdf Vocabularies
 
داستانهايي از امام زمان3
داستانهايي از امام زمان3داستانهايي از امام زمان3
داستانهايي از امام زمان3
 
العلوم للصف الرابع
العلوم للصف الرابعالعلوم للصف الرابع
العلوم للصف الرابع
 
Prototyping Web Metaphors 20090418
Prototyping Web Metaphors 20090418Prototyping Web Metaphors 20090418
Prototyping Web Metaphors 20090418
 
The Invisible Web
The Invisible WebThe Invisible Web
The Invisible Web
 

Viewers also liked

從衛星看地球奇景
從衛星看地球奇景從衛星看地球奇景
從衛星看地球奇景
Chui-Wen Chiu
 
如何正確吃水果
如何正確吃水果如何正確吃水果
如何正確吃水果
Chui-Wen Chiu
 
你今天的選擇是什麼?
你今天的選擇是什麼?你今天的選擇是什麼?
你今天的選擇是什麼?
Chui-Wen Chiu
 
電視上看不到的奧運開幕畫面
電視上看不到的奧運開幕畫面電視上看不到的奧運開幕畫面
電視上看不到的奧運開幕畫面
Chui-Wen Chiu
 
柬埔寨鄉村婚禮
柬埔寨鄉村婚禮柬埔寨鄉村婚禮
柬埔寨鄉村婚禮
Chui-Wen Chiu
 
我的學思歷程 劉兆玄
我的學思歷程 劉兆玄我的學思歷程 劉兆玄
我的學思歷程 劉兆玄
Chui-Wen Chiu
 
Pythonpresent
PythonpresentPythonpresent
Pythonpresent
Chui-Wen Chiu
 

Viewers also liked (8)

看病的方法
看病的方法看病的方法
看病的方法
 
從衛星看地球奇景
從衛星看地球奇景從衛星看地球奇景
從衛星看地球奇景
 
如何正確吃水果
如何正確吃水果如何正確吃水果
如何正確吃水果
 
你今天的選擇是什麼?
你今天的選擇是什麼?你今天的選擇是什麼?
你今天的選擇是什麼?
 
電視上看不到的奧運開幕畫面
電視上看不到的奧運開幕畫面電視上看不到的奧運開幕畫面
電視上看不到的奧運開幕畫面
 
柬埔寨鄉村婚禮
柬埔寨鄉村婚禮柬埔寨鄉村婚禮
柬埔寨鄉村婚禮
 
我的學思歷程 劉兆玄
我的學思歷程 劉兆玄我的學思歷程 劉兆玄
我的學思歷程 劉兆玄
 
Pythonpresent
PythonpresentPythonpresent
Pythonpresent
 

Similar to Windows 7兼容性系列课程(3):有针对的兼容性开发(上)

What Can Compilers Do for Us?
What Can Compilers Do for Us?What Can Compilers Do for Us?
What Can Compilers Do for Us?
National Cheng Kung University
 
20070920173805
2007092017380520070920173805
20070920173805
5045033
 
Fy09 Q3行動咖啡館 微軟虛擬化解決方案
Fy09 Q3行動咖啡館 微軟虛擬化解決方案Fy09 Q3行動咖啡館 微軟虛擬化解決方案
Fy09 Q3行動咖啡館 微軟虛擬化解決方案
Ada Lin
 
XS Japan 2008 Citrix Japanese
XS Japan 2008 Citrix JapaneseXS Japan 2008 Citrix Japanese
XS Japan 2008 Citrix Japanese
The Linux Foundation
 
微软客户端技术纵览
微软客户端技术纵览微软客户端技术纵览
微软客户端技术纵览
ntoskrnl
 
【12-D-6】 Silverlight によるハイグレードなLOB/BI実現のためのコンポーネント活用法
【12-D-6】 Silverlight によるハイグレードなLOB/BI実現のためのコンポーネント活用法【12-D-6】 Silverlight によるハイグレードなLOB/BI実現のためのコンポーネント活用法
【12-D-6】 Silverlight によるハイグレードなLOB/BI実現のためのコンポーネント活用法
devsumi2009
 
Testing at the core of digital optimization
Testing at the core of digital optimizationTesting at the core of digital optimization
Testing at the core of digital optimization
Florian Pihs
 
Webken 03: Project Design for Optimaizing User Experience
Webken 03: Project Design for Optimaizing User ExperienceWebken 03: Project Design for Optimaizing User Experience
Webken 03: Project Design for Optimaizing User Experience
Nobuya Sato
 
080620 Identity Conference #2 hiroki
080620 Identity Conference #2 hiroki080620 Identity Conference #2 hiroki
080620 Identity Conference #2 hiroki
Hiroki Itoh
 
Ontology-based Content Management System (ICIM 2008)
Ontology-based Content Management System (ICIM 2008)Ontology-based Content Management System (ICIM 2008)
Ontology-based Content Management System (ICIM 2008)
Brian Hsu
 
اف تي بي
اف تي بياف تي بي
اف تي بي
nansyrigan
 
اف تي بي
اف تي بياف تي بي
اف تي بي
nansyrigan
 
Development toolsforteamdevelopment
Development toolsforteamdevelopmentDevelopment toolsforteamdevelopment
Development toolsforteamdevelopment
Takao Tetsuro
 
テキストマイニングとNLPビジネス
テキストマイニングとNLPビジネステキストマイニングとNLPビジネス
テキストマイニングとNLPビジネス
Hiroshi Ono
 
Linuxユーザーのための Windows 管理入門
Linuxユーザーのための Windows 管理入門Linuxユーザーのための Windows 管理入門
Linuxユーザーのための Windows 管理入門
shigeya
 
CEO-048-階段關卡流程法
CEO-048-階段關卡流程法CEO-048-階段關卡流程法
CEO-048-階段關卡流程法
handbook
 
QM-078-企業導入六標準差之個案探討
QM-078-企業導入六標準差之個案探討QM-078-企業導入六標準差之個案探討
QM-078-企業導入六標準差之個案探討
handbook
 
P2P Bug Tracking with SD
P2P Bug Tracking with SDP2P Bug Tracking with SD
P2P Bug Tracking with SD
Jesse Vincent
 
【13-C-4】 「もう業務はとまらない!オフライン機能を使った業務アプリケーションの実例と最新 Curl 情報」
【13-C-4】 「もう業務はとまらない!オフライン機能を使った業務アプリケーションの実例と最新 Curl 情報」【13-C-4】 「もう業務はとまらない!オフライン機能を使った業務アプリケーションの実例と最新 Curl 情報」
【13-C-4】 「もう業務はとまらない!オフライン機能を使った業務アプリケーションの実例と最新 Curl 情報」
devsumi2009
 
20090323 Phpstudy
20090323 Phpstudy20090323 Phpstudy
20090323 Phpstudy
Yusuke Ando
 

Similar to Windows 7兼容性系列课程(3):有针对的兼容性开发(上) (20)

What Can Compilers Do for Us?
What Can Compilers Do for Us?What Can Compilers Do for Us?
What Can Compilers Do for Us?
 
20070920173805
2007092017380520070920173805
20070920173805
 
Fy09 Q3行動咖啡館 微軟虛擬化解決方案
Fy09 Q3行動咖啡館 微軟虛擬化解決方案Fy09 Q3行動咖啡館 微軟虛擬化解決方案
Fy09 Q3行動咖啡館 微軟虛擬化解決方案
 
XS Japan 2008 Citrix Japanese
XS Japan 2008 Citrix JapaneseXS Japan 2008 Citrix Japanese
XS Japan 2008 Citrix Japanese
 
微软客户端技术纵览
微软客户端技术纵览微软客户端技术纵览
微软客户端技术纵览
 
【12-D-6】 Silverlight によるハイグレードなLOB/BI実現のためのコンポーネント活用法
【12-D-6】 Silverlight によるハイグレードなLOB/BI実現のためのコンポーネント活用法【12-D-6】 Silverlight によるハイグレードなLOB/BI実現のためのコンポーネント活用法
【12-D-6】 Silverlight によるハイグレードなLOB/BI実現のためのコンポーネント活用法
 
Testing at the core of digital optimization
Testing at the core of digital optimizationTesting at the core of digital optimization
Testing at the core of digital optimization
 
Webken 03: Project Design for Optimaizing User Experience
Webken 03: Project Design for Optimaizing User ExperienceWebken 03: Project Design for Optimaizing User Experience
Webken 03: Project Design for Optimaizing User Experience
 
080620 Identity Conference #2 hiroki
080620 Identity Conference #2 hiroki080620 Identity Conference #2 hiroki
080620 Identity Conference #2 hiroki
 
Ontology-based Content Management System (ICIM 2008)
Ontology-based Content Management System (ICIM 2008)Ontology-based Content Management System (ICIM 2008)
Ontology-based Content Management System (ICIM 2008)
 
اف تي بي
اف تي بياف تي بي
اف تي بي
 
اف تي بي
اف تي بياف تي بي
اف تي بي
 
Development toolsforteamdevelopment
Development toolsforteamdevelopmentDevelopment toolsforteamdevelopment
Development toolsforteamdevelopment
 
テキストマイニングとNLPビジネス
テキストマイニングとNLPビジネステキストマイニングとNLPビジネス
テキストマイニングとNLPビジネス
 
Linuxユーザーのための Windows 管理入門
Linuxユーザーのための Windows 管理入門Linuxユーザーのための Windows 管理入門
Linuxユーザーのための Windows 管理入門
 
CEO-048-階段關卡流程法
CEO-048-階段關卡流程法CEO-048-階段關卡流程法
CEO-048-階段關卡流程法
 
QM-078-企業導入六標準差之個案探討
QM-078-企業導入六標準差之個案探討QM-078-企業導入六標準差之個案探討
QM-078-企業導入六標準差之個案探討
 
P2P Bug Tracking with SD
P2P Bug Tracking with SDP2P Bug Tracking with SD
P2P Bug Tracking with SD
 
【13-C-4】 「もう業務はとまらない!オフライン機能を使った業務アプリケーションの実例と最新 Curl 情報」
【13-C-4】 「もう業務はとまらない!オフライン機能を使った業務アプリケーションの実例と最新 Curl 情報」【13-C-4】 「もう業務はとまらない!オフライン機能を使った業務アプリケーションの実例と最新 Curl 情報」
【13-C-4】 「もう業務はとまらない!オフライン機能を使った業務アプリケーションの実例と最新 Curl 情報」
 
20090323 Phpstudy
20090323 Phpstudy20090323 Phpstudy
20090323 Phpstudy
 

More from Chui-Wen Chiu

Dynamic Python
Dynamic PythonDynamic Python
Dynamic Python
Chui-Wen Chiu
 
Introduce Django
Introduce DjangoIntroduce Django
Introduce Django
Chui-Wen Chiu
 
Bw1096
Bw1096Bw1096
高雄新地標 統一夢世代
高雄新地標  統一夢世代高雄新地標  統一夢世代
高雄新地標 統一夢世代
Chui-Wen Chiu
 
天下第一 夜市總冠軍
天下第一 夜市總冠軍天下第一 夜市總冠軍
天下第一 夜市總冠軍
Chui-Wen Chiu
 
下班就跑是富有哲學道理1
下班就跑是富有哲學道理1下班就跑是富有哲學道理1
下班就跑是富有哲學道理1
Chui-Wen Chiu
 
排隊的店
排隊的店排隊的店
排隊的店
Chui-Wen Chiu
 
挖好屬於自己的井
挖好屬於自己的井挖好屬於自己的井
挖好屬於自己的井
Chui-Wen Chiu
 
Why The Us Wants War 080702
Why The Us Wants War  080702Why The Us Wants War  080702
Why The Us Wants War 080702
Chui-Wen Chiu
 
Unknown Parameter Value
Unknown Parameter ValueUnknown Parameter Value
Unknown Parameter Value
Chui-Wen Chiu
 

More from Chui-Wen Chiu (20)

Dynamic Python
Dynamic PythonDynamic Python
Dynamic Python
 
Introduce Django
Introduce DjangoIntroduce Django
Introduce Django
 
移動內存算法
移動內存算法移動內存算法
移動內存算法
 
墾丁 更新版
墾丁  更新版墾丁  更新版
墾丁 更新版
 
墾丁 更新版2
墾丁  更新版2墾丁  更新版2
墾丁 更新版2
 
Bw1096
Bw1096Bw1096
Bw1096
 
高雄新地標 統一夢世代
高雄新地標  統一夢世代高雄新地標  統一夢世代
高雄新地標 統一夢世代
 
Borland傳奇
Borland傳奇Borland傳奇
Borland傳奇
 
Python 庫簡介
Python 庫簡介Python 庫簡介
Python 庫簡介
 
Asp.Net Mvc 1.0
Asp.Net Mvc 1.0Asp.Net Mvc 1.0
Asp.Net Mvc 1.0
 
天下第一 夜市總冠軍
天下第一 夜市總冠軍天下第一 夜市總冠軍
天下第一 夜市總冠軍
 
下班就跑是富有哲學道理1
下班就跑是富有哲學道理1下班就跑是富有哲學道理1
下班就跑是富有哲學道理1
 
認識腸病毒
認識腸病毒認識腸病毒
認識腸病毒
 
排隊的店
排隊的店排隊的店
排隊的店
 
新 創 意
新 創 意新 創 意
新 創 意
 
挖好屬於自己的井
挖好屬於自己的井挖好屬於自己的井
挖好屬於自己的井
 
Why The Us Wants War 080702
Why The Us Wants War  080702Why The Us Wants War  080702
Why The Us Wants War 080702
 
Unknown Parameter Value
Unknown Parameter ValueUnknown Parameter Value
Unknown Parameter Value
 
你也在井裡嗎
你也在井裡嗎你也在井裡嗎
你也在井裡嗎
 
世界是平的
世界是平的世界是平的
世界是平的
 

Recently uploaded

Advanced Techniques for Cyber Security Analysis and Anomaly Detection
Advanced Techniques for Cyber Security Analysis and Anomaly DetectionAdvanced Techniques for Cyber Security Analysis and Anomaly Detection
Advanced Techniques for Cyber Security Analysis and Anomaly Detection
Bert Blevins
 
How Social Media Hackers Help You to See Your Wife's Message.pdf
How Social Media Hackers Help You to See Your Wife's Message.pdfHow Social Media Hackers Help You to See Your Wife's Message.pdf
How Social Media Hackers Help You to See Your Wife's Message.pdf
HackersList
 
Transcript: Details of description part II: Describing images in practice - T...
Transcript: Details of description part II: Describing images in practice - T...Transcript: Details of description part II: Describing images in practice - T...
Transcript: Details of description part II: Describing images in practice - T...
BookNet Canada
 
Best Programming Language for Civil Engineers
Best Programming Language for Civil EngineersBest Programming Language for Civil Engineers
Best Programming Language for Civil Engineers
Awais Yaseen
 
WhatsApp Image 2024-03-27 at 08.19.52_bfd93109.pdf
WhatsApp Image 2024-03-27 at 08.19.52_bfd93109.pdfWhatsApp Image 2024-03-27 at 08.19.52_bfd93109.pdf
WhatsApp Image 2024-03-27 at 08.19.52_bfd93109.pdf
ArgaBisma
 
Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...
Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...
Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...
Bert Blevins
 
Coordinate Systems in FME 101 - Webinar Slides
Coordinate Systems in FME 101 - Webinar SlidesCoordinate Systems in FME 101 - Webinar Slides
Coordinate Systems in FME 101 - Webinar Slides
Safe Software
 
How to Build a Profitable IoT Product.pptx
How to Build a Profitable IoT Product.pptxHow to Build a Profitable IoT Product.pptx
How to Build a Profitable IoT Product.pptx
Adam Dunkels
 
Active Inference is a veryyyyyyyyyyyyyyyyyyyyyyyy
Active Inference is a veryyyyyyyyyyyyyyyyyyyyyyyyActive Inference is a veryyyyyyyyyyyyyyyyyyyyyyyy
Active Inference is a veryyyyyyyyyyyyyyyyyyyyyyyy
RaminGhanbari2
 
BLOCKCHAIN FOR DUMMIES: GUIDEBOOK FOR ALL
BLOCKCHAIN FOR DUMMIES: GUIDEBOOK FOR ALLBLOCKCHAIN FOR DUMMIES: GUIDEBOOK FOR ALL
BLOCKCHAIN FOR DUMMIES: GUIDEBOOK FOR ALL
Liveplex
 
Pigging Solutions Sustainability brochure.pdf
Pigging Solutions Sustainability brochure.pdfPigging Solutions Sustainability brochure.pdf
Pigging Solutions Sustainability brochure.pdf
Pigging Solutions
 
UiPath Community Day Kraków: Devs4Devs Conference
UiPath Community Day Kraków: Devs4Devs ConferenceUiPath Community Day Kraków: Devs4Devs Conference
UiPath Community Day Kraków: Devs4Devs Conference
UiPathCommunity
 
DealBook of Ukraine: 2024 edition
DealBook of Ukraine: 2024 editionDealBook of Ukraine: 2024 edition
DealBook of Ukraine: 2024 edition
Yevgen Sysoyev
 
20240702 QFM021 Machine Intelligence Reading List June 2024
20240702 QFM021 Machine Intelligence Reading List June 202420240702 QFM021 Machine Intelligence Reading List June 2024
20240702 QFM021 Machine Intelligence Reading List June 2024
Matthew Sinclair
 
Calgary MuleSoft Meetup APM and IDP .pptx
Calgary MuleSoft Meetup APM and IDP .pptxCalgary MuleSoft Meetup APM and IDP .pptx
Calgary MuleSoft Meetup APM and IDP .pptx
ishalveerrandhawa1
 
Paradigm Shifts in User Modeling: A Journey from Historical Foundations to Em...
Paradigm Shifts in User Modeling: A Journey from Historical Foundations to Em...Paradigm Shifts in User Modeling: A Journey from Historical Foundations to Em...
Paradigm Shifts in User Modeling: A Journey from Historical Foundations to Em...
Erasmo Purificato
 
Measuring the Impact of Network Latency at Twitter
Measuring the Impact of Network Latency at TwitterMeasuring the Impact of Network Latency at Twitter
Measuring the Impact of Network Latency at Twitter
ScyllaDB
 
Implementations of Fused Deposition Modeling in real world
Implementations of Fused Deposition Modeling  in real worldImplementations of Fused Deposition Modeling  in real world
Implementations of Fused Deposition Modeling in real world
Emerging Tech
 
TrustArc Webinar - 2024 Data Privacy Trends: A Mid-Year Check-In
TrustArc Webinar - 2024 Data Privacy Trends: A Mid-Year Check-InTrustArc Webinar - 2024 Data Privacy Trends: A Mid-Year Check-In
TrustArc Webinar - 2024 Data Privacy Trends: A Mid-Year Check-In
TrustArc
 
20240704 QFM023 Engineering Leadership Reading List June 2024
20240704 QFM023 Engineering Leadership Reading List June 202420240704 QFM023 Engineering Leadership Reading List June 2024
20240704 QFM023 Engineering Leadership Reading List June 2024
Matthew Sinclair
 

Recently uploaded (20)

Advanced Techniques for Cyber Security Analysis and Anomaly Detection
Advanced Techniques for Cyber Security Analysis and Anomaly DetectionAdvanced Techniques for Cyber Security Analysis and Anomaly Detection
Advanced Techniques for Cyber Security Analysis and Anomaly Detection
 
How Social Media Hackers Help You to See Your Wife's Message.pdf
How Social Media Hackers Help You to See Your Wife's Message.pdfHow Social Media Hackers Help You to See Your Wife's Message.pdf
How Social Media Hackers Help You to See Your Wife's Message.pdf
 
Transcript: Details of description part II: Describing images in practice - T...
Transcript: Details of description part II: Describing images in practice - T...Transcript: Details of description part II: Describing images in practice - T...
Transcript: Details of description part II: Describing images in practice - T...
 
Best Programming Language for Civil Engineers
Best Programming Language for Civil EngineersBest Programming Language for Civil Engineers
Best Programming Language for Civil Engineers
 
WhatsApp Image 2024-03-27 at 08.19.52_bfd93109.pdf
WhatsApp Image 2024-03-27 at 08.19.52_bfd93109.pdfWhatsApp Image 2024-03-27 at 08.19.52_bfd93109.pdf
WhatsApp Image 2024-03-27 at 08.19.52_bfd93109.pdf
 
Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...
Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...
Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...
 
Coordinate Systems in FME 101 - Webinar Slides
Coordinate Systems in FME 101 - Webinar SlidesCoordinate Systems in FME 101 - Webinar Slides
Coordinate Systems in FME 101 - Webinar Slides
 
How to Build a Profitable IoT Product.pptx
How to Build a Profitable IoT Product.pptxHow to Build a Profitable IoT Product.pptx
How to Build a Profitable IoT Product.pptx
 
Active Inference is a veryyyyyyyyyyyyyyyyyyyyyyyy
Active Inference is a veryyyyyyyyyyyyyyyyyyyyyyyyActive Inference is a veryyyyyyyyyyyyyyyyyyyyyyyy
Active Inference is a veryyyyyyyyyyyyyyyyyyyyyyyy
 
BLOCKCHAIN FOR DUMMIES: GUIDEBOOK FOR ALL
BLOCKCHAIN FOR DUMMIES: GUIDEBOOK FOR ALLBLOCKCHAIN FOR DUMMIES: GUIDEBOOK FOR ALL
BLOCKCHAIN FOR DUMMIES: GUIDEBOOK FOR ALL
 
Pigging Solutions Sustainability brochure.pdf
Pigging Solutions Sustainability brochure.pdfPigging Solutions Sustainability brochure.pdf
Pigging Solutions Sustainability brochure.pdf
 
UiPath Community Day Kraków: Devs4Devs Conference
UiPath Community Day Kraków: Devs4Devs ConferenceUiPath Community Day Kraków: Devs4Devs Conference
UiPath Community Day Kraków: Devs4Devs Conference
 
DealBook of Ukraine: 2024 edition
DealBook of Ukraine: 2024 editionDealBook of Ukraine: 2024 edition
DealBook of Ukraine: 2024 edition
 
20240702 QFM021 Machine Intelligence Reading List June 2024
20240702 QFM021 Machine Intelligence Reading List June 202420240702 QFM021 Machine Intelligence Reading List June 2024
20240702 QFM021 Machine Intelligence Reading List June 2024
 
Calgary MuleSoft Meetup APM and IDP .pptx
Calgary MuleSoft Meetup APM and IDP .pptxCalgary MuleSoft Meetup APM and IDP .pptx
Calgary MuleSoft Meetup APM and IDP .pptx
 
Paradigm Shifts in User Modeling: A Journey from Historical Foundations to Em...
Paradigm Shifts in User Modeling: A Journey from Historical Foundations to Em...Paradigm Shifts in User Modeling: A Journey from Historical Foundations to Em...
Paradigm Shifts in User Modeling: A Journey from Historical Foundations to Em...
 
Measuring the Impact of Network Latency at Twitter
Measuring the Impact of Network Latency at TwitterMeasuring the Impact of Network Latency at Twitter
Measuring the Impact of Network Latency at Twitter
 
Implementations of Fused Deposition Modeling in real world
Implementations of Fused Deposition Modeling  in real worldImplementations of Fused Deposition Modeling  in real world
Implementations of Fused Deposition Modeling in real world
 
TrustArc Webinar - 2024 Data Privacy Trends: A Mid-Year Check-In
TrustArc Webinar - 2024 Data Privacy Trends: A Mid-Year Check-InTrustArc Webinar - 2024 Data Privacy Trends: A Mid-Year Check-In
TrustArc Webinar - 2024 Data Privacy Trends: A Mid-Year Check-In
 
20240704 QFM023 Engineering Leadership Reading List June 2024
20240704 QFM023 Engineering Leadership Reading List June 202420240704 QFM023 Engineering Leadership Reading List June 2024
20240704 QFM023 Engineering Leadership Reading List June 2024
 

Windows 7兼容性系列课程(3):有针对的兼容性开发(上)

  • 1. 议程 WRP保护资源 WRP保护资源 Windows 7兼容性系列课程(3): 7兼容性系列课程(3): 程序兼容性助手 有针对的兼容性开发( 有针对的兼容性开发(上) 映射网络驱动器 安装识别 正确文件目录 吴慧锋 MVP 测试与技术支持工程师 操作系统版本检测 www.ssw.com.au Session 0 E-mail / MSN: WilsonWu@ssw.com.au 议程 Windows资源保护 Windows资源保护 WRP保护资源 WRP保护资源 程序兼容性助手 映射网络驱动器 安装识别 正确文件目录 操作系统版本检测 Session 0 何为TrustedInstaller 何为TrustedInstaller WRP 的保护内容 c:Windows>icacls c:Windows>icacls explorer.exe explorer.exe NT SERVICETrustedInstaller:(F) SERVICETrustedInstaller:(F) BUILTIN BUILTINAdministrators:(RX) NT AUTHORITYSYSTEM:(RX) AUTHORITY 大多核心操作系统文件 BUILTIN BUILTINUsers:(RX) Successfully processed 1 files; Failed processing 0 files 大多核心操作系统的注册表项 c:Windows>psgetsid c:Windows>psgetsid "NT SERVICETrustedInstaller" SERVICETrustedInstaller" 操作系统进程级别的目录 PsGetSid v1.43 - Translates SIDs to names and vice versa Copyright (C) 1999-2006 M k R C i ht 1999- Mark Russinovich i i h 对于安装程式将没有限制 Sysinternals - www.sysinternals.com SID for NT SERVICETrustedInstaller: SERVICETrustedInstaller: S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464 80-956008885-3418522649-1831038044-1853292631- 取决于服务的SID 取决于服务的SID TrustedInstaller是服务而不是账户! TrustedInstaller是服务而不是账户! c: c:Windows>sc showsid trustedinstaller NAME: trustedinstaller SERVICE SID: S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464 80-956008885-3418522649-1831038044-1853292631- c: c:Windows>sc getdisplayname trustedinstaller [SC] GetServiceDisplayName SUCCESS Name = Windows Modules Installer © 2002 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 1
  • 2. 议程 WRP保护资源 WRP保护资源 Windows资源保护 Windows资源保护 程序兼容性助手 映射网络驱动器 安装识别 正确文件目录 操作系统版本检测 Session 0 程序兼容性助手 程序兼容性助手 PCA安装失败 PCA安装失败 只适用于客户端应用程序 仅当运行失败时触发 PCA在如下情况被触发: PCA在如下情况被触发: 在“Program Files”目录下创建 个子目录 Files 目录下创建一个子目录 Program Files”目录下创建一个子目录 将文件复制到新目录中 利用虚拟化事件 议程 WRP保护资源 WRP保护资源 程序兼容性助手 程序兼容性助手 映射网络驱动器 正确文件目录 操作系统版本检测 Session 0 © 2002 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 2
  • 3. 映射网络驱动器 射网络驱动器 在每个用户登录会话中单独存放 管理员权限用户登录具有两个会话 未提升权限的会话 驱动器映射与UAC 驱动器映射与UAC 提升权限的会话 管理员权限用户具有两个驱动器映射集 HKLMSOFTWAREMicrosoftWindows HKLMSOFTWAREMicrosoftWindows CurrentVersionPoliciesSystem CurrentVersionPoliciesSystem EnableLinkedConnections = (dword)1 (dword)1 http://support.microsoft.com/kb/937624 议程 安装识别 WRP保护资源 WRP保护资源 为什么我的程序会以提升权限被运行 程序兼容性助手 因为Windows 因为Windows 7认为它是一个安装包 映射网络驱动器 具体的安装包 安装识别 通用的安装包 正确文件目录 具体的非安装包 操作系统版本检测 Session 0 议程 WRP保护资源 WRP保护资源 安装识别 程序兼容性助手 映射网络驱动器 安装识别 正确文件目录 操作系统版本检测 Session 0 © 2002 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 3
  • 4. 正确文件目录 正确文件目录 (1/2) 正确文件目录 正确文件目录 (2/2) 以前的路径 新路径 以前的路径 新路径 c:windows %windir% windir% %windir%profiles%username%start menu windir% profiles%username% %userstartmenu% userstartmenu% %windir%rundll32.exe windir% %systemdir%rundll32.exe systemdir% %windir%profiles%username%desktop windir% profiles%username% %userdesktop% userdesktop% %windir%rundll.exe windir% %systemdir%rundll32.exe systemdir% %windir%profiles%username%favorites windir% profiles%username% %userfavorites% userfavorites% %windir%write.exe windir% %systemdir%write.exe systemdir% %windir%profilesall usersstart menu windir% profiles users p %allstartmenu% allstartmenu% %windir%wordpad.exe windir% %programfiles%windows ntaccessorieswordpad.exe programfiles% ntaccessories %windir%profilesall usersdesktop windir% profiles users %alldesktop %programfiles%accessorieswordpad.exe programfiles% accessories %programfiles%windows ntaccessorieswordpad.exe programfiles% ntaccessories %windir%profilesall usersfavorites windir% profiles users %userfavorites% userfavorites% %windir%dxdiag.exe windir% %systemdir%dxdiag.exe systemdir% ddhelp.exe ddraw.dll %windir%start menu windir% %userstartmenu% userstartmenu% ddraw16.dll ddraw.dll %windir%desktop windir% %userdesktop% userdesktop% dsound.vxd Ddraw.dll %windir% %windir%favorites %userfavorites% userfavorites% %userstartmenu% userstartmenu% %allstartmenu% allstartmenu% 议程 WRP保护资源 WRP保护资源 正确文件目录 程序兼容性助手 映射网络驱动器 安装识别 正确文件目录 操作系统版本检测 Session 0 Windows版本纵览 Windows版本纵览 版本检测的最佳实践 操作系统 版本 发布时间 不要使用横等方式检测版本 Windows 1.0 1.04 1985 Windows 2.0 2.11 1987 如果你的程序需要某项新功能则请直接价差该功能是 Windows 3.0 3.00 1990 否存在 Windows NT 3.1 3.10.528 1993 使用大于好来检测系统版本 Windows for Workgroups 3.11 3.11 1993 检查Windows XP或后续系统 ( 检查Windows XP或后续系统 (>= 5.1) ) Windows NT Workstation 3.5 3.5.807 1994 Windows NT Workstation 3.51 3.51.1057 1995 特殊的情况是一些商业或法律原因需要做一个版本检 Windows 95 4.0.950 1995 查,比如一个管理机构,您需要证明您的应用程序的 Windows NT Workstation 4.0 4.0.1381 1996 每个操作系统和版本 Windows 98 4.1.1998 1998 Windows 98 Second Edition 4.1.2222 1999 Windows Me 4.90.3000 2000 Windows 2000 Professional 5.0.2195 2000 Windows XP 5.1.2600 2001 Windows Vista 6.0.6000 2006 Windows 7 6.1.???? ???? © 2002 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 4
  • 5. 议程 WRP保护资源 WRP保护资源 操作系统版本检测 程序兼容性助手 映射网络驱动器 安装识别 正确文件目录 操作系统版本检测 Session 0 Session 0分离原理 0分离原理 Session 0分离原理 0分离原理 Session 0 Session 0 Session 1 WinSta0 WinSta0 WinSta0 Default Desktop D f lt D kt Default Desktop D f lt D kt Default Desktop D f lt D kt Service Service User Application User Application Session 0兼容问题 0兼容问题 Service设计的最佳实践 Service设计的最佳实践 支持远程桌面和快速切换用户的程序都没 使用第二个程序来显示UI 使用第二个程序来显示UI 有问题 使用C/S结构进行交互 使用C/S结构进行交互 通过Windows Messages进行交互 通过Windows Messages进行交互 RPC 本地命名空间实体 命名管道 UI界面和服务 UI界面和服务 尽可能使用Service 尽可能使用Service Hardening 删除不必要的权限 与Session 0桌面进行交互 使用服务的SID来安全访问资源 使用服务的SID来安全访问资源 UX变化巨大 UX变化巨大 快速解决方案: WTSSendMessage © 2002 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 5
  • 6. Question & Answer 感谢! 感谢! 吴慧锋 如需提出问题,请在此区域输入文字,并单击 “问题和解答”右上方的“提问”按钮即可。 问题和解答”右上方的“提问” Wilson Wu Email: iwilsonwu@gmail.com MSN: il MSN wilsonwu@ssw.com.au @ QQ: 53286461 Blog: http://WilsonWu.cnblogs.com Blog: http://WilsonWu.cnblogs.com 您也可以选择在微软中文技术论坛上寻求帮助,MSDN中文网络 也可以选择在微软中文技术论坛上寻求帮助,MSDN中文网络 广播的讲师们会定期在论坛上为大家解答与课程相关的技术问题。 http://forums.microsoft.com/china http://forums.microsoft.com/china © 2002 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. 6