title: how to pass 4 parameters to function in dll using rundll32.exe
body: <p>Good morning. Sorry to my bad English. Now I have encountered one problem. I have succeeded in executing a function with one parameter, but in case of several parameters, I failed. here is what I tried.</p>
  
  <pre><code>rundll32.exe "C:\Program Files\Windows Photo Viewer\PhotoViewer.dll", ImageView_FullScreen C:\Users\ADMIN\Documents\a.jpg // succeeded;
  </code></pre>
  
  <p>but I noticed that the exported function is imageview_fullscreenW, and the syntax requires 4 parameters. The 3rd parameter is the full path to the image and the other parameters are just ignored.</p>
  
  <pre><code>rundll32.exe "C:\Program Files\Windows Photo Viewer\PhotoViewer.dll", ImageView_FullScreenW 0 0  C:\Users\ADMIN\Documents\a.jpg 0 // failed;
  </code></pre>
  
  <p>So what's wrong with this? I am struggling with this problem for two hours! I will be really thankful if anyone finds an answer! thanks in advance.</p>