title: Wpf and Hwnd unique name
body: <p>we have a wpf application that should be 'piloted' by a legacy win32 winform application. (We don't own the code ;) )</p>
  
  <p>The legacy application should pilot our application (minimize, bring to front, shut, etc) via windowsclass name we should provide as a configuration parameter written into an ini file.</p>
  
  <p>The problem is we cannot make it work with wpf since if we insert the classname Spy++ gives us, nothing happens. The point is Spi++ returns something like this</p>
  
  <pre><code> HwndWrapper[MyWpfProgram.exe;;16978ce2-3b8d-4c46-81ee-e1c6d6de4e6d]
  </code></pre>
  
  <p>where the guid is randomly generated at every run.</p>
  
  <p>Is there any way to solve this issue?</p>
  
  <p>Thank you.</p>