Local $wjm = '1.txt';ClipGet()
$dll = DllOpen("Everything64.dll")
$result = DllCall($dll, "none", "Everything_SetSearchW", "wstr", $wjm)
$result = DllCall($dll, "none", "Everything_QueryW", "BOOL", True)
;Local $jg = DllCall($dll, "DWORD", "Everything_GetNumFileResults")
Local $jg = DllCall($dll, "DWORD", "Everything_GetNumResults")
Local $mz = DllCall($dll, "wstr", "Everything_GetResultFileNameW", "int", "0") ;DWORD Everything_GetNumResults(void);
;MsgBox(0, 'test', $mz[0])
If $jg[0] > 0 Then
;MsgBox(0, 'test', $jg[0])
;$test = DllCall($dll, "wstr", "Everything_GetResultPath", "int", 0) ;DWORD Everything_GetNumResults(void);
;MsgBox(0,"",$test[0])
;ShellExecute($test[0] & '\' & $mz[0], @SW_SHOWMAXIMIZED)
For $iIndex = 1 To $jg[0]
Local $aFile = DllCall($dll, 'dword', 'Everything_GetResultFullPathNameW', 'dword', $iIndex, 'wstr', '', 'DWORD', 0)
ConsoleWrite('+ FilePath: ' & $aFile[2] & @CRLF)
Next
EndIf
DllClose($dll)
|