EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Additional possible GetFileSize() callback ?

Posted: 06/11/2013 04:08:34
by Jason Lee (Basic support level)
Joined: 06/11/2013
Posts: 2


I using cbfs version 4.

GetFileInformationByHandle() func callback rountine is CbFsGetFileInfo().

GetFileSize() func callback routine is nothing..

Additional possible GetFileSize() callback routine ?

best regards..
Posted: 06/11/2013 04:10:56
by Eugene Mayevski (Team)

I don't understand the question, sorry. Please re-phrase it.

Sincerely yours
Eugene Mayevski
Posted: 06/11/2013 05:02:52
by Han-joon Oh (Basic support level)
Joined: 06/11/2013
Posts: 1

I explain his question in addition.

In cbfs version 4, there is CbFsGetFileInfo() function which is callback function about GetFileInformationByHandle().

However, there isn't a callback function about GetFileSize().

Therefore, he'd like to know whether he can add callback function about GetFileSize() function or not.

Posted: 06/11/2013 05:05:53
by Eugene Mayevski (Team)

There exists no one-to-one mapping of API functions to callbacks. Windows API function performs certain operations and possibly (not always!) sends one or more requests to the filesystem. Those requests are handled and possibly (again, not always) a callback occurs.

Practically when you call GetFileSize, the OS already knows the size of the file - there's no need to request the data from the filesystem.

Sincerely yours
Eugene Mayevski
Posted: 06/11/2013 17:32:08
by Jason Lee (Basic support level)
Joined: 06/11/2013
Posts: 2

thx Eugene and Han-joon ..



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