ewoke: (Default)
[personal profile] ewoke
https://www.sepago.com/blog/2009/06/04/where-is-the-hosts-file-on-windows-x64

добраться до etc\hosts можно введя "cd sysnative", находясь в директории виндов.

папку sysnative просто так не видно. это фишкА такая.

тупой изврат.

Date: 2015-11-24 10:41 am (UTC)
From: [identity profile] blogforex.livejournal.com
а как они эту папку спрятали что файл-менеджеры её не видят?

Date: 2015-11-24 11:21 am (UTC)
From: [identity profile] ewoke.livejournal.com
msdn :
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.

т.е. чтобы получить доступ именно к содержимому 32-разрядной system32, было придумано извратище с виртуальным алиасом sysnative %)

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.

т.е. если у меня ЕХЕ-шник 32-битный, алиас существует, иначе нет. правда, в 32-разрядном экзешнике еще нужно сделать проверку, не запускают ли его под 64-разрядной виндой и в таком случае обращаться к sysnative, вместо system32, по моему так %) т.е. винда сама не позаботится о редиректе для "старого" приложения,?

Date: 2015-11-24 11:23 am (UTC)
From: [identity profile] ewoke.livejournal.com
по существу вопроса: это даже не папка, а что-то виртуальное, ссылающееся куда-то.

Практические проблемы использования https://rsdn.ru/f/message/version/13280
Edited Date: 2015-11-24 11:39 am (UTC)

Date: 2015-11-24 11:42 am (UTC)
From: [identity profile] blogforex.livejournal.com
жуть какая
интересно 128-битную винду уже разрабатывают

Profile

ewoke: (Default)
ewoke

October 2025

S M T W T F S
   1234
5 67891011
121314 15161718
19202122232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 20th, 2026 03:49 pm
Powered by Dreamwidth Studios