title: GetVolumeInformation Error
body: <p>So I am getting compile errors, what I am trying to do is use GetVolumeInformation to serialize the drive which will be unique for each person. Any help would be greatly appreciated.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>#include "stdafx.h"
  #include "Head.h"
  
  using namespace System;
  using namespace System::Collections::Generic;
  using namespace System::ComponentModel;
  using namespace System::Data;
  using namespace System::Drawing;
  using namespace System::Text;
  using namespace System::Net;
  using namespace System::Net::Sockets;
  using namespace System::Windows::Forms;
  using namespace System::IO;
  using namespace System::Security::Cryptography;
  using namespace System::Security::Principal;
  
  namespace SE
  {
  
      String ^Base::GetSerial(String ^strDriveLetter)
      {
          UInt32 serNum = 0;
          UInt32 maxCompLen = 0;
          StringBuilder ^VolLabel = gcnew StringBuilder(256); // Label
          UInt32 VolFlags = UInt32();
          StringBuilder ^FSName = gcnew StringBuilder(256); // File System Name
          strDriveLetter += ":\\"; // fix up the passed-in drive letter for the API call
          bool Ret = GetVolumeInformation(strDriveLetter, VolLabel, safe_cast&lt;UInt32&gt;(VolLabel-&gt;Capacity), serNum, maxCompLen, VolFlags, FSName, safe_cast&lt;UInt32&gt;(FSName-&gt;Capacity));
          return Convert::ToString(serNum);
      }
  }
  </code></pre>
  
  <p>Then here is my Head.h:</p>
  
  <pre><code>#pragma once
  
  using namespace System;
  using namespace System::Collections::Generic;
  using namespace System::ComponentModel;
  using namespace System::Data;
  using namespace System::Drawing;
  using namespace System::Text;
  using namespace System::Net;
  using namespace System::Net::Sockets;
  using namespace System::Windows::Forms;
  using namespace System::IO;
  using namespace System::Security::Cryptography;
  using namespace System::Security::Principal;
  
  namespace SE
  {
      private ref class Base
      {
      private:
          static bool GetVolumeInformation(String ^PathName, StringBuilder ^VolumeNameBuffer, UInt32 VolumeNameSize, UInt32 %VolumeSerialNumber, UInt32 %MaximumComponentLength, UInt32 %FileSystemFlags, StringBuilder ^FileSystemNameBuffer, UInt32 FileSystemNameSize);
      };
  }
  </code></pre>
  
  <p>However, when I compile I am getting:</p>
  
  <pre><code>error LNK2022: metadata operation failed (80131187) : Inconsistent method declarations in duplicated types (types: SE.Base; methods: GetVolumeInformationA): (0x06000008).
  </code></pre>
  
  <p>Do I have something wrong? Thanks</p>