<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem with GetVolumeInformation in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Problem-with-GetVolumeInformation/m-p/958915#M21407</link>
    <description>Yes, zero-terminate lpszDriveName :-). The behaviour you get is "unexpected" -- it depends on what's in memory imediately behind lpszDriveName -- if it's zero, it works, otherwise doesn't. &lt;BR /&gt; &lt;BR /&gt;Since lpszDriveName is declared as CHARACTER, you cannot send NULL, which is INTEGER. You can use NULL_CHARACTER constant declared in DFWINTY or %VAL(0) -- something like that, not sure about the right syntax -- maybe %REF(0). &lt;BR /&gt; &lt;BR /&gt;Jugoslav</description>
    <pubDate>Thu, 12 Jul 2001 20:39:12 GMT</pubDate>
    <dc:creator>Jugoslav_Dujic</dc:creator>
    <dc:date>2001-07-12T20:39:12Z</dc:date>
    <item>
      <title>Problem with GetVolumeInformation</title>
      <link>https://community.intel.com/t5/Software-Archive/Problem-with-GetVolumeInformation/m-p/958914#M21406</link>
      <description>I am trying to get the serial number for security. &lt;BR /&gt;The following code works on some computers but not on others, then I ger error 'The specified path is invalid'. &lt;BR /&gt; &lt;BR /&gt;&lt;PRE&gt; 
lpszDriveName='c:' 
bRC=GetVolumeInformation(lpszDriveName,Volume,50,LOC(lpVolumeSerialNo),NULL,NULL,lpszSystemName,32) 
&lt;/PRE&gt; &lt;BR /&gt; &lt;BR /&gt;If I relpace lpszDiveName with NULL I get the error when compiling - &lt;BR /&gt;'The type of the actual argument differs from the type of the dummy argument' &lt;BR /&gt; &lt;BR /&gt;Any ideas how I can get this call to work? &lt;BR /&gt; &lt;BR /&gt;Thanks, David</description>
      <pubDate>Thu, 12 Jul 2001 18:57:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Problem-with-GetVolumeInformation/m-p/958914#M21406</guid>
      <dc:creator>davidgraham</dc:creator>
      <dc:date>2001-07-12T18:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with GetVolumeInformation</title>
      <link>https://community.intel.com/t5/Software-Archive/Problem-with-GetVolumeInformation/m-p/958915#M21407</link>
      <description>Yes, zero-terminate lpszDriveName :-). The behaviour you get is "unexpected" -- it depends on what's in memory imediately behind lpszDriveName -- if it's zero, it works, otherwise doesn't. &lt;BR /&gt; &lt;BR /&gt;Since lpszDriveName is declared as CHARACTER, you cannot send NULL, which is INTEGER. You can use NULL_CHARACTER constant declared in DFWINTY or %VAL(0) -- something like that, not sure about the right syntax -- maybe %REF(0). &lt;BR /&gt; &lt;BR /&gt;Jugoslav</description>
      <pubDate>Thu, 12 Jul 2001 20:39:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Problem-with-GetVolumeInformation/m-p/958915#M21407</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2001-07-12T20:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with GetVolumeInformation</title>
      <link>https://community.intel.com/t5/Software-Archive/Problem-with-GetVolumeInformation/m-p/958916#M21408</link>
      <description>NULL_CHARACTER or %VAL(0) will work.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 12 Jul 2001 21:39:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Problem-with-GetVolumeInformation/m-p/958916#M21408</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-07-12T21:39:02Z</dc:date>
    </item>
  </channel>
</rss>

