View Single Post
  #3  
Old 06-13-2013, 15:33
BlackWhite BlackWhite is offline
Friend
 
Join Date: Apr 2013
Posts: 80
Rept. Given: 4
Rept. Rcvd 14 Times in 6 Posts
Thanks Given: 12
Thanks Rcvd at 48 Times in 21 Posts
BlackWhite Reputation: 14
Quote:
Originally Posted by wilson bibe View Post
If I understood your question, You can Drag and Drop any compatible files, but without any argumment in the file that you want to Drag, the properties or argummnets to run, are always defined by de Drop exe file when it was compiled, and not by the Drag file.
Regards
At first, I really wondered that the changing of working directory
was caused by the exe itself.

But I finally found that the changing of working directory was nothing to do
with the exe file, nor with the argument file that I had dragged.

I proved the above conclusion by doing the following experiment:
1. Replace the first byte of that exe's entry point with 0CCh which
stands for int 3.
2. Run SoftICE and command "i3here on" so that it will trap the int 3
instruction
3. Run the exe mentioned above by dragging an argument file to it.
4. When SoftICE stops the exe at its entry point, I input some
instructions at stopped address like this to call GetCurrentDirectory():
sub esp, 100
push esp
push 100
call GetCurrentDirectoryA
int 3
5. After calling GetCurrentDirectory(), I check the returning value and
find that the working directory has been changed to
"c:\documents and settings\user name"
Reply With Quote