<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[festplatten id mittels GetVolumeInformation]]></title><description><![CDATA[<p>Hallo alle zusammen,</p>
<p>liege ich da richtig, das die Volume ID die man mit &quot;dir&quot; in der eingabeauforderung sehen kann die ist die ich auch mit<br />
GetVolumeInformation(); bekomme?<br />
Wenn ja stimmt da was nicht...wenn ich dwVolumeSerial ausgebe kommt bei mir:<br />
480625555 aber meine VolumeID laut &quot;dir&quot; ist:<br />
1CA5-C393</p>
<p>Hier der Code:</p>
<pre><code>char WinDirBuffer[255];

    string RootPathName = &quot;c:\\&quot;; // address of root directory of the file system
    DWORD dwVolumeSerial=0;	                            // address of volume serial number
    DWORD dwMaximumComponentLength;	                    // address of system's maximum filename length
    DWORD dwFileSystemFlags;     	                    // address of file system flags

    GetVolumeInformation(RootPathName.c_str(), NULL, NULL,
    &amp;dwVolumeSerial, &amp;dwMaximumComponentLength, &amp;dwFileSystemFlags,
    NULL,NULL);
</code></pre>
<p>P.s. wie kann man eigentlich herausbekommen welche partition die Windoof partition ist?</p>
<p>vielen danke schonmal im Vorraus <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>EDIT: warum sind da jetzt bitte sternchen???? Vor.raus</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/148819/festplatten-id-mittels-getvolumeinformation</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Jul 2026 19:50:59 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/148819.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 30 May 2006 17:43:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to festplatten id mittels GetVolumeInformation on Tue, 30 May 2006 17:45:46 GMT]]></title><description><![CDATA[<p>Hallo alle zusammen,</p>
<p>liege ich da richtig, das die Volume ID die man mit &quot;dir&quot; in der eingabeauforderung sehen kann die ist die ich auch mit<br />
GetVolumeInformation(); bekomme?<br />
Wenn ja stimmt da was nicht...wenn ich dwVolumeSerial ausgebe kommt bei mir:<br />
480625555 aber meine VolumeID laut &quot;dir&quot; ist:<br />
1CA5-C393</p>
<p>Hier der Code:</p>
<pre><code>char WinDirBuffer[255];

    string RootPathName = &quot;c:\\&quot;; // address of root directory of the file system
    DWORD dwVolumeSerial=0;	                            // address of volume serial number
    DWORD dwMaximumComponentLength;	                    // address of system's maximum filename length
    DWORD dwFileSystemFlags;     	                    // address of file system flags

    GetVolumeInformation(RootPathName.c_str(), NULL, NULL,
    &amp;dwVolumeSerial, &amp;dwMaximumComponentLength, &amp;dwFileSystemFlags,
    NULL,NULL);
</code></pre>
<p>P.s. wie kann man eigentlich herausbekommen welche partition die Windoof partition ist?</p>
<p>vielen danke schonmal im Vorraus <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>EDIT: warum sind da jetzt bitte sternchen???? Vor.raus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1068280</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1068280</guid><dc:creator><![CDATA[Black Hell]]></dc:creator><pubDate>Tue, 30 May 2006 17:45:46 GMT</pubDate></item><item><title><![CDATA[Reply to festplatten id mittels GetVolumeInformation on Tue, 30 May 2006 18:13:50 GMT]]></title><description><![CDATA[<p>Black Hell schrieb:</p>
<blockquote>
<p>liege ich da richtig, das die Volume ID die man mit &quot;dir&quot; in der eingabeauforderung sehen kann die ist die ich auch mit<br />
GetVolumeInformation(); bekomme?</p>
</blockquote>
<p>Ja.</p>
<p>Black Hell schrieb:</p>
<blockquote>
<p>Wenn ja stimmt da was nicht...wenn ich dwVolumeSerial ausgebe kommt bei mir:<br />
480625555 aber meine VolumeID laut &quot;dir&quot; ist:<br />
1CA5-C393</p>
</blockquote>
<p>Du solltest Sie vielleicht auch als Hex-Wert ausgeben <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>Black Hell schrieb:</p>
<blockquote>
<p>P.s. wie kann man eigentlich herausbekommen welche partition die Windoof partition ist?</p>
</blockquote>
<p>Umgebungsvariable &quot;SystemDrive&quot;</p>
<p>Black Hell schrieb:</p>
<blockquote>
<p>vielen danke schonmal im v****** <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /><br />
EDIT: warum sind da jetzt bitte sternchen???? Vor.raus</p>
</blockquote>
<p>Weil es vermutlich falsch schrieben ist!? Pisa lässt grüßen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1068299</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1068299</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Tue, 30 May 2006 18:13:50 GMT</pubDate></item><item><title><![CDATA[Reply to festplatten id mittels GetVolumeInformation on Tue, 30 May 2006 21:59:11 GMT]]></title><description><![CDATA[<p>Cool danke, es funktioniert, hätte ich auch selber drauf kommen können.Danke</p>
<p>achja:die Pisa-Studie tangiert mich peripher, man selbst ist wer zählt! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
<p>Ich habe jetzt rumgeoogelt und so, aber was meinst du mit Umgebungsvariable &quot;SystemDrive&quot;?</p>
<p>Und noch eine Frage:</p>
<p>Ich mache die Ausgabe so:</p>
<pre><code>cout &lt;&lt; hex &lt;&lt; dwVolumeSerial &lt;&lt; endl;
</code></pre>
<p>Gibt es eine Möglichkeit das in eine char Variable zu speichern, also den hex wert?So das ich damit als Text weiter arbeiten kann?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1068438</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1068438</guid><dc:creator><![CDATA[Black Hell]]></dc:creator><pubDate>Tue, 30 May 2006 21:59:11 GMT</pubDate></item><item><title><![CDATA[Reply to festplatten id mittels GetVolumeInformation on Tue, 30 May 2006 22:15:00 GMT]]></title><description><![CDATA[<p>Hi<br />
Glaub die std::string klasse kann das... dann Obj.c_str() zum umwandeln innen C-String <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;string&gt;

using namespace std;

string strTemp;
char        szBuffer[100];
// dwVolumeSerial initialisieren...
// ...
strTemp &lt;&lt; hex &lt;&lt; dwVolumeSerial;
strncpy(szBuffer, strTemp.c_str(), 100);
</code></pre>
<p><em>!Code ist nicht getestet!</em></p>
<p>MfG CodeFinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1068457</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1068457</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Tue, 30 May 2006 22:15:00 GMT</pubDate></item><item><title><![CDATA[Reply to festplatten id mittels GetVolumeInformation on Wed, 31 May 2006 05:51:34 GMT]]></title><description><![CDATA[<p>Black Hell schrieb:</p>
<blockquote>
<p>Ich habe jetzt rumgeoogelt und so, aber was meinst du mit Umgebungsvariable &quot;SystemDrive&quot;?</p>
</blockquote>
<pre><code class="language-cpp">printf(&quot;Sytem-Drive: %s&quot;, getenv(&quot;SystemDrive&quot;));
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1068493</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1068493</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Wed, 31 May 2006 05:51:34 GMT</pubDate></item><item><title><![CDATA[Reply to festplatten id mittels GetVolumeInformation on Wed, 31 May 2006 19:58:44 GMT]]></title><description><![CDATA[<p>Hallo nochmal.... jetzt verstehe ich was du mit Umgebungsvariable meinst, sorry bin noch relativ neu in c++...</p>
<p>wegen</p>
<pre><code class="language-cpp">strTemp &lt;&lt; hex &lt;&lt; dwVolumeSerial;
</code></pre>
<p>:</p>
<p>Dev-Cpp sagt mir das der Operator nicht zulässig ist, bzw. das hier:</p>
<pre><code>26 D:\Programme\Dev-Cpp\Projects\PWSniffer\main.cpp no match for 'operator&lt;&lt;' in 'strTemp &lt;&lt; std::ios_base::hex'
</code></pre>
<p>Also die Logik dahinter habe ich kapiert, leider funktioniert das so nicht.</p>
<p>EDIT: Es wäre möglich diesen Wert in eine Datei zu speichern und gleich wieder einzulesen, das könnte man locker schaffen, aber ist irgendwie blöd</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1069121</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1069121</guid><dc:creator><![CDATA[Black Hell]]></dc:creator><pubDate>Wed, 31 May 2006 19:58:44 GMT</pubDate></item></channel></rss>