EldoS | Feel safer!

Software components for data protection, secure storage and transfer

GetNextOpenedFile returns false always

Also by EldoS: SecureBlackbox
200+ components and classes for digital security, signing, encryption and secure networking.
#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 (EldoS Corp.)

Moved to HelpDesk for further investigation.

Reply

Statistics

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