Hi.
how i can get current directory and get items(Files & Folders) ?
i am on writing realtime scan for my antivirus.
Thanks.
Get current directry...?
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".
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:
i am on writing a antivirusmadshi 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".
So i need realtime scan feture
i need get current directory to scan files.
sorry for bad english.
thanks.
Re: Get current directry...?
"function ShellObj(const idList: IIDList) : IShellObj;"
i should get "IIDList" from active explorer window.
how i can get IIDList from Hwnd ?!!!
i should get "IIDList" from active explorer window.
how i can get IIDList from Hwnd ?!!!
Re: Get current directry...?
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.