title: cannot implicitly convert type void to int in C#
body: <pre><code>private string GetShortName(string LongName)
  {
      string ShortFileName = new string('\0', 67);
      **int Result = Support.PInvoke.SafeNative.kernel32.GetShortPathName(ref LongName, ref ShortFileName, ((ShortFileName) is null) ? 0 : Convert.ToString(ShortFileName).Length);**
      ShortFileName = StringsHelper.GetFixedLengthString(ShortFileName, 67);
      return ShortFileName.Substring(0, Math.Min(Result, ShortFileName.Length));
  }
  </code></pre>
  
  <p>The above line throws a error "cannot implicitly convert type void to int"
  <code>GetShortPathName</code> comes from Kernel32.dll that is wrapped in a class file as</p>
  
  <pre><code> public static void GetShortPathName(ref string lpszLongPath, ref string lpszShortPath, int cchBuffer);
  </code></pre>
  
  <p>Is there is any alternative to get it in <code>int</code> result?</p>