<?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=173917&amp;view=findpost&amp;p=1474393</guid>
        <pubDate>Mon, 05 Mar 2007 10:34:49 +0000</pubDate>
        <title>Определение системных папок</title>
        <link>https://forum.sources.ru/index.php?showtopic=173917&amp;view=findpost&amp;p=1474393</link>
        <description><![CDATA[Meverik: Непомню где, видел такие функции, может помогут:<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">&nbsp;&nbsp;function WinDir: string; // Определение папки Windows</div><div class="code_line">&nbsp;&nbsp;var</div><div class="code_line">&nbsp;&nbsp; &nbsp;intLen:integer;</div><div class="code_line">&nbsp;&nbsp; &nbsp;strBuffer:string;</div><div class="code_line">&nbsp;&nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp;SetLength(strBuffer,1000);</div><div class="code_line">&nbsp;&nbsp; &nbsp;intLen:=GetWindowsDirectory(PChar(strBuffer),1000);</div><div class="code_line">&nbsp;&nbsp; &nbsp;WinDir:=Trim(Copy(strBuffer,1,intLen));</div><div class="code_line">&nbsp;&nbsp;end;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp;function SysDir: string; // Определение системной папки </div><div class="code_line">&nbsp;&nbsp;var</div><div class="code_line">&nbsp;&nbsp; &nbsp;intLen:integer;</div><div class="code_line">&nbsp;&nbsp; &nbsp;strBuffer:string;</div><div class="code_line">&nbsp;&nbsp;begin</div><div class="code_line">&nbsp;&nbsp; &nbsp;SetLength(strBuffer,1000);</div><div class="code_line">&nbsp;&nbsp; &nbsp;intLen:=GetSystemDirectory(PChar(strBuffer),1000);</div><div class="code_line">&nbsp;&nbsp; &nbsp;SysDir:=Trim(Copy(strBuffer,1,intLen));</div><div class="code_line">&nbsp;&nbsp;end;</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script>]]></description>
        <author>Meverik</author>
        <category>Delphi: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=173917&amp;view=findpost&amp;p=1472721</guid>
        <pubDate>Sat, 03 Mar 2007 13:58:03 +0000</pubDate>
        <title>Определение системных папок</title>
        <link>https://forum.sources.ru/index.php?showtopic=173917&amp;view=findpost&amp;p=1472721</link>
        <description><![CDATA[ViktorXP: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=173917&view=findpost&p=1472714'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Testudo &#064; <time class="tag-quote__quoted-time" datetime="2007-03-03T13:45:02+00:00">03.03.07, 13:45</time></span><div class='quote '> Функция GetTempPath, и вообще никаких модулей добавлять не надо (Windows всегда добавлен)  </div></div><br>
но зато у моей функции больше возможностей  :P <br>
не а канешно непротив твоей если там кроме одной етой папки ничево ненадо, сам зото чем меньше тем лудше]]></description>
        <author>ViktorXP</author>
        <category>Delphi: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=173917&amp;view=findpost&amp;p=1472714</guid>
        <pubDate>Sat, 03 Mar 2007 13:45:02 +0000</pubDate>
        <title>Определение системных папок</title>
        <link>https://forum.sources.ru/index.php?showtopic=173917&amp;view=findpost&amp;p=1472714</link>
        <description><![CDATA[Testudo: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=173917&view=findpost&p=1472361'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>ViktorXP &#064; <time class="tag-quote__quoted-time" datetime="2007-03-03T06:24:08+00:00">03.03.07, 06:24</time></span><div class='quote '>и незабудь повесить два модуля<br>
ActiveX, ShlObj </div></div> :D Функция GetTempPath, и вообще никаких модулей добавлять не надо (Windows всегда добавлен) ;)]]></description>
        <author>Testudo</author>
        <category>Delphi: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=173917&amp;view=findpost&amp;p=1472361</guid>
        <pubDate>Sat, 03 Mar 2007 06:24:08 +0000</pubDate>
        <title>Определение системных папок</title>
        <link>https://forum.sources.ru/index.php?showtopic=173917&amp;view=findpost&amp;p=1472361</link>
        <description><![CDATA[ViktorXP: функция на получения пити<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">function pathDir(num:integer):string;</div><div class="code_line">var</div><div class="code_line">&nbsp;&nbsp;Allocator: IMalloc; </div><div class="code_line">&nbsp;&nbsp;SpecialDir: PItemIdList;</div><div class="code_line">&nbsp;&nbsp;FBuf: array[0..MAX_PATH] of Char;</div><div class="code_line">begin</div><div class="code_line">&nbsp;&nbsp;if SHGetMalloc(Allocator) = NOERROR then </div><div class="code_line">&nbsp;&nbsp;begin </div><div class="code_line">&nbsp;&nbsp; &nbsp;SHGetSpecialFolderLocation(Form1.Handle, num, SpecialDir);</div><div class="code_line">&nbsp;&nbsp; &nbsp;SHGetPathFromIDList(SpecialDir, @FBuf[0]); </div><div class="code_line">&nbsp;&nbsp; &nbsp;Allocator.Free(SpecialDir); </div><div class="code_line">&nbsp;&nbsp; &nbsp;result:=(string(FBuf));</div><div class="code_line">&nbsp;&nbsp;end;</div><div class="code_line">end;</div></ol></div></div></div></div> <br>
а вт константы для ее<br>
<div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '>  CSIDL_DESKTOP<br>
  CSIDL_INTERNET<br>
  CSIDL_PROGRAMS<br>
  CSIDL_CONTROLS <br>
  CSIDL_PRINTERS <br>
  CSIDL_PERSONAL <br>
  CSIDL_FAVORITES <br>
  CSIDL_STARTUP <br>
  CSIDL_RECENT <br>
  CSIDL_SENDTO <br>
  CSIDL_BITBUCKET <br>
  CSIDL_STARTMENU <br>
  CSIDL_DESKTOPDIRECTORY <br>
  CSIDL_DRIVES <br>
  CSIDL_NETWORK <br>
  CSIDL_NETHOOD <br>
  CSIDL_FONTS <br>
  CSIDL_TEMPLATES <br>
  CSIDL_COMMON_STARTMENU <br>
  CSIDL_COMMON_PROGRAMS <br>
  CSIDL_COMMON_STARTUP <br>
  CSIDL_COMMON_DESKTOPDIRECTORY <br>
  CSIDL_APPDATA <br>
  CSIDL_PRINTHOOD <br>
  CSIDL_ALTSTARTUP <br>
  CSIDL_COMMON_ALTSTARTUP <br>
  CSIDL_COMMON_FAVORITES <br>
  CSIDL_INTERNET_CACHE <br>
  CSIDL_COOKIES <br>
  CSIDL_HISTORY </div></div> <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2007-03-03T06:27:25+00:00">03.03.07, 06:27</time></span></span><br>
и незабудь повесить два модуля<br>
<strong class='tag-b'>ActiveX, ShlObj</strong>]]></description>
        <author>ViktorXP</author>
        <category>Delphi: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=173917&amp;view=findpost&amp;p=1472133</guid>
        <pubDate>Fri, 02 Mar 2007 20:04:34 +0000</pubDate>
        <title>Определение системных папок</title>
        <link>https://forum.sources.ru/index.php?showtopic=173917&amp;view=findpost&amp;p=1472133</link>
        <description><![CDATA[Gonarh: посмотри SHGetSpecialFolderPath в модуле ShlObj]]></description>
        <author>Gonarh</author>
        <category>Delphi: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=173917&amp;view=findpost&amp;p=1471912</guid>
        <pubDate>Fri, 02 Mar 2007 16:34:52 +0000</pubDate>
        <title>Определение системных папок</title>
        <link>https://forum.sources.ru/index.php?showtopic=173917&amp;view=findpost&amp;p=1471912</link>
        <description><![CDATA[Albinos_X: фпоиск... :) <br>
темп<br>
<div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '><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">function c_GetTempPath: String; </div><div class="code_line">var </div><div class="code_line">Buffer: array[0..1023] of Char; </div><div class="code_line">begin </div><div class="code_line">SetString(Result, Buffer, GetTempPath(Sizeof(Buffer)-1,Buffer)); </div><div class="code_line">end;</div></ol></div></div></div></div><br>
этот код так же можно использовать для:<br>
GetCurrentDirectory <br>
GetSystemDirectory <br>
GetWindowsDirectory <br>
</div></div><br>
http://www.drkb.ru/]]></description>
        <author>Albinos_X</author>
        <category>Delphi: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=173917&amp;view=findpost&amp;p=1471910</guid>
        <pubDate>Fri, 02 Mar 2007 16:31:53 +0000</pubDate>
        <title>Определение системных папок</title>
        <link>https://forum.sources.ru/index.php?showtopic=173917&amp;view=findpost&amp;p=1471910</link>
        <description><![CDATA[P.O.D: <a class='tag-url' href='http://forum.sources.ru/index.php?showtopic=173815' target='_blank'>Кэш</a>]]></description>
        <author>P.O.D</author>
        <category>Delphi: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=173917&amp;view=findpost&amp;p=1471903</guid>
        <pubDate>Fri, 02 Mar 2007 16:26:45 +0000</pubDate>
        <title>Определение системных папок</title>
        <link>https://forum.sources.ru/index.php?showtopic=173917&amp;view=findpost&amp;p=1471903</link>
        <description><![CDATA[Error: Здрасте всем&#33;<br>Подскажите пожалуйста как мне определить расположение системной папки временых файлов в WinXp текущего пользователя и папку временых файлов Windows&#33;<br>(с учетом того что винда может стоять не на диске С);<br>Заранее очень благодарен &#33;))))]]></description>
        <author>Error</author>
        <category>Delphi: Общие вопросы</category>
      </item>
	
      </channel>
      </rss>
	