禁止FileOpenDialog窗口出现。
#include <Thread.au3>
Const $DEST_PID = @AutoItPID
Local $pGetOpenFileNameW = _RTGetProcAddress("comdlg32.dll", "GetOpenFileNameW")
Local $pGetOpenFileNameA = _RTGetProcAddress("comdlg32.dll", "GetOpenFileNameA")
Local $hProcess = _RTOpenProcess($DEST_PID)
_RTWriteProcessMemory($hProcess, $pGetOpenFileNameA, "0x33C0C20400CCCCCC", 8, "binary")
_RTWriteProcessMemory($hProcess, $pGetOpenFileNameW, "0x33C0C20400CCCCCC", 8, "binary")
_RTCloseHandle($hProcess)
Local $sFileName = FileOpenDialog("test", @DesktopDir & "\", "All files(*.*)")
MsgBox(0, $sFileName, @error)
|