EldoS | Feel safer!

Software components for data protection, secure storage and transfer

How to prevent to open a folder

Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.
#23214
Posted: 01/16/2013 08:13:10
by Davide Baccaglini (Standard support level)
Joined: 11/19/2012
Posts: 48

Hi everyone,
there is a way to prevent that user open a specific folder?

If I check it in OnEnumerateDirectory event and fire ERROR_ACCESS_DENIED exception, the folder is opened anyway.

Is there another way to do this?

Thank in advance,
Davide
#23215
Posted: 01/16/2013 08:27:14
by Volodymyr Zinin (Team)

Throw ERROR_ACCESS_DENIED from the OnOpen callback.
Check the user identity by means of GetOriginatorProcessId, GetOriginatorProcessName, and GetOriginatorToken.

Reply

Statistics

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