Get current directry...?

delphi package - easy access to shell apis

Get current directry...?

Postby Armagedon » Mon Jul 19, 2010 5:44 am

Hi.
how i can get current directory and get items(Files & Folders) ?

i am on writing realtime scan for my antivirus.

Thanks.
Armagedon
 
Posts: 14
Joined: Tue May 27, 2008 4:30 am

Postby madshi » Tue Aug 10, 2010 10:14 am

Hello,

and sorry for the late reply.

For a realtime scan I'd suggest to use the fastest APIs available. That would be FindFirstFileW/FindNextFileW. What do you mean with the "current directory"? Every application has its own "current directory". Do you mean the current directory of your own application? Then simply call the win32 API "GetCurrentDirectory".
madshi
Site Admin
 
Posts: 9410
Joined: Sun Mar 21, 2004 5:25 pm

Re:

Postby Armagedon » Mon Jan 17, 2011 12:08 pm

madshi wrote:Hello,

and sorry for the late reply.

For a realtime scan I'd suggest to use the fastest APIs available. That would be FindFirstFileW/FindNextFileW. What do you mean with the "current directory"? Every application has its own "current directory". Do you mean the current directory of your own application? Then simply call the win32 API "GetCurrentDirectory".


i am on writing a antivirus
So i need realtime scan feture
i need get current directory to scan files.
sorry for bad english.
thanks.
Armagedon
 
Posts: 14
Joined: Tue May 27, 2008 4:30 am

Re: Get current directry...?

Postby Armagedon » Tue Jan 18, 2011 6:38 am

"function ShellObj(const idList: IIDList) : IShellObj;"

i should get "IIDList" from active explorer window.
how i can get IIDList from Hwnd ?!!!
Armagedon
 
Posts: 14
Joined: Tue May 27, 2008 4:30 am

Re: Get current directry...?

Postby madshi » Mon Jan 24, 2011 3:58 pm

You mean you want to know which directory a specific explorer window is listing? I don't really know how to do that. There's no official win32 API for getting this information, as far as I know.
madshi
Site Admin
 
Posts: 9410
Joined: Sun Mar 21, 2004 5:25 pm


Return to madShell

Who is online

Users browsing this forum: No registered users and 3 guests