Alaska Software Inc. - Everything.EXE & DLL
Username: Password:
AuthorTopic: Everything.EXE & DLL
Jim LeeEverything.EXE & DLL
on Sat, 06 Apr 2019 07:06:37 +0200
hi,

do you know Everything.EXE ( https://www.voidtools.com/ )  ?

it is used e.g. by Total Commander when search with ALT-F7

there is a SDK and a 32Bit DLL that can be used with Xbase++.
you do'nt need to search recursive with Directory() ... just ask via
Everything.DLL like this

* ------------------------------------------- *
   nDLL := nLoadLibrary( "Everything32.dll" )
   IF nDLL > 0
      cText := ::cPathSource+"*.*"
       set search
      @ Everything32:Everything_SetSearchA( cText )

       what to search
      @ Everything32:Everything_SetRequestFlags( nor(
EVERYTHING_REQUEST_PATH,;
                                                      EVERYTHING_REQUEST_FILE_NAME,;
                                                      EVERYTHING_REQUEST_ATTRIBUTES,;
                                                      EVERYTHING_REQUEST_SIZE
 ) )
       sort result
      @ Everything32:Everything_SetSort(
EVERYTHING_SORT_FILE_LIST_FILENAME_ASCENDING )

       execute query
      @ Everything32:Everything_QueryA( .T. )
* ------------------------------------------- *



---
Diese E-Mail wurde von AVG auf Viren geprüft.
http://www.avg.com
Anand GuptaRe: Everything.EXE & DLL
on Sat, 06 Apr 2019 19:31:44 +0200
Jim Lee wrote in message news:2967ee76$4cb78859$1face@news.alaska-software.com...
>hi,
>
>do you know Everything.EXE ( https://www.voidtools.com/ )  ?
>
>it is used e.g. by Total Commander when search with ALT-F7
>
>there is a SDK and a 32Bit DLL that can be used with Xbase++.
>you do'nt need to search recursive with Directory() ... just ask via
>Everything.DLL like this
>
>* ------------------------------------------- *
>   nDLL := nLoadLibrary( "Everything32.dll" )
>   IF nDLL > 0
>      cText := ::cPathSource+"*.*"
>       set search
>      @ Everything32:Everything_SetSearchA( cText )
>
>       what to search
>      @ Everything32:Everything_SetRequestFlags( nor(
>EVERYTHING_REQUEST_PATH,;
>                                                     
EVERYTHING_REQUEST_FILE_NAME,;
>                                                     
EVERYTHING_REQUEST_ATTRIBUTES,;
>                                                      EVERYTHING_REQUEST_SIZE
> ) )
>       sort result
>      @ Everything32:Everything_SetSort(
>EVERYTHING_SORT_FILE_LIST_FILENAME_ASCENDING )
>
>       execute query
>      @ Everything32:Everything_QueryA( .T. )
>* ------------------------------------------- *
>
>
>
>---
>Diese E-Mail wurde von AVG auf Viren geprüft.
>http://www.avg.com

Hi Jim,

What are the #defines for EVERYTHING_* ?

Regards,

Anand
Jim LeeRe: Everything.EXE & DLL
on Sat, 06 Apr 2019 22:15:22 +0200
hi,

> What are the #defines for EVERYTHING_* ?

do you have Everything32.DLL ?

you need Everythings SDK which is 174 Kb (!) and include DLL / LIB
you will find Everything.h and C-Sample in SDK

! Note : Everything.h also include dllimport function and parameter Type

if you are TC User and have installed Everything already you can skip next

---

1st you need to install Everything and run as Service.
than you must configure Index (Checkbox) what to create (default Path, Name)

default Everything want to archive all HDD/SSD.
for about 5 TB Files Everything create Index (Path, Name, Size, Attribut) is 
about 100 KB (!)

! Note : Everything Index contain only Filename to search. Everything can 
NOT search "in" file

---

as i say i found dllimport function in Everything.h (v1.4.1)

Everything_SetSearchA()  ANSI Version
Everything_SetRequestFlags()
Everything_SetSort()
Everything_QueryA( .T. )  ANSI Version

like a SQL Resultset i use these function to get data into 2-dim Array

Everything_GetNumResults()
Everything_GetResultAttributes(n-1)
Everything_GetResultFullPathNameA( n-1, @buf, bufsize )
Everything_GetResultSize(n-1,@nSize)





---
Diese E-Mail wurde von AVG auf Viren gepruft.
http://www.avg.com


Everything_H.zip
Anand GuptaRe: Everything.EXE & DLL
on Sun, 07 Apr 2019 13:46:49 +0200
Jim Lee wrote in message news:142025b8$72181193$1e5b5@news.alaska-software.com...
>hi,
>
>> What are the #defines for EVERYTHING_* ?
>
>do you have Everything32.DLL ?
>
>you need Everythings SDK which is 174 Kb (!) and include DLL / LIB
>you will find Everything.h and C-Sample in SDK
>
>! Note : Everything.h also include dllimport function and parameter Type
>
>if you are TC User and have installed Everything already you can skip next
>

Hi Jim 

Thanks for the explanation.

I use Everything as normal program and not as service and have an older version.

I will check as advised.

Regards,

Anand