EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Getting a correct error message when denying renaming of folder

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
Posted: 02/02/2012 04:06:48
by ohad (Standard support level)
Joined: 02/02/2011
Posts: 24


I am able to prevent the renaming of a folder in either the OnOpen callback or the OnRenameOrMove callback.

I am throwing an ECBFSError(ERROR_ACCESS_DENIED)(system error code 5) after I check specific permissions for said folder.

However instead of getting a "Folder access denied" error message like I would expect,I am getting a "Folder in use" error message.

Any help would be appreciated.
Posted: 02/02/2012 04:44:22
by Eugene Mayevski (EldoS Corp.)

I suppose the problem is in interpretation of the error code by the application that performs renaming. In case of error code 5 conversion is straightforward and applications do receive error 5.

Sincerely yours
Eugene Mayevski



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