EldoS | Feel safer!

Software components for data protection, secure storage and transfer

restart parameter always false in Enumaration in XP

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
Posted: 01/14/2010 16:12:45
by Bastian Moldenhauer (Standard support level)
Joined: 06/04/2009
Posts: 40


it seems that under WinXP the restart parameter in the enumeration callback is always false. In Vista it behaves us expected.

Anyone noticed this?

Posted: 01/14/2010 17:15:39
by Volodymyr Zinin (EldoS Corp.)


This parameter is set to TRUE when someone calls ZwQueryDirectoryFile with the RestartScan parameter set.
Posted: 01/14/2010 17:19:59
by Bastian Moldenhauer (Standard support level)
Joined: 06/04/2009
Posts: 40


it seems that the explorer is doing this on Vista and higher but not on WinXP. Any idea of something like a workaround? We used this parameter to ensure we only update the directory hierachy only once per started enum.
But this is not working on XP machines.

Thanks and regards.
Posted: 01/15/2010 01:48:10
by Volodymyr Zinin (EldoS Corp.)

Not only explorer but any program can influence on this parameter. If it's set to TRUE then the directory enumeration should be restarted. I.e. in this case the algorithm of the OnEnumerateDirectory callback should be the same as if this callback is being called with the EnumerationContext parameter set to zero.
Look at the CallbackFS sample applications to see how this situation is handled.



Topic viewed 1382 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!