title: Get the name of the program executable (as in paramstr(0)) but get it as a Unicode string in Delphi 7?
body: <p>I want to copy a file from the selflocation to another location like that:</p>
  
  <pre><code>var
  NewFile        : WideString;
  MyOwnLocation  : WideString;
  begin
  NewFile   := 'C:\mycopy.exe';
  // CopyFileW (PWideChar(paramstr(0)), PWideChar(NewFile), false); // ===&gt; doesn't work
  MyOwnLocation := paramstr(0);
  CopyFileW  (PWideChar(MyOwnLocation), PWideChar(NewFile), false); // ===&gt; works but not sure if Unicode supported...    
  end;
  </code></pre>
  
  <p>it works when I copy paramstr(0) to a WideString, but I'm still not sure if paramstr(0) is already UNICODE. Is there maybe a WindowsAPI that returns the current location of my file in a wideString?</p>
  
  <p>Thanks for help :)</p>