File System Redirector
来源:互联网 发布:mysql数据库5.5安装 编辑:程序博客网 时间:2024/05/16 01:43
http://msdn.microsoft.com/en-us/library/aa384187.aspx
The %windir%\System32 directory is reserved for 64-bit applications. Most DLL file names were not changed when 64-bit versions of the DLLs were created, so 32-bit versions of the DLLs are stored in a different directory. WOW64 hides this difference using a file system redirector.
In most cases, whenever a 32-bit application attempts to access %windir%\System32, the access is redirected to %windir%\SysWOW64. Access to %windir%\lastgood\system32 is redirected to %windir%\lastgood\SysWOW64. Access to %windir%\regedit.exe is redirected to %windir%\SysWOW64\regedit.exe.
If the access causes the system to display the UAC prompt, redirection does not occur. Instead, the 64-bit version of the requested file is launched. To prevent this problem, either specify the SysWOW64 directory to avoid redirection and ensure access to the 32-bit version of the file, or run the 32-bit application with administrator privileges so the UAC prompt is not displayed.
Windows Server 2003 and Windows XP/2000: UAC is not supported.
Certain subdirectories are exempt from redirection. Access to these subdirectories is not redirected to %windir%\SysWOW64:
- %windir%\system32\catroot
- %windir%\system32\catroot2
- %windir%\system32\driverstore
- %windir%\system32\drivers\etc
- %windir%\system32\logfiles
- %windir%\system32\spool
Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP: %windir%\system32\driverstore is redirected.
To retrieve the name of the 32-bit system directory, 64-bit applications should use the GetSystemWow64Directory function.
Applications should use the SHGetSpecialFolderPath function to determine the %ProgramFiles% directory name.
Applications can control the WOW64 file system redirector using the Wow64DisableWow64FsRedirection, Wow64EnableWow64FsRedirection, and Wow64RevertWow64FsRedirectionfunctions. Disabling file system redirection affects all file operations performed by the calling thread, so it should be disabled only when necessary for a single CreateFile call and re-enabled again immediately after the function returns. Disabling file system redirection for longer periods can prevent 32-bit applications from loading system DLLs, causing the applications to fail.
32-bit applications can access the native system directory by substituting %windir%\Sysnative for %windir%\System32. WOW64 recognizes Sysnative as a special alias used to indicate that the file system should not redirect the access. This mechanism is flexible and easy to use, therefore, it is the recommended mechanism to bypass file system redirection. Note that 64-bit applications cannot use the Sysnative alias as it is a virtual directory not a real one.
Windows Server 2003 and Windows XP: The Sysnative alias was added starting with Windows Vista.
- File System Redirector
- File System Redirector and Sysnative - how to call 64 bit program from 32 bit application
- file system
- file system
- File system
- Registry Redirector
- ant redirector
- File System Drivers & File System Filter Drivers
- The proc File System:
- The System.map File
- mount file system
- mount file system
- Google File System(中文翻译)
- embedded system (control file )
- The Google File System
- unix file system
- Apollo Local File System
- File System Comparison
- 我的学习网站
- VC/MFC 时间
- JDBC的Class.forname()和Class.forname().newInstance的区别
- 秀一段《易语言》的源代码
- 文件描述符FD_set FD_zero
- File System Redirector
- AspNetPager不显示的N种可能性
- Linux 文件系统的目录结构
- 观察者模式
- Android问题集锦转载之五:Android模拟器不能联网的解决办法
- S3C2440驱动篇—ADC驱动分析
- java中Date, DateFormat的一些方法总结
- cvs服务器安装与Eclipse配置
- restrict关键字