<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=425004&amp;view=findpost&amp;p=3858055</guid>
        <pubDate>Sun, 23 Jan 2022 07:35:37 +0000</pubDate>
        <title>Не работает SSF_SHOWSUPERHIDDEN (Скрыть/Показать защищенные системные файлы)</title>
        <link>https://forum.sources.ru/index.php?showtopic=425004&amp;view=findpost&amp;p=3858055</link>
        <description><![CDATA[navodri: Ребята, будут еще какие-то идеи?]]></description>
        <author>navodri</author>
        <category>Delphi: Система, Windows API</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=425004&amp;view=findpost&amp;p=3857202</guid>
        <pubDate>Tue, 04 Jan 2022 15:12:46 +0000</pubDate>
        <title>Не работает SSF_SHOWSUPERHIDDEN (Скрыть/Показать защищенные системные файлы)</title>
        <link>https://forum.sources.ru/index.php?showtopic=425004&amp;view=findpost&amp;p=3857202</link>
        <description><![CDATA[navodri: Самое интересное, что ShGetShowSuperHiddenFileState работает корректно. У меня и в предыдущей версии подобная функция отлично работала. А вот SHShowSuperHiddenFile не хочет работать. Проверяю через Параметры папок:<br>
<span class="b-attach" data-size="33389" data-hits="206" data-attach-id="63229" data-attach-post-id="0">
			<span class="b-attach__title"></span><a class='b-attach-link' href='https://forum.sources.ru/index.php?act=Attach&amp;type=post&amp;id=0&amp;attach_id=63229' title='Скачать файл' target='_blank'>_____________________________.png</a> (, : 206)
		</span>]]></description>
        <author>navodri</author>
        <category>Delphi: Система, Windows API</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=425004&amp;view=findpost&amp;p=3857031</guid>
        <pubDate>Wed, 29 Dec 2021 16:46:48 +0000</pubDate>
        <title>Не работает SSF_SHOWSUPERHIDDEN (Скрыть/Показать защищенные системные файлы)</title>
        <link>https://forum.sources.ru/index.php?showtopic=425004&amp;view=findpost&amp;p=3857031</link>
        <description><![CDATA[Rouse_: Понятно, тогда вот так делай...<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">type</div><div class="code_line">&nbsp;&nbsp;TShellState = record</div><div class="code_line">&nbsp;&nbsp; &nbsp;{ это все сидит в Flags1</div><div class="code_line">&nbsp;&nbsp; &nbsp;BOOL fShowAllObjects : 1;</div><div class="code_line">&nbsp;&nbsp; &nbsp;BOOL fShowExtensions : 1;</div><div class="code_line">&nbsp;&nbsp; &nbsp;BOOL fNoConfirmRecycle : 1;</div><div class="code_line">&nbsp;&nbsp; &nbsp;BOOL fShowSysFiles : 1;</div><div class="code_line">&nbsp;&nbsp; &nbsp;BOOL fShowCompColor : 1;</div><div class="code_line">&nbsp;&nbsp; &nbsp;BOOL fDoubleClickInWebView : 1;</div><div class="code_line">&nbsp;&nbsp; &nbsp;BOOL fDesktopHTML : 1;</div><div class="code_line">&nbsp;&nbsp; &nbsp;BOOL fWin95Classic : 1;</div><div class="code_line">&nbsp;&nbsp; &nbsp;BOOL fDontPrettyPath : 1;</div><div class="code_line">&nbsp;&nbsp; &nbsp;BOOL fShowAttribCol : 1; // No longer used, dead bit</div><div class="code_line">&nbsp;&nbsp; &nbsp;BOOL fMapNetDrvBtn : 1;</div><div class="code_line">&nbsp;&nbsp; &nbsp;BOOL fShowInfoTip : 1;</div><div class="code_line">&nbsp;&nbsp; &nbsp;BOOL fHideIcons : 1;</div><div class="code_line">&nbsp;&nbsp; &nbsp;BOOL fWebView : 1;</div><div class="code_line">&nbsp;&nbsp; &nbsp;BOOL fFilter : 1;</div><div class="code_line">&nbsp;&nbsp; &nbsp;BOOL fShowSuperHidden : 1; &#60;&#60;&#60; это 15-ый бит!!! Его передаем в IsBitOn/ChangeBitValue</div><div class="code_line">&nbsp;&nbsp; &nbsp;BOOL fNoNetCrawling : 1;</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;Flags1: DWORD;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;dwWin95Unused: DWORD; // Win95 only - no longer supported pszHiddenFileExts</div><div class="code_line">&nbsp;&nbsp; &nbsp;uWin95Unused: UINT; &nbsp; // Win95 only - no longer supported cbHiddenFileExts</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;// Note: Not a typo! &nbsp;This is a persisted structure so we cannot use LPARAM</div><div class="code_line">&nbsp;&nbsp; &nbsp;lParamSort: Long;</div><div class="code_line">&nbsp;&nbsp; &nbsp;iSortDirection: Integer;</div><div class="code_line">&nbsp;&nbsp; &nbsp;version: UINT;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;// new for win2k. need notUsed var to calc the right size of ie4 struct</div><div class="code_line">&nbsp;&nbsp; &nbsp;// FIELD_OFFSET does not work on bit fields</div><div class="code_line">&nbsp;&nbsp; &nbsp;uNotUsed: UINT; &nbsp; &nbsp; &nbsp; // feel free to rename and use</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;{ это все сидит в Flags2</div><div class="code_line">&nbsp;&nbsp; &nbsp;BOOL fSepProcess: 1;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;// new for Whistler.</div><div class="code_line">&nbsp;&nbsp; &nbsp;BOOL fStartPanelOn: 1; &nbsp; &nbsp; &nbsp; //Indicates if the Whistler StartPanel mode is ON or OFF.</div><div class="code_line">&nbsp;&nbsp; &nbsp;BOOL fShowStartPage: 1; &nbsp; &nbsp; &nbsp;//Indicates if the Whistler StartPage on desktop is ON or OFF.</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;// new for Windows Vista</div><div class="code_line">&nbsp;&nbsp; &nbsp;BOOL fAutoCheckSelect: 1;</div><div class="code_line">&nbsp;&nbsp; &nbsp;BOOL fIconsOnly: 1;</div><div class="code_line">&nbsp;&nbsp; &nbsp;BOOL fShowTypeOverlay: 1;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;// new for Windows 8</div><div class="code_line">&nbsp;&nbsp; &nbsp;BOOL fShowStatusBar : 1;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;UINT fSpareFlags : 9;</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;Flags2: Word;</div><div class="code_line">&nbsp;&nbsp;end;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp;procedure SHGetSetSettings(var lpss: TShellState; dwMask: DWORD; bSet: BOOL) stdcall; external &#39;shell32.dll&#39;;</div><div class="code_line">&nbsp;</div><div class="code_line">function IsBitOn(Value: DWORD; BitIndex: Byte): Boolean;</div><div class="code_line">begin</div><div class="code_line">&nbsp;&nbsp;Result := Value and (1 shl BitIndex) &#60;&#62; 0;</div><div class="code_line">end;</div><div class="code_line">&nbsp;</div><div class="code_line">procedure ChangeBitValue(var Value: DWORD; BitIndex: Byte; BitOn: Boolean);</div><div class="code_line">begin</div><div class="code_line">&nbsp;&nbsp;if BitOn then</div><div class="code_line">&nbsp;&nbsp; &nbsp;Value := Value or (1 shl BitIndex)</div><div class="code_line">&nbsp;&nbsp;else</div><div class="code_line">&nbsp;&nbsp; &nbsp;Value := Value and not (1 shl BitIndex);</div><div class="code_line">end;</div><div class="code_line">&nbsp;</div><div class="code_line">// Скрыть/показать защищенные файлы (ЭТОТ КОД НЕ РАБОТАЕТ!)</div><div class="code_line">procedure SHShowSuperHiddenFile(show: Boolean);</div><div class="code_line">var</div><div class="code_line">&nbsp;&nbsp;lpss: TShellState;</div><div class="code_line">begin</div><div class="code_line">&nbsp;&nbsp;ZeroMemory(@lpss, sizeof(TShellState));</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp;// меняем состояние 15-го бита в структуре, который содержит значение SHOWSUPERHIDDEN!!!</div><div class="code_line">&nbsp;&nbsp;ChangeBitValue(lpss.Flags1, 15, show);</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp;// Меняем состояние</div><div class="code_line">&nbsp;&nbsp;SHGetSetSettings(lpss, SSF_SHOWSUPERHIDDEN, True);</div><div class="code_line">&nbsp;&nbsp;// Сообщение Проводнику об изменениях</div><div class="code_line">&nbsp;&nbsp;SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_FLUSHNOWAIT, nil, nil);</div><div class="code_line">end;</div><div class="code_line">&nbsp;</div><div class="code_line">// Определяем, скрыты или нет защищенные файлы</div><div class="code_line">function ShGetShowSuperHiddenFileState:boolean;</div><div class="code_line">var</div><div class="code_line">&nbsp;&nbsp;lpss: TShellState;</div><div class="code_line">begin</div><div class="code_line">&nbsp;&nbsp;ZeroMemory(@lpss, sizeof(TShellState));</div><div class="code_line">&nbsp;&nbsp;// Получаем текущее состояние</div><div class="code_line">&nbsp;&nbsp;SHGetSetSettings(lpss, SSF_SHOWSUPERHIDDEN, False);</div><div class="code_line">&nbsp;&nbsp;// Возвращаем состояние из 15-го бита!!!</div><div class="code_line">&nbsp;&nbsp;result := IsBitOn(lpss.Flags1, 15);</div><div class="code_line">end;</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script>]]></description>
        <author>Rouse_</author>
        <category>Delphi: Система, Windows API</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=425004&amp;view=findpost&amp;p=3857020</guid>
        <pubDate>Wed, 29 Dec 2021 14:43:22 +0000</pubDate>
        <title>Не работает SSF_SHOWSUPERHIDDEN (Скрыть/Показать защищенные системные файлы)</title>
        <link>https://forum.sources.ru/index.php?showtopic=425004&amp;view=findpost&amp;p=3857020</link>
        <description><![CDATA[navodri: Да в том то и дело, что на семерке еще, вот и цепляю код от куда придется... Для себя пишу.]]></description>
        <author>navodri</author>
        <category>Delphi: Система, Windows API</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=425004&amp;view=findpost&amp;p=3857003</guid>
        <pubDate>Wed, 29 Dec 2021 11:17:46 +0000</pubDate>
        <title>Не работает SSF_SHOWSUPERHIDDEN (Скрыть/Показать защищенные системные файлы)</title>
        <link>https://forum.sources.ru/index.php?showtopic=425004&amp;view=findpost&amp;p=3857003</link>
        <description><![CDATA[Rouse_: Используй то что прописано в ShlObj, а не этот кривой костыль, тем более не правильно задекларированный.<br>Версия дельфи какая?]]></description>
        <author>Rouse_</author>
        <category>Delphi: Система, Windows API</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=425004&amp;view=findpost&amp;p=3856991</guid>
        <pubDate>Wed, 29 Dec 2021 09:01:41 +0000</pubDate>
        <title>Не работает SSF_SHOWSUPERHIDDEN (Скрыть/Показать защищенные системные файлы)</title>
        <link>https://forum.sources.ru/index.php?showtopic=425004&amp;view=findpost&amp;p=3856991</link>
        <description><![CDATA[navodri: От чего же?... У меня вот так это дело прописано:<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">type</div><div class="code_line">&nbsp;&nbsp;tagSHELLSTATEW = record</div><div class="code_line">&nbsp;&nbsp; &nbsp;Data: DWORD;</div><div class="code_line">&nbsp;&nbsp; &nbsp;Data2: UINT;</div><div class="code_line">&nbsp;&nbsp; &nbsp;lParamSort: Integer;</div><div class="code_line">&nbsp;&nbsp; &nbsp;iSortDirection: Integer;</div><div class="code_line">&nbsp;&nbsp; &nbsp;version: UINT;</div><div class="code_line">&nbsp;&nbsp; &nbsp;uNotUsed: UINT;</div><div class="code_line">&nbsp;end;</div><div class="code_line">&nbsp;&nbsp;SHELLSTATEA = tagSHELLSTATEW;</div><div class="code_line">&nbsp;&nbsp;SHELLSTATEW = tagSHELLSTATEW;</div><div class="code_line">&nbsp;&nbsp;SHELLSTATE = SHELLSTATEW;</div><div class="code_line">&nbsp;&nbsp;TShellState = SHELLSTATE;</div><div class="code_line">&nbsp;&nbsp;PShellState = ^TShellState;</div><div class="code_line">&nbsp;</div><div class="code_line">const</div><div class="code_line">&nbsp;&nbsp;//Data</div><div class="code_line">&nbsp;&nbsp;fShowAllObjects &nbsp; &nbsp; &nbsp; = {text}000001;</div><div class="code_line">&nbsp;&nbsp;fShowExtensions &nbsp; &nbsp; &nbsp; = {text}000002;</div><div class="code_line">&nbsp;&nbsp;fNoConfirmRecycle &nbsp; &nbsp; = {text}000004;</div><div class="code_line">&nbsp;&nbsp;fShowSysFiles &nbsp; &nbsp; &nbsp; &nbsp; = {text}000008;</div><div class="code_line">&nbsp;&nbsp;fShowCompColor &nbsp; &nbsp; &nbsp; &nbsp;= {text}000010;</div><div class="code_line">&nbsp;&nbsp;fDoubleClickInWebView = {text}000020;</div><div class="code_line">&nbsp;&nbsp;fDesktopHTML &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= {text}000040;</div><div class="code_line">&nbsp;&nbsp;fWin95Classic &nbsp; &nbsp; &nbsp; &nbsp; = {text}000080;</div><div class="code_line">&nbsp;&nbsp;fDontPrettyPath &nbsp; &nbsp; &nbsp; = {text}000100;</div><div class="code_line">&nbsp;&nbsp;fShowAttribCol &nbsp; &nbsp; &nbsp; &nbsp;= {text}000200;</div><div class="code_line">&nbsp;&nbsp;fMapNetDrvBtn &nbsp; &nbsp; &nbsp; &nbsp; = {text}000400;</div><div class="code_line">&nbsp;&nbsp;fShowInfoTip &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= {text}000800;</div><div class="code_line">&nbsp;&nbsp;fHideIcons &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= {text}001000;</div><div class="code_line">&nbsp;&nbsp;fWebView &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= {text}002000;</div><div class="code_line">&nbsp;&nbsp;fFilter &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = {text}004000;</div><div class="code_line">&nbsp;&nbsp;fShowSuperHidden &nbsp; &nbsp; &nbsp;= {text}008000;</div><div class="code_line">&nbsp;&nbsp;fNoNetCrawling &nbsp; &nbsp; &nbsp; &nbsp;= {text}010000;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp;//Data2</div><div class="code_line">&nbsp;&nbsp;fSepProcess &nbsp; &nbsp; &nbsp;= {text}000001;</div><div class="code_line">&nbsp;&nbsp;fStartPanelOn &nbsp; &nbsp;= {text}000002;</div><div class="code_line">&nbsp;&nbsp;fShowStartPage &nbsp; = {text}000004;</div><div class="code_line">&nbsp;&nbsp;fAutoCheckSelect = {text}000008;</div><div class="code_line">&nbsp;&nbsp;fIconsOnly &nbsp; &nbsp; &nbsp; = {text}000010;</div><div class="code_line">&nbsp;&nbsp;fShowTypeOverlay = {text}000020;</div><div class="code_line">&nbsp;</div><div class="code_line">const</div><div class="code_line">&nbsp;&nbsp;SSF_SHOWALLOBJECTS &nbsp;= {text}000001;</div><div class="code_line">&nbsp;&nbsp;SSF_SHOWEXTENSIONS &nbsp;= {text}000002;</div><div class="code_line">&nbsp;&nbsp;SSF_HIDDENFILEEXTS &nbsp;= {text}000004;</div><div class="code_line">&nbsp;&nbsp;SSF_SERVERADMINUI &nbsp; = {text}000004;</div><div class="code_line">&nbsp;&nbsp;SSF_SHOWCOMPCOLOR &nbsp; = {text}000008;</div><div class="code_line">&nbsp;&nbsp;SSF_SORTCOLUMNS &nbsp; &nbsp; = {text}000010;</div><div class="code_line">&nbsp;&nbsp;SSF_SHOWSYSFILES &nbsp; &nbsp;= {text}000020;</div><div class="code_line">&nbsp;&nbsp;SSF_DOUBLECLICKINWEBVIEW = {text}000080;</div><div class="code_line">&nbsp;&nbsp;SSF_SHOWATTRIBCOL &nbsp; = {text}000100;</div><div class="code_line">&nbsp;&nbsp;SSF_DESKTOPHTML &nbsp; &nbsp; = {text}000200;</div><div class="code_line">&nbsp;&nbsp;SSF_WIN95CLASSIC &nbsp; &nbsp;= {text}000400;</div><div class="code_line">&nbsp;&nbsp;SSF_DONTPRETTYPATH &nbsp;= {text}000800;</div><div class="code_line">&nbsp;&nbsp;SSF_SHOWINFOTIP &nbsp; &nbsp; = {text}002000;</div><div class="code_line">&nbsp;&nbsp;SSF_MAPNETDRVBUTTON = {text}001000;</div><div class="code_line">&nbsp;&nbsp;SSF_NOCONFIRMRECYCLE = {text}008000;</div><div class="code_line">&nbsp;&nbsp;SSF_HIDEICONS &nbsp; &nbsp; &nbsp; = {text}004000;</div><div class="code_line">&nbsp;&nbsp;SSF_FILTER &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= {text}010000;</div><div class="code_line">&nbsp;&nbsp;SSF_WEBVIEW &nbsp; &nbsp; &nbsp; &nbsp; = {text}020000;</div><div class="code_line">&nbsp;&nbsp;SSF_SHOWSUPERHIDDEN = {text}040000;</div><div class="code_line">&nbsp;&nbsp;SSF_SEPPROCESS &nbsp; &nbsp; &nbsp;= {text}080000;</div><div class="code_line">&nbsp;&nbsp;SSF_NONETCRAWLING &nbsp; = {text}100000;</div><div class="code_line">&nbsp;&nbsp;SSF_STARTPANELON &nbsp; &nbsp;= {text}200000;</div><div class="code_line">&nbsp;&nbsp;SSF_SHOWSTARTPAGE &nbsp; = {text}400000;</div><div class="code_line">&nbsp;</div><div class="code_line">procedure SHGetSetSettings(var lpss: TShellState; dwMask: DWORD; bSet: BOOL) stdcall; external &#39;shell32.dll&#39;;</div></ol></div></div></div></div><br>
<br>
Или этот код не верный?]]></description>
        <author>navodri</author>
        <category>Delphi: Система, Windows API</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=425004&amp;view=findpost&amp;p=3856978</guid>
        <pubDate>Wed, 29 Dec 2021 07:58:51 +0000</pubDate>
        <title>Не работает SSF_SHOWSUPERHIDDEN (Скрыть/Показать защищенные системные файлы)</title>
        <link>https://forum.sources.ru/index.php?showtopic=425004&amp;view=findpost&amp;p=3856978</link>
        <description><![CDATA[Rouse_: Тебя не смущает что lpss.Data это Word а SSF_SHOWSUPERHIDDEN это DWORD?<br>
Ты же все ломаешь нафиг выставляя и проверяя не те флаги.<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">// Скрыть/показать защищенные файлы (ЭТОТ КОД НЕ РАБОТАЕТ!)</div><div class="code_line">procedure SHShowSuperHiddenFile(show: Boolean);</div><div class="code_line">var</div><div class="code_line">&nbsp;&nbsp;lpss: SHELLSTATE;</div><div class="code_line">begin</div><div class="code_line">&nbsp;&nbsp;ZeroMemory(@lpss, sizeof(lpss));</div><div class="code_line">&nbsp;&nbsp;// Получаем текущее состояние</div><div class="code_line">&nbsp;&nbsp;SHGetSetSettings(lpss, SSF_SHOWSUPERHIDDEN, False);</div><div class="code_line">&nbsp;&nbsp;if lpss.fShowSuperHidden &#60;&#62; show then</div><div class="code_line">&nbsp;&nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp;lpss.fShowSuperHidden := show;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;// Меняем состояние</div><div class="code_line">&nbsp;&nbsp; &nbsp;SHGetSetSettings(lpss, SSF_SHOWSUPERHIDDEN, True);</div><div class="code_line">&nbsp;&nbsp; &nbsp;// Сообщение Проводнику об изменениях</div><div class="code_line">&nbsp;&nbsp; &nbsp;SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_FLUSHNOWAIT, nil, nil);</div><div class="code_line">&nbsp;&nbsp;end;</div><div class="code_line">end;</div><div class="code_line">&nbsp;</div><div class="code_line">// Определяем, скрыты или нет защищенные файлы</div><div class="code_line">function ShGetShowSuperHiddenFileState:boolean;</div><div class="code_line">var</div><div class="code_line">&nbsp;&nbsp;lpss: SHELLSTATE;</div><div class="code_line">begin</div><div class="code_line">&nbsp;&nbsp;ZeroMemory(@lpss, sizeof(lpss));</div><div class="code_line">&nbsp;&nbsp;// Получаем текущее состояние</div><div class="code_line">&nbsp;&nbsp;SHGetSetSettings(lpss, SSF_SHOWSUPERHIDDEN, False);</div><div class="code_line">&nbsp;&nbsp;// Возвращаем состояние</div><div class="code_line">&nbsp;&nbsp;result:= lpss.fShowSuperHidden;</div><div class="code_line">end;</div></ol></div></div></div></div>]]></description>
        <author>Rouse_</author>
        <category>Delphi: Система, Windows API</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=425004&amp;view=findpost&amp;p=3856977</guid>
        <pubDate>Wed, 29 Dec 2021 07:31:08 +0000</pubDate>
        <title>Не работает SSF_SHOWSUPERHIDDEN (Скрыть/Показать защищенные системные файлы)</title>
        <link>https://forum.sources.ru/index.php?showtopic=425004&amp;view=findpost&amp;p=3856977</link>
        <description><![CDATA[navodri: Господа, помогите разобраться, почему не хочет работать SSF_SHOWSUPERHIDDEN на Скрытие/Показ защищенных системных файлов. При этом, функция, которая определяет состояние файлов, работает корректно.<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">// Скрыть/показать защищенные файлы (ЭТОТ КОД НЕ РАБОТАЕТ!)</div><div class="code_line">procedure SHShowSuperHiddenFile(show: Boolean);</div><div class="code_line">var</div><div class="code_line">&nbsp;&nbsp;lpss: SHELLSTATE;</div><div class="code_line">&nbsp;&nbsp;bShowAll: Boolean;</div><div class="code_line">begin</div><div class="code_line">&nbsp;&nbsp;ZeroMemory(@lpss, sizeof(lpss));</div><div class="code_line">&nbsp;&nbsp;// Получаем текущее состояние</div><div class="code_line">&nbsp;&nbsp;SHGetSetSettings(lpss, SSF_SHOWSUPERHIDDEN, False);</div><div class="code_line">&nbsp;&nbsp;// Проверяем текущее состояние</div><div class="code_line">&nbsp;&nbsp;bShowAll := (lpss.Data and SSF_SHOWSUPERHIDDEN) = SSF_SHOWSUPERHIDDEN;</div><div class="code_line">&nbsp;&nbsp;// Если изменилось</div><div class="code_line">&nbsp;&nbsp;if (bShowAll &#60;&#62; show) then</div><div class="code_line">&nbsp;&nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp;if (Show) then</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;lpss.Data := 1</div><div class="code_line">&nbsp;&nbsp; &nbsp;else</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;lpss.Data :=0;</div><div class="code_line">&nbsp;&nbsp; &nbsp;// Меняем состояние</div><div class="code_line">&nbsp;&nbsp; &nbsp;SHGetSetSettings(lpss, SSF_SHOWSUPERHIDDEN, True);</div><div class="code_line">&nbsp;&nbsp; &nbsp;// Сообщение Проводнику об изменениях</div><div class="code_line">&nbsp;&nbsp; &nbsp;SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_FLUSHNOWAIT, nil, nil);</div><div class="code_line">&nbsp;&nbsp;end;</div><div class="code_line">end;</div><div class="code_line">&nbsp;</div><div class="code_line">// Определяем, скрыты или нет защищенные файлы</div><div class="code_line">function ShGetShowSuperHiddenFileState:boolean;</div><div class="code_line">var</div><div class="code_line">&nbsp;&nbsp;lpss: SHELLSTATE;</div><div class="code_line">begin</div><div class="code_line">&nbsp;&nbsp;ZeroMemory(@lpss, sizeof(lpss));</div><div class="code_line">&nbsp;&nbsp;// Получаем текущее состояние</div><div class="code_line">&nbsp;&nbsp;SHGetSetSettings(lpss, SSF_SHOWSUPERHIDDEN, False);</div><div class="code_line">&nbsp;&nbsp;// Возвращаем состояние</div><div class="code_line">&nbsp;&nbsp;result:= (lpss.Data and SSF_SHOWSUPERHIDDEN) = SSF_SHOWSUPERHIDDEN;</div><div class="code_line">end;</div><div class="code_line">&nbsp;</div><div class="code_line">// Скрываем/Показываем защищенные файлы</div><div class="code_line">procedure TForm1.Button1Click(Sender: TObject);</div><div class="code_line">begin</div><div class="code_line">&nbsp;if ShGetShowSuperHiddenFileState then</div><div class="code_line">&nbsp;&nbsp; SHShowSuperHiddenFile(false)</div><div class="code_line">&nbsp;else</div><div class="code_line">&nbsp;&nbsp; SHShowSuperHiddenFile(true);</div><div class="code_line">end;</div></ol></div></div></div></div>]]></description>
        <author>navodri</author>
        <category>Delphi: Система, Windows API</category>
      </item>
	
      </channel>
      </rss>
	