<?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=43573&amp;view=findpost&amp;p=288283</guid>
        <pubDate>Tue, 27 Jan 2004 06:53:45 +0000</pubDate>
        <title>Как узнать размер файла?</title>
        <link>https://forum.sources.ru/index.php?showtopic=43573&amp;view=findpost&amp;p=288283</link>
        <description><![CDATA[ViGOur: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '><br>
DWORD GetFileSize( HANDLE hFile, LPDWORD lpFileSizeHigh); <br>
<strong class='tag-b'>Parameters</strong> <br>
<em class='tag-i'>hFile</em> <br>
[in] Open handle of the file whose size is being returned. The handle must have been created with either GENERIC_READ or GENERIC_WRITE access to the file. <br>
<em class='tag-i'>lpFileSizeHigh </em><br>
[out] Pointer to the variable where the high-order word of the file size is returned. This parameter can be NULL if the application does not require the high-order word. <br>
</div></div><br>
Вот пример:<br>
<div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '><br>
// <br>
// Case One: calling the function with <br>
//           lpFileSizeHigh == NULL <br>
 <br>
// Try to obtain hFile&#39;s size <br>
dwSize = GetFileSize (hFile, NULL) ; <br>
 <br>
// If we failed ... <br>
if (dwSize == 0xFFFFFFFF) { <br>
 <br>
    // Obtain the error code. <br>
    dwError = GetLastError() ; <br>
 <br>
    // Deal with that failure. <br>
    . <br>
    . <br>
    . <br>
 <br>
    } // End of error handler <br>
 <br>
 <br>
// <br>
// Case Two: calling the function with <br>
//           lpFileSizeHigh &#33;= NULL <br>
 <br>
// Try to obtain hFile&#39;s huge size. <br>
dwSizeLow = GetFileSize (hFile, &amp; dwSizeHigh) ; <br>
 <br>
// If we failed ... <br>
if (dwSizeLow == 0xFFFFFFFF <br>
    &amp;&amp; <br>
    (dwError = GetLastError()) &#33;= NO_ERROR ){ <br>
 <br>
    // Deal with that failure. <br>
    . <br>
    . <br>
    . <br>
 <br>
    } // End of error handler.<br>
</div></div>]]></description>
        <author>ViGOur</author>
        <category>C/C++: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=43573&amp;view=findpost&amp;p=288184</guid>
        <pubDate>Mon, 26 Jan 2004 21:29:17 +0000</pubDate>
        <title>Как узнать размер файла?</title>
        <link>https://forum.sources.ru/index.php?showtopic=43573&amp;view=findpost&amp;p=288184</link>
        <description><![CDATA[Heretic2: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '>WinAPI: GetFileSize</div></div><br>
поподробнее можно(какую билиотеку подключ., какие праметры вводить ...)]]></description>
        <author>Heretic2</author>
        <category>C/C++: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=43573&amp;view=findpost&amp;p=285328</guid>
        <pubDate>Wed, 21 Jan 2004 21:33:18 +0000</pubDate>
        <title>Как узнать размер файла?</title>
        <link>https://forum.sources.ru/index.php?showtopic=43573&amp;view=findpost&amp;p=285328</link>
        <description><![CDATA[AlexSm: WinAPI: GetFileSize<br>CRT: fseek( File, 0, SEEK_END); LONG lSize = ftell( File);]]></description>
        <author>AlexSm</author>
        <category>C/C++: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=43573&amp;view=findpost&amp;p=285312</guid>
        <pubDate>Wed, 21 Jan 2004 21:17:37 +0000</pubDate>
        <title>Как узнать размер файла?</title>
        <link>https://forum.sources.ru/index.php?showtopic=43573&amp;view=findpost&amp;p=285312</link>
        <description><![CDATA[Heretic2: Как узнать размер файла в байтах, при этом не читая его?]]></description>
        <author>Heretic2</author>
        <category>C/C++: Общие вопросы</category>
      </item>
	
      </channel>
      </rss>
	