EldoS | Feel safer!

Software components for data protection, secure storage and transfer

How to prevent to open a folder

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
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,
Posted: 01/16/2013 08:27:14
by Volodymyr Zinin (EldoS Corp.)

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



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