Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Program in C++

Feb 7, 2013 1:45AM PST

Program in C++ which allows you to access an application only if we are authorized to open the application ?

For example, Let us consider 2 users A and B . A is authorized to access the application(say Notepad)
and B is not authorized to access the application. If A double clicks on Notepad,the application should execute normally . But when B double clicks on Notepad, The application shouldnt enter the Task Manager and it shouldnt execute;Before that a pop-up should appear saying "You are not authorized to use Notepad" . Please help me in solving this problem .I shall be grateful.

Discussion is locked

- Collapse -
Odd area to try to write such an app.
Feb 7, 2013 4:12AM PST

Here I would use NTFS permissions. The messages may not be what you asked for but this is a supported part of NTFS and I'm guessing here that someone didn't know that.
Bob

- Collapse -
NTFS Permissions
Feb 7, 2013 11:45AM PST

Hey thanks for you reply .
Can you please let me know how to apply NTFS permissions for a set of applications - say Notepad, Excel ,Word .How can I restrict 'execute' permission for these apps ??

- Collapse -
Sorry.
Feb 7, 2013 12:11PM PST

But such is on the web for you to find. Anything I would write here would be the short version. In short, you set the access permissions to the apps as you see fit.
Bob