EldoS | Feel safer!

Software components for data protection, secure storage and transfer

GetNextOpenedFile returns false always

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
#28301
Posted: 02/07/2014 03:57:37
by Petr Kovalev (Standard support level)
Joined: 05/06/2013
Posts: 7

Hello!

We are using CBFS 5.0.145.37 driver on Windows Server 2012 Standard x64.

Program on C#.

CBFS drive mounted. After GetOpenedFilesSnapshot call got CbFsOpenedFilesSnapshot object with property OpenedFileCount greater than 0. But any call of GetNextOpenedFile method with true or false parameter returns false always.

We need to get list of filenames that opened at the moment.

Assume this code should work:

public IEnumerable<string> GetOpenedFiles()
{
var snapshot = _cbfs.GetOpenedFilesSnapshot();
if (snapshot == null)
{
return new string[0];
}
var result = new List<string>();
while (snapshot.GetNextOpenedFile(false))
{
result.Add(snapshot.FileName);
}
return result;
}

Could you please help?
#28318
Posted: 02/07/2014 06:58:45
by Volodymyr Zinin (Team)

Moved to HelpDesk for further investigation.

Reply

Statistics

Topic viewed 1206 times

Number of guests: 1, 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!