Page 1 of 1

Get current directry...?

Posted: Mon Jul 19, 2010 5:44 am
by Armagedon
Hi.
how i can get current directory and get items(Files & Folders) ?

i am on writing realtime scan for my antivirus.

Thanks.

Posted: Tue Aug 10, 2010 10:14 am
by madshi
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".

Re:

Posted: Mon Jan 17, 2011 12:08 pm
by Armagedon
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.

Re: Get current directry...?

Posted: Tue Jan 18, 2011 6:38 am
by Armagedon
"function ShellObj(const idList: IIDList) : IShellObj;"

i should get "IIDList" from active explorer window.
how i can get IIDList from Hwnd ?!!!

Re: Get current directry...?

Posted: Mon Jan 24, 2011 3:58 pm
by madshi
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.