EldoS | Feel safer!

Software components for data protection, secure storage and transfer

OnEnumerateDirectory Index==-1 what does it mean?

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
#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 (Team)

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 (Team)

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 (Team)

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: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.

Reply

Statistics

Topic viewed 4449 times

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




|

Back to top

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

Got it!