EvoTalk

07 十二月, 2005

如何使用API來定位文件?

Posted by: asd In: 科技新知| 軟體使用 ()

flashget有個功能,當檔案下載完畢,選擇該檔,按「Ctrl+Enter可直接開啟該檔所在目錄並把該檔highlight

如何在程式中實現此功能?

反組譯一下flashget,用ollydbg attach 到 flashget,然後對WinExec,ShellExecute 等函數下斷點。當flashget 定位文件时,會看到eax顯示

『explorer /n,/select, C:testfile.txt』

於是在程式中呼叫

char CmdLine[] = 『explorer /n,/select,C:\test\file.txt』
WinExec(CmdLine, SW_SHOW);

即可

Most Commented Posts



No Responses to "如何使用API來定位文件?"

Comment Form