EldoS | Feel safer!

Software components for data protection, secure storage and transfer

OnEnumerateDirectory Index==-1 what does it mean?

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
#6094
Posted: 05/03/2008 07:52:39
by Vladimir Lichman (Priority Standard support level)
Joined: 05/01/2008
Posts: 19

I have found that when OnEnumerateDirectory is called the Index parameter is -1. What does it mean and what should I do if index is negative?

What should I return from OnGetFileInfo if file name is \\*.*? I assume the driver is testing if child items exist in root folder?
#6105
Posted: 05/05/2008 03:22:43
by Eugene Mayevski (EldoS Corp.)

Please specify what API (.NET, VCL, C++) you are using.


Sincerely yours
Eugene Mayevski
#6106
Posted: 05/05/2008 03:39:08
by Eugene Mayevski (EldoS Corp.)

Index will be set if it was provided by the OS. In current Windows implementations Index is not provided and CBFS API passes -1. Maybe this will be changed With Windows 7 and WinFS, we don't know.


Sincerely yours
Eugene Mayevski
#6107
Posted: 05/05/2008 03:48:16
by Eugene Mayevski (EldoS Corp.)

Regarding *.* in OnGetFileInfo - we got such report once but could not reproduce such behaviour or figure out who's sending such strange request.
Try returning some error if you get the request and see what function of the OS fails.


Sincerely yours
Eugene Mayevski
#6115
Posted: 05/05/2008 09:56:00
by Vladimir Lichman (Priority Standard support level)
Joined: 05/01/2008
Posts: 19

got it working, thank you
Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages

Reply

Statistics

Topic viewed 3687 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!